* bytecode.c (exec_byte_code): Rename local to avoid shadowing.
[bpt/emacs.git] / src / ChangeLog
1 2011-04-04 Paul Eggert <eggert@cs.ucla.edu>
2
3 * bytecode.c (exec_byte_code): Rename local to avoid shadowing.
4
5 * syntax.c (scan_words): Remove var that was set but not used.
6 (update_syntax_table): Use unsigned instead of int.
7
8 * lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
9 (lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
10 (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
11
12 * print.c (print_error_message): Avoid int overflow.
13
14 * font.c (font_list_entities): Redo for clarity,
15 so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX.
16
17 2011-04-03 Paul Eggert <eggert@cs.ucla.edu>
18
19 * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
20 (font_score): Avoid potential overflow in diff calculation.
21
22 * fns.c (substring_both): Remove var that is set but not used.
23 (sxhash): Redo loop for clarity and to avoid wraparound warning.
24
25 * eval.c (funcall_lambda): Rename local to avoid shadowing.
26
27 * alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
28 Otherwise, GCC 4.6.0 optimizes the loop check away since the check
29 can always succeed if overflow has undefined behavior.
30
31 * search.c (boyer_moore, wordify): Remove vars set but not used.
32 (wordify): Omit three unnecessary tests.
33
34 * indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
35 All callers changed. This avoids the need for an unused var.
36
37 * casefiddle.c (casify_region): Remove var that is set but not used.
38
39 * dired.c (file_name_completion): Remove var that is set but not used.
40
41 * fileio.c (Finsert_file_contents): Make EOF condition clearer.
42
43 2011-04-02 Paul Eggert <eggert@cs.ucla.edu>
44
45 * fileio.c (Finsert_file_contents): Avoid signed integer overflow.
46 (Finsert_file_contents): Remove unnecessary code checking fd.
47
48 * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
49 Check for integer overflow on size calculations.
50
51 * buffer.c (Fprevious_overlay_change): Remove var that is set
52 but not used.
53
54 * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
55 Remove vars that are set but not used.
56 (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
57 (timer_check_2): Mark vars as initialized.
58
59 * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
60
61 * image.c (lookup_image): Remove var that is set but not used.
62 (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
63
64 * fontset.c (Finternal_char_font, Ffontset_info): Remove vars
65 that are set but not used.
66
67 * xfns.c (make_invisible_cursor): Don't return garbage
68 if XCreateBitmapFromData fails (Bug#8410).
69
70 * xselect.c (x_get_local_selection, x_handle_property_notify):
71 Remove vars that are set but not used.
72
73 2011-04-01 Paul Eggert <eggert@cs.ucla.edu>
74
75 * xfns.c (x_create_tip_frame): Remove var that is set but not used.
76 (make_invisible_cursor): Initialize a possibly-uninitialized variable.
77
78 * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]:
79 Remove var that is set but not used.
80 (scroll_bar_windows_size): Now size_t, not int.
81 (x_send_scroll_bar_event): Use size_t, not int, for sizes.
82 Check for overflow.
83
84 * xfaces.c (realize_named_face): Remove vars that are set but not used.
85 (map_tty_color) [!defined MSDOS]: Likewise.
86
87 * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning.
88
89 * coding.c: Remove vars that are set but not used.
90 (DECODE_COMPOSITION_RULE): Remove 2nd arg, which is unused.
91 All callers changed.
92 (decode_coding_utf_8, decode_coding_utf_16 decode_coding_emacs_mule):
93 (decode_coding_iso_2022, encode_coding_sjis, encode_coding_big5):
94 (decode_coding_charset): Remove vars that are set but not used.
95
96 * bytecode.c (Fbyte_code) [!defined BYTE_CODE_SAFE]: Remove var
97 that is set but not used.
98
99 * print.c (print_object): Remove var that is set but not used.
100
101 Replace 2 copies of readlink code with 1 gnulib version (Bug#8401).
102 The gnulib version avoids calling malloc in the usual case,
103 and on 64-bit hosts doesn't have some arbitrary 32-bit limits.
104 * fileio.c (Ffile_symlink_p): Use emacs_readlink.
105 * filelock.c (current_lock_owner): Likewise.
106 * lisp.h (READLINK_BUFSIZE, emacs_readlink): New function.
107 * sysdep.c: Include allocator.h, careadlinkat.h.
108 (emacs_no_realloc_allocator): New static constant.
109 (emacs_readlink): New function.
110 * deps.mk (sysdep.o): Depend on ../lib/allocator.h and on
111 ../lib/careadlinkat.h.
112
113 2011-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
114
115 Add lexical binding.
116
117 * window.c (Ftemp_output_buffer_show): New fun.
118 (Fsave_window_excursion):
119 * print.c (Fwith_output_to_temp_buffer): Move to subr.el.
120
121 * lread.c (lisp_file_lexically_bound_p): New function.
122 (Fload): Bind Qlexical_binding.
123 (readevalloop): Remove `evalfun' arg.
124 Bind Qinternal_interpreter_environment.
125 (Feval_buffer): Bind Qlexical_binding.
126 (defvar_int, defvar_bool, defvar_lisp_nopro, defvar_kboard):
127 Mark as dynamic.
128 (syms_of_lread): Declare `lexical-binding'.
129
130 * lisp.h (struct Lisp_Symbol): New field `declared_special'.
131
132 * keyboard.c (eval_dyn): New fun.
133 (menu_item_eval_property): Use it.
134
135 * image.c (parse_image_spec): Use Ffunctionp.
136
137 * fns.c (concat, mapcar1): Accept byte-code-functions.
138
139 * eval.c (Fsetq): Handle lexical vars.
140 (Fdefun, Fdefmacro, Ffunction): Make closures when needed.
141 (Fdefconst, Fdefvaralias, Fdefvar): Mark as dynamic.
142 (FletX, Flet): Obey lexical binding.
143 (Fcommandp): Handle closures.
144 (Feval): New `lexical' arg.
145 (eval_sub): New function extracted from Feval. Use it almost
146 everywhere where Feval was used. Look up vars in lexical env.
147 Handle closures.
148 (Ffunctionp): Move from subr.el.
149 (Ffuncall): Handle closures.
150 (apply_lambda): Remove `eval_flags'.
151 (funcall_lambda): Handle closures and new byte-code-functions.
152 (Fspecial_variable_p): New function.
153 (syms_of_eval): Initialize the Vinternal_interpreter_environment var,
154 but without exporting it to Lisp.
155
156 * doc.c (Fdocumentation, store_function_docstring):
157 * data.c (Finteractive_form): Handle closures.
158
159 * callint.c (Fcall_interactively): Preserve lexical-binding mode for
160 interactive spec.
161
162 * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN): New
163 byte-codes.
164 (exec_byte_code): New function extracted from Fbyte_code to handle new
165 calling convention for byte-code-functions. Add new byte-codes.
166
167 * buffer.c (defvar_per_buffer): Set new `declared_special' field.
168
169 * alloc.c (Fmake_symbol): Init new `declared_special' field.
170
171 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
172
173 * xdisp.c (redisplay_internal): Fix prototype.
174
175 2011-03-31 Eli Zaretskii <eliz@gnu.org>
176
177 * xdisp.c (SCROLL_LIMIT): New macro.
178 (try_scrolling): Use it when setting scroll_limit. Limit
179 scrolling to 100 screen lines.
180 (redisplay_window): Even when falling back on "recentering",
181 position point in the window according to scroll-conservatively,
182 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
183
184 (try_scrolling): When point is above the window, allow searching
185 as far as scroll_max, or one screenful, to compute vertical
186 distance from PT to the scroll margin position. This prevents
187 try_scrolling from unnecessarily failing when
188 scroll-conservatively is set to a value slightly larger than the
189 window height. Clean up the case of PT below the margin at bottom
190 of window: scroll_max can no longer be INT_MAX. When aggressive
191 scrolling is in use, don't let point enter the opposite scroll
192 margin as result of the scroll.
193 (syms_of_xdisp) <scroll-conservatively>: Document the
194 threshold of 100 lines for never-recentering scrolling.
195
196 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
197
198 * dispextern.h (move_it_by_lines):
199 * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
200 since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed.
201 (message_log_check_duplicate): Remove parameters `prev_bol' and
202 `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
203 (redisplay_internal): Remove parameter `preserve_echo_area',
204 unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed.
205
206 * indent.c (Fvertical_motion):
207 * window.c (window_scroll_pixel_based, Frecenter):
208 Don't pass `need_y_p' to `move_it_by_lines'.
209
210 2011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
211
212 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
213 steal a few bits to be more compact.
214 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
215 Remove unneeded casts.
216
217 * bytecode.c (Fbyte_code): CAR and CDR can GC.
218
219 2011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
220
221 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
222 binding" message (bug#7967).
223
224 2011-03-30 Paul Eggert <eggert@cs.ucla.edu>
225
226 Fix more problems found by GCC 4.6.0's static checks.
227
228 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
229 Remove unused local var.
230
231 * editfns.c (Fmessage_box): Remove unused local var.
232
233 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
234 (note_mode_line_or_margin_highlight, note_mouse_highlight):
235 Omit unused local vars.
236 * window.c (shrink_windows): Omit unused local var.
237 * menu.c (digest_single_submenu): Omit unused local var.
238 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
239 Omit unused local var.
240
241 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
242 Don't assume string length fits in int.
243 (keyremap_step, read_key_sequence): Use size_t for sizes.
244 (read_key_sequence): Don't check last_real_key_start redundantly.
245
246 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
247 instead of alloca (Bug#8344).
248
249 * eval.c (Fbacktrace): Don't assume nargs fits in int.
250 (Fbacktrace_frame): Don't assume nframes fits in int.
251
252 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
253
254 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
255 concerns.
256
257 * term.c (produce_glyphless_glyph): Remove unnecessary test.
258
259 * cm.c (calccost): Turn while-do into do-while, for clarity.
260
261 * keyboard.c (syms_of_keyboard): Use the same style as later
262 in this function when indexing through an array. This also
263 works around GCC bug 48267.
264
265 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
266
267 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
268
269 * chartab.c (sub_char_table_ref_and_range): Redo for slight
270 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
271
272 * keyboard.c, keyboard.h (num_input_events): Now size_t.
273 This avoids undefined behavior on integer overflow, and is a bit
274 more convenient anyway since it is compared to a size_t variable.
275
276 Variadic C functions now count arguments with size_t, not int.
277 This avoids an unnecessary limitation on 64-bit machines, which
278 caused (substring ...) to crash on large vectors (Bug#8344).
279 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
280 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
281 All variadic functions and their callers changed accordingly.
282 (struct gcpro.nvars): Now size_t, not int. All uses changed.
283 * data.c (arith_driver, float_arith_driver): Likewise.
284 * editfns.c (general_insert_function): Likewise.
285 * eval.c (struct backtrace.nargs, interactive_p)
286 (internal_condition_case_n, run_hook_with_args, apply_lambda)
287 (funcall_lambda, mark_backtrace): Likewise.
288 * fns.c (concat): Likewise.
289 * frame.c (x_set_frame_parameters): Likewise.
290 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
291 0 if not found, not -1. All callers changed.
292
293 * alloc.c (garbage_collect): Don't assume stack size fits in int.
294 (stack_copy_size): Now size_t, not int.
295 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
296
297 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
298
299 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
300 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
301 All callers changed.
302
303 * lisp.h (multibyte_char_to_unibyte):
304 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
305 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
306 * character.h (CHAR_TO_BYTE8):
307 * cmds.c (internal_self_insert):
308 * editfns.c (general_insert_function):
309 * keymap.c (push_key_description):
310 * search.c (Freplace_match):
311 * xdisp.c (message_dolog, set_message_1): All callers changed.
312
313 2011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
314
315 * keyboard.c (safe_run_hook_funcall): New function.
316 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
317 don't set the hook to nil, but remove the offending function instead.
318 (Qcommand_hook_internal): Remove, unused.
319 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
320 Vcommand_hook_internal.
321
322 * eval.c (enum run_hooks_condition): Remove.
323 (funcall_nil, funcall_not): New functions.
324 (run_hook_with_args): Call each function through a `funcall' argument.
325 Remove `cond' argument, now redundant.
326 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
327 (Frun_hook_with_args_until_failure): Adjust accordingly.
328 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
329
330 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
331
332 * dispextern.h (string_buffer_position): Remove declaration.
333
334 * print.c (strout): Remove parameter `multibyte', unused since
335 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
336
337 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
338 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
339 All callers changed.
340
341 * w32.c (_wsa_errlist): Use braces for struct initializers.
342
343 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
344 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
345 All callers changed.
346 (string_buffer_position): Likewise. Also, make static (it's never
347 used outside xdisp.c).
348 (cursor_row_p): Remove parameter `w', unused since
349 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
350 (decode_mode_spec): Remove parameter `precision', introduced during
351 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
352 All callers changed.
353
354 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
355
356 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
357
358 2011-03-27 Anders Lindgren <andlind@gmail.com>
359
360 * nsterm.m (ns_menu_bar_is_hidden): New variable.
361 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
362 (ns_update_auto_hide_menu_bar): New functions.
363 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
364 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
365 ns_constrain_all_frames.
366 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
367 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
368
369 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
370
371 * nsmenu.m (runDialogAt): Remove argument to timer_check.
372
373 2011-03-27 Glenn Morris <rgm@gnu.org>
374
375 * syssignal.h: Replace RETSIGTYPE with void.
376 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
377 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
378 Replace SIGTYPE with void everywhere.
379 * s/usg5-4-common.h (SIGTYPE): Remove definition.
380 * s/template.h (SIGTYPE): Remove commented out definition.
381
382 2011-03-26 Eli Zaretskii <eliz@gnu.org>
383
384 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
385 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
386
387 2011-03-26 Juanma Barranquero <lekktu@gmail.com>
388
389 * w32.c (read_unc_volume): Use parameter `henum', instead of
390 global variable `wget_enum_handle'.
391
392 * keymap.c (describe_vector): Remove parameters `indices' and
393 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
394 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
395
396 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
397
398 * keyboard.c (timer_check): Remove parameter `do_it_now',
399 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
400 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
401 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
402
403 * keyboard.c (read_char):
404 * w32menu.c (w32_menu_display_help):
405 * xmenu.c (show_help_event, menu_help_callback):
406 Adjust calls to `show_help_echo'.
407
408 * gtkutil.c (xg_maybe_add_timer):
409 * keyboard.c (readable_events):
410 * process.c (wait_reading_process_output):
411 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
412
413 * insdel.c (adjust_markers_gap_motion):
414 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
415 (gap_left, gap_right): Don't call it.
416
417 2011-03-25 Chong Yidong <cyd@stupidchicken.com>
418
419 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
420 incurred during fontification.
421
422 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
423
424 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
425 (DEFVAR_PER_BUFFER): Don't pass it.
426
427 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
428 (scrolling_window): Don't pass it.
429
430 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
431
432 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
433
434 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
435 and `suffix'.
436 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
437 of variables specific to SELinux and computation of `encoded_absname'.
438
439 * image.c (XPutPixel): Remove unused variable `height'.
440
441 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
442
443 * unexw32.c (get_section_info): Remove unused variable `section'.
444
445 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
446 (system_process_attributes): Remove unused variable `sess'.
447 (sys_read): Remove unused variable `err'.
448
449 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
450 (w32_wnd_proc): Remove unused variable `isdead'.
451 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
452 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
453 (x_create_tip_frame): Remove unused variable `tem'.
454
455 * w32inevt.c (w32_console_read_socket):
456 Remove unused variable `no_events'.
457
458 * w32term.c (x_draw_composite_glyph_string_foreground):
459 Remove unused variable `width'.
460
461 2011-03-24 Juanma Barranquero <lekktu@gmail.com>
462
463 * w32term.c (x_set_glyph_string_clipping):
464 Don't pass uninitialized region to CombineRgn.
465
466 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
467
468 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
469 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
470 (Fx_close_connection): Remove unused variable `i'.
471
472 * w32font.c (w32font_draw): Return number of glyphs.
473 (w32font_open_internal): Remove unused variable `i'.
474 (w32font_driver): Add missing initializer.
475
476 * w32menu.c (utf8to16): Remove unused variable `utf16'.
477 (fill_in_menu): Remove unused variable `items_added'.
478
479 * w32term.c (last_mouse_press_frame): Remove static global variable.
480 (w32_clip_to_row): Remove unused variable `f'.
481 (x_delete_terminal): Remove unused variable `i'.
482
483 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
484 (NOTHING): Remove unused static global variable.
485 (uniscribe_check_otf): Remove unused variable `table'.
486 (uniscribe_font_driver): Add missing initializers.
487
488 2011-03-23 Julien Danjou <julien@danjou.info>
489
490 * term.c (Fsuspend_tty, Fresume_tty):
491 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
492 * window.c (temp_output_buffer_show):
493 * insdel.c (signal_before_change):
494 * frame.c (Fhandle_switch_frame):
495 * fileio.c (Fdo_auto_save):
496 * emacs.c (Fkill_emacs):
497 * editfns.c (save_excursion_restore):
498 * cmds.c (internal_self_insert):
499 * callint.c (Fcall_interactively):
500 * buffer.c (Fkill_all_local_variables):
501 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
502 Use Frun_hooks.
503 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
504 unconditionnaly since it does the check itself.
505
506 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
507
508 Fix more problems found by GCC 4.5.2's static checks.
509
510 * coding.c (encode_coding_raw_text): Avoid unnecessary test
511 the first time through the loop, since we know p0 < p1 then.
512 This also avoids a gcc -Wstrict-overflow warning.
513
514 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
515 leading to a memory leak, possible in functions like
516 load_charset_map_from_file that can allocate an unbounded number
517 of objects (Bug#8318).
518
519 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
520 that could (at least in theory) be that large.
521
522 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
523 This is less likely to overflow, and avoids undefined behavior if
524 overflow does occur. All callers changed. Use strtoul to scan
525 for the unsigned long integer.
526 (pint2hrstr): Simplify and tune code slightly.
527 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
528
529 * scroll.c (do_scrolling): Work around GCC bug 48228.
530 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
531
532 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
533 This also avoids a warning with gcc -Wstrict-overflow.
534 (validate_x_resource_name): Simplify count usage.
535 This also avoids a warning with gcc -Wstrict-overflow.
536
537 * fileio.c (Fcopy_file): Report error if fchown or fchmod
538 fail (Bug#8306).
539
540 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
541
542 * process.c (Fmake_network_process): Use socklen_t, not int,
543 where POSIX says socklen_t is required in portable programs.
544 This fixes a porting bug on hosts like 64-bit HP-UX, where
545 socklen_t is wider than int (Bug#8277).
546 (Fmake_network_process, server_accept_connection):
547 (wait_reading_process_output, read_process_output):
548 Likewise.
549
550 * process.c: Rename or move locals to avoid shadowing.
551 (list_processes_1, Fmake_network_process):
552 (read_process_output_error_handler, exec_sentinel_error_handler):
553 Rename or move locals.
554 (Fmake_network_process): Define label "retry_connect" only if needed.
555 (Fnetwork_interface_info): Fix pointer signedness.
556 (process_send_signal): Add cast to avoid pointer signedness problem.
557 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
558 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
559
560 Make tparam.h and terminfo.c consistent.
561 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
562 Include tparam.h instead, since it declares them.
563 * cm.h (PC): Remove extern decl; tparam.h now does this.
564 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
565 * terminfo.c: Include tparam.h, to check interfaces.
566 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
567 (tparam): Adjust signature to match interface in tparam.h;
568 this removes some undefined behavior. Check that outstring and len
569 are zero, which they always are with Emacs.
570 * tparam.h (PC, BC, UP): New extern decls.
571
572 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
573 (xftfont_open): Rename locals to avoid shadowing.
574
575 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
576 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
577 (OTF_TAG_SYM): Omit macro if not needed.
578 (ftfont_list): Remove unused local.
579 (get_adstyle_property, ftfont_pattern_entity):
580 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
581 Rename locals to avoid shadowing.
582
583 * xfont.c (xfont_list_family): Mark var as initialized.
584
585 * xml.c (make_dom): Now static.
586
587 * composite.c (composition_compute_stop_pos): Rename local to
588 avoid shadowing.
589 (composition_reseat_it): Remove unused locals.
590 (find_automatic_composition, composition_adjust_point): Likewise.
591 (composition_update_it): Mark var as initialized.
592 (find_automatic_composition): Mark vars as initialized,
593 with a FIXME (Bug#8290).
594
595 character.h: Rename locals to avoid shadowing.
596 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
597 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
598 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
599 (BUF_DEC_POS): Be more systematic about renaming local temporaries
600 to avoid shadowing.
601
602 * textprop.c (property_change_between_p): Remove; unused.
603
604 * intervals.c (interval_start_pos): Now static.
605
606 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
607
608 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
609 Rename locals to avoid shadowing.
610
611 * sound.c (wav_play, au_play, Fplay_sound_internal):
612 Fix pointer signedness.
613 (alsa_choose_format): Remove unused local var.
614 (wav_play): Initialize a variable to 0, to prevent undefined
615 behavior (Bug#8278).
616
617 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
618
619 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
620
621 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
622 clobbering (Bug#8298).
623 * sysdep.c (sys_subshell): Likewise.
624 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
625
626 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
627 This should get cleaned up, so that child_setup has the
628 same signature on all platforms.
629
630 * callproc.c (call_process_cleanup): Now static.
631 (relocate_fd): Rename locals to avoid shadowing.
632
633 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
634
635 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
636 not to be necessary, and produces flickering.
637
638 2011-03-20 Glenn Morris <rgm@gnu.org>
639
640 * config.in: Remove file.
641
642 2011-03-20 Juanma Barranquero <lekktu@gmail.com>
643
644 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
645 are now in src/globals.h.
646 (syms_of_minibuf): Remove spurious & from previous change.
647
648 2011-03-20 Leo <sdl.web@gmail.com>
649
650 * minibuf.c (completing-read-function): New variable.
651 (completing-read-default): Rename from completing-read.
652 (completing-read): Call completing-read-function.
653
654 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
655
656 * xfaces.c (Fx_load_color_file):
657 Read color file from absolute filename (bug#8250).
658
659 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
660
661 * makefile.w32-in: Update dependencies.
662
663 2011-03-17 Eli Zaretskii <eliz@gnu.org>
664
665 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
666
667 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
668
669 Fix more problems found by GCC 4.5.2's static checks.
670
671 * process.c (make_serial_process_unwind, send_process_trap):
672 (sigchld_handler): Now static.
673
674 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
675 That way, the code declares only the vars that it needs.
676 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
677 * s/cygwin.h (PTY_ITERATION): Likewise.
678 * s/darwin.h (PTY_ITERATION): Likewise.
679 * s/gnu-linux.h (PTY_ITERATION): Likewise.
680
681 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
682 * process.c (allocate_pty): Don't declare stb unless it's needed.
683
684 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
685 (CONSTANTLIM): Remove; unused.
686 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
687 Define only if needed.
688
689 * unexelf.c (unexec): Name an expression,
690 to avoid gcc -Wbad-function-cast warning.
691 Use a different way to cause a compilation error if anyone uses
692 n rather than nn, a way that does not involve shadowing.
693 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
694
695 * deps.mk (unexalpha.o): Remove; unused.
696
697 New file unexec.h, the (simple) interface for unexec (Bug#8267).
698 * unexec.h: New file.
699 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
700 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
701 Depend on unexec.h.
702 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
703 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
704 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
705 Change as necessary to match prototype in unexec.h.
706
707 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
708 shadowing.
709 (back_comment, skip_chars): Mark vars as initialized.
710
711 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
712 Rename locals to avoid shadowing.
713
714 * lread.c (read1): Rewrite so as not to use empty "else".
715 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
716
717 * print.c (Fredirect_debugging_output): Fix pointer signedess.
718
719 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
720 warning when compiling print.c.
721
722 * font.c (font_unparse_fcname): Abort in an "impossible" situation
723 instead of using an uninitialized var.
724 (font_sort_entities): Mark var as initialized.
725
726 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
727
728 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
729 pointers to constants.
730 (font_parse_fcname): Remove unused vars.
731 (font_delete_unmatched): Now static.
732 (font_get_spec): Remove; unused.
733 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
734 (font_update_drivers, Ffont_get_glyphs, font_add_log):
735 Rename or move locals to avoid shadowing.
736
737 * fns.c (require_nesting_list, require_unwind): Now static.
738 (Ffillarray): Rename locals to avoid shadowing.
739
740 * floatfns.c (domain_error2): Define only if needed.
741 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
742
743 * alloc.c (mark_backtrace): Move decl from here ...
744 * lisp.h: ... to here, so that it can be checked.
745
746 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
747 (Fdefvar): Rewrite so as not to use empty "else".
748 (lisp_indirect_variable): Name an expression,
749 to avoid gcc -Wbad-function-cast warning.
750 (Fdefvar): Rename locals to avoid shadowing.
751
752 * callint.c (quotify_arg, quotify_args): Now static.
753 (Fcall_interactively): Rename locals to avoid shadowing.
754 Use const pointer when appropriate.
755
756 * lisp.h (get_system_name, get_operating_system_release):
757 Move decls here, to check interfaces.
758 * process.c (get_operating_system_release): Move decl to lisp.h.
759 * xrdb.c (get_system_name): Likewise.
760 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
761 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
762 some of which prompt warnings from gcc -Wbad-function-cast.
763 (Fformat_time_string, Fencode_time, Finsert_char):
764 (Ftranslate_region_internal, Fformat):
765 Rename or remove local vars to avoid shadowing.
766 (Ftranslate_region_internal): Mark var as initialized.
767
768 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
769 avoid shadowing.
770
771 * lisp.h (eassert): Check that the argument compiles, even if
772 ENABLE_CHECKING is not defined.
773
774 * data.c (Findirect_variable): Name an expression, to avoid
775 gcc -Wbad-function-cast warning.
776 (default_value, arithcompare, arith_driver, arith_error): Now static.
777 (store_symval_forwarding): Rename local to avoid shadowing.
778 (Fmake_variable_buffer_local, Fmake_local_variable):
779 Mark variables as initialized.
780 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
781
782 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
783 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
784 Rename locals to avoid shadowing.
785 (mark_stack): Move local variables into the #ifdef region where
786 they're used.
787 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
788 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
789 needed otherwise.
790 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
791 (GC_STRING_CHARS): Remove; not used.
792 (Fmemory_limit): Cast sbrk's returned value to char *.
793
794 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
795 avoids undefined behavior in theory.
796
797 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
798
799 Use functions, not macros, for up- and down-casing (Bug#8254).
800 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
801 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
802 to use the following functions instead of these macros.
803 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
804 EMACS_INT, since callers assume the returned value fits in int.
805 (upcase1): Likewise, for UPCASE_TABLE.
806 (uppercasep, lowercasep, upcase): New static inline functions.
807 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
808 the race-condition problem in the old DOWNCASE.
809
810 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
811 Rename locals to avoid shadowing.
812 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
813 (regex_compile, re_search_2, re_match_2_internal):
814 Remove unused local vars.
815 (FREE_VAR): Rewrite so as not to use empty "else",
816 which gcc can warn about.
817 (regex_compile, re_match_2_internal): Mark locals as initialized.
818 (RETALLOC_IF): Define only if needed.
819 (WORDCHAR_P): Likewise. This one is never needed, but is used
820 only in a comment talking about a compiler bug, so put inside
821 the #if 0 of that comment.
822 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
823 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
824 Remove; unused.
825
826 * search.c (boyer_moore): Rename locals to avoid shadowing.
827 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
828 (PREV_CHAR_BOUNDARY): Likewise.
829
830 * search.c (simple_search): Remove unused var.
831
832 * dired.c (compile_pattern): Move decl from here ...
833 * lisp.h: ... to here, so that it can be checked.
834 (struct re_registers): New forward decl.
835
836 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
837
838 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
839 All uses changed.
840 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
841 Rename locals to avoid shadowing.
842 (Fvertical_motion): Mark locals as initialized.
843
844 * casefiddle.c (casify_object, casify_region): Now static.
845 (casify_region): Mark local as initialized.
846
847 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
848
849 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
850 New macros, so that the caller can use some names other than
851 gcpro1, gcpro2, etc.
852 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
853 of the new macros.
854 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
855 argument, for consistency with GCPRO2_VAR, etc: it is now the
856 prefix of the variable, not the variable itself. All uses
857 changed.
858 * dired.c (directory_files_internal, file_name_completion):
859 Rename locals to avoid shadowing.
860
861 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
862 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
863 dired.c's scmp function, had undefined behavior.
864 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
865 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
866 * buffer.h: ... to here, because these macros use current_buffer,
867 and the new implementation with inline functions needs to have
868 current_buffer in scope now, rather than later when the macros
869 are used.
870 (downcase, upcase1): New static inline functions.
871 (DOWNCASE, UPCASE1): Reimplement using these functions.
872 This avoids undefined behavior in expressions like
873 DOWNCASE (x) == DOWNCASE (y), which previously suffered
874 from race conditions in accessing the global variables
875 case_temp1 and case_temp2.
876 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
877 * lisp.h (case_temp1, case_temp2): Remove their decls.
878 * character.h (ASCII_CHAR_P): Move from here ...
879 * lisp.h: ... to here, so that the inline functions mentioned
880 above can use them.
881
882 * dired.c (directory_files_internal_unwind): Now static.
883
884 * fileio.c (file_name_as_directory, directory_file_name):
885 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
886 Now static.
887 (file_name_as_directory): Use const pointers when appropriate.
888 (Fexpand_file_name): Likewise. In particular, newdir might
889 point at constant storage, so make it a const pointer.
890 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
891 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
892 signedness issues.
893 (Fset_file_times, Finsert_file_contents, auto_save_error):
894 Rename locals to avoid shadowing.
895
896 * minibuf.c (choose_minibuf_frame_1): Now static.
897 (Ftry_completion, Fall_completions): Rename or remove locals
898 to avoid shadowing.
899
900 * marker.c (bytepos_to_charpos): Remove; unused.
901
902 * lisp.h (verify_bytepos, count_markers): New decls,
903 so that gcc does not warn that these functions aren't declared.
904
905 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
906 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
907 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
908 (copy_text): Remove unused local var.
909
910 * filelock.c (within_one_second): Now static.
911 (lock_file_1): Rename local to avoid shadowing.
912
913 * buffer.c (fix_overlays_before): Mark locals as initialized.
914 (fix_start_end_in_overlays): Likewise. This function should be
915 simplified by using pointers-to-pointers, but that's a different
916 matter.
917 (switch_to_buffer_1): Now static.
918 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
919 (report_overlay_modification): Rename locals to avoid shadowing.
920
921 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
922 Fix pointer signedness issue.
923 (sys_subshell): Mark local as volatile if checking for lint,
924 to suppress a gcc -Wclobbered warning that does not seem to be right.
925 (MAXPATHLEN): Define only if needed.
926
927 * process.c (serial_open, serial_configure): Move decls from here ...
928 * systty.h: ... to here, so that they can be checked.
929
930 * fns.c (get_random, seed_random): Move extern decls from here ...
931 * lisp.h: ... to here, so that they can be checked.
932
933 * sysdep.c (reset_io): Now static.
934 (wait_for_termination_signal): Remove; unused.
935
936 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
937 (copy_keymap_item, append_key, push_text_char_description):
938 Now static.
939 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
940 (DENSE_TABLE_SIZE): Remove; unused.
941 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
942 (describe_map_tree):
943 Rename locals to avoid shadowing.
944
945 * keyboard.c: Declare functions static if they are not used elsewhere.
946 (echo_char, echo_dash, cmd_error, top_level_2):
947 (poll_for_input, handle_async_input): Now static.
948 (read_char, kbd_buffer_get_event, make_lispy_position):
949 (make_lispy_event, make_lispy_movement, apply_modifiers):
950 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
951 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
952 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
953 (read_key_sequence, read_char): Mark locals as initialized.
954 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
955
956 * keyboard.h (make_ctrl_char): New decl.
957 (mark_kboards): Move decl here ...
958 * alloc.c (mark_kboards): ... from here.
959
960 * lisp.h (force_auto_save_soon): New decl.
961
962 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
963 (DEFINE_DUMMY_FUNCTION): New macro.
964 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
965 Use it.
966 (main): Add casts to avoid warnings
967 if GCC considers string literals to be constants.
968
969 * lisp.h (fatal_error_signal): Add decl, since it's exported.
970
971 * dbusbind.c: Pointer signedness fixes.
972 (xd_signature, xd_append_arg, xd_initialize):
973 (Fdbus_call_method, Fdbus_call_method_asynchronously):
974 (Fdbus_method_return_internal, Fdbus_method_error_internal):
975 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
976 (Fdbus_register_signal): Use SSDATA when the context wants char *.
977
978 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
979 if GCC considers string literals to be constants.
980 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
981
982 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
983
984 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
985 (print_preprocess, print_object): New macro to fix last change.
986
987 * print.c (print_preprocess): Don't forget font objects.
988
989 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
990
991 * emacs.c (USAGE3): Doc fixes.
992
993 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
994
995 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
996 structure.
997
998 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
999
1000 * lisp.h (VWindow_system, Qfile_name_history):
1001 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
1002 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
1003 (w32_system_caret_x, w32_system_caret_y): Declare extern.
1004
1005 * w32select.c: Don't #include "keyboard.h".
1006 (run_protected): Add extern declaration for waiting_for_input.
1007
1008 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
1009 * w32console.c (detect_input_pending, read_input_pending)
1010 (encode_terminal_code):
1011 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
1012 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
1013 (w32_system_caret_y, Qfile_name_history):
1014 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
1015 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
1016 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
1017 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
1018 * w32proc.c (Qlocal, report_file_error):
1019 * w32term.c (Vwindow_system, updating_frame):
1020 * w32uniscribe.c (initialized, uniscribe_font_driver):
1021 Remove unneeded extern declarations.
1022
1023 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
1024
1025 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
1026
1027 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
1028
1029 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
1030 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
1031 These macros can no longer be used for assignment.
1032
1033 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
1034 Assign struct members directly, instead of using BUF_BEGV etc.
1035 (record_buffer_markers, fetch_buffer_markers): New functions for
1036 recording and fetching special buffer markers.
1037 (set_buffer_internal_1, set_buffer_temp): Use them.
1038
1039 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
1040
1041 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
1042
1043 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
1044 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
1045
1046 * xdisp.c (hscroll_window_tree):
1047 (reconsider_clip_changes): Use PT instead of BUF_PT.
1048
1049 2011-03-13 Eli Zaretskii <eliz@gnu.org>
1050
1051 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
1052 $(EMACS_ROOT)/lib/intprops.h.
1053
1054 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
1055
1056 Fix more problems found by GCC 4.5.2's static checks.
1057
1058 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
1059 to unsigned char * to avoid compiler diagnostic.
1060 (xg_free_frame_widgets): Make it clear that a local variable is
1061 needed only if USE_GTK_TOOLTIP.
1062 (gdk_window_get_screen): Make it clear that this macro is needed
1063 only if USE_GTK_TOOLTIP.
1064 (int_gtk_range_get_value): New function, which avoids a diagnostic
1065 from gcc -Wbad-function-cast.
1066 (xg_set_toolkit_scroll_bar_thumb): Use it.
1067 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
1068 diagnostic from gcc -Wbad-function-cast.
1069 (get_utf8_string, xg_get_file_with_chooser):
1070 Rename locals to avoid shadowing.
1071 (create_dialog): Move locals to avoid shadowing.
1072
1073 * xgselect.c (xg_select): Remove unused var.
1074
1075 * image.c (four_corners_best): Mark locals as initialized.
1076 (gif_load): Initialize transparent_p to zero (Bug#8238).
1077 Mark another local as initialized.
1078 (my_png_error, my_error_exit): Mark with NO_RETURN.
1079
1080 * image.c (clear_image_cache): Now static.
1081 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
1082 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
1083 (x_edge_detection): Remove unnecessary cast that
1084 gcc -Wbad-function-cast diagnoses.
1085 (gif_load): Fix pointer signedness.
1086 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
1087 (jpeg_load, gif_load): Rename locals to avoid shadowing.
1088
1089 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1090
1091 Improve quality of tests for time stamp overflow.
1092 For example, without this patch (encode-time 0 0 0 1 1
1093 1152921504606846976) returns the obviously-bogus value (-948597
1094 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
1095 reports time overflow. See
1096 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
1097 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
1098 * editfns.c: Include limits.h and intprops.h.
1099 (TIME_T_MIN, TIME_T_MAX): New macros.
1100 (time_overflow): Move earlier, to before first use.
1101 (hi_time, lo_time): New functions, for an accurate test for
1102 out-of-range times.
1103 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
1104 (Fget_internal_run_time): Don't assume time_t fits in int.
1105 (make_time): Use list2 instead of Fcons twice.
1106 (Fdecode_time): More accurate test for out-of-range times.
1107 (check_tm_member): New function.
1108 (Fencode_time): Use it, to test for out-of-range times.
1109 (lisp_time_argument): Don't rely on undefined left-shift and
1110 right-shift behavior when checking for time stamp overflow.
1111
1112 * editfns.c (time_overflow): New function, refactoring common code.
1113 (Fformat_time_string, Fdecode_time, Fencode_time):
1114 (Fcurrent_time_string): Use it.
1115
1116 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
1117 * dired.c (make_time): Move to ...
1118 * editfns.c (make_time): ... here.
1119 * systime.h: Note the move.
1120
1121 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1122
1123 * fringe.c (update_window_fringes): Remove unused variables.
1124
1125 * unexmacosx.c (copy_data_segment): Also copy __got section.
1126 (Bug#8223)
1127
1128 2011-03-12 Eli Zaretskii <eliz@gnu.org>
1129
1130 * termcap.c [MSDOS]: Include "msdos.h".
1131 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
1132 Constify `char *' arguments and their references according to
1133 prototypes in tparam.h.
1134
1135 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
1136
1137 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
1138 Adapt all references accordingly.
1139
1140 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
1141
1142 2011-03-11 Tom Tromey <tromey@redhat.com>
1143
1144 * buffer.c (syms_of_buffer): Remove obsolete comment.
1145
1146 2011-03-11 Eli Zaretskii <eliz@gnu.org>
1147
1148 * termhooks.h (encode_terminal_code): Declare prototype.
1149
1150 * msdos.c (encode_terminal_code): Don't declare prototype.
1151
1152 * term.c (encode_terminal_code): Now external again, used by
1153 w32console.c and msdos.c.
1154
1155 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
1156 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
1157
1158 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1159
1160 Fix some minor problems found by GCC 4.5.2's static checks.
1161
1162 * fringe.c (update_window_fringes): Mark locals as initialized
1163 (Bug#8227).
1164 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
1165
1166 * alloc.c (mark_fringe_data): Move decl from here ...
1167 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
1168 to check its interface.
1169 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
1170
1171 * fontset.c (free_realized_fontset): Now static.
1172 (Fset_fontset_font): Rename local to avoid shadowing.
1173 (fontset_font): Mark local as initialized.
1174 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
1175
1176 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
1177
1178 * xselect.c (x_disown_buffer_selections): Remove; not used.
1179 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
1180 (x_own_selection, Fx_disown_selection_internal): Rename locals
1181 to avoid shadowing.
1182 (x_handle_dnd_message): Remove local to avoid shadowing.
1183
1184 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
1185 so that the caller can use some name other than gcpro1.
1186 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
1187 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1188 (Fx_backspace_delete_keys_p):
1189 Use them to avoid shadowing, and rename vars to avoid shadowing.
1190 (x_decode_color, x_set_name, x_window): Now static.
1191 (Fx_create_frame): Add braces to silence GCC warning.
1192 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
1193 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
1194 Remove unused locals.
1195 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1196 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
1197 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
1198 macros.
1199
1200 * xterm.h (x_mouse_leave): New decl.
1201
1202 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
1203 Remove unused functions.
1204 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
1205 (x_calc_absolute_position): Now static.
1206 (XTread_socket): Don't define label "out" unless it's used.
1207 Don't declare local "event" unless it's used.
1208 (x_iconify_frame, x_free_frame_resources): Don't declare locals
1209 unless they are used.
1210 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
1211 (x_fatal_error_signal): Remove; not used.
1212 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
1213 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
1214 (x_error_catcher, x_connection_closed, x_error_handler):
1215 (x_error_quitter, xembed_send_message, x_iconify_frame):
1216 (my_log_handler): Rename locals to avoid shadowing.
1217 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
1218 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
1219
1220 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
1221 Rename or move locals to avoid shadowing.
1222 (tty_defined_color, merge_face_heights): Now static.
1223 (free_realized_faces_for_fontset): Remove; not used.
1224 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
1225 does not deduce is never used uninitialized.
1226 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
1227 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
1228
1229 * terminal.c (store_terminal_param): Now static.
1230
1231 * xmenu.c (menu_highlight_callback): Now static.
1232 (set_frame_menubar): Remove unused local.
1233 (xmenu_show): Rename parameter to avoid shadowing.
1234 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1235 since they might point to immutable storage.
1236 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1237 since it's unused otherwise.
1238
1239 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
1240 Add a FIXME, since the code still doesn't look right. (Bug#8215)
1241 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1242 avoids a gcc -Wuninitialized diagnostic.
1243 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
1244 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1245 does not deduce are never used uninitialized.
1246
1247 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1248
1249 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
1250 * window.c (window_loop, size_window):
1251 (run_window_configuration_change_hook, enlarge_window): Likewise.
1252
1253 * window.c (display_buffer): Now static.
1254 (size_window): Mark variables that gcc -Wuninitialized
1255 does not deduce are never used uninitialized.
1256 * window.h (check_all_windows): New decl, to forestall
1257 gcc -Wmissing-prototypes diagnostic.
1258 * dispextern.h (bidi_dump_cached_states): Likewise.
1259
1260 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1261 shadowing.
1262 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
1263 Include <limits.h>.
1264 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1265 and to avoid gcc -Wuninitialized warning.
1266 (load_charset_map): Mark variables that gcc -Wuninitialized
1267 does not deduce are never used uninitialized.
1268 (load_charset): Abort instead of using uninitialized var (Bug#8229).
1269
1270 * coding.c (coding_set_source, coding_set_destination):
1271 Use "else { /* comment */ }" rather than "else /* comment */;"
1272 for clarity, and to avoid gcc -Wempty-body warning.
1273 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1274 a block, when the outer 'i' will do.
1275 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1276 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1277 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1278 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1279 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1280 Rename locals to avoid shadowing.
1281 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
1282 * coding.c (emacs_mule_char, encode_invocation_designation):
1283 Now static, since they're not used elsewhere.
1284 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
1285 (decode_coding_object, encode_coding_object, detect_coding_system):
1286 (decode_coding_emacs_mule): Mark variables that gcc
1287 -Wuninitialized does not deduce are never used uninitialized.
1288 (detect_coding_iso_2022): Initialize a local variable that might
1289 be used uninitialized. Leave a FIXME because it's not clear that
1290 this initialization is needed. (Bug#8211)
1291 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1292 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1293 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1294 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1295 Remove unused macros.
1296
1297 * category.c (hash_get_category_set): Remove unused local var.
1298 (copy_category_table): Now static, since it's not used elsewhere.
1299 * character.c (string_count_byte8): Likewise.
1300
1301 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1302 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1303
1304 * chartab.c (copy_sub_char_table): Now static, since it's not used
1305 elsewhere.
1306 (sub_char_table_ref_and_range, char_table_ref_and_range):
1307 Rename locals to avoid shadowing.
1308 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
1309
1310 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
1311 (BIDI_BOB): Remove unused macro.
1312
1313 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1314 deduce are never used uninitialized.
1315 * term.c (encode_terminal_code): Likewise.
1316
1317 * term.c (encode_terminal_code): Now static. Remove unused local.
1318
1319 * tparam.h: New file.
1320 * term.c, tparam.h: Include it.
1321 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1322 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1323 Move these decls to tparam.h, and make them agree with what
1324 is actually in tparam.c. The previous trick of using incompatible
1325 decls in different modules does not conform to the C standard.
1326 All callers of tparam changed to use tparam's actual API.
1327 * tparam.c (tparam1, tparam, tgoto):
1328 Use const pointers where appropriate.
1329
1330 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1331 * cm.h (struct cm): Likewise.
1332 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1333 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1334 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1335 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1336 (turn_on_face, init_tty): Likewise.
1337 * termchar.h (struct tty_display_info): Likewise.
1338
1339 * term.c (term_mouse_position): Rename local to avoid shadowing.
1340
1341 * alloc.c (mark_ttys): Move decl from here ...
1342 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1343
1344 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1345
1346 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1347
1348 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
1349
1350 * search.c (compile_pattern_1): Remove argument regp, unused since
1351 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1352 (compile_pattern): Don't pass it.
1353
1354 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1355
1356 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1357 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1358 for ! HAVE_GTK3.
1359 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1360
1361 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1362
1363 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1364 gdk_window_get_screen, gdk_window_get_geometry,
1365 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1366 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1367 (xg_get_pixbuf_from_pixmap): New function.
1368 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1369 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1370 Call xg_get_pixbuf_from_pixmap instead of
1371 gdk_pixbuf_get_from_drawable.
1372 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1373 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1374 (xg_check_special_colors): Use GtkStyleContext and its functions
1375 for HAVE_GTK3.
1376 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1377 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1378 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1379 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
1380 Call gtk_widget_get_preferred_size.
1381 (xg_frame_resized): gdk_window_get_geometry only takes 5
1382 parameters.
1383 (xg_win_to_widget, xg_event_is_for_menubar):
1384 Call gdk_x11_window_lookup_for_display.
1385 (xg_set_widget_bg): New function.
1386 (delete_cb): New function.
1387 (xg_create_frame_widgets): connect delete-event to delete_cb.
1388 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1389 (xg_set_background_color): Call xg_set_widget_bg.
1390 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1391 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1392 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1393 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1394 if ! HAVE_GTK3.
1395 (update_frame_tool_bar): Call gtk_widget_hide.
1396 (xg_initialize): Use GDK_KEY_g.
1397
1398 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1399 if ! HAVE_GTK3
1400 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1401
1402 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1403 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1404 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1405
1406 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
1407
1408 * w32xfns.c (select_palette): Check success of RealizePalette against
1409 GDI_ERROR, not zero.
1410
1411 2011-03-07 Ben Key <bkey76@gmail.com>
1412
1413 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1414 (file_dialog_callback): Fix locating the window handle of the File Name
1415 text field. After disabling it, set focus on the list control.
1416 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1417 Name text field to "Current Directory" if it does not already have
1418 another value. (Bug#8181)
1419
1420 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1421
1422 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1423 parameter for hbar cursors. Based on a patch by Ben Key
1424 <bkey76@gmail.com>.
1425
1426 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
1427
1428 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1429 change.
1430
1431 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1432
1433 current_column: Now returns EMACS_INT, fixing some iftc
1434 that was introduced in the 2002-06-02 change "temporarily"; see
1435 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1436 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1437 * cmds.c (internal_self_insert): Likewise.
1438 * indent.c (Fcurrent_column): Likewise.
1439 * keymap.c (describe_command): Likewise.
1440 * minibuf.c (read_minibuf): Likewise.
1441 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1442 to int.
1443 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1444 Likewise.
1445 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1446 not int or double, if they might contain a column number.
1447 * indent.c (current_column, Findent_to, indented_beyond_p):
1448 (compute_motion, vmotion): Likewise.
1449 * keymap.c (describe_command): Likewise.
1450 * xdisp.c (pint2str): Likewise.
1451 * indent.c (last_known_column): Now EMACS_INT, not int.
1452 * minibuf.c (minibuf_prompt_width): Likewise.
1453 * indent.c (current_column, current_column_1, position_indentation):
1454 Return EMACS_INT, not double.
1455 * lisp.h (current_column): Likewise.
1456 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1457 All callers changed.
1458 * lisp.h (indented_beyond_p): Likewise.
1459
1460 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1461 from xdisp.c, and make static, since these are used only here.
1462 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1463 Remove decls.
1464
1465 * cmds.c (internal_self_insert): Reindent to match Emacs style.
1466 * xdisp.c (redisplay_window): Likewise.
1467
1468 * xdisp.c: Rename or move local decls to avoid shadowing.
1469 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1470 (message_dolog, message_with_string, redisplay_internal):
1471 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1472 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1473 (display_line, display_string, rows_from_pos_range):
1474 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1475 Rename or move local decls.
1476 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1477 (produce_glyphless_glyph): Make a pointer "const"
1478 since it might point to immutable storage.
1479 (update_window_cursor): Now static, since it's not used elsewhere.
1480 (SKIP_GLYPHS): Remove unused macro.
1481
1482 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1483
1484 * window.c (Fnext_window): Doc fix. (Bug#5567)
1485
1486 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
1487
1488 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1489
1490 2011-03-02 Ken Brown <kbrown@cornell.edu>
1491
1492 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1493
1494 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1495
1496 Work around some portability problems with symlinks.
1497
1498 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1499 generate a special message for it. Suggested by Eli Zaretskii in
1500 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1501 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1502 Simplify the code by assuming that the readlink and symlink calls
1503 exist, even if they always fail on this host.
1504 (Ffile_readable_p): Likewise, for fifos.
1505 * config.in: Regenerate.
1506
1507 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
1508
1509 * frame.c (store_frame_param): Don't store value directly in
1510 buffer_list and buried_buffer_list; copy the list and remove dead
1511 buffers (Bug#7898).
1512
1513 2011-02-27 Eli Zaretskii <eliz@gnu.org>
1514
1515 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1516
1517 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1518
1519 * w32.c (symlink, readlink): New stub functions.
1520
1521 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1522
1523 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1524 This avoids a gcc warning in some configurations.
1525
1526 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1527
1528 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1529 (set_menu_bar_lines, x_get_resource_string): New decls.
1530 * msdos.c (set_menu_bar_lines): Omit decl.
1531
1532 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1533 It's always given int values and used as an int. This suppresses
1534 a gcc "comparison of unsigned expression >= 0" warning in some
1535 configurations.
1536
1537 * dispnew.c: Rename locals to avoid shadowing.
1538 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1539
1540 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1541
1542 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1543 (copy_glyph_row_contents): Remove; not used.
1544 (frame_row_to_window, check_current_matrix_flags):
1545 (window_change_signal): Now static, since they're not used elsewhere.
1546 (check_current_matrix_flags): Surround with "#if 0", since its
1547 only use is in a comment. Maybe both the comment and the "#if 0"
1548 stuff should be removed?
1549
1550 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1551 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1552 contexts that actually need it.
1553
1554 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1555
1556 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1557 (lstat): Define for DJGPP < 2.04.
1558
1559 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1560
1561 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1562 as per recent filemodestring API change. Reported by Jonas Öster in
1563 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1564
1565 2011-02-23 Ben Key <bkey76@gmail.com>
1566
1567 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1568 directly, for bar cursors.
1569
1570 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
1571
1572 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1573 into the frame's cursor_width.
1574
1575 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1576
1577 * print.c (print_object): Never print old-style backquotes.
1578 Obey escapeflag for hash tables as well.
1579
1580 2011-02-23 Kenichi Handa <handa@m17n.org>
1581
1582 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1583 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1584
1585 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1586
1587 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1588
1589 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1590
1591 * lread.c (openp): Correct Boolean typo in last commit.
1592
1593 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1594
1595 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1596 key to Emacs, treat as unmodified (go to input manager processing).
1597
1598 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1599
1600 Assume S_ISLNK etc. work, since gnulib supports this.
1601 * config.in: Regenerate.
1602 * dired.c (lstat): Remove.
1603 (file_name_completion): Assume S_ISDIR works.
1604 (file_name_completion_stat): Assume S_ISLNK works.
1605 Do not bother calling stat unless lstat says it's a symlink.
1606 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1607 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1608 (check_writable, Ffile_writable_p, Fset_file_times):
1609 Assume S_ISDIR works.
1610 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1611 fifos exist.
1612 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1613 * filelock.c (S_ISLNK): Remove.
1614 * lread.c (openp): Assume S_ISDIR works.
1615 * xrdb.c (S_ISDIR): Remove.
1616
1617 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1618
1619 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1620 lib/makefile.w32-in.
1621 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1622 (GLOBAL_SOURCES): Remove filemode.c.
1623 (OBJ1): Remove $(BLD)/filemode.$(O).
1624
1625 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1626
1627 Import filemode module from gnulib.
1628 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1629 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1630 (filemode.o): Remove; this is now in ../lib.
1631 * dired.c: Include <filemode.h>.
1632 (filemodestring): Remove now-redundant decl.
1633 * config.in: Regenerate.
1634
1635 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1636
1637 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1638 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1639
1640 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1641
1642 * makefile.w32-in: Remove md5.$(O).
1643 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1644 lib/makefile.w32-in.
1645
1646 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1647
1648 Import crypto/md5 and stdint modules from gnulib.
1649 * Makefile.in (base_obj): Remove md5.o, since this file
1650 is in lib now.
1651 * config.in: Regenerate.
1652 * md5.h, md5.h: Move to ../lib.
1653 * deps.mk (md5.o): Remove.
1654 (fns.o): Depend on ../lib/md5.h, not md5.h.
1655
1656 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1657
1658 * termcap.c (tputs): Don't declare baud_rate.
1659
1660 * s/msdos.h (strtold): Define to _strtold.
1661
1662 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1663
1664 * process.c (Fstart_process, Fmake_serial_process)
1665 (Fmake_network_process, server_accept_connection):
1666 Use empty_unibyte_string.
1667
1668 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1669
1670 * lread.c (Qdir_ok): New constant.
1671 (syms_of_lread): Initialize it.
1672 (openp): Don't ignore directories if the predicate returns dir-ok.
1673
1674 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1675
1676 * xdisp.c (display_line): Fix the change made for bug#7939.
1677
1678 * terminal.c (create_terminal): Use default-keyboard-coding-system
1679 and default-terminal-coding-system to initialize coding systems of
1680 the new terminal. (Bug#7840)
1681
1682 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 * lisp.h (BYTE_MARK_STACK): New macro.
1685 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1686
1687 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1688 (struct byte_stack): Only define `top' and `bottom' if used.
1689 (mark_byte_stack): Only define if used.
1690 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1691 is not set.
1692 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1693
1694 * term.c (OUTPUT_IF): Use OUTPUT.
1695
1696 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1697 redundantly scan byte-code stacks, catchlist, and handlerlist.
1698
1699 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1700
1701 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1702 (Fns_read_file_name): Replace B_ with BVAR.
1703
1704 * nsterm.m (ns_term_init): Use KVAR.
1705
1706 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1707
1708 * msdos.c (internal_terminal_init): Use KVAR.
1709
1710 * w32fns.c (Fx_create_frame): Use KVAR.
1711
1712 * w32term.c (w32_create_terminal): Use KVAR.
1713
1714 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1715 (getloadavg): Declare prototype which was removed from lisp.h.
1716
1717 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1718
1719 * fileio.c (Finsert_file_contents, Fwrite_region):
1720 Remove references to buffer_file_type.
1721 (syms_of_fileio): Don't intern and staticpro
1722 find-buffer-file-type.
1723
1724 * callproc.c (syms_of_callproc): Remove references to
1725 buffer_file_type.
1726
1727 * buffer.c (reset_buffer_local_variables): Don't set
1728 buffer_file_type.
1729 (init_buffer_once): Likewise.
1730 (syms_of_buffer): Don't define buffer-file-type.
1731
1732 * buffer.h (struct buffer): Remove buffer_file_type.
1733
1734 2011-02-16 Tom Tromey <tromey@parfait>
1735
1736 * callint.c (Fcall_interactively): Update for change to field names.
1737 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1738 * cmds.c (Fself_insert_command): Update for change to field names.
1739 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1740 (Fdescribe_buffer_bindings): Update for change to field names.
1741 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1742 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1743 Update for change to field names.
1744 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1745 (echo_length, echo_truncate, cmd_error, command_loop_1)
1746 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1747 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1748 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1749 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1750 Update for change to field names.
1751 * xfns.c (Fx_create_frame): Update for change to field names.
1752 * xterm.c (x_connection_closed, x_term_init): Update for change to
1753 field names.
1754 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1755 Update for change to field names.
1756 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1757 Update for change to field names.
1758 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1759 (delete_frame): Update for change to field names.
1760 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1761 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1762 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1763
1764 2011-02-16 Tom Tromey <tromey@redhat.com>
1765
1766 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1767
1768 2011-02-16 Tom Tromey <tromey@parfait>
1769
1770 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1771 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1772 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1773 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1774 (with_echo_area_buffer, setup_echo_area_for_printing)
1775 (set_message_1, update_menu_bar, update_tool_bar)
1776 (text_outside_line_unchanged_p, redisplay_internal)
1777 (try_scrolling, try_cursor_movement, redisplay_window)
1778 (try_window_reusing_current_matrix, row_containing_pos)
1779 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1780 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1781 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1782 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1783 BVAR.
1784 * window.c (window_display_table, unshow_buffer, window_loop)
1785 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1786 (select_window, Fforce_window_update, temp_output_buffer_show)
1787 (Fset_window_configuration, save_window_save): Replace B_ with
1788 BVAR.
1789 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1790 Replace B_ with BVAR.
1791 * undo.c (record_point, record_insert, record_delete)
1792 (record_marker_adjustment, record_first_change)
1793 (record_property_change, Fundo_boundary, truncate_undo_list)
1794 (Fprimitive_undo): Replace B_ with BVAR.
1795 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1796 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1797 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1798 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1799 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1800 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1801 (string_match_1, fast_looking_at, newline_cache_on_off)
1802 (search_command, search_buffer, simple_search, boyer_moore)
1803 (Freplace_match): Replace B_ with BVAR.
1804 * process.c (get_process, list_processes_1, Fstart_process)
1805 (Fmake_serial_process, Fmake_network_process)
1806 (read_process_output, send_process, exec_sentinel)
1807 (status_notify, setup_process_coding_systems): Replace B_ with
1808 BVAR.
1809 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1810 (strout, print_string, temp_output_buffer_setup, print_object):
1811 Replace B_ with BVAR.
1812 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1813 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1814 Replace B_ with BVAR.
1815 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1816 (set_marker_both, set_marker_restricted_both, unchain_marker):
1817 Replace B_ with BVAR.
1818 * lread.c (readchar, unreadchar, openp, readevalloop)
1819 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1820 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1821 * keymap.c (Flocal_key_binding, Fuse_local_map)
1822 (Fcurrent_local_map, push_key_description)
1823 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1824 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1825 (read_key_sequence): Replace B_ with BVAR.
1826 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1827 * intervals.c (set_point_both, get_local_map): Replace B_ with
1828 BVAR.
1829 * insdel.c (check_markers, insert_char, insert_1_both)
1830 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1831 (adjust_after_replace, replace_range, del_range_2)
1832 (modify_region, prepare_to_modify_buffer)
1833 (Fcombine_after_change_execute): Replace B_ with BVAR.
1834 * indent.c (buffer_display_table, recompute_width_table)
1835 (width_run_cache_on_off, current_column, scan_for_column)
1836 (Findent_to, position_indentation, compute_motion, vmotion):
1837 Replace B_ with BVAR.
1838 * fringe.c (get_logical_cursor_bitmap)
1839 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1840 with BVAR.
1841 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1842 * font.c (font_at): Replace B_ with BVAR.
1843 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1844 Replace B_ with BVAR.
1845 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1846 (unlock_buffer): Replace B_ with BVAR.
1847 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1848 (Ffile_regular_p, Ffile_selinux_context)
1849 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1850 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1851 (Finsert_file_contents, choose_write_coding_system)
1852 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1853 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1854 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1855 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1856 (save_excursion_restore, Fprevious_char, Fchar_before)
1857 (general_insert_function, Finsert_char, Finsert_byte)
1858 (make_buffer_string_both, Finsert_buffer_substring)
1859 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1860 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1861 (Ftranslate_region_internal, save_restriction_restore)
1862 (Fchar_equal): Replace B_ with BVAR.
1863 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1864 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1865 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1866 * dired.c (directory_files_internal): Replace B_ with BVAR.
1867 * data.c (swap_in_symval_forwarding, set_internal)
1868 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1869 Replace B_ with BVAR.
1870 * composite.c (fill_gstring_header)
1871 (composition_compute_stop_pos, composition_adjust_point)
1872 (Ffind_composition_internal): Replace B_ with BVAR.
1873 * coding.c (decode_coding, encode_coding)
1874 (make_conversion_work_buffer, decode_coding_gap)
1875 (decode_coding_object, encode_coding_object)
1876 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1877 (Funencodable_char_position, Fcheck_coding_systems_region):
1878 Replace B_ with BVAR.
1879 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1880 with BVAR.
1881 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1882 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1883 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1884 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1885 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1886 * category.c (check_category_table, Fcategory_table)
1887 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1888 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1889 BVAR.
1890 * casefiddle.c (casify_object, casify_region): Replace B_ with
1891 BVAR.
1892 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1893 with BVAR.
1894 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1895 BVAR.
1896 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1897 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1898 with BVAR.
1899 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1900 (get_truename_buffer, Fget_buffer_create)
1901 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1902 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1903 (Fbuffer_local_value, buffer_lisp_local_variables)
1904 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1905 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1906 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1907 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1908 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1909 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1910 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1911 (record_overlay_string, overlay_strings, init_buffer_once)
1912 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1913
1914 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1915
1916 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1917 window is changed inside calls to do_pending_window_change.
1918 (Bug#8020)
1919
1920 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1921
1922 Remove no-longer needed getloadavg symbols.
1923 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1924 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1925 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1926 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1927 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1928 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1929 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1930 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1931 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1932 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1933 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1934 (LDAV_SYMBOL): Remove.
1935 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1936 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1937
1938 Import getloadavg module from gnulib.
1939 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1940 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1941 now does this.
1942 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1943 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1944 * config.in: Regenerate.
1945
1946 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1947
1948 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1949
1950 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1951
1952 * print.c (float_to_string): Ensure that a decimal point is
1953 printed if using dtoastr (Bug#8033).
1954
1955 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1956
1957 * msdos.c (IT_frame_up_to_date):
1958 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1959
1960 * dired.c (directory_files_internal):
1961 * fileio.c (Finsert_file_contents):
1962 * insdel.c (prepare_to_modify_buffer):
1963 * xdisp.c (pos_visible_p):
1964 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1965 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1966 Use B_ for the MS-Windows build.
1967
1968 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1969
1970 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1971 resource that specifies helvetica for menus and dialogs.
1972
1973 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1974 (apply_systemfont_to_menu): Set resources *menubar*font and
1975 *popup*font. Remove defflt.
1976 (set_frame_menubar, create_and_show_popup_menu):
1977 Call apply_systemfont_to_menu before lw_create_widget.
1978
1979 2011-02-14 Tom Tromey <tromey@redhat.com>
1980
1981 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1982
1983 * keyboard.h: Remove obsolete comment.
1984
1985 2011-02-14 Tom Tromey <tromey@parfait>
1986
1987 * composite.c (fill_gstring_header)
1988 (composition_compute_stop_pos, composition_adjust_point)
1989 (Ffind_composition_internal): Use B_.
1990 * intervals.c (set_point_both, get_local_map): Use B_.
1991 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1992 * process.c (get_process, list_processes_1, Fstart_process)
1993 (Fmake_serial_process, Fmake_network_process)
1994 (read_process_output, send_process, exec_sentinel)
1995 (status_notify, setup_process_coding_systems): Use B_.
1996 * bytecode.c (Fbyte_code): Use B_.
1997 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1998 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1999 (skip_syntaxes, scan_lists): Use B_.
2000 * lread.c (readchar, unreadchar, openp, readevalloop)
2001 (Feval_buffer, Feval_region): Use B_.
2002 * print.c (printchar, strout, print_string, PRINTDECLARE)
2003 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
2004 (print_object): Use B_.
2005 * font.c (font_at): Use B_.
2006 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
2007 Use B_.
2008 * callint.c (check_mark, Fcall_interactively): Use B_.
2009 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
2010 (save_excursion_restore, Fprevious_char, Fchar_before)
2011 (general_insert_function, Finsert_char, Finsert_byte)
2012 (make_buffer_string_both, Finsert_buffer_substring)
2013 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
2014 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
2015 (Ftranslate_region_internal, save_restriction_restore)
2016 (Fchar_equal): Use B_.
2017 * data.c (swap_in_symval_forwarding, set_internal)
2018 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
2019 Use B_.
2020 * undo.c (record_point, record_insert, record_delete)
2021 (record_marker_adjustment, record_first_change)
2022 (record_property_change, Fundo_boundary, truncate_undo_list)
2023 (Fprimitive_undo): Use B_.
2024 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
2025 (string_match_1, fast_looking_at, newline_cache_on_off)
2026 (search_command, search_buffer, simple_search, boyer_moore)
2027 (Freplace_match): Use B_.
2028 * indent.c (buffer_display_table, recompute_width_table)
2029 (width_run_cache_on_off, current_column, scan_for_column)
2030 (Findent_to, position_indentation, compute_motion, vmotion):
2031 Use B_.
2032 * casefiddle.c (casify_object, casify_region): Use B_.
2033 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
2034 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
2035 * fileio.c (Fexpand_file_name, Ffile_directory_p)
2036 (Ffile_regular_p, Ffile_selinux_context)
2037 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
2038 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
2039 (Finsert_file_contents, choose_write_coding_system)
2040 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
2041 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
2042 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
2043 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
2044 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
2045 (set_marker_both, set_marker_restricted_both, unchain_marker):
2046 Use B_.
2047 * insdel.c (check_markers, insert_char, insert_1_both)
2048 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
2049 (adjust_after_replace, replace_range, del_range_2)
2050 (modify_region, prepare_to_modify_buffer)
2051 (Fcombine_after_change_execute): Use B_.
2052 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
2053 (unlock_buffer): Use B_.
2054 * keymap.c (Flocal_key_binding, Fuse_local_map)
2055 (Fcurrent_local_map, push_key_description)
2056 (Fdescribe_buffer_bindings): Use B_.
2057 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
2058 (read_key_sequence): Use B_.
2059 * fringe.c (get_logical_cursor_bitmap)
2060 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
2061 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
2062 * xfaces.c (compute_char_face): Use B_.
2063 * character.c (chars_in_text, Fget_byte): Use B_.
2064 * category.c (check_category_table, Fcategory_table)
2065 (Fset_category_table, char_category_set): Use B_.
2066 * coding.c (decode_coding, encode_coding)
2067 (make_conversion_work_buffer, decode_coding_gap)
2068 (decode_coding_object, encode_coding_object)
2069 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
2070 (Funencodable_char_position, Fcheck_coding_systems_region):
2071 Use B_.
2072 * charset.c (Ffind_charset_region): Use B_.
2073 * window.c (window_display_table, unshow_buffer, window_loop)
2074 (window_min_size_2, set_window_buffer, Fset_window_buffer)
2075 (select_window, Fforce_window_update, temp_output_buffer_show)
2076 (Fset_window_configuration, save_window_save): Use B_.
2077 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
2078 (message_dolog, update_echo_area, ensure_echo_area_buffers)
2079 (with_echo_area_buffer, setup_echo_area_for_printing)
2080 (set_message_1, update_menu_bar, update_tool_bar)
2081 (text_outside_line_unchanged_p, redisplay_internal)
2082 (try_scrolling, try_cursor_movement, redisplay_window)
2083 (try_window_reusing_current_matrix, row_containing_pos)
2084 (try_window_id, get_overlay_arrow_glyph_row, display_line)
2085 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
2086 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
2087 (get_window_cursor_type, note_mouse_highlight): Use B_.
2088 * frame.c (make_frame_visible_1): Use B_.
2089 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
2090 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
2091 (WINDOW_WANTS_MODELINE_P): Use B_.
2092 * syntax.h (Vstandard_syntax_table): Update.
2093 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
2094 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
2095 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
2096 * character.h (FETCH_CHAR_ADVANCE): Update.
2097 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
2098 * category.h (Vstandard_category_table): Update.
2099 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
2100 names.
2101 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
2102 * buffer.c (swapfield_): New macro.
2103 (Fbuffer_swap_text): Use swapfield_ where appropriate.
2104 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
2105 (Fget_buffer_create, clone_per_buffer_values)
2106 (Fmake_indirect_buffer, reset_buffer)
2107 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
2108 (Fbuffer_local_value, buffer_lisp_local_variables)
2109 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
2110 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
2111 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
2112 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
2113 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
2114 (Fbuffer_swap_text, Fset_buffer_multibyte)
2115 (swap_out_buffer_local_variables, record_overlay_string)
2116 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
2117 Use B_.
2118 * buffer.h (struct buffer): Rename all Lisp_Object fields.
2119 (BUFFER_INTERNAL_FIELD, B_): New macro.
2120 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
2121
2122 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2123
2124 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
2125 is null.
2126
2127 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
2128
2129 * callproc.c (Fcall_process):
2130 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
2131 comment.
2132
2133 2011-02-12 Martin Rudalics <rudalics@gmx.at>
2134
2135 * window.c (select_window): Check inhibit_point_swap argument when
2136 deciding whether to return immediately.
2137
2138 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
2139
2140 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
2141 zero (Bug#7348).
2142
2143 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
2144
2145 * config.in (TERMINFO): New definition.
2146
2147 * s/netbsd.h: Use it to choose between terminfo and termcap
2148 (Bug#7642).
2149
2150 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2151
2152 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
2153 The difference doesn't matter here, in practice, and sizeof is
2154 more portable to non-GCC compilers. Also, this makes the code
2155 match the already-existing comment.
2156
2157 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
2158
2159 * process.c (create_process): Reset SIGPIPE handler in the child.
2160 * callproc.c (Fcall_process): Likewise. (Bug#5238)
2161
2162 2011-02-12 Eli Zaretskii <eliz@gnu.org>
2163
2164 * xdisp.c <this_line_min_pos>: New variable.
2165 (move_it_in_display_line_to): Record in this_line_min_pos the
2166 smallest position iterated across.
2167 (display_line): Use this_line_min_pos to record the smallest
2168 position in the line even if it is not displayed due to
2169 hscrolling. (Bug#7939)
2170
2171 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2172
2173 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
2174 * md5.h (ATTRIBUTE_ALIGNED): New macro.
2175 (struct md5_ctx): Use it.
2176
2177 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
2178 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
2179 defined.
2180 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
2181 FC_HINT_STYLE is supported.
2182
2183 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
2184
2185 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
2186 Make sure we don't do x_catch_errors twice.
2187
2188 2011-02-10 Glenn Morris <rgm@gnu.org>
2189
2190 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
2191
2192 2011-02-09 Eli Zaretskii <eliz@gnu.org>
2193
2194 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
2195 New macros.
2196 (globals.h, gl-stamp): New targets.
2197 (clean): Clean gl-stamp and globals.h.
2198
2199 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2200
2201 * Makefile.in (gl-stamp): Create globals.h here.
2202 (globals.h): Don't do it here.
2203 (mostlyclean): Clean globals.h and gl-stamp.
2204
2205 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
2206
2207 * Makefile.in ($(otherobj)): Depend on globals.h.
2208 Otherwise 'make -j10' failed on my host, because the build lacked
2209 necessary dependencies, e.g., vm-limit.o depends on globals.h.
2210
2211 2011-02-08 Tom Tromey <tromey@redhat.com>
2212
2213 * Makefile.in (NS_OBJC_OBJ): New variable.
2214 (base_obj): Rename from 'obj'.
2215 (obj): New variable.
2216 (globals.h, gl-stamp, $(obj)): New targets.
2217 (GLOBAL_SOURCES): New variable.
2218 * globals.h: Remove.
2219 * nsselect.m (Vselection_alist): Define. Reverts part of
2220 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
2221 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
2222 variable.
2223 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
2224
2225 2011-02-08 Kenichi Handa <handa@m17n.org>
2226
2227 * font.c (Ffont_get): Do not cache :otf value.
2228
2229 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2230
2231 conform to C89 pointer rules
2232
2233 * dired.c (scmp, file_name_completion):
2234 Change types between char * and unsigned char *, to satisfy C89
2235 rules about pointer type compatibility.
2236 * casefiddle.c (casify_object, casify_region): Likewise.
2237 * search.c (Freplace_match, Fregexp_quote): Likewise.
2238 * alloc.c (make_string, make_specified_string, make_pure_string):
2239 Likewise.
2240 * data.c (Fstring_to_number): Likewise.
2241 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2242 (print_object): Likewise.
2243 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2244 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2245 (Fformat): Likewise.
2246 * callint.c (Fcall_interactively): Likewise.
2247 * fns.c (string_make_multibyte, string_to_multibyte):
2248 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2249 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2250 Likewise.
2251 * lread.c (read1, hash_string): Likewise.
2252 * process.c (read_process_output, send_process, Fprocess_send_region):
2253 Likewise.
2254 * callproc.c (Fcall_process): Likewise.
2255 * doprnt.c (doprnt): Likewise.
2256 * indent.c (compute_motion): Likewise.
2257 * xfont.c (xfont_decode_coding_xlfd): Likewise.
2258 * ralloc.c (resize_bloc): Likewise.
2259 * image.c (tiff_load): Likewise.
2260 * xml.c (make_dom, parse_region): Likewise.
2261 * character.c (strwidth): Make its argument const char *, not const
2262 unsigned char *, since more callers prefer it that way. All callers
2263 changed.
2264
2265 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2266
2267 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2268 Emacs assumes two's complement elsewhere, but the assumption is
2269 easy to remove here, and this suppresses a warning with Sun C 5.8.
2270
2271 conform to C89 pointer rules
2272
2273 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2274 (same_x_server, x_term_init):
2275 Change types between char * and unsigned char *, to satisfy C89
2276 rules about pointer type compatibility.
2277 * doc.c (get_doc_string, Fsnarf_documentation):
2278 (Fsubstitute_command_keys): Likewise.
2279 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2280 * bitmaps/gray.xbm (gray_bits): Likewise.
2281 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
2282 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2283 Likewise.
2284 * keymap.c (Ftext_char_description): Likewise.
2285 * minibuf.c (Fread_buffer): Likewise.
2286 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2287 (DRIVE_LETTER) [defined DOS_NT]:
2288 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2289 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2290 (search_embedded_absfilename, Fsubstitute_in_file_name):
2291 (barf_or_query_if_file_exists, Fmake_directory_internal):
2292 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2293 (Finsert_file_contents, Fwrite_region):
2294 Likewise.
2295 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2296 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2297 Likewise. This changes these functions' signatures, which is
2298 more convenient since most callers use char *. All remaining
2299 callers changed.
2300 * editfns.c (general_insert_function): Change signature to
2301 match changes to insert functions' signatures.
2302 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2303 Use explicit cast when converting between void * and function pointer
2304 types, as C89 requires this.
2305
2306 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2307
2308 don't ignore chdir failure
2309 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2310 failure and exit.
2311 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2312 remaining unchecked chdir calls in this function; some DOS/NT
2313 expert needs to fix them.
2314 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2315 in this function; some NextStep expert needs to fix them.
2316
2317 2011-02-05 Glenn Morris <rgm@gnu.org>
2318
2319 * xfaces.c (Finternal_set_lisp_face_attribute):
2320 Try to clarify some error messages. (Bug#2659)
2321
2322 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
2323
2324 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2325 current_column cache (bug#7946).
2326
2327 2011-02-05 Kenichi Handa <handa@m17n.org>
2328
2329 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2330
2331 * xftfont.c (xftfont_open): Likewise.
2332
2333 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
2334
2335 * window.c (Fselect_window): Add missing return value.
2336
2337 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2338
2339 xstrcasecmp: conform to C89 pointer rules
2340 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2341 to const char *, since they're usually low-level C strings, and
2342 this stays compatible with C89 pointer rules. All callers changed.
2343
2344 * charset.c: Conform to C89 pointer rules.
2345 (define_charset_internal): Switch between char * and unsigned char *.
2346
2347 * xmenu.c: Conform to C89 const rules.
2348 (xmenu_show, xdialog_show): Declare local var as char *, not
2349 const char *, to stay compatible with C89 const rules.
2350
2351 * xdisp.c: Conform to C89 pointer rules.
2352 (store_mode_line_noprop, display_string, reseat_to_string):
2353 (c_string_pos, number_of_chars, message_dolog):
2354 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2355 (display_mode_element, display_string):
2356 Switch between char * and unsigned char * to stay compatible wth
2357 C89 pointer rules.
2358
2359 * regex.c: Conform to C89 pointer rules.
2360 (re_wctype): Add cast, as C89 does not allow assigning between
2361 char * and unsigned char *.
2362 (regex_compile): Likewise.
2363
2364 sync from gnulib to remove HAVE_STDBOOL_H
2365 * config.in: Regenerate.
2366
2367 2011-02-04 Eli Zaretskii <eliz@gnu.org>
2368
2369 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2370 Replace all uses of lisp.h with $(LISP_H), and all uses of
2371 process.h with $(PROCESS_H).
2372 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2373 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2374
2375 * deps.mk: Update for recent changes: gnutls support, gnulib
2376 imports, addition of globals.h.
2377
2378 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2379 ../lib/ignore-value.h.
2380
2381 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2382
2383 allow C code to suppress warnings about ignored return values
2384
2385 We need to go through the code and for each such warning, either
2386 fix the code to pay attention to the returned value, or tell GCC
2387 that we really do want to ignore the returned value. Here is one
2388 example of how to do the latter.
2389 * sysdep.c: Include <ignore-value.h>.
2390 (sys_subshell): Suppress an undesirable warning about not checking
2391 the returned value of 'write', as there's nothing useful one can
2392 do with that returned value.
2393
2394 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2395
2396 * xterm.c (x_connection_closed): Remove all calls that calls
2397 XSync (Bug#7949).
2398
2399 2011-02-01 Eli Zaretskii <eliz@gnu.org>
2400
2401 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2402 TIFFClientOpen.
2403
2404 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2405
2406 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2407 (x_session_check_input): Change args and return type so it can be used
2408 as argument to add_read_fd. Make static. Remove call to select.
2409 Call kbd_buffer_store_event for emacs_event.
2410 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2411 (ice_conn_watch_CB): Call add_read_fd.
2412
2413 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2414 x_session_check_input.
2415 (x_session_initialized): Remove definition.
2416 (x_initialize): Remove setting of x_session_initialized.
2417
2418 * xterm.h (x_session_check_input): Remove declaration.
2419
2420 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2421
2422 format-time-string now supports subsecond time stamp resolution
2423 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2424 for consistency with its new argument and with gnulib nstrftime.
2425 All callers changed. New argument NS.
2426 (Fformat_time_string): Check that the time argument's microseconds
2427 component, if any, is in range; this avoids integer overflow and
2428 also nstrftime needs this. Document %N.
2429
2430 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
2431
2432 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2433 of int. All uses adjusted.
2434 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2435 (svg_load_image): Remove casts.
2436
2437 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
2438
2439 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2440 function definitions for compiling with libpng-1.5.
2441 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2442 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2443 (Bug#7908).
2444
2445 2011-01-31 Eli Zaretskii <eliz@gnu.org>
2446
2447 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2448
2449 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2450 ($(BLD)/strftime.$(O)): Remove prerequisites.
2451
2452 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2453
2454 src/emacs.c now gets version number from configure.in
2455 * emacs.c (emacs_version): Set to VERSION so that it
2456 is determined automatically from ../configure.in.
2457
2458 2011-01-31 Jim Meyering <meyering@redhat.com>
2459
2460 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2461 Use xmalloc rather than malloc.
2462
2463 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2464
2465 strftime: import from gnulib
2466 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2467 * deps.mk (strftime.o): Remove.
2468 * editfns.c: Include <strftime.h>, supplied by gnulib.
2469 (emacs_strftimeu): Remove decl.
2470 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2471 emacs_strftimeu.
2472 * config.in: Regenerate.
2473 * strftime.c: Remove; we now use strftime from gnulib.
2474
2475 Use SSDATA when the context wants char *.
2476 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2477 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2478 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2479 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2480 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2481 Use SSDATA (not SDATA) when the context of the expression wants
2482 char * (not unsigned char *).
2483
2484 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2485
2486 * .gdbinit: Read global lisp variables as globals.f_V*.
2487
2488 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2489
2490 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2491 All uses changed.
2492 (PROP_SAVE): Likewise.
2493
2494 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
2495
2496 * keyboard.c (make_lispy_position): Fix typo in last change
2497 (Bug#7935).
2498
2499 2011-01-29 Eli Zaretskii <eliz@gnu.org>
2500
2501 * s/ms-w32.h (HAVE_MKTIME): Remove.
2502
2503 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2504 (GNULIB): New variable.
2505 (LIBS): Add $(GNULIB).
2506 $(TEMACS): Depend on $(GNULIB).
2507 <top-level>: Fix font-lock disrupted by a lone `"'.
2508
2509 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2510
2511 * nsselect.m (ns_string_from_pasteboard): Get length of string
2512 and use make_string instead of build_string (Bug#7934).
2513 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2514 instead of stringWithUTF8String (Bug#7934).
2515
2516 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
2517
2518 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2519 descenders would not become one pixel too tall (Bug#7887).
2520
2521 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
2522
2523 * keyboard.c (make_lispy_position): For clicks on right fringe or
2524 margin, compute text position using the X coordinate relative to
2525 the left of the text area (Bug#7839).
2526
2527 2011-01-28 Kenichi Handa <handa@m17n.org>
2528
2529 * ftfont.c (ftfont_spec_pattern): Check each extra property
2530 value.
2531
2532 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2533
2534 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2535
2536 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2537
2538 * font.c (font_parse_fcname): Undefine a temporary macro.
2539
2540 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2541
2542 Let the debugger continue to the normal handler (bug#7825).
2543 * eval.c (maybe_call_debugger): Declare before new use.
2544 (find_handler_clause): Don't call debugger any more.
2545 Ignore Vstack_trace_on_error.
2546 Use XCAR/XCDR.
2547 (syms_of_eval): Remove Vstack_trace_on_error.
2548 (Fsignal): Only modify handlerlist when we know we need to do it.
2549 Call the debugger when necessary.
2550 * globals.h (Vstack_trace_on_error): Remove.
2551
2552 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
2553
2554 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2555
2556 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
2557
2558 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2559 the buffer's point-max (bug#7876).
2560
2561 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
2562
2563 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2564 Remove unused case (Bug#6811).
2565
2566 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2567
2568 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2569 setFrameTopLeftPoint is constrained.
2570
2571 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2572
2573 Check return values of some library calls.
2574 * emacs.c (main): Check dup result.
2575 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2576 (frame_name_fnn_p): Check strtol result.
2577
2578 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2579 when calling XpmCreatePixmapFromData.
2580
2581 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2582 * lisp.h (SSDATA): New macro.
2583 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2584 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2585 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2586 * xsmfns.c (SSDATA): Likewise.
2587
2588 2011-01-22 Martin Rudalics <rudalics@gmx.at>
2589
2590 * window.c (select_window): New function.
2591 (Fselect_window): Call it.
2592 (inhibit_point_swap): Variable deleted.
2593 (Fset_window_configuration): Call select_window directly.
2594
2595 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2596
2597 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2598
2599 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2600
2601 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2602 screen, not the window screen.
2603 (x_set_window_size): Remove constraints.
2604 Calculate origin.y only if zooming is 0 and without referring to a
2605 screen.
2606 (windowWillResize): Don't modify frameSize.
2607 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2608 (initFrameFromEmacs): Initialize ns_userRect.
2609 (windowShouldZoom): Set zooming to one. Remove all other code.
2610 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2611 Zero it after restore.
2612 (constrainFrameRect): New method for EmacsWindow.
2613 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2614 windowWillResize.
2615
2616 * nsterm.h (ns_output): Add dont_constrain and zooming.
2617 (EmacsView): Add ns_userRect.
2618
2619 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2620 if ns_alternate_modifier is none.
2621
2622 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2623
2624 * unexmacosx.c: Add comment about include order.
2625
2626 2011-01-20 Glenn Morris <rgm@gnu.org>
2627
2628 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2629 Give it a doc string.
2630 * globals.h: Add Vread_expression_history.
2631
2632 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2633 Give it a doc string.
2634 * globals.h: Add Vkbd_macro_termination_hook.
2635
2636 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2637
2638 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2639
2640 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2641
2642 Fix X11 compilation failure.
2643 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2644 * xselect.c (Vselection_alist): Remove declaration, moving its
2645 documentation to globals.h. This fixes a compilation failure
2646 induced by the earlier change to globals.h today.
2647
2648 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2651
2652 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2653 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2654 (ns_input_spi_name, ns_input_spi_arg)
2655 (ns_alternate_modifier, ns_right_alternate_modifier)
2656 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2657 (ns_right_control_modifier, ns_function_modifier)
2658 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2659 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2660 (x_underline_at_descent_line): Remove declaration.
2661 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2662
2663 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2664 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2665 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2666
2667 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2668 Remove declaration.
2669
2670 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2671 globals.h.
2672 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2673
2674 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2675 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2676 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2677
2678 * globals.h (struct emacs_globals): Add f_ns_input_file,
2679 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2680 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2681 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2682 f_ns_right_alternate_modifier, f_ns_command_modifier,
2683 f_ns_right_command_modifier, f_ns_control_modifier,
2684 f_ns_right_control_modifier, f_ns_function_modifier,
2685 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2686 f_Vns_version_string, f_Vns_sent_selection_hooks,
2687 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2688 and corresponding defines.
2689
2690 2011-01-19 Sam Steingold <sds@gnu.org>
2691
2692 * w32.c (check_windows_init_file): Remove declarations of
2693 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2694 * w32fns.c: Fix an error introduced by the previous patch.
2695
2696 2011-01-19 Tom Tromey <tromey@redhat.com>
2697
2698 * window.c: Fix error introduced by previous patch.
2699
2700 2011-01-18 Tom Tromey <tromey@parfait>
2701
2702 * globals.h: New file.
2703 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2704 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2705 (Vwindow_system_version): Remove declaration.
2706 * w32term.h (Vw32_enable_palette)
2707 (Vx_pixel_size_width_font_regexp): Remove declaration.
2708 * w32menu.c (Voverriding_local_map)
2709 (Voverriding_local_map_menu_flag): Remove declaration.
2710 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2711 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2712 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2713 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2714 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2715 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2716 (w32_use_full_screen_buffer): Remove declaration.
2717 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2718 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2719 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2720 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2721 (no_redraw_on_reenter, visible_bell): Remove declaration.
2722 * sysdep.c (Vsystem_name): Remove declaration.
2723 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2724 * menu.h (Vmenu_updating_frame): Remove declaration.
2725 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2726 Remove declaration.
2727 * lisp.h (Vafter_init_time, Vafter_load_alist)
2728 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2729 (Vcompletion_regexp_list, Vcurrent_load_list)
2730 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2731 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2732 (Vexec_directory, Vexec_path, Vexec_suffixes)
2733 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2734 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2735 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2736 (Vinstallation_directory, Vinvocation_directory)
2737 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2738 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2739 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2740 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2741 (Vscalable_fonts_allowed, Vselect_active_regions)
2742 (Vshell_file_name, Vstandard_input, Vstandard_output)
2743 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2744 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2745 (Vuser_login_name, Vwindow_scroll_functions)
2746 (Vwindow_system_version, Vx_no_window_manager)
2747 (Vx_resource_class, Vx_resource_name, baud_rate)
2748 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2749 (history_delete_duplicates, inhibit_x_resources)
2750 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2751 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2752 (use_dialog_box, use_file_dialog): Remove declaration.
2753 Include globals.h.
2754 * keymap.h (Voverriding_local_map)
2755 (Voverriding_local_map_menu_flag, meta_prefix_char):
2756 Remove declaration.
2757 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2758 (Vinput_method_function, Vkey_translation_map)
2759 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2760 (do_mouse_tracking, extra_keyboard_modifiers)
2761 (num_nonmacro_input_events): Remove declaration.
2762 * intervals.h (Vchar_property_alias_alist)
2763 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2764 (Vtext_property_default_nonsticky): Remove declaration.
2765 * gtkutil.h (x_gtk_file_dialog_help_text)
2766 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2767 (x_gtk_whole_detached_tool_bar): Remove declaration.
2768 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2769 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2770 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2771 (focus_follows_mouse): Remove declaration.
2772 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2773 (Vignore_relative_composition, Votf_script_alist)
2774 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2775 Remove declaration.
2776 * font.h (Vfont_log): Remove declaration.
2777 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2778 (Vdos_windows_version, dos_codepage, dos_country_code)
2779 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2780 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2781 Remove declaration.
2782 * disptab.h (Vglyph_table, Vstandard_display_table):
2783 Remove declaration.
2784 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2785 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2786 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2787 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2788 (inverse_video, mode_line_in_non_selected_windows)
2789 (tool_bar_button_relief, tool_bar_max_label_size)
2790 (underline_minimum_offset)
2791 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2792 Remove declaration.
2793 * composite.h (Vauto_composition_function)
2794 (Vcomposition_function_table): Remove declaration.
2795 * commands.h (Vexecuting_kbd_macro)
2796 (Vminibuffer_local_completion_map)
2797 (Vminibuffer_local_filename_completion_map)
2798 (Vminibuffer_local_filename_must_match_map)
2799 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2800 (Vminibuffer_local_ns_map, Vthis_command)
2801 (Vunread_command_events, cursor_in_echo_area)
2802 (last_command_event, last_nonmenu_event, unread_command_char):
2803 Remove declaration.
2804 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2805 (Vdefault_file_name_coding_system)
2806 (Vdefault_process_coding_system, Vfile_name_coding_system)
2807 (Vlast_coding_system_used, Vlocale_coding_system)
2808 (Vselect_safe_coding_system_function)
2809 (Vtranslation_table_for_input, coding_system_require_warning)
2810 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2811 (eol_mnemonic_unix, inherit_process_coding_system):
2812 Remove declaration.
2813 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2814 Remove declaration.
2815 * character.h (Vauto_fill_chars, Vchar_direction_table)
2816 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2817 (Vscript_representative_chars, Vtranslation_table_vector)
2818 (Vunicode_category_table): Remove declaration.
2819 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2820 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2821 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2822 (inhibit_modification_hooks): Remove declaration.
2823 * xterm.c (syms_of_xterm): Update.
2824 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2825 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2826 (x_mouse_click_focus_ignore_position)
2827 (x_underline_at_descent_line)
2828 (x_use_underline_position_properties): Remove.
2829 * xsmfns.c (syms_of_xsmfns): Update.
2830 (Vx_session_id, Vx_session_previous_id): Remove.
2831 * xsettings.c (syms_of_xsettings): Update.
2832 (Vxft_settings, use_system_font): Remove.
2833 * xselect.c (syms_of_xselect): Update.
2834 (Vselection_converter_alist, Vx_lost_selection_functions)
2835 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2836 * xfns.c (syms_of_xfns): Update.
2837 (Vgtk_version_string, Vmotif_version_string)
2838 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2839 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2840 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2841 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2842 (Vx_sensitive_text_pointer_shape)
2843 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2844 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2845 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2846 Remove.
2847 * xfaces.c (syms_of_xfaces): Update.
2848 (Vface_default_stipple, Vface_font_rescale_alist)
2849 (Vface_ignored_fonts, Vface_new_frame_defaults)
2850 (Vface_remapping_alist, Vfont_list_limit)
2851 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2852 * xdisp.c (syms_of_xdisp): Update.
2853 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2854 (Vdisplay_pixels_per_inch, Vfontification_functions)
2855 (Vframe_title_format, Vglobal_mode_string)
2856 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2857 (Vicon_title_format, Vinhibit_redisplay)
2858 (Vline_number_display_limit, Vline_prefix)
2859 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2860 (Vmenu_updating_frame, Vmessage_log_max)
2861 (Vmouse_autoselect_window, Vnobreak_char_display)
2862 (Voverlay_arrow_position, Voverlay_arrow_string)
2863 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2864 (Vresize_mini_windows, Vshow_trailing_whitespace)
2865 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2866 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2867 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2868 (Vwindow_text_change_functions, Vwrap_prefix)
2869 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2870 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2871 (highlight_nonselected_windows, hscroll_margin)
2872 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2873 (inhibit_menubar_update, inhibit_try_cursor_movement)
2874 (inhibit_try_window_id, inhibit_try_window_reusing)
2875 (line_number_display_limit_width)
2876 (make_cursor_line_fully_visible_p, message_truncate_lines)
2877 (mode_line_inverse_video, multiple_frames, overline_margin)
2878 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2879 (tool_bar_max_label_size, underline_minimum_offset)
2880 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2881 Remove.
2882 * window.c (syms_of_window): Update.
2883 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2884 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2885 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2886 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2887 (mode_line_in_non_selected_windows, next_screen_context_lines)
2888 (window_min_height, window_min_width): Remove.
2889 (scroll_margin): Remove declaration.
2890 * w32term.c (syms_of_w32term): Update.
2891 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2892 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2893 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2894 (w32_use_visible_system_caret, x_underline_at_descent_line)
2895 (x_use_underline_position_properties): Remove.
2896 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2897 Remove declaration.
2898 * w32select.c (syms_of_w32select): Update.
2899 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2900 * w32proc.c (syms_of_ntproc): Update.
2901 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2902 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2903 (Vw32_start_process_inherit_error_mode)
2904 (Vw32_start_process_share_console)
2905 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2906 (Vsystem_name): Remove declaration.
2907 * w32font.c (syms_of_w32font): Update.
2908 (Vw32_charset_info_alist): Remove.
2909 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2910 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2911 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2912 (Vw32_enable_palette, Vw32_lwindow_modifier)
2913 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2914 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2915 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2916 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2917 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2918 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2919 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2920 (Vx_sensitive_text_pointer_shape)
2921 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2922 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2923 (w32_mouse_move_interval)
2924 (w32_pass_extra_mouse_buttons_to_system)
2925 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2926 (w32_strict_fontnames, w32_strict_painting): Remove.
2927 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2928 (Vw32_recognize_altgr, Vwindow_system_version)
2929 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2930 Remove declaration.
2931 * w32console.c (syms_of_ntterm): Update.
2932 (w32_use_full_screen_buffer): Remove.
2933 (Vtty_defined_color_alist): Remove declaration.
2934 * w16select.c (syms_of_win16select): Update.
2935 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2936 * undo.c (syms_of_undo): Update.
2937 (Vundo_outer_limit, Vundo_outer_limit_function)
2938 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2939 Remove.
2940 * textprop.c (syms_of_textprop): Update.
2941 (Vchar_property_alias_alist, Vdefault_text_properties)
2942 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2943 Remove.
2944 * terminal.c (syms_of_terminal): Update.
2945 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2946 * term.c (syms_of_term): Update.
2947 (Vresume_tty_functions, Vsuspend_tty_functions)
2948 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2949 Remove.
2950 * syntax.c (syms_of_syntax): Update.
2951 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2952 (open_paren_in_column_0_is_defun_start)
2953 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2954 (words_include_escapes): Remove.
2955 * search.c (syms_of_search): Update.
2956 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2957 * process.c (syms_of_process): Update.
2958 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2959 (delete_exited_processes): Remove.
2960 * print.c (syms_of_print): Update.
2961 (Vfloat_output_format, Vprint_charset_text_property)
2962 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2963 (Vprint_length, Vprint_level, Vprint_number_table)
2964 (Vstandard_output, print_escape_multibyte)
2965 (print_escape_newlines, print_escape_nonascii, print_quoted):
2966 Remove.
2967 * msdos.c (syms_of_msdos): Update.
2968 (Vdos_unsupported_char_glyph): Remove.
2969 (unibyte_display_via_language_environment): Remove declaration.
2970 * minibuf.c (syms_of_minibuf): Update.
2971 (Vcompletion_regexp_list, Vhistory_add_new_input)
2972 (Vhistory_length, Vminibuffer_completing_file_name)
2973 (Vminibuffer_completion_confirm)
2974 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2975 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2976 (Vminibuffer_history_position, Vminibuffer_history_variable)
2977 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2978 (Vread_buffer_function, Vread_expression_map)
2979 (completion_ignore_case, enable_recursive_minibuffers)
2980 (history_delete_duplicates, minibuffer_allow_text_properties)
2981 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2982 Remove.
2983 * marker.c (syms_of_marker): Update.
2984 (byte_debug_flag): Remove.
2985 * macros.c (syms_of_macros): Update.
2986 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2987 * lread.c (syms_of_lread): Update.
2988 (Vafter_load_alist, Vbyte_boolean_vars)
2989 (Vbytecomp_version_regexp, Vcurrent_load_list)
2990 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2991 (Vload_history, Vload_path, Vload_read_function)
2992 (Vload_source_file_function, Vload_suffixes, Vobarray)
2993 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2994 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2995 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2996 (force_load_messages, load_convert_to_unibyte)
2997 (load_dangerous_libraries, load_force_doc_strings)
2998 (load_in_progress): Remove.
2999 * keymap.c (syms_of_keymap): Update.
3000 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
3001 (Vminibuffer_local_completion_map)
3002 (Vminibuffer_local_filename_completion_map)
3003 (Vminibuffer_local_filename_must_match_map)
3004 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
3005 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
3006 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
3007 Remove.
3008 * keyboard.c (syms_of_keyboard): Update.
3009 (Vauto_save_timeout, Vcommand_error_function)
3010 (Vcommand_hook_internal, Vdeactivate_mark)
3011 (Vdeferred_action_function, Vdeferred_action_list)
3012 (Vdisable_point_adjustment, Vdouble_click_time)
3013 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
3014 (Vfunction_key_map, Vglobal_disable_point_adjustment)
3015 (Vhelp_char, Vhelp_event_list, Vhelp_form)
3016 (Vinput_method_function, Vinput_method_previous_message)
3017 (Vkey_translation_map, Vlast_event_frame)
3018 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
3019 (Vminibuffer_message_timeout, Voverriding_local_map)
3020 (Voverriding_local_map_menu_flag, Vpost_command_hook)
3021 (Vpre_command_hook, Vprefix_help_command)
3022 (Vsaved_region_selection, Vselect_active_regions)
3023 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
3024 (Vthis_command, Vthis_command_keys_shift_translated)
3025 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
3026 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
3027 (Vtty_erase_char, Vunread_command_events)
3028 (Vunread_input_method_events, Vunread_post_input_method_events)
3029 (auto_save_interval, cannot_suspend, do_mouse_tracking)
3030 (double_click_fuzz, extra_keyboard_modifiers)
3031 (inhibit_local_menu_bar_menus, last_command_event)
3032 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
3033 (menu_prompting, meta_prefix_char, num_input_keys)
3034 (num_nonmacro_input_events, polling_period, unread_command_char):
3035 Remove.
3036 * insdel.c (syms_of_insdel): Update.
3037 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
3038 * indent.c (syms_of_indent): Update.
3039 (indent_tabs_mode): Remove.
3040 * image.c (syms_of_image): Update.
3041 (Vimage_cache_eviction_delay, Vimage_types)
3042 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
3043 (cross_disabled_images): Remove.
3044 * fringe.c (syms_of_fringe): Update.
3045 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
3046 * frame.c (syms_of_frame): Update.
3047 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
3048 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
3049 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
3050 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
3051 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
3052 Remove.
3053 * fontset.c (syms_of_fontset): Update.
3054 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
3055 (Vfontset_alias_alist, Vignore_relative_composition)
3056 (Votf_script_alist, Vuse_default_ascent)
3057 (Vvertical_centering_font_regexp): Remove.
3058 * font.c (syms_of_font): Update.
3059 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
3060 (Vfont_weight_table, Vfont_width_table): Remove.
3061 * fns.c (syms_of_fns): Update.
3062 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
3063 * filelock.c (syms_of_filelock): Update.
3064 (Vtemporary_file_directory): Remove.
3065 * fileio.c (syms_of_fileio): Update.
3066 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
3067 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
3068 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
3069 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
3070 (Vinhibit_file_name_operation, Vset_auto_coding_function)
3071 (Vwrite_region_annotate_functions)
3072 (Vwrite_region_annotations_so_far)
3073 (Vwrite_region_post_annotation_function)
3074 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
3075 (Vw32_get_true_file_attributes): Remove declaration.
3076 * eval.c (syms_of_eval): Update.
3077 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
3078 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
3079 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
3080 (debug_on_next_call, debug_on_quit, debugger_may_continue)
3081 (max_lisp_eval_depth, max_specpdl_size): Remove.
3082 * emacs.c (syms_of_emacs): Update.
3083 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
3084 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
3085 (Vinstallation_directory, Vinvocation_directory)
3086 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
3087 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
3088 (Vsystem_configuration, Vsystem_configuration_options)
3089 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
3090 (inhibit_x_resources, noninteractive1): Remove.
3091 * editfns.c (syms_of_editfns): Update.
3092 (Vbuffer_access_fontified_property)
3093 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
3094 (Voperating_system_release, Vsystem_name, Vuser_full_name)
3095 (Vuser_login_name, Vuser_real_login_name): Remove.
3096 * dosfns.c (syms_of_dosfns): Update.
3097 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
3098 (dos_codepage, dos_country_code, dos_decimal_point)
3099 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
3100 (dos_super_key, dos_timezone_offset): Remove.
3101 * doc.c (syms_of_doc): Update.
3102 (Vbuild_files, Vdoc_file_name): Remove.
3103 * dispnew.c (syms_of_display): Update.
3104 (Vglyph_table, Vinitial_window_system)
3105 (Vredisplay_preemption_period, Vstandard_display_table)
3106 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
3107 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
3108 * dired.c (syms_of_dired): Update.
3109 (Vcompletion_ignored_extensions): Remove.
3110 (Vw32_get_true_file_attributes): Remove declaration.
3111 * dbusbind.c (syms_of_dbusbind): Update.
3112 (Vdbus_debug, Vdbus_registered_buses)
3113 (Vdbus_registered_objects_table): Remove.
3114 * data.c (syms_of_data): Update.
3115 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
3116 * composite.c (syms_of_composite): Update.
3117 (Vauto_composition_function, Vauto_composition_mode)
3118 (Vcompose_chars_after_function, Vcomposition_function_table):
3119 Remove.
3120 * coding.c (syms_of_coding): Update.
3121 (Vcharset_revision_table, Vcoding_category_list)
3122 (Vcoding_system_alist, Vcoding_system_for_read)
3123 (Vcoding_system_for_write, Vcoding_system_list)
3124 (Vdefault_process_coding_system, Venable_character_translation)
3125 (Vfile_coding_system_alist, Vlast_code_conversion_error)
3126 (Vlast_coding_system_used, Vlatin_extra_code_table)
3127 (Vlocale_coding_system, Vnetwork_coding_system_alist)
3128 (Vprocess_coding_system_alist)
3129 (Vselect_safe_coding_system_function)
3130 (Vstandard_translation_table_for_decode)
3131 (Vstandard_translation_table_for_encode)
3132 (Vtranslation_table_for_input, coding_system_require_warning)
3133 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
3134 (eol_mnemonic_unix, inherit_process_coding_system)
3135 (inhibit_eol_conversion, inhibit_iso_escape_detection)
3136 (inhibit_null_byte_detection): Remove.
3137 * cmds.c (syms_of_cmds): Update.
3138 (Vpost_self_insert_hook): Remove.
3139 * charset.c (syms_of_charset): Update.
3140 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
3141 (inhibit_load_charset_map): Remove.
3142 * character.c (syms_of_character): Update.
3143 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
3144 (Vchar_width_table, Vprintable_chars)
3145 (Vscript_representative_chars, Vtranslation_table_vector)
3146 (Vunicode_category_table): Remove.
3147 * ccl.c (syms_of_ccl): Update.
3148 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
3149 (Vtranslation_hash_table_vector): Remove.
3150 * category.c (syms_of_category): Update.
3151 (Vword_combining_categories, Vword_separating_categories): Remove.
3152 * callproc.c (syms_of_callproc): Update.
3153 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
3154 (Vexec_directory, Vexec_path, Vexec_suffixes)
3155 (Vinitial_environment, Vprocess_environment)
3156 (Vshared_game_score_directory, Vshell_file_name): Remove.
3157 * callint.c (syms_of_callint): Update.
3158 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
3159 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
3160 * bytecode.c (syms_of_bytecode): Update.
3161 (Vbyte_code_meter, byte_metering_on): Remove.
3162 * buffer.c (syms_of_buffer): Update.
3163 (Vafter_change_functions, Vbefore_change_functions)
3164 (Vchange_major_mode_hook, Vfirst_change_hook)
3165 (Vinhibit_read_only, Vkill_buffer_query_functions)
3166 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
3167 * alloc.c (syms_of_alloc): Update.
3168 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
3169 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
3170 (cons_cells_consed, floats_consed, garbage_collection_messages)
3171 (gc_cons_threshold, gcs_done, intervals_consed)
3172 (misc_objects_consed, pure_bytes_used, string_chars_consed)
3173 (strings_consed, symbols_consed, vector_cells_consed): Remove.
3174
3175 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3176 (DEFVAR_INT): Assume global is in `globals'.
3177 * alloc.c (globals): Define.
3178
3179 2011-01-18 Tom Tromey <tromey@redhat.com>
3180
3181 * image.c (Vimagemagick_render_type): Remove redundant
3182 definition.
3183
3184 2011-01-18 Tom Tromey <tromey@redhat.com>
3185
3186 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
3187 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
3188 (redisplay_window): Update.
3189 (syms_of_xdisp): Update.
3190
3191 2011-01-18 Tom Tromey <tromey@redhat.com>
3192
3193 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
3194 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
3195 Declare.
3196 * gtkutil.c (xg_uses_old_file_dialog):
3197 (xg_get_file_with_chooser):
3198 (xg_tool_bar_detach_callback): Don't redeclare globals.
3199
3200 2011-01-18 Tom Tromey <tromey@redhat.com>
3201
3202 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
3203 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
3204
3205 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
3206
3207 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
3208 defined __GNUC__. ../configure now checks for this GCC feature,
3209 which is now also supported by IBM and Oracle compilers.
3210 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
3211 since Solaris malloc returns mult-of-8.
3212
3213 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
3214
3215 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
3216
3217 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
3218
3219 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
3220 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
3221 * data.c (Fnumber_to_string): Use it.
3222 * print.c (float_to_string, print_object): Likewise.
3223
3224 Include <unistd.h> unilaterally.
3225 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
3226 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
3227 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
3228 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
3229 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3230 * xterm.c:
3231 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3232 unistd.h is always present now, possibly supplied by gnulib.
3233
3234 * mktime.c: Remove; moving to ../lib.
3235
3236 Use gnulib's mktime module.
3237 * deps.mk (mktime.o): Remove rule.
3238
3239 Use gnulib's ftoastr module.
3240 * print.c: Include ftoastr.h.
3241 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3242 Remove; no longer needed.
3243 (float_to_string): Use dtoastr rather than rolling our own code,
3244 which had an off-by-one bug on non-IEEE hosts.
3245
3246 Automate syncing from gnulib.
3247 * Makefile.in (lib): New macro.
3248 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3249 ($(lib)/libgnu.a): New rule.
3250 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3251
3252 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3253 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3254 so change the type of 'ign' to unsigned int from int.
3255
3256 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3257
3258 * xterm.h (struct x_display_info): Remove stray semicolon.
3259 The extra semicolon didn't conform to the C standard.
3260 Problem reported by Sun cc.
3261
3262 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3263 These changes make compilation easier to follow with Sun cc.
3264 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3265 EMACS_INT values without provoking overflow diagnostics.
3266 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3267 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3268 diagnostic with signed left shift.
3269
3270 * fileio.c (make_temp_name): Remove unreachable code.
3271
3272 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3273 Previously it was marked by preceding it with "return;", but
3274 Sun cc complains about this.
3275
3276 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3277 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3278 which fixed Bug#2370. Caught by Sun cc.
3279
3280 2011-01-15 Martin Rudalics <rudalics@gmx.at>
3281
3282 * window.c (inhibit_point_swap): New variable.
3283 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3284 point this time.
3285 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3286 of setting selected_window to nil (Bug#7728).
3287
3288 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3289
3290 * image.c (imagemagick_load_image, Finit_image_library):
3291 Free intermediate image after creating a MagickWand from it.
3292 Terminate MagickWand environment after image loading.
3293
3294 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
3295
3296 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3297 unexpected return values.
3298 (Fdbus_register_method): Remove connection initialization.
3299
3300 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
3301
3302 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3303 used by Fdbus_register_service.
3304 (QCdbus_request_name_replace_existing): Likewise.
3305 (QCdbus_request_name_do_not_queue): Likewise.
3306 (QCdbus_request_name_reply_primary_owner): Likewise.
3307 (QCdbus_request_name_reply_in_queue): Likewise.
3308 (QCdbus_request_name_reply_exists): Likewise.
3309 (QCdbus_request_name_reply_already_owner): Likewise.
3310 (Fdbus_register_service): New function.
3311 (Fdbus_register_method): Use Fdbus_register_service to do the name
3312 registration.
3313 (syms_of_dbusbind): Add symbols dbus-register-service,
3314 :allow-replacement, :replace-existing, :do-not-queue,
3315 :primary-owner, :existing, :in-queue and :already-owner.
3316
3317 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
3318
3319 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3320 when removing extra buttons.
3321
3322 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
3323
3324 * fns.c (Fyes_or_no_p): Doc fix.
3325
3326 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3327
3328 * fns.c (Fyes_or_no_p): Add usage.
3329
3330 2011-01-08 Glenn Morris <rgm@gnu.org>
3331
3332 * makefile.w32-in ($(EMACS)):
3333 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3334
3335 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3336 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3337
3338 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3339
3340 * image.c (imagemagick_load_image): Fix some resource leaks and
3341 error handling.
3342
3343 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
3344
3345 * fns.c (Fyes_or_no_p): Accept format string args.
3346
3347 2011-01-07 Glenn Morris <rgm@gnu.org>
3348
3349 * emacs.c (no_site_lisp): New int.
3350 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3351 (main): Set no_site_lisp.
3352 (standard_args): Add --no-site-lisp.
3353 * lisp.h (no_site_lisp): New int.
3354 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3355 directories to Vload_path.
3356
3357 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3358
3359 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3360
3361 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3362
3363 * dbusbind.c (Fdbus_register_method): Add optional parameter
3364 dont_register_service. Updated docstring accordingly.
3365
3366 2011-01-04 Glenn Morris <rgm@gnu.org>
3367
3368 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3369
3370 2011-01-03 Eli Zaretskii <eliz@gnu.org>
3371
3372 * image.c (png_jmpbuf): Remove definition.
3373 (my_png_error, png_load): Don't use png_jmpbuf.
3374
3375 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3376
3377 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3378
3379 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3380
3381 * image.c <Qlibpng_version>: New variable.
3382 (syms_of_image): Intern and staticpro it. Set its value to the
3383 version of PNG library we were compiled with.
3384 (my_png_error, png_load): Avoid GCC warnings about direct access
3385 to png_ptr->jmpbuf. (Bug#7716)
3386 (png_jmpbuf): New macro.
3387 (my_png_error, png_load): Use it instead of #ifdef'ing according
3388 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3389
3390 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3391
3392 * .gdbinit (xgetptr): Fix the union+lsb case.
3393 (xbacktrace): Fix the union case.
3394
3395 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3396
3397 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3398 different from selected-window's.
3399
3400 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3401
3402 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3403 equivalent of a menu item when the key sequence is given by the
3404 `:keys' attribute. (Bug#7662)
3405
3406 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3407 the basic faces are supported.
3408
3409 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
3410
3411 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3412
3413 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3414
3415 * xdisp.c (Fformat_mode_line): Fix last change.
3416
3417 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
3418
3419 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3420 faces (Bug#7587).
3421
3422 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3423
3424 * fileio.c (Fexpand_file_name): One more doc fix.
3425
3426 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
3427
3428 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3429 image or label in the container.
3430 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3431 (xg_show_toolbar_item): Function deleted.
3432 (xg_tool_item_stale_p): New function.
3433 (update_frame_tool_bar): Calculate tool-bar style once per call.
3434 Instead of hiding text labels, omit them. Don't use
3435 xg_show_toolbar_item; create new GtkToolItems from scratch if
3436 necessary, instead of trying to re-use them. This avoids an
3437 annoying animation when changing tool-bars.
3438
3439 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3440
3441 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3442 title and buffer filename only for RepresentedFilename.
3443 Handle bad UTF-8 in buffer name (Bug#7517).
3444
3445 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3446
3447 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3448
3449 * nsfns.m (ns_set_name_iconic): Remove.
3450 (ns_set_name_internal): New function (Bug#7517).
3451 (Vicon_title_format): Extern declare.
3452 (ns_set_name): Call ns_set_name_internal.
3453 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3454 (x_implicitly_set_name): Ditto.
3455 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3456 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3457
3458 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3459
3460 * window.c (syms_of_window): Add missing defsubr for
3461 window-use-time.
3462
3463 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3464
3465 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3466 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3467
3468 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3469
3470 * buffer.c: Remove unused declarations.
3471 * buffer.h: Likewise.
3472 * charset.h: Likewise.
3473 * composite.h: Likewise.
3474 * dispextern.h: Likewise.
3475 * dispnew.c: Likewise.
3476 * font.h: Likewise.
3477 * fontset.c: Likewise.
3478 * fontset.h: Likewise.
3479 * intervals.h: Likewise.
3480 * keymap.h: Likewise.
3481 * lisp.h: Likewise.
3482 * syntax.c: Likewise.
3483 * syntax.h: Likewise.
3484 * termhooks.h: Likewise.
3485 * window.h: Likewise.
3486 * xsettings.h: Likewise.
3487 * xterm.c: Likewise.
3488 * xterm.h: Likewise.
3489
3490 * chartab.c (sub_char_table_ref): Make static.
3491 * dispnew.c (line_hash_code, required_matrix_height)
3492 (required_matrix_width): Likewise.
3493 * eval.c (interactive_p, apply_lambda): Likewise.
3494 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3495 Likewise.
3496 * font.c (QCadstyle, QCregistry, font_make_spec)
3497 (font_parse_fcname, font_encode_char, font_at): Likewise.
3498 * frame.c (x_frame_get_arg): Likewise.
3499 * keymap.c (get_keyelt): Likewise.
3500 * lread.c (read_filtered_event): Likewise.
3501 * print.c (write_string_1): Likewise.
3502 * window.c (delete_window, window_height, window_width)
3503 (foreach_window): Likewise.
3504 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3505 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3506 (xembed_send_message): Likewise.
3507
3508 * eval.c (run_hook_list_with_args): Delete.
3509 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3510 * terminal.c (get_terminal_param): Likewise.
3511 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3512
3513 * scroll.c: Fix comment.
3514
3515 * dispnew.c (add_window_display_history)
3516 (add_frame_display_history, glyph_row_slice_p)
3517 (find_glyph_row_slice, flush_stdout)
3518 (check_matrix_pointer_lossage, matrix_row)
3519 (check_matrix_invariants, check_window_matrix_pointers)
3520 (check_matrix_pointers, window_to_frame_vpos)
3521 (window_to_frame_hpos): Prototize.
3522 * textprop.c (erase_properties): Likewise.
3523
3524 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3525
3526 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3527 (print_preprocess): Fix handling of uninterned symbols in last change.
3528
3529 * print.c (print, print_preprocess, print_object): Use a hash table
3530 rather than a linear table for Vprint_number_table.
3531
3532 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3533
3534 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3535
3536 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3537
3538 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3539 (parse_tool_bar_item): Use it to obtain image separators for
3540 displays not using native tool-bar separators.
3541
3542 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3543 specially, since this is now done in parse_tool_bar_item.
3544
3545 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3546
3547 Minor clean up to silence some gcc warnings.
3548 * window.c (Fset_window_buffer):
3549 * xterm.c (x_set_frame_alpha): Restructure code to silence
3550 compiler warning.
3551 (handle_one_xevent): Remove unused var `p'.
3552 (do_ewmh_fullscreen): Remove unused var `lval'.
3553 (xembed_set_info): Remove unused var `atom'.
3554 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3555 compiler warning.
3556 * fontset.c (fontset_id_valid_p, dump_fontset):
3557 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3558 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3559 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3560 label only when it's used.
3561 * image.c (x_create_bitmap_from_xpm_data):
3562 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3563 its callers.
3564 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3565 `consumed_chars'.
3566 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3567 (decode_coding_emacs_mule): Remove unused label `retry'.
3568 (detect_eol): Add parens to silence compiler warning.
3569 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3570 it's used to silence the compiler.
3571 (make_number): Modernize k&r declaration.
3572 (mark_char_table): Add parens to silence compiler warning.
3573
3574 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
3575
3576 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3577 tool-bar maps.
3578 (menu_separator_name_p): New function, from gtkutil.c.
3579 (separator_names): Move from gtkutil.c.
3580
3581 * keyboard.h (menu_separator_name_p): Add prototype.
3582
3583 * gtkutil.c (XG_BIN_CHILD): New macro.
3584 (xg_get_menu_item_label, xg_update_menubar)
3585 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3586 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3587 (separator_names, xg_separator_p): Move to keyboard.c.
3588 (create_menus, xg_update_submenu, update_frame_tool_bar):
3589 Use menu_separator_name_p.
3590
3591 * nsmenu.m (name_is_separator): Function deleted.
3592 (addItemWithWidgetValue): Use menu_separator_name_p.
3593
3594 * w32menu.c (name_is_separator): Function deleted.
3595 (add_menu_item): Use menu_separator_name_p.
3596
3597 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3598
3599 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3600 same as the background, use the face forground as cursor.
3601
3602 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3603
3604 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3605
3606 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3607
3608 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3609 (face_before_or_after_it_pos, next_element_from_string)
3610 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3611 calculations of maximum string length before calling
3612 string_char_and_length and STRING_CHAR_AND_LENGTH.
3613 (string_char_and_length): Update commentary: MAXLEN is no longer
3614 needed.
3615
3616 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3617
3618 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3619 as (Qsave_session arg).
3620
3621 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3622 (smc_die_CB): Make an event with arg Qt.
3623 (Fhandle_save_session): If event has Qt as argument,
3624 call Fkill_emacs (Bug#7552).
3625
3626 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3627
3628 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3629
3630 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3631
3632 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3633
3634 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3635
3636 * dispextern.h (struct it): New member overlay_strings_charpos.
3637
3638 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3639 charpos where we computed n_overlay_strings.
3640 (next_overlay_string): Load overlay strings at recorded position,
3641 which may not be the same as the iterator's charpos (Bug#7016).
3642
3643 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3644
3645 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3646 obscured due to a vscroll (Bug#7537).
3647
3648 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3649
3650 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3651
3652 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3653 Use FRAME_TOOLBAR_HEIGHT.
3654 (x_set_offset): Handle XNegative and YNegative in
3655 f->size_hint_flags (Bug#7510).
3656
3657 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3658
3659 * w32fns.c (Fx_show_tip): Call try_window with last argument
3660 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3661 solved. Round up the tip height to an integral multiple of the
3662 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3663 (Bug#7398)
3664
3665 2010-12-08 Glenn Morris <rgm@gnu.org>
3666
3667 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3668
3669 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3670
3671 * xml.c (parse_region): Ignore blank HTML nodes.
3672 (make_dom): Return CDATA sections (like <style>foo</style>) as
3673 text nodes.
3674
3675 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3676
3677 * lread.c (read1): Allow newstyle unquote outside of backquote.
3678 Disallow old-style backquotes inside new-style backquotes.
3679 Don't count unquotes to figure out when we're "syntactically inside
3680 but semantically outside of a backquote" any more.
3681 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3682 to all contexts.
3683
3684 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3685
3686 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3687
3688 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3689
3690 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3691 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3692 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3693
3694 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3695
3696 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3697 bit-field.
3698 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3699 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3700 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3701 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3702 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3703 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3704 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3705 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3706 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3707 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3708 * m/hp800.h: Remove file.
3709 * m/mips.h: Remove file.
3710
3711 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3712
3713 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3714 with cursor color and draw a rectangle around the image (Bug#7412).
3715
3716 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3717
3718 * frame.c (x_set_font): Remove unused variable.
3719
3720 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3721
3722 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3723
3724 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3725 drawing text under filled box cursor (Bug#7479).
3726
3727 2010-11-27 Kenichi Handa <handa@m17n.org>
3728
3729 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3730 i.e. integer.
3731 (Fdefine_charset_internal): Adjust for the above change.
3732 (init_charset_once): Likewise.
3733
3734 * charset.h (emacs_mule_charset): Adjust the prototype.
3735 Delete duplicated extern.
3736
3737 * coding.c (emacs_mule_char): Adjust for the change of
3738 emacs_mule_charset.
3739
3740 * lread.c (read_emacs_mule_char): Adjust for the change of
3741 emacs_mule_charset.
3742
3743 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3744
3745 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3746 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3747
3748 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3749
3750 * alloc.c (mark_terminals): Ensure that the image cache is marked
3751 even if the terminal object was marked earlier (Bug#6301).
3752
3753 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3754
3755 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3756
3757 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3758
3759 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3760 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3761 Use 23 as menubar height if 0. (Bug#7425).
3762
3763 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3764
3765 * xdisp.c (set_message_1): Force paragraph direction in echo area
3766 be left-to-right.
3767
3768 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3769 when the click is on the header or mode line.
3770
3771 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3772
3773 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3774 `cursor' property of the first character in overlay strings.
3775 (Bug#7474) (Bug#7481)
3776
3777 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3778
3779 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3780 (NSLeftAlternateKeyMask): New defines.
3781 (keyDown): Parse left and right keys separately (Bug#7458).
3782 Compare Left key masks exactly (Bug#7458).
3783
3784 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3785
3786 * intervals.c (temp_set_point_both): Define before calling, to
3787 avoid GCC warnings.
3788
3789 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3790
3791 * nsmenu.m: Use #include <config.h> instead of "config.h".
3792
3793 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3794 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3795 Move declarations ...
3796 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3797 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3798 ... here.
3799
3800 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3801 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3802 (gdb_pvec_type):
3803 * print.c (print_output_debug_flag):
3804 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3805 (safe_debug_print): New declaration.
3806
3807 * xterm.c:
3808 * systty.h:
3809 * sound.c: Include <sys/ioctl.h> unconditionally.
3810
3811 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3812
3813 * alloc.c (mark_maybe_object): Return early if given a Lisp
3814 integer (Bug#6301).
3815
3816 2010-11-21 Ken Brown <kbrown@cornell.edu>
3817
3818 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3819
3820 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3821
3822 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3823 Define (Bug#7458).
3824 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3825 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3826 NSRightControlKeyMask also (Bug#7458).
3827 (keyDown): Ditto (Bug#7458).
3828 (syms_of_nsterm): Defvar ns-right-command-modifier and
3829 ns-right-control-modifier (Bug#7458).
3830
3831 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3832
3833 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3834 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3835
3836 * intervals.h (temp_set_point, temp_set_point_both):
3837 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3838
3839 2010-11-20 Ken Brown <kbrown@cornell.edu>
3840
3841 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3842
3843 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3844
3845 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3846 \xNNNNNN for hex-code display of glyphless characters.
3847
3848 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3849
3850 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3851 Set important to ! vert_only.
3852 (xg_show_toolbar_item): Don't show label horizontally if
3853 tool item isn't important.
3854 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3855 xg_make_tool_item, or update important on existing tool item.
3856
3857 * keyboard.c (QCvert_only): New variable.
3858 (parse_tool_bar_item): Check for QCvert_only.
3859 (syms_of_keyboard): Initialize QCvert_only.
3860
3861 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3862
3863 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3864
3865 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3866 same in-line.
3867
3868 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3869
3870 * xfaces.c (lookup_face): Make static.
3871 * dispnew.c (copy_row_except_pointers): Likewise.
3872 * syntax.c (dec_bytepos): Likewise.
3873 (inc_bytepos): Remove.
3874 * dispextern.h (lookup_face): Remove declaration.
3875
3876 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3877
3878 * xdisp.c (set_cursor_from_row): Display cursor after all the
3879 glyphs that come from an overlay. Don't overstep the last glyph
3880 when skipping glyphs from an overlay. (Bug#6687)
3881
3882 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3883
3884 * alloc.c (refill_memory_reserve): Move declaration ...
3885 * lisp.h (refill_memory_reserve): ... here.
3886
3887 * strftime.c (_strftime_copytm): Add declaration.
3888
3889 * callproc.c (syms_of_callproc): Use intern_c_string.
3890
3891 Move declarations from .c files to .h files.
3892 * process.c (timers_run):
3893 * minibuf.c (quit_char):
3894 * lread.c (read_emacs_mule_char):
3895 * keyboard.c (minibuf_level, message_enable_multibyte)
3896 (pending_malloc_warning):
3897 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3898 (Qonly): Remove declarations.
3899 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3900 (Vselect_active_regions):
3901 * keyboard.h (timers_run): Add declarations.
3902
3903 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3904 (tm_diff): Convert definitions to standard C.
3905 (extra_args_spec_iso): Remove, unused.
3906
3907 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3908
3909 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3910
3911 * config.in (HAVE_G_TYPE_INIT): New symbol.
3912
3913 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3914
3915 * lread.c (Fload): Mention `load-in-progress' and
3916 `load-file-name'. (Bug#7346)
3917
3918 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3919 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3920 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3921 subprocesses. Use buffer_free only ifdef subprocesses.
3922
3923 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3924 the subprocesses version, not in the non-subprocesses one.
3925
3926 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3927
3928 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3929
3930 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3931 lines on text-mode terminals. (bug#7417)
3932
3933 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3934
3935 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3936 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3937
3938 2010-11-17 Kenichi Handa <handa@m17n.org>
3939
3940 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3941 change (set charset-ID list instead of charset-symbol list).
3942
3943 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3944
3945 * keyboard.c (make_lispy_position): For text area clicks, record Y
3946 pixel position relative to the text area, excluding header line.
3947 Also change X and Y to Lisp_Objects, not pointers; don't return
3948 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3949 buffer_posn_from_coords counting from the start of the text area.
3950 (Fposn_at_x_y, make_lispy_event): Callers changed.
3951
3952 * window.c (coordinates_in_window): Change X and Y to ints rather
3953 than pointers; don't return coordinates via pointers.
3954 (struct check_window_data): Change X and Y from pointers to ints.
3955 (window_from_coordinates): Remove args WX and WY; don't return
3956 coordinates via pointers.
3957 (Fcoordinates_in_window_p, window_from_coordinates):
3958 (check_window_containing, Fwindow_at): Callers changed.
3959 (window_relative_x_coord): New function.
3960
3961 * window.h (window_from_coordinates, window_relative_x_coord):
3962 Update prototypes.
3963
3964 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3965 the start of the text area.
3966
3967 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3968 call. Use window_relative_x_coord.
3969 (note_mouse_highlight): Change window_from_coordinates call.
3970
3971 * w32term.c (w32_read_socket):
3972 * msdos.c (dos_rawgetc):
3973 * xterm.c (handle_one_xevent): Likewise.
3974
3975 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3976
3977 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3978 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3979 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3980 Convert definitions to standard C.
3981 * regex.c: Do not include <stdlib.h>, config.h does it.
3982 Include unistd.h.
3983 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3984 (regerror, regfree): Convert definitions to standard C.
3985 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3986 (__mktime_internal): Convert definitions to standard C.
3987
3988 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3989
3990 * w32proc.c:
3991 * w32inevt.c:
3992 * w32heap.c:
3993 * w32.c: Remove config.h include guards.
3994
3995 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3996 No code changes.
3997
3998 * process.c: Include <sys/ioctl.h> unconditionally,
3999 keyboard.c already does it.
4000
4001 * keyboard.c (pending_malloc_warning): Add const to match
4002 definition in alloc.c.
4003 (Fset_input_interrupt_mode): Simplify #ifdefs.
4004
4005 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
4006
4007 Clean up systty.h macros.
4008 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
4009 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
4010 definition in all uses.
4011 (EMACS_TTY_TABS_OK): Remove, it has a single user.
4012 * sysdep.c (discard_tty_input, child_setup_tty)
4013 (init_sys_modes, tabs_safe_p, reset_sys_modes):
4014 * emacs.c (shut_down_emacs):
4015 * callproc.c (child_setup):
4016 * term.c (dissociate_if_controlling_tty): Inline removed macros.
4017
4018 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
4019
4020 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4021
4022 * w32fns.c (Fx_create_frame):
4023 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
4024 resource here; it's now done at startup.
4025
4026 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
4027
4028 * xterm.c (set_wm_state): Add Qnil to final cons.
4029
4030 * xselect.c (x_send_client_event): Remove unused variables cons and
4031 size.
4032
4033 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4034
4035 * keyboard.c (modify_event_symbol): Add const to array elements of
4036 arg NAME_TABLE.
4037 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
4038 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
4039 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
4040 Add const to array elements.
4041 (scroll_bar_parts): Make static. Fix position of const.
4042
4043 * w32fns.c (lispy_function_keys): Add const to extern.
4044
4045 * w32inevt.c (lispy_function_keys): Likewise.
4046
4047 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4048
4049 * xfns.c (Fx_create_frame): Don't check for the cursorColor
4050 resource here; it's now done at startup.
4051
4052 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
4053
4054 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
4055
4056 Fix compilation on Solaris.
4057 * sysdep.c: Do not #include <term.h>.
4058 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
4059
4060 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
4061
4062 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
4063
4064 * xterm.c (set_wm_state): Don't put Atom in cons, call
4065 make_fixnum_or_float on them first.
4066 (x_term_init): Initialize Xatom_net_supporting_wm_check and
4067 Xatom_net_supported correctly.
4068
4069 * xselect.c (x_send_client_event): Move CHECK_STRING ...
4070 (Fx_send_client_event): to here.
4071
4072 2010-11-13 Martin Rudalics <rudalics@gmx.at>
4073
4074 * window.c (Fwindow_use_time): New function.
4075
4076 2010-11-13 Eli Zaretskii <eliz@gnu.org>
4077
4078 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
4079 zero-width characters.
4080
4081 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
4082
4083 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
4084 box before drawing the glyphs inside it.
4085
4086 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
4087
4088 * dispextern.h (enum glyphless_display_method):
4089 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
4090 All users changed.
4091
4092 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4093 Fix comments.
4094 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
4095 whitespace in "[]", to simulate a box. Don't use uninitialized
4096 variable `width'.
4097
4098 2010-11-11 Julien Danjou <julien@danjou.info>
4099
4100 * xsettings.c (init_xsettings): Use already fetch atoms.
4101
4102 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
4103 from dpyinfo.
4104
4105 * xselect.c (Fx_send_client_event): Split and create
4106 x_send_client_event.
4107
4108 * lisp.h: Do not EXFUN Fx_send_client_event.
4109
4110 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
4111 from dpyinfo.
4112 (wm_supports): Use atoms from dpyinfo.
4113 (do_ewmh_fullscreen): Use atoms from dpyinfo.
4114 (x_ewmh_activate_frame): Use atoms from dpyinfo.
4115 (xembed_set_info): Use atoms from dpyinfo.
4116 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
4117 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
4118 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
4119 Get all atoms in one round-trip.
4120 (set_wm_state): Use x_send_client_event rather than
4121 Fx_send_client_event, using Atom directly.
4122 (x_ewmh_activate_frame): Ditto.
4123 (x_set_sticky): Pass atoms to set_wm_state.
4124 (do_ewmh_fullscreen): Ditto.
4125
4126 * xterm.h (x_display_info): Add Xatom_net_supported,
4127 Xatom_net_supporting_wm_check, Xatom_net_active_window,
4128 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
4129
4130 * xfns.c (Fx_show_tip): Fix typo in docstring.
4131
4132 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
4133
4134 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
4135 it's not negative.
4136
4137 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4138
4139 * font.c (font_filter_properties): Add const to array elements of
4140 properties args.
4141
4142 * font.h (font_filter_properties): Likewise.
4143
4144 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
4145 elements.
4146
4147 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
4148
4149 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
4150
4151 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
4152 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
4153 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
4154 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
4155 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
4156
4157 2010-11-10 Glenn Morris <rgm@gnu.org>
4158
4159 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
4160
4161 2010-11-09 Eli Zaretskii <eliz@gnu.org>
4162
4163 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
4164
4165 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
4166
4167 * image.c (free_image): Don't garbage the frame here, since this
4168 function can be called while redisplaying (Bug#7210).
4169 (uncache_image): Garbage the frame here (Bug#6426).
4170
4171 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
4172
4173 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
4174 parent is the root window. Check this after traversing window tree.
4175
4176 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
4177
4178 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
4179
4180 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
4181 before traversing window tree (Bug#5721).
4182
4183 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
4184
4185 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
4186
4187 * xdisp.c (note_mode_line_or_margin_highlight):
4188 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
4189
4190 2010-11-06 Eli Zaretskii <eliz@gnu.org>
4191
4192 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
4193 adjust width of tool-tip frame to the width of text, excluding the
4194 stretch glyph at the beginning of R2L glyph rows.
4195
4196 * w32fns.c (Fx_show_tip): Likewise.
4197
4198 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
4199
4200 * nsfont.m: Include termchar for new mouse-highlight.
4201 (nsfont_draw): Use MOUSE_HL_INFO.
4202
4203 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4204
4205 Unify mouse-highlight code for all GUI and TTY sessions.
4206
4207 * term.c: Remove static mouse_face_* variables. All users
4208 changed.
4209 (term_show_mouse_face, term_clear_mouse_face)
4210 (fast_find_position, term_mouse_highlight): Functions deleted.
4211 (tty_draw_row_with_mouse_face): New function.
4212 (term_mouse_movement): Call note_mouse_highlight instead of
4213 term_mouse_highlight.
4214
4215 * nsterm.m (ns_update_window_begin, ns_update_window_end)
4216 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
4217 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4218 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
4219 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
4220 Replace Display_Info with Mouse_HLInfo everywhere where
4221 mouse_face_* members were accessed for mouse highlight purposes.
4222
4223 * xterm.c (x_update_window_begin, x_update_window_end)
4224 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
4225 (handle_one_xevent, x_free_frame_resources, x_term_init):
4226 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
4227 members were accessed for mouse highlight purposes.
4228
4229 * w32term.c (x_update_window_begin, x_update_window_end)
4230 (x_update_end, w32_read_socket, x_free_frame_resources)
4231 (w32_initialize_display_info): Replace Display_Info with
4232 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4233 for mouse highlight purposes.
4234
4235 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4236 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4237 unless the frame is on a window-system.
4238 (get_tool_bar_item, handle_tool_bar_click)
4239 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4240 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4241 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4242 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4243 Replace Display_Info with Mouse_HLInfo everywhere where
4244 mouse_face_* members were accessed for mouse highlight purposes.
4245 (coords_in_mouse_face_p): Move prototype out of the
4246 HAVE_WINDOW_SYSTEM conditional.
4247 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4248 HAVE_WINDOW_SYSTEM block.
4249 (try_window_id) [HAVE_GPM || MSDOS]:
4250 Call x_clear_window_mouse_face.
4251 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
4252 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4253 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4254 calling draw_glyphs directly.
4255 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4256 (cursor_in_mouse_face_p, rows_from_pos_range)
4257 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4258 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4259 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4260 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4261 fragments.
4262 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4263 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4264 integer.
4265 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
4266 (x_consider_frame_title, tool_bar_lines_needed):
4267 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
4268 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4269 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4270 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4271 part.
4272
4273 * dispnew.c (mirror_make_current): Set Y coordinate of the
4274 mode-line and header-line rows.
4275 (init_display): Setup initial frame's output_data for text
4276 terminal frames.
4277
4278 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4279 its own definition on msdos.c.
4280
4281 * msdos.c (show_mouse_face, clear_mouse_face)
4282 (fast_find_position, IT_note_mode_line_highlight)
4283 (IT_note_mouse_highlight): Functions deleted.
4284 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4285 instead of IT_note_mouse_highlight.
4286 (draw_row_with_mouse_face, popup_activated): New functions.
4287 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4288 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4289 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4290 where mouse_face_* members were accessed for mouse highlight
4291 purposes.
4292
4293 * msdos.h (initialize_msdos_display): Add prototype.
4294
4295 * frame.h (MOUSE_HL_INFO): New macro.
4296
4297 * lisp.h (Mouse_HLInfo): New data type.
4298
4299 * xterm.h (struct x_display_info):
4300 * w32term.h (struct w32_display_info):
4301 * nsterm.h (struct ns_display_info):
4302 * termchar.h (struct tty_display_info): Use it instead of
4303 mouse_face_* members.
4304
4305 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4306 1st argument.
4307 (frame_to_window_pixel_xy, note_mouse_highlight)
4308 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4309 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4310 HAVE_WINDOW_SYSTEM conditional.
4311 (draw_row_with_mouse_face): Declare prototype.
4312 (tty_draw_row_with_mouse_face): Declare prototype.
4313
4314 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4315
4316 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4317 Remove unused variables.
4318
4319 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4320
4321 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4322 logic pointed out by Eli Zaretskii.
4323
4324 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4325
4326 * coding.c (coding-category-list): Refer to set-coding-system-priority
4327 instead of the obsolete set-coding-priority in the doc string.
4328
4329 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4330
4331 * nsfont.m (nsfont_draw): Correct previous patch to return
4332 correct value.
4333 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4334 don't change the method signature, change the return.
4335
4336 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
4337
4338 * nsfont.m (nsfont_draw)
4339 * nsimage.m (EmacsImage-setXBMColor:)
4340 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
4341
4342 2010-11-03 Julien Danjou <julien@danjou.info>
4343
4344 * image.c (gif_load): Add support for transparency and specified
4345 :background.
4346
4347 2010-11-01 Kenichi Handa <handa@m17n.org>
4348
4349 * dispextern.h (lookup_glyphless_char_display): Extern it.
4350
4351 * termhooks.h (struct terminal): New member charset_list.
4352
4353 * coding.c (Fset_terminal_coding_system_internal): Set the
4354 `charset_list' member of struct terminal.
4355
4356 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
4357 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4358
4359 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4360 (lookup_glyphless_char_display): Set it->what at the end.
4361 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4362 (last_glyphless_glyph_merged_face_id): Make them non-static.
4363
4364 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4365 Fix the arg with_background for font->driver->draw.
4366
4367 2010-11-01 Kenichi Handa <handa@m17n.org>
4368
4369 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4370 Surround chp by parentheses.
4371
4372 2010-11-01 Kenichi Handa <handa@m17n.org>
4373
4374 Implement various display methods for glyphless characters.
4375
4376 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4377 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4378 (Qzero_width): New variables.
4379 (THIN_SPACE_WIDTH): New macro.
4380 (lookup_glyphless_char_display): New function.
4381 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4382 (last_glyphless_glyph_merged_face_id): New variables.
4383 (get_next_display_element): Check glyphless characters.
4384 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4385 last_glyphless_glyph_face_id.
4386 (fill_glyphless_glyph_string): New function.
4387 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4388 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4389 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4390 (x_produce_glyphs): If a suitable font is not found, produce a
4391 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4392 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4393 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4394 Qzero_width.
4395 (Vglyphless_char_display): Declare it as a Lisp variable.
4396
4397 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4398 (struct glyph): Change the size of the member "type" to 3.
4399 Add glyphless to the union slice and u.
4400 (enum display_element_type): Add IT_GLYPHLESS.
4401 (enum glyphless_display_method): New enum.
4402 (struct it): New member glyphless_method.
4403 (Vglyphless_char_display): Extern it.
4404
4405 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4406 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4407
4408 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4409 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4410
4411 * nsterm.m (ns_draw_glyph_string): Handle the case
4412 GLYPHLESS_GLYPH (the detail is not yet implemented).
4413
4414 2010-10-31 Glenn Morris <rgm@gnu.org>
4415
4416 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4417
4418 * frame.c (syms_of_frame) <tool-bar-mode>:
4419 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4420
4421 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
4422
4423 * xterm.c (x_connection_closed): Print informative error message
4424 when aborting on GTK. This requires using shut_down_emacs
4425 directly instead of Fkill_emacs.
4426
4427 2010-10-29 Eli Zaretskii <eliz@gnu.org>
4428
4429 * emacs.c (main): Call syms_of_filelock unconditionally.
4430
4431 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4432 clause, but keep part of it conditioned on CLASH_DETECTION.
4433
4434 2010-10-29 Glenn Morris <rgm@gnu.org>
4435
4436 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4437 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4438 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4439 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4440 Sync docs between X, W32, NS.
4441
4442 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4443 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4444
4445 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
4446
4447 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4448 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4449
4450 2010-10-26 Eli Zaretskii <eliz@gnu.org>
4451
4452 * cmds.c (internal_self_insert): Don't insert if argument N is
4453 zero or negative. (Bug#7281)
4454
4455 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4456
4457 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4458
4459 2010-10-25 Glenn Morris <rgm@gnu.org>
4460
4461 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4462
4463 2010-10-24 Glenn Morris <rgm@gnu.org>
4464
4465 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4466 (Fx_window_property, Fx_file_dialog):
4467 * xfns.c (Fx_synchronize, Fx_change_window_property)
4468 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4469
4470 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
4471
4472 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4473
4474 2010-10-24 Eli Zaretskii <eliz@gnu.org>
4475
4476 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4477
4478 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4479 Deprecate use as a boolean flag.
4480
4481 2010-10-24 Jim Meyering <jim@meyering.net>
4482
4483 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4484
4485 2010-10-24 Glenn Morris <rgm@gnu.org>
4486
4487 * w16select.c (syms_of_win16select) <selection-coding-system>:
4488 <next-selection-coding-system>:
4489 * w32select.c (syms_of_w32select) <selection-coding-system>:
4490 <next-selection-coding-system>:
4491 Sync docs with select.el.
4492
4493 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4494 Lisp version.
4495
4496 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4497 Sync doc with the xterm.c version.
4498
4499 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4500 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4501
4502 2010-10-23 Glenn Morris <rgm@gnu.org>
4503
4504 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4505 * frame.c (syms_of_frame) <menu-bar-mode>:
4506 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4507 <hourglass-delay>: Sync docs with Lisp.
4508
4509 2010-10-23 Eli Zaretskii <eliz@gnu.org>
4510
4511 Implement mouse highlight for bidi-reordered lines.
4512
4513 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4514 (mouse_face_from_string_pos): New function, replaces
4515 fast_find_string_pos.
4516 (note_mouse_highlight): Call it instead of fast_find_string_pos.
4517 (note_mode_line_or_margin_highlight): Support bidi-reordered
4518 strings and R2L glyph rows. Fix comments.
4519 (note_mouse_highlight): When bidi reordering is turned on in a
4520 buffer, call next-single-property-change and
4521 previous-single-property-change with last argument nil.
4522 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4523 glyph that stands for no text beyond the line end.
4524 (row_containing_pos): Don't return too early when CHARPOS is in a
4525 bidi-reordered continued line. Return immediately when the first
4526 hit is found in a line that is not continued, or when an exact
4527 match for CHARPOS is found.
4528 (rows_from_pos_range): New function.
4529 (mouse_face_from_buffer_pos): Use it instead of calling
4530 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4531 function to support mouse highlight in bidi-reordered lines and
4532 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4533 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4534 that the former is always above the latter or identical to it.
4535 (show_mouse_face): Support drawing highlighted R2L lines.
4536 (coords_in_mouse_face_p): New function, bidi-aware.
4537 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4538 Call it instead of comparing with mouse-face members of dpyinfo.
4539 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4540 usage of hpos and vpos.
4541
4542 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4543
4544 * xrdb.c: Include keyboard.h for MOTIF.
4545
4546 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4547 MOTIF (Bug#7263).
4548
4549 * xfns.c: Include Xm/TextF and Xm/List.
4550 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4551 Make ANSI prototypes.
4552
4553 2010-10-22 Glenn Morris <rgm@gnu.org>
4554
4555 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4556 Remove ccl and duplicate mouse.
4557
4558 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
4559
4560 * insdel.c (prepare_to_modify_buffer): Don't set
4561 saved-region-selection if modification hooks are disabled.
4562
4563 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
4564
4565 * cmds.c (Fdelete_char): Doc fix.
4566
4567 2010-10-19 Ken Brown <kbrown@cornell.edu>
4568
4569 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4570
4571 2010-10-19 Kenichi Handa <handa@m17n.org>
4572
4573 Fix incorrect font metrics when the same font is opened with
4574 different pixelsizes.
4575
4576 * xftfont.c: Include composite.h.
4577 (xftfont_shape): New function.
4578 (syms_of_xftfont): Set xftfont_driver.shape.
4579
4580 2010-10-18 Julien Danjou <julien@danjou.info>
4581
4582 * frame.c (Fframe_pointer_visible_p):
4583 Add `frame-pointer-visible-p' to get the pointer visibility.
4584
4585 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4586
4587 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4588 non-"EAGAIN"-like error to signal to Emacs that the socket should
4589 be closed.
4590
4591 2010-10-15 Eli Zaretskii <eliz@gnu.org>
4592
4593 * unexcoff.c (make_hdr): Fix prototype according to changes in
4594 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4595
4596 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4597
4598 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4599
4600 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4601 made building the X menu fail.
4602 (really-oldXMenu): Fix my previous fix.
4603
4604 2010-10-14 Damyan Pepper <damyanp@gmail.com>
4605
4606 Fix handling of font properties on Windows (bug#6303).
4607 * font.c (font_filter_properties): New function, refactored from
4608 ftfont_filter_properties.
4609 * font.h (font_filter_properties): Declare.
4610 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4611 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4612 (w32font_filter_properties): New function.
4613 (w32font_driver): Add w32font_filter_properties.
4614
4615 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4616
4617 * font.c (Ffont_variation_glyphs):
4618 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4619
4620 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4621
4622 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4623 * w32font.c (w32_generic_family):
4624 * w32inevt.c (key_event):
4625 * w32menu.c (fill_in_menu):
4626 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4627 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4628 * w32term.c (w32_read_socket): Make static.
4629
4630 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4631
4632 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4633 prototypes; all callers changed.
4634
4635 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4636
4637 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4638 (OBJ2): New macro.
4639 (WIN32OBJ, FONTOBJ): Remove.
4640 (OBJ1): Redistribute object files with OBJ2.
4641 (LIBS, $(TEMACS)): Use TLIB2.
4642 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4643 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4644
4645 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4646
4647 * emacs.c (Vdynamic_library_alist)
4648 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4649 Doc fix.
4650
4651 * lisp.h (Vdynamic_library_alist): Declare extern.
4652
4653 * image.c (Vimage_library_alist)
4654 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4655 (lookup_image_type): Use Vdynamic_library_alist.
4656 (Finit_image_library): Doc fix.
4657
4658 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4659
4660 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4661 (lispdir): Remove trailing /, update all uses.
4662
4663 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4664
4665 * nsterm.m (Qleft): Declare.
4666 (ns_right_alternate_modifier): New variable.
4667 (NSRightAlternateKeyMask): New define.
4668 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4669 ns_right_alternate_modifier isn't Qleft.
4670 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4671 as emacs modifier for NSRightAlternateKeyMask.
4672 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4673
4674 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4675
4676 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4677 gnutls is ready, return EAGAIN as the errno.
4678
4679 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4680
4681 * vm-limit.c:
4682 * unexhp9k800.c:
4683 * unexelf.c:
4684 * unexaix.c:
4685 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4686
4687 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4688 (PROFILING_LDFLAGS): Remove, not needed anymore.
4689
4690 * Makefile.in: Use $(...) everywhere instead of ${...}.
4691 (CRT_DIR): Move near potential user.
4692 (START_FILE): Move near CRT_DIR, it might use it.
4693
4694 * sysdep.c (LPASS8): Remove, unused.
4695 (emacs_ospeed): Change from being a global to a local in the only
4696 user: init_baud_rate.
4697
4698 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4699
4700 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4701 (emacs_gnutls_write): Remove the debuggin fsync call.
4702 (emacs_gnutls_read): Return -1 if we got an error from
4703 gnutls_read. This allows us to actually read lots of data from
4704 the GnuTLS stream.
4705 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4706 According to the documentation, this is correct, and it seems to
4707 make things work.
4708
4709 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4710
4711 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4712
4713 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4714
4715 * keyboard.c: Revert last change; it was not intended to be
4716 synchronized with the trunk.
4717
4718 2010-10-08 Kenichi Handa <handa@m17n.org>
4719
4720 * coding.c (complement_process_encoding_system): Fix previous change.
4721
4722 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4723
4724 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4725 (Fdbus_init_bus): ... here. (Bug#7113)
4726
4727 2010-10-08 Glenn Morris <rgm@gnu.org>
4728
4729 * buffer.c (before-change-functions, after-change-functions):
4730 Three-year overdue doc fix following 2007-08-13 change.
4731
4732 2010-10-08 Kenichi Handa <handa@m17n.org>
4733
4734 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4735 eol-format, inherit from the system's default.
4736 (complement_process_encoding_system): Make a new coding system
4737 inherit the original eol-format.
4738
4739 2010-10-08 Kenichi Handa <handa@m17n.org>
4740
4741 * coding.c (complement_process_encoding_system): New function.
4742
4743 * coding.h (complement_process_encoding_system): Extern it.
4744
4745 * callproc.c (Fcall_process): Complement the coding system for
4746 encoding arguments.
4747 (Fcall_process_region): Complement the coding system for encoding
4748 the input to the process.
4749
4750 * process.c (Fstart_process): Complement the coding system for
4751 encoding arguments.
4752 (send_process): Complement the coding system for encoding what
4753 sent to the process.
4754
4755 2010-10-08 Kenichi Handa <handa@m17n.org>
4756
4757 * xfont.c (xfont_open): Fix setting of font->average_width from
4758 :avgwidth property (Bug#7123).
4759
4760 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4761
4762 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4763 is more portable.
4764
4765 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4766 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4767 has not defined SIGIO.
4768
4769 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4770
4771 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4772 draw the outermost line using the black relief, for legibility.
4773 Omit drawing the four corner pixels.
4774
4775 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4778 (read_key_sequence): Inline echo_prompt.
4779 (echo_dash): Add a dash only if key is continued (Bug#7137).
4780
4781 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4782
4783 Remove O_RDONLY, O_WRONLY definitions, not needed.
4784 * unexcoff.c:
4785 * lread.c:
4786 * fileio.c:
4787 * doc.c:
4788 * callproc.c:
4789 * alloc.c:
4790 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4791
4792 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4793
4794 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4795
4796 * gnutls.c: Add property list symbol holders.
4797 (emacs_gnutls_handshake): Clarify how sockets are passed to
4798 GnuTLS.
4799 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4800 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4801 and keyfiles to be a list of file names. Default to "NORMAL" for
4802 the priority string. Improve logging.
4803
4804 2010-10-03 Glenn Morris <rgm@gnu.org>
4805
4806 * fileio.c (Vdirectory_sep_char): Remove.
4807
4808 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4809
4810 * termhooks.h: Remove #ifdef CONSP.
4811
4812 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4813
4814 Include <fcntl.h> unconditionally.
4815 * termcap.c:
4816 * sysdep.c:
4817 * lread.c:
4818 * keyboard.c:
4819 * filelock.c:
4820 * fileio.c:
4821 * doc.c:
4822 * callproc.c:
4823 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4824 does it.
4825
4826 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4827
4828 * sysdep.c (flush_pending_output): Remove code, does not do
4829 anything on any platform.
4830
4831 Remove unused code.
4832 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4833 Remove select emulation, all systems support select.
4834 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4835 * process.c (create_process): Remove #if 0 code.
4836
4837 Remove unused arguments for unexec.
4838 The third one is never used, and the last two are always passed as zero.
4839 * emacs.c (unexec): Add declaration.
4840 (Fdump_emacs): Only pass the first two arguments to unexec.
4841 Simplify #ifdef.
4842 * unexw32.c (unexec):
4843 * unexsol.c (unexec):
4844 * unexhp9k800.c (unexec):
4845 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4846 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4847 (find_section): Use const.
4848 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4849 (unexec_error): Declare it NO_RETURN.
4850 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4851 it as an argument, remove data_start and entry_address arguments, unused.
4852 (unexec): Remove bss_start, data_start and
4853 entry_address arguments.
4854 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4855 it as an argument, remove data_start and entry_address arguments, unused.
4856 (unexec): Remove bss_start, data_start and
4857 entry_address arguments.
4858
4859 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4860
4861 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4862
4863 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4864 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4865 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4866 Fix typos in docstrings.
4867 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4868 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4869
4870 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4871
4872 * keyboard.c (command_loop_1): Make sure the mark is really alive
4873 before using it (Bug#7044).
4874
4875 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4876
4877 * makefile.w32-in (tags): Rename target to full-tags.
4878
4879 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4880
4881 * emacs.c (main): Remove !WINDOWSNT conditional.
4882 (Fkill_emacs): Don't mention exemption on MS-Windows.
4883
4884 2010-10-02 Glenn Morris <rgm@gnu.org>
4885
4886 * character.c (Fchar_bytes): Remove obsolete function.
4887 (syms_of_character): Remove Schar_bytes.
4888
4889 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4890 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4891 in batch-mode.
4892 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4893 (kill-emacs-hook): Doc fix.
4894
4895 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4896
4897 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4898 (parse_region): Rework to take regions instead of strings, and
4899 renamed to reflect that these are the libxml functions.
4900
4901 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4902
4903 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4904 screen dimensions in tty->Wcm.
4905
4906 * xdisp.c (set_cursor_from_row): When the row is truncated and
4907 point is outside the range of displayed characters, position the
4908 cursor inside the scroll margin. (Bug#6349)
4909
4910 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4911
4912 Do not include stdlib.h and string.h, config.h does it.
4913 * xfont.c:
4914 * w32term.c:
4915 * w32reg.c:
4916 * w32inevt.c:
4917 * w32heap.c:
4918 * w32console.c:
4919 * w16select.c:
4920 * unexsol.c:
4921 * term.c:
4922 * sound.c:
4923 * scroll.c (m):
4924 * gtkutil.c:
4925 * font.c:
4926 * filelock.c:
4927 * fileio.c:
4928 * dosfns.c:
4929 * dbusbind.c:
4930 * bidi.c:
4931 * callproc.c:
4932 * process.c:
4933 * msdos.c:
4934 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4935
4936 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4937 defines it.
4938
4939 * process.c: Move #include <pty.h> earlier.
4940 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4941 (pty_name): Move definition later.
4942
4943 * nsselect.m (syms_of_nsselect):
4944 * nsmenu.m (syms_of_nsmenu):
4945 * nsfns.m (syms_of_nsfns):
4946 * msdos.c (syms_of_msdos):
4947
4948 * image.c (syms_of_image):
4949 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4950
4951 * point.h: Remove, unused.
4952
4953 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4954
4955 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4956 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4957 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4958
4959 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4960
4961 * xml.c (parse_string): Use const.
4962
4963 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4964
4965 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4966 Also only override Vprint_level if it isn't already bound, and increase
4967 the level to 8 to produce more useful backtraces for bug reports.
4968
4969 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4970
4971 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4972
4973 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4974
4975 * w32console.c (vga_stdcolor_name): Remove unused function;
4976 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4977
4978 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4979
4980 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4981 (Fgnutls_boot): Start the handshake.
4982 (emacs_gnutls_read): Perform the handshake from the reader loop.
4983 (Fgnutls_boot): Remove some debugging messages.
4984 Change indentation throughout to use the Emacs style.
4985 (emacs_gnutls_handshake): Cast the fds to something that's
4986 possibly the expected length.
4987 (emacs_gnutls_write): Return -1 if we try to write before handshake.
4988
4989 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4990
4991 * process.c (make_process): Set the gnutls_p field to zero by
4992 default.
4993 (read_process_output): Always call the gnutls_read function if the
4994 stream is a gnutls stream.
4995 (send_process): Ditto for writes.
4996
4997 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4998 or write anything until the state is GNUTLS_STAGE_READY.
4999 (Fgnutls_boot): Mark the stream as being a gnutls stream.
5000
5001 2010-09-29 Eli Zaretskii <eliz@gnu.org>
5002
5003 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
5004 NEUTRAL_DIR.
5005 (handle_invisible_prop, iterate_out_of_display_property)
5006 (next_element_from_buffer): If bidi_it.first_elt is set, call
5007 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
5008 (Bug#7128)
5009
5010 * print.c (print_object): Fix format string and argument types for
5011 printing a Lisp_Misc_Marker.
5012
5013 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
5014 (load_overlay_strings, get_overlay_strings_1)
5015 (get_overlay_strings, forward_to_next_line_start)
5016 (back_to_previous_visible_line_start, reseat, reseat_to_string)
5017 (get_next_display_element, next_element_from_string)
5018 (next_element_from_c_string, next_element_from_buffer)
5019 (move_it_vertically_backward, move_it_by_lines, add_to_log)
5020 (message_dolog, message_log_check_duplicate, message2_nolog)
5021 (message3, message3_nolog, vmessage, set_message, set_message_1)
5022 (hscroll_window_tree, text_outside_line_unchanged_p)
5023 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
5024 (find_last_unchanged_at_beg_row)
5025 (find_first_unchanged_at_end_row, row_containing_pos)
5026 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
5027 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
5028 Use EMACS_INT for buffer and string positions.
5029
5030 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
5031 (row_containing_pos): Adjust prototype.
5032
5033 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
5034 (message2_nolog, set_message): Adjust prototypes.
5035
5036 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5037
5038 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
5039 (Fgnutls_boot): Use SDATA.
5040 (Fgnutls_handshake): Remove unused var `max_log_level'.
5041
5042 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5043
5044 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
5045 (Bug#7113)
5046
5047 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
5048
5049 * xgselect.c (xg_select): Clear file descriptors not set from
5050 rfds and wfds.
5051
5052 * process.c (wait_reading_process_output): Add missing FD_CLR
5053 for write_mask (must mirror connect_wait_mask).
5054
5055 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
5056
5057 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
5058 prefix.
5059 (Fgnutls_boot): Use changed process members. Use log level with a
5060 function parameter to set it. Bring back Emacs-level debugging
5061 messages at log level 1 and 2.
5062
5063 * process.c (make_process): Initialize gnutls_log_level.
5064
5065 * process.h: Add gnutls_log_level and rename x509_cred and
5066 anon_cred to have the gnutls_ prefix for consistency.
5067
5068 * gnutls.h (GNUTLS_LOG): Add convenience macro.
5069
5070 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
5071
5072 * w32.c (g_b_init_get_sid_identifier_authority)
5073 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
5074 Remove, not used.
5075 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
5076 (init_winsock): Remove useless assignment.
5077 (open_process_token, get_token_information, lookup_account_sid)
5078 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
5079 (get_security_descriptor_owner, get_security_descriptor_group)
5080 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
5081 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
5082 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
5083 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
5084 (unc_volume_file_attributes, convert_from_time_t)
5085 (create_toolhelp32_snapshot, process32_first, process32_next)
5086 (open_thread_token, impersonate_self, revert_to_self)
5087 (get_process_memory_info, get_process_working_set_size)
5088 (global_memory_status, global_memory_status_ex, socket_to_fd)
5089 (shutdown_handler): Make static.
5090
5091 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5092
5093 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
5094 (xd_pending_messages): Functions removed.
5095 (xd_read_queued_messages): Add parameters fd, *data, for_read in
5096 order to be compatible with add_read_fd. Determine bus from data,
5097 and call xd_read_message just for this bus.
5098 (xd_add_watch): Use xd_read_queued_messages as callback function.
5099 Add data.
5100
5101 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
5102
5103 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
5104
5105 * gnutls.c (gnutls_log_function): Add more debugging.
5106 (emacs_gnutls_read): Don't infloop while reading.
5107
5108 2010-09-27 Kenichi Handa <handa@m17n.org>
5109
5110 These changes are to remove restriction on the number of glyphs in
5111 one composition.
5112
5113 * dispextern.h (struct glyph): Change the member "slice" to union.
5114 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
5115 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
5116
5117 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
5118 instead of glyph->slice.
5119 (marginal_area_string): Likewise.
5120
5121 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
5122 glyph->u.cmp.
5123 (append_composite_glyph): Likewise.
5124
5125 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
5126 glyph->u.cmp.
5127 (fill_gstring_glyph_string, x_get_glyph_overhangs)
5128 (append_composite_glyph): Likewise.
5129 (fill_image_glyph_string): Use glyph->slice.img instead of
5130 glyph->slice.
5131 (append_glyph, produce_image_glyph, append_stretch_glyph)
5132 (note_mouse_highlight): Likewise.
5133
5134 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
5135
5136 * process.c (add_keyboard_wait_descriptor)
5137 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
5138 (wait_reading_process_output): Don't pass write_mask to select
5139 if SELECT_CANT_DO_WRITE_MASK is defined.
5140 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
5141
5142 * process.h (add_read_fd, delete_read_fd, add_write_fd)
5143 (delete_write_fd): Declare.
5144
5145 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
5146 (write_mask): New variable.
5147 (max_input_desc): Rename from max_keyboard_desc.
5148 (fd_callback_info): New variable.
5149 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
5150 New functions.
5151 (Fmake_network_process): FD_SET write_mask.
5152 (deactivate_process): FD_CLR write_mask.
5153 (wait_reading_process_output): Connecting renamed to Writeok.
5154 check_connect removed. check_write is new. Remove references to gpm.
5155 Use Writeok/check_write unconditionally (i.e. no #ifdef
5156 NON_BLOCKING_CONNECT) instead of Connecting.
5157 Loop over file descriptors and call callbacks in fd_callback_info
5158 if file descriptor is ready for I/O.
5159 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
5160 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
5161 (keyboard_bit_set): Use max_input_desc.
5162 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
5163 Remove #ifdef subprocesses. Use max_input_desc.
5164 (init_process): Initialize write_mask and fd_callback_info.
5165
5166 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
5167
5168 * dbusbind.c: Include process.h.
5169 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
5170 (xd_read_message_1): New functions.
5171 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
5172 Handle watch for both read and write.
5173 (Fdbus_init_bus): Also register xd_toggle_watch.
5174 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5175 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
5176 to dbus_connection_flush.
5177 (xd_read_message): Move most of the code to xd_read_message_1.
5178 Call xd_read_message_1 until status is COMPLETE.
5179
5180 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
5181
5182 * term.c: Do not include sys/ioctl.h, not needed.
5183 (init_tty): Reorder code to reduce the number of #ifdefs.
5184 No code changes.
5185
5186 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
5187
5188 * process.h: Set up GnuTLS support.
5189
5190 * process.c (make_process, Fstart_process)
5191 (read_process_output, send_process): Set up GnuTLS support for
5192 process input/output file descriptors.
5193
5194 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
5195
5196 * gnutls.c: The source code for GnuTLS support in Emacs.
5197
5198 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
5199
5200 * config.in: Set up GnuTLS support.
5201
5202 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
5203 (obj, LIBES): Set up GnuTLS support.
5204
5205 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
5206
5207 * w32.c (get_emacs_configuration_options): Fix previous change.
5208
5209 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
5210
5211 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
5212 alive before using it (Bug#6977).
5213
5214 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
5215
5216 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
5217
5218 * dispextern.h: EMACS_INT/int fixup.
5219
5220 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
5221 fixup.
5222
5223 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
5224
5225 2010-09-25 Eli Zaretskii <eliz@gnu.org>
5226
5227 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
5228 (Fselect_window, window_scroll_pixel_based)
5229 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5230 Use EMACS_INT for buffer positions.
5231
5232 * textprop.c (validate_interval_range, interval_of)
5233 (property_change_between_p, Fadd_text_properties)
5234 (set_text_properties_1, Fremove_text_properties)
5235 (Fremove_list_of_text_properties, Ftext_property_any)
5236 (Ftext_property_not_all, copy_text_properties)
5237 (text_property_list, extend_property_ranges)
5238 (verify_interval_modification): Use EMACS_INT for buffer
5239 positions.
5240
5241 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5242 for buffer positions.
5243
5244 * process.c (read_process_output, send_process)
5245 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5246 and string positions and size.
5247
5248 * print.c (print_object, print_string, strout): Use EMACS_INT for
5249 string indices.
5250
5251 * minibuf.c (string_to_object): Use EMACS_INT for string position
5252 and size.
5253
5254 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5255
5256 * lread.c <read_from_string_index, read_from_string_index_byte>
5257 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5258 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5259 buffer positions and string length.
5260
5261 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5262 EMACS_INT.
5263 (echo_truncate, adjust_point_for_property, read_char)
5264 (gen_help_event, make_lispy_event, modify_event_symbol)
5265 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5266 for buffer positions and string length.
5267
5268 * keyboard.h (gen_help_event): Adjust prototype.
5269
5270 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5271
5272 * commands.h <last_point_position>: Declare EMACS_INT.
5273
5274 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5275 (truncate_echo_area): Accept EMACS_INT argument.
5276
5277 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5278
5279 * lisp.h (truncate_echo_area): Adjust prototype.
5280
5281 * composite.c (composition_adjust_point): Return EMACS_INT.
5282
5283 * composite.h (composition_adjust_point): Adjust prototype.
5284
5285 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
5286
5287 * process.c (Fmake_network_process): When arg :host is 'local,
5288 use address 127.0.0.1, not name "localhost". (Bug#6781)
5289
5290 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5291
5292 * indent.c (Fcurrent_indentation, indented_beyond_p)
5293 (compute_motion): Use EMACS_INT for buffer position variables.
5294
5295 * lisp.h (indented_beyond_p): Adjust prototype.
5296
5297 * buffer.c (overlay_strings): Return EMACS_INT.
5298
5299 * buffer.h (overlay_strings): Adjust prototype.
5300
5301 * region-cache.c (pp_cache): Adjust format to arguments.
5302
5303 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5304 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5305 (verror): Use EMACS_INT for size of allocated buffer.
5306
5307 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5308 positions.
5309
5310 * xdisp.c (redisplay_internal, try_window_id)
5311 (set_cursor_from_row, find_first_unchanged_at_end_row):
5312 Use EMACS_INT for buffer positions.
5313
5314 * dispextern.h (set_cursor_from_row): Adjust prototype.
5315
5316 * dispnew.c (increment_matrix_positions)
5317 (increment_row_positions, copy_glyph_row_contents)
5318 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5319 positions.
5320
5321 * dispextern.h (mode_line_string, marginal_area_string)
5322 (increment_matrix_positions, increment_row_positions):
5323 Adjust prototypes.
5324
5325 * data.c (Faref, Faset): Use EMACS_INT for string length and
5326 positions.
5327
5328 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5329 characters to insert.
5330
5331 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5332 position and size.
5333
5334 * syntax.c (scan_words, update_syntax_table)
5335 (prev_char_comend_first, back_comment, skip_chars)
5336 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5337 Use EMACS_INT for buffer and string positions.
5338
5339 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5340
5341 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5342 positions.
5343
5344 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5345
5346 * scroll.c (calculate_scrolling, line_ins_del)
5347 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5348 conversion.
5349
5350 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5351 (region_cache_backward, region_cache_forward)
5352 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5353 conversion.
5354
5355 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5356
5357 * eval.c (verror): Fix EMACS_INT/int conversion.
5358
5359 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
5360 (print_preprocess, print_check_string_charset_prop)
5361 (print_object): Fix EMACS_INT/int conversion.
5362
5363 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5364
5365 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5366
5367 * callproc.c (Fcall_process): Use EMACS_INT for count of
5368 characters read from the subprocess.
5369
5370 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5371 positions.
5372 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5373 positions.
5374
5375 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5376 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5377 length.
5378 (advance_to_char_boundary, Fset_buffer_multibyte)
5379 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5380 (overlay_touches_p, record_overlay_string, overlay_strings)
5381 (recenter_overlay_lists, fix_start_end_in_overlays)
5382 (modify_overlay, Fmove_overlay, report_overlay_modification)
5383 (evaporate_overlays): Use EMACS_INT for buffer positions.
5384
5385 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5386 Adjust prototypes.
5387
5388 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5389 positions.
5390
5391 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5392 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5393 (Fsubstring_no_properties, substring_both, Ffillarray)
5394 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5395 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5396 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5397 (Fmd5): Use EMACS_INT for buffer and string positions and length
5398 variables and arguments.
5399
5400 * lisp.h (substring_both): Adjust prototype.
5401
5402 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
5403
5404 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5405 * w32fns.c (clipboard_sequence_fn): Don't declare.
5406 (globals_of_w32fns): Don't initialize it.
5407
5408 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
5409
5410 * syntax.c (back_comment): Detect the case where a 1-char comment
5411 starter is also the 2nd char of a 2-char comment ender.
5412
5413 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
5414
5415 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5416
5417 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5418
5419 * eval.c (verror): EMACS_INT/int cleanup.
5420
5421 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5422 unwind_protect more than 2GB worth of functions.
5423
5424 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5425
5426 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5427 string and avoid compiler warnings.
5428 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5429 all users.
5430
5431 * lread.c (oblookup): EMACS_INT/int cleanup.
5432
5433 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5434
5435 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5436
5437 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5438
5439 * lisp.h (clip_to_bounds): Adjust prototype.
5440
5441 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5442
5443 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5444
5445 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5446
5447 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5448
5449 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5450 cleanup.
5451
5452 * lisp.h: Change the definition of all marker.c functions that
5453 take and return buffer stuff to be EMACS_INT instead of int.
5454
5455 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5456 (buf_charpos_to_bytepos, bytepos_to_charpos)
5457 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5458 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5459 for all buffer positions.
5460
5461 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
5462
5463 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5464 (split_interval_right, find_interval, next_interval)
5465 (delete_node, delete_interval, interval_deletion_adjustment)
5466 (adjust_intervals_for_deletion, merge_interval_right)
5467 (merge_interval_left, graft_intervals_into_buffer)
5468 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5469
5470 * intervals.h (traverse_intervals): Update prototype.
5471
5472 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5473
5474 * indent.c (compute_motion): Use EMACS_INT for arguments to
5475 region_cache_forward.
5476
5477 * region-cache.c (struct boundary, struct region_cache):
5478 Use EMACS_INT for positions.
5479 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5480 (delete_cache_boundaries, set_cache_region)
5481 (invalidate_region_cache, know_region_cache)
5482 (region_cache_forward, region_cache_backward, pp_cache):
5483 Use EMACS_INT for buffer positions.
5484
5485 * region-cache.h (know_region_cache, invalidate_region_cache)
5486 (region_cache_forward, region_cache_backward): Adjust prototypes.
5487
5488 * search.c (string_match_1, fast_c_string_match_ignore_case)
5489 (looking_at_1, scan_buffer, scan_newline)
5490 (find_next_newline_no_quit, find_before_next_newline)
5491 (search_command, trivial_regexp_p, search_buffer, simple_search)
5492 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5493 and string positions and length.
5494
5495 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5496 (find_before_next_newline): Adjust prototypes.
5497
5498 * editfns.c (transpose_markers, update_buffer_properties)
5499 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5500 (get_pos_property, Fconstrain_to_field)
5501 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5502 (Fchar_after, Fchar_before, Finsert_char)
5503 (Finsert_buffer_substring, Fcompare_buffer_substrings)
5504 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5505 Use EMACS_INT for buffer and string position variables.
5506 (Finsert_char): Protect against too large insertions.
5507
5508 * lisp.h (clip_to_bounds): Adjust prototype.
5509
5510 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5511 (balance_an_interval, split_interval_right, split_interval_left)
5512 (find_interval, next_interval, update_interval)
5513 (adjust_intervals_for_insertion, delete_node, delete_interval)
5514 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5515 (offset_intervals, merge_interval_right, merge_interval_left)
5516 (graft_intervals_into_buffer, adjust_for_invis_intang)
5517 (move_if_not_intangible, get_local_map, copy_intervals)
5518 (copy_intervals_to_string, compare_string_intervals)
5519 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5520 and for interval tree size.
5521
5522 * intervals.h (traverse_intervals, split_interval_right)
5523 (split_interval_left, find_interval, offset_intervals)
5524 (graft_intervals_into_buffer, copy_intervals)
5525 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5526 (update_interval): Adjust prototypes.
5527
5528 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5529 Use EMACS_INT for buffer position variables and arguments.
5530
5531 * composite.c (get_composition_id, find_composition)
5532 (run_composition_function, compose_text)
5533 (composition_gstring_width, autocmp_chars)
5534 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5535 for buffer positions and string length variables and arguments.
5536
5537 * composite.h (get_composition_id, find_composition, compose_text)
5538 (composition_gstring_width): Adjust prototypes.
5539
5540 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5541
5542 * xdisp.c (store_mode_line_noprop, display_mode_element):
5543 Use EMACS_INT for string positions.
5544
5545 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5546 position arguments.
5547
5548 * intervals.h (get_property_and_range): Adjust prototype.
5549
5550 * character.c (parse_str_as_multibyte, str_as_multibyte)
5551 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5552 (string_count_byte8, string_escape_byte8, c_string_width)
5553 (strwidth, lisp_string_width, multibyte_chars_in_text):
5554 Use EMACS_INT for string length variables and arguments.
5555
5556 * character.h (parse_str_as_multibyte, str_as_multibyte)
5557 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5558 (c_string_width, strwidth, lisp_string_width):
5559 Adjust prototypes.
5560
5561 * font.c (font_intern_prop): Use EMACS_INT for string length
5562 variables.
5563
5564 * font.c (font_intern_prop): Use EMACS_INT for string length
5565 variables.
5566
5567 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5568 variables.
5569
5570 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5571 (Fmake_string): Protect against too large strings.
5572 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5573 (live_misc_p): Use ptrdiff_t instead of int for pointer
5574 differences.
5575 (string_bytes, check_sblock, check_string_free_list)
5576 (allocate_string_data, compact_small_strings, Fmake_string)
5577 (Fmake_bool_vector, make_string, make_unibyte_string)
5578 (make_multibyte_string, make_string_from_bytes)
5579 (make_specified_string_string, Fmake_list, Fmake_vector):
5580 Use EMACS_INT for string length variables and arguments.
5581 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5582 (Fpurecopy): Use EMACS_INT for string size.
5583 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5584 for vector size.
5585
5586 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5587 (make_string_from_bytes, make_specified_string_string)
5588 (make_pure_string, string_bytes, check_point_in_composition):
5589 Adjust prototypes.
5590
5591 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5592
5593 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5594 (check_translation): Use EMACS_INT for buffer positions and
5595 length.
5596
5597 * undo.c (record_marker_adjustment, record_delete)
5598 (record_change, record_point, record_insert)
5599 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5600 buffer positions.
5601
5602 * lisp.h (record_marker_adjustment, record_delete)
5603 (record_change, record_point, record_insert)
5604 (record_property_change, Fprimitive_undo): Adjust prototypes.
5605
5606 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
5607 Eli Zaretskii <eliz@gnu.org>
5608
5609 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5610
5611 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5612
5613 * minibuf.c (Fminibuffer_contents)
5614 (Fminibuffer_contents_no_properties)
5615 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5616 positions.
5617
5618 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5619 mark.
5620
5621 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5622 (allocate_string_data): Accept EMACS_INT for string length.
5623
5624 * editfns.c (Ffield_string, Ffield_string_no_properties)
5625 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5626 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5627 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5628 (Ffield_end): Use EMACS_INT for buffer positions.
5629
5630 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5631 point with mark.
5632
5633 * lisp.h (allocate_string_data, make_uninit_string)
5634 (make_uninit_multibyte_string, make_buffer_string)
5635 (make_buffer_string_both): Adjust prototypes.
5636
5637 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5638
5639 * xml.c: Switch to GNU indentation.
5640 (make_dom): Change parse tree format to match xml.el.
5641 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5642 (Fxml_parse_string_internal): Rename from xml-parse-string.
5643
5644 2010-09-22 Kenichi Handa <handa@m17n.org>
5645
5646 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5647 only if we are not at a composition.
5648 (set_iterator_to_next): Give it->end_charpos to
5649 composition_compute_stop_pos.
5650 (set_iterator_to_next, next_element_from_buffer): Likewise.
5651
5652 * dispnew.c (buffer_posn_from_coords): Fix position when the
5653 current display element is a grapheme cluster in bidi-reordered
5654 region.
5655
5656 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5657
5658 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5659 the regions may overlap.
5660
5661 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5662
5663 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5664
5665 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5666
5667 * emacs.c: Do not include sys/ioctl.h, not needed.
5668
5669 * doprnt.c: Do not include stdlib.h, config.h does it.
5670 Move #include before macro definition.
5671
5672 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5673
5674 * Makefile.in (temacs): Link using $(CC) not $(LD).
5675 (LD_FIRSTFLAG): Define using autoconf.
5676 (LD): Remove.
5677
5678 Remove HAVE_TERMIOS definitions.
5679 * s/usg5-4-common.h (HAVE_TERMIOS):
5680 * s/template.h (HAVE_TERMIOS):
5681 * s/gnu-linux.h (HAVE_TERMIOS):
5682 * s/darwin.h (HAVE_TERMIOS):
5683 * s/cygwin.h (HAVE_TERMIOS):
5684 * s/bsd-common.h (HAVE_TERMIOS):
5685 * s/aix4-2.h (HAVE_TERMIOS):
5686 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5687 defined on all non-MS platforms.
5688 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5689
5690 * xterm.c (xt_action_hook): Use const.
5691
5692 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5693
5694 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5695 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5696 (gethostname) [!HAVE_SOCKETS]: Remove.
5697 (SOCK_REPLACE_HANDLE): Remove macro.
5698 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5699 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5700 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5701 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5702
5703 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5704
5705 * deps.mk (xml.o): Add dependencies.
5706
5707 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5708 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5709
5710 * bidi.c (bidi_paragraph_init): Accept an additional argument
5711 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5712 search back until a paragraph with a strong directional character
5713 is found, and use that to determine paragraph's base direction.
5714
5715 * dispextern.h (bidi_paragraph_init): Update prototype.
5716
5717 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5718
5719 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5720 of w32api >= 3.15. (Bug#6989)
5721
5722 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5723
5724 * process.c (wait_reading_process_output): Don't message about
5725 accept-process-output unless the time limit really is zero.
5726
5727 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5728
5729 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5730 int/Lisp_Object mixup).
5731
5732 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5733
5734 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5735 not HELP.
5736
5737 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5738
5739 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5740 bar's pixel width to Lisp (Bug#7048).
5741
5742 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5743
5744 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5745
5746 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5747
5748 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5749 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5750
5751 2010-09-17 Kenichi Handa <handa@m17n.org>
5752
5753 * ftfont.c (ftfont_check_otf): Fix previous change.
5754
5755 2010-09-14 Kenichi Handa <handa@m17n.org>
5756
5757 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5758 existence of GSUB or GPOS.
5759
5760 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5761
5762 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5763
5764 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5765
5766 * xml.c (parse_buffer): Rename to parse_string(), since that's
5767 what it does.
5768 (parse_string): Return nil when the document can't be parsed.
5769
5770 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5771
5772 * xterm.c (get_current_vm_state): New function.
5773 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5774 want_fullscreen so set_wm_state calls are few (Bug#7013).
5775 (x_handle_net_wm_state): Move code to get_current_vm_state and
5776 call that function.
5777
5778 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5779
5780 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5781
5782 2010-09-14 Kenichi Handa <handa@m17n.org>
5783
5784 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5785 we may use designation or locking-shift.
5786
5787 2010-09-14 Kenichi Handa <handa@m17n.org>
5788
5789 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5790 sequence when the source is multibyte.
5791
5792 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5793
5794 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5795 Don't make first argument optional. Doc fix.
5796
5797 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5798
5799 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5800 parameters for the doc string.
5801
5802 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5803
5804 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5805
5806 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5807
5808 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5809 (syms_of_fns): Don't defsubr Sy_or_n_p.
5810 * lisp.h: Don't declare Fy_or_n_p.
5811 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5812
5813 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5814
5815 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5816
5817 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5818
5819 * xml.c: New file.
5820 (Fhtml_parse_buffer): New function to interface to the libxml2
5821 html parsing function.
5822
5823 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5824
5825 * biditype.h: Regenerate.
5826
5827 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5828
5829 * nsimage.m (ns_load_image): Check argument types.
5830
5831 * image.c: Remove all uses of gcpro.
5832 (xpm_load): Check all lisp types.
5833 (pbm_load): Likewise.
5834 (png_load): Likewise.
5835 (jpeg_load): Likewise.
5836 (tiff_load): Likewise.
5837 (gif_load): Likewise.
5838 (imagemagick_load_image): Likewise.
5839 (imagemagick_load): Likewise.
5840 (svg_load): Likewise.
5841 (gs_load): Likewise.
5842
5843 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5844
5845 * w32uniscribe.c (uniscribe_shape): Update commentary.
5846 Don't try to reorder grapheme clusters, since LGSTRING should always
5847 hold them in the logical order.
5848 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5849 return glyph codes in the logical order.
5850
5851 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5852
5853 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5854 (imagemagick_load_image): Fix type mismatch.
5855 (Fimagemagick_types): Likewise. Doc fix.
5856
5857 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5858
5859 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5860
5861 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5862
5863 * xselect.c: Remove declaration of cut-buffer objects and functions.
5864 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5865 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5866 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5867 (Fx_rotate_cut_buffers_internal): Remove.
5868 (syms_of_xselect): Remove defsubr of above.
5869 Remove intern of QCUT_BUFFERn.
5870
5871 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5872
5873 * cmds.c (Vblink_paren_function): Remove.
5874 (internal_self_insert): Make it insert N chars at a time.
5875 Don't call blink-paren-function.
5876 (Fself_insert_command): Adjust accordingly.
5877 (syms_of_cmds): Don't declare blink-paren-function.
5878
5879 2010-08-31 Kenichi Handa <handa@m17n.org>
5880
5881 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5882 characters.
5883
5884 * term.c (encode_terminal_code): Fix the previous change.
5885 (produce_glyphs): Don't set it->char_to_display here.
5886 Don't handle unibyte-display-via-language-environment here.
5887 (produce_special_glyphs): Set temp_it.char_to_display before
5888 calling produce_glyphs.
5889
5890 * xdisp.c (get_next_display_element): Set it->char_to_display
5891 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5892 characters.
5893 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5894 calling PRODUCE_GLYPHS.
5895 (append_space_for_newline): Save and store it->char_to_display.
5896 Set it->char_to_display before calling PRODUCE_GLYPHS.
5897 (extend_face_to_end_of_line): Set it->char_to_display before
5898 calling PRODUCE_GLYPHS.
5899 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5900 character to its byte value.
5901 (get_char_glyph_code): New function.
5902 (produce_stretch_glyph): Set it2.char_to_display too before
5903 calling x_produce_glyphs.
5904 (x_produce_glyphs): Simplify by using the same code for ASCII and
5905 non-ASCII characters. Don't set it->char_to_display here.
5906 Don't handle unibyte-display-via-language-environment here. For a
5907 character of no glyph, use font->space_width instead of FONT_WIDTH.
5908
5909 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5910
5911 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5912
5913 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5914
5915 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5916
5917 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5918
5919 * marker.c (Fcopy_marker): Make the first arg optional.
5920
5921 2010-08-30 Kenichi Handa <handa@m17n.org>
5922
5923 * composite.c (composition_update_it): Fix computing of
5924 cmp_it->width.
5925
5926 2010-08-29 Kenichi Handa <handa@m17n.org>
5927
5928 * term.c (encode_terminal_code): Encode byte chars to the
5929 corresponding bytes.
5930
5931 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5932
5933 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5934
5935 2010-08-26 Kenichi Handa <handa@m17n.org>
5936
5937 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5938 on calling composition_compute_stop_pos.
5939
5940 2010-08-25 Kenichi Handa <handa@m17n.org>
5941
5942 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5943 :otf.
5944
5945 * composite.c (composition_compute_stop_pos): Don't break
5946 composition at PT.
5947 (composition_reseat_it): Likewise. Fix calculation of character
5948 position starting a composition.
5949 (Fcomposition_get_gstring): Don't limit the number of components
5950 for automatic composition.
5951
5952 2010-08-25 Kenichi Handa <handa@m17n.org>
5953
5954 * composite.c (composition_compute_stop_pos): In forward search,
5955 pay attention to the possibility that some character after ENDPOS
5956 will be composed with charactrs before ENDPOS.
5957
5958 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5959
5960 * keyboard.c (command_loop_1): Don't clobber primary selection
5961 during handle-switch-frame (Bug#6872).
5962
5963 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5964
5965 * dbusbind.c: Accept UNIX domain sockets as bus address.
5966 (Fdbus_close_bus): New function.
5967 (Vdbus_registered_buses): New variable.
5968 (xd_initialize): Implement string as bus address.
5969 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5970 (Fdbus_get_unique_name, Fdbus_call_method)
5971 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5972 (Fdbus_method_error_internal, Fdbus_send_signal)
5973 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5974 check. This is done in xd_initialize_bus. Adapt doc string, if
5975 necessary.
5976 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5977 Vdbus_registered_buses.
5978 (Vdbus_registered_objects_table): Create hash.
5979
5980 2010-08-22 Juri Linkov <juri@jurta.org>
5981
5982 * keyboard.c (Fexecute_extended_command): Move reading a command name
5983 with `completing-read' to a new Elisp function `read-extended-command'.
5984 Call it to read a command to `function' (bug#5364, bug#5214).
5985
5986 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5987
5988 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5989
5990 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
5991
5992 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5993 instead of SAFE_ALLOCA.
5994
5995 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5996
5997 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5998 (Bug#6214).
5999
6000 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6001
6002 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
6003
6004 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6005
6006 * doc.c (Fsnarf_documentation): Initialize skip_file before
6007 build-files test.
6008
6009 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
6010
6011 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
6012 New definitions.
6013 (HAVE_TERMIO): Remove.
6014
6015 2010-08-22 Eli Zaretskii <eliz@gnu.org>
6016
6017 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
6018
6019 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
6020 for w32.
6021
6022 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
6023 it's done in nt/config.nt.
6024
6025 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
6026
6027 * unexcoff.c (report_error, make_hdr, write_segment)
6028 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
6029 Convert argument lists and prototypes to ANSI C.
6030 (make_hdr, write_segment): Remove unused variables.
6031 (unexec): Remove commented-out line. Initialize `new' to shut up
6032 compiler warnings.
6033
6034 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
6035
6036 Simplify termio code.
6037 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
6038 HAVE_TERMIO code is obsolete.
6039 Replace HAVE_TERMIOS conditionals with !DOS_NT.
6040 * systty.h: Do not define HAVE_TCATTR.
6041 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
6042 Do not define EMACS_HAVE_TTY_PGRP. Only define
6043 EMACS_GET_TTY_PGRP for !DOS_NT.
6044 * sysdep.c: Include sysselect.h unconditionally. Do not include
6045 sys/ioctl.h and termios.h, systty.h does it.
6046 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
6047 (init_baud_rate): Remove HAVE_TERMIO code.
6048 (child_setup_tty): Remove HAVE_TERMIO code.
6049 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
6050 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
6051 (new_ltchars, new_tchars): Remove, unused.
6052 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
6053 code. Remove special casing for __mips__, it was a no-op.
6054 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
6055 (init_sys_modes): Remove HPUX special case.
6056 * process.c: Include stdlib.h unconditionally. Do not include
6057 fcntl.h, systty.h does it. Remove conditional code for
6058 HAVE_SERIAL, it is always true.
6059 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
6060 always true when SIGNALS_VIA_CHARACTERS is true.
6061 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
6062 !WINDOWSNT means HAVE_TERMIOS.
6063 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
6064 conditional, which is true for all HAVE_TERMIOS systems.
6065 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
6066 instead of HAVE_TERMIOS.
6067 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
6068 EMACS_HAVE_TTY_PGRP.
6069 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
6070 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
6071 anyway.
6072
6073 2010-08-21 Eli Zaretskii <eliz@gnu.org>
6074
6075 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
6076 mirroring pixel positions.
6077
6078 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
6079
6080 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
6081 write only.
6082 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
6083 malloc_sbrk_used, nothing uses them.
6084
6085 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
6086 defined, unconditionally defined in lisp.h.
6087
6088 * term.c: Do not include <termios.h>, systty.h does it.
6089
6090 * s/unixware.h (HAVE_TCATTR):
6091 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
6092 systty.h defines it when HAVE_TERMIOS is defined.
6093
6094 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6095
6096 * dispnew.c (buffer_posn_from_coords): Fix last change for text
6097 terminals: add one-character offset for R2L lines.
6098
6099 * emacs.c <emacs_version>: Add a comment regarding
6100 msdos/mainmake.v2's dependency on the syntax of this declaration.
6101
6102 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6103
6104 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
6105 position for R2L lines by mirroring the pixel position wrt the
6106 text are box. Improve commentary.
6107
6108 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
6109
6110 * image.c (imagemagick_clear_image): Remove debugging output.
6111
6112 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6113
6114 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
6115 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
6116 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
6117 self-insert-face.
6118 (syms_of_cmds): Initialize the new vars.
6119
6120 2010-08-19 Jason Rumney <jasonr@gnu.org>
6121
6122 * w32menu.c (set_frame_menubar): Remove call to undefined function.
6123
6124 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
6125
6126 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
6127
6128 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
6129
6130 2010-08-18 Eli Zaretskii <eliz@gnu.org>
6131
6132 * xterm.c (x_draw_bar_cursor):
6133 * w32term.c (x_draw_bar_cursor): If the character under cursor is
6134 R2L, draw the bar cursor on its right rather than on its left.
6135
6136 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
6137
6138 * eval.c (Fdefmacro): Only obey one declaration.
6139
6140 * casefiddle.c (casify_region): Setup gl_state.
6141
6142 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6143
6144 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
6145
6146 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6147
6148 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
6149
6150 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
6151
6152 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
6153 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
6154 QPRIMARY => NXPrimaryPboard.
6155 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
6156 NXPrimaryPboard => QPRIMARY.
6157 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
6158 NXSecondaryPboard = SecondarySelection.
6159 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
6160
6161 2010-08-18 Joakim Verona <joakim@verona.se>
6162
6163 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
6164 defined:
6165 (imagemagick_image_p): New function to test for ImageMagic image.
6166 (imagemagick_load): New function to load ImageMagick image.
6167 (imagemagick_load_image): New function, helper for imagemagick_load.
6168 (imagemagick-types): New function.
6169 (Qimagemagick): New Lisp_object.
6170 (imagemagick-render-type): New variable, decides which renderer to use.
6171
6172 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
6173
6174 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
6175 is a string.
6176
6177 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
6178
6179 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
6180 x_set_tool_bar_position handler.
6181
6182 2010-08-17 Eli Zaretskii <eliz@gnu.org>
6183
6184 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
6185 x_set_tool_bar_position handler, needed to support changes from
6186 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
6187
6188 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
6189
6190 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
6191 declaration (Bug#6863).
6192 (syms_of_nsselect): Don't intern QPRIMARY.
6193
6194 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
6195
6196 * keyboard.h (QPRIMARY): Declare (Bug#6864).
6197
6198 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
6199
6200 * keyboard.c (command_loop_1): Avoid setting selection twice,
6201 since it's done in deactivate-mark as well.
6202 (Vselect_active_regions): Change default to t. Replace `lazy'
6203 with non-default value `only', meaning only set PRIMARY for
6204 temporarily active regions.
6205
6206 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
6207 select-active-regions.
6208
6209 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6210
6211 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
6212 isn't a string.
6213
6214 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
6215
6216 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
6217
6218 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6219
6220 * keyboard.c (parse_tool_bar_item): malloc buf.
6221 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
6222 new_lbl (Bug#6855).
6223
6224 2010-08-14 Eli Zaretskii <eliz@gnu.org>
6225
6226 * xterm.c (x_draw_stretch_glyph_string):
6227 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
6228 the cursor on the right edge of the stretch glyph.
6229
6230 * xdisp.c (window_box_right_offset, window_box_right):
6231 Fix commentary.
6232
6233 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6234 direction when point is inside a run of whitespace characters.
6235
6236 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6237
6238 2010-08-14 Jason Rumney <jasonr@gnu.org>
6239
6240 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6241
6242 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
6243
6244 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6245
6246 2010-08-13 Jason Rumney <jasonr@gnu.org>
6247
6248 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6249 (MessageBoxW_Proc): New function typedef.
6250 (unicode-message-box): New function pointer.
6251 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
6252
6253 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6254
6255 * frame.h (Qtool_bar_position): Declare.
6256
6257 * xfns.c (Fx_create_frame): Call x_default_parameter for
6258 Qtool_bar_position.
6259
6260 2010-08-13 Eli Zaretskii <eliz@gnu.org>
6261
6262 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6263 (report_error, report_error_1): Ditto.
6264 (write_segment): Remove "#if 0" unused code.
6265 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6266 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6267 (start_of_text): Remove unused function (was used only if NO_REMAP
6268 was NOT defined).
6269
6270 * msdos.c (IT_set_face): Fix format string to match argument
6271 types.
6272 (IT_write_glyphs, IT_note_mode_line_highlight)
6273 (IT_set_frame_parameters): Remove unused variables.
6274 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6275 (IT_set_terminal_modes): Disambiguate expression in if clause.
6276 (Fmsdos_remember_default_colors): Return Qnil.
6277 (IT_set_frame_parameters): Add parens to disambiguate boolean
6278 expression for logging the cursor type to termscript.
6279 (keyboard_layout_list, keypad_translate_map)
6280 (grey_key_translate_map): Add braces in inner initializers.
6281 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6282 (dos_rawgetc): Remove unused label.
6283 (XMenuActivate): Add braces to remove ambiguous `else'.
6284 (dos_ttraw): Always return a value.
6285 (spawnve): Declare.
6286 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6287
6288 * dosfns.h (x_set_title): Declare.
6289
6290 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6291 Remove unused variables.
6292
6293 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6294 variables.
6295 (init_dosfns): Declare get_lim_data.
6296 (system_process_attributes): Declare Fget_internal_run_time.
6297
6298 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6299 list to be consistent with menu.h.
6300
6301 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6302 warnings due to mixing of "char *" and "const char *".
6303
6304 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6305
6306 Introduce a new comment style "c" flag.
6307 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6308 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6309 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6310 (syntax_prefix_flag_p): New function.
6311 (Fstring_to_syntax): Understand new "c" flag.
6312 (Finternal_describe_syntax_value): Recognize new flag; use the
6313 SYNTAX_FLAGS_* macros.
6314 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6315 comment style to accomodate the new styles.
6316 (back_comment, forw_comment, Fforward_comment, scan_lists)
6317 (scan_sexps_forward): Update code to obey the new comment style flag.
6318
6319 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6320
6321 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6322
6323 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6324
6325 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6326 first.
6327 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
6328
6329 * gtkutil.h (xg_check_special_colors): Declare.
6330
6331 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6332 (xg_create_frame_widgets): Connect theme name changes to
6333 style_changed_cb.
6334
6335 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6336 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6337 (x_term_init): Use char[] display_opt and name_opt instead of
6338 string literal. file is const char*.
6339
6340 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6341 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6342 props. Free them at the end.
6343
6344 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6345
6346 * xrdb.c (get_system_app): Make path const and use char *p for
6347 non-const char.
6348
6349 * xmenu.c (Fx_popup_dialog): error_name is const char*.
6350 (xmenu_show): error parameter is const char **. pane_string is const
6351 char *.
6352 (button_names): Is const char *.
6353 (xdialog_show): error_name and pane_string is const.
6354
6355 * process.h (synch_process_death): Is const char*.
6356
6357 * w32menu.c (w32_menu_show):
6358 * nsmenu.m (ns_menu_show): error parameter is const char **.
6359
6360 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6361 is const char **.
6362
6363 * menu.c (Fx_popup_menu): error_name is const.
6364
6365 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6366 with unsigned char and XtPointer with void *.
6367
6368 * gtkutil.h: Replace widget_value with struct _widget_value.
6369 (enum button_type, struct _widget_value): Remove and use the one from
6370 keyboard.h.
6371
6372 * gtkutil.c (get_utf8_string): Always return an allocated string.
6373 Parameter is const.
6374 (create_dialog, xg_create_one_menuitem, create_menus)
6375 (xg_item_label_same_p, xg_update_menu_item): Free result from
6376 get_utf8_string.
6377 (xg_separator_p, xg_item_label_same_p): label is const.
6378
6379 * font.h (font_open_by_name): Make name const.
6380
6381 * font.c (font_open_by_name): Make name const.
6382
6383 * floatfns.c (matherr): Use a const char* variable for x->name.
6384
6385 * emacs.c (main): Pass char[] to putenv instead of literal.
6386
6387 * callproc.c (synch_process_death): Make const.
6388 (Fcall_process): Make signame const.
6389
6390 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6391 (addDisplayItemWithImage): Use const char*.
6392
6393 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6394 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6395
6396 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6397
6398 * keyboard.h (_widget_value): name, value and key are const char*.
6399
6400 * unexmacosx.c (unexec_error): Use const char *.
6401
6402 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6403
6404 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6405 (font_parse_name, font_open_by_name):
6406 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6407 (font_parse_name, font_open_by_name): Remove const.
6408
6409 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6410
6411 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6412 definition.
6413
6414 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6415 * m/amdx86-64.h: Likewise.
6416 * m/arm.h: Likewise.
6417 * m/hp800.h: Likewise.
6418 * m/ia64.h: Likewise.
6419 * m/ibmrs6000.h: Likewise.
6420 * m/ibms390.h: Likewise.
6421 * m/intel386.h: Likewise.
6422 * m/iris4d.h: Likewise.
6423 * m/m68k.h: Likewise.
6424 * m/macppc.h: Likewise.
6425 * m/mips.h: Likewise.
6426 * m/sh3.h: Likewise.
6427 * m/sparc.h: Likewise.
6428 * m/template.h: Likewise.
6429 * m/vax.h: Likewise.
6430 * m/xtensa.h: Likewise.
6431 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6432 WORDS_BIG_ENDIAN.
6433 * lisp.h: Likewise.
6434 * md5.c: Likewise.
6435 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6436
6437 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6438
6439 Use const char* instead of char*.
6440 Reduce the number of warnings with -Wwrite-strings.
6441 * xrdb.c (get_environ_db, get_system_name):
6442 * unexelf.c (find_section):
6443 * term.c (string_cost, string_cost_one_line, per_line_cost)
6444 (get_named_tty, init_tty):
6445 * sysdep.c (sys_subshell):
6446 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6447 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6448 * search.c (Freplace_match):
6449 * process.c (Fmake_network_process, send_process, init_process):
6450 * lread.c (Fload, init_lread):
6451 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6452 * keyboard.c (parse_tool_bar_item, struct event_head):
6453 * gtkutil.h (xg_get_font_name):
6454 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6455 (make_widget_for_menu_item, make_menu_item, create_menus)
6456 (xg_make_tool_item):
6457 * font.c (parse_matrix, font_parse_name):
6458 * floatfns.c (rounding_driver, float_error_fn_name):
6459 * filelock.c (get_boot_time_1, lock_file_1):
6460 * fileio.c (barf_or_query_if_file_exists, check_writable):
6461 * editfns.c (get_system_name, get_operating_system_release)
6462 (Fencode_time, Fset_time_zone_rule):
6463 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6464 * buffer.c (defvar_per_buffer): Use const.
6465
6466 2010-08-08 Kenichi Handa <handa@m17n.org>
6467
6468 * charset.c: Include <stdlib.h>.
6469 (struct charset_sort_data): New struct.
6470 (charset_compare): New function.
6471 (Fsort_charsets): New function.
6472 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6473
6474 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6475 number in CTEXT extended segment.
6476
6477 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6478
6479 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6480 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6481
6482 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6483
6484 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6485 (Fhash_table_size): Fix typos in docstrings.
6486 (Fmake_hash_table): Doc fix.
6487
6488 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6489
6490 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6491 Doc fix (bug#5625).
6492
6493 2010-08-08 Ken Brown <kbrown@cornell.edu>
6494
6495 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6496 the MSDOS definition.
6497
6498 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6499
6500 Use const char* instead of char*.
6501 * xterm.c (x_create_toolkit_scroll_bar):
6502 * xfont.c (xfont_list_pattern):
6503 * xfns.c (x_default_scroll_bar_color_parameter)
6504 (xic_create_fontsetname, x_default_font_parameter)
6505 (x_screen_planes):
6506 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6507 (store_mode_line_string, decode_mode_spec, display_string):
6508 * menu.c (digest_single_submenu):
6509 * keymap.h (initial_define_key, initial_define_lispy_key):
6510 * keymap.c (initial_define_key, initial_define_lispy_key):
6511 * image.c (image_error, image_keyword):
6512 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6513 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6514 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6515 (ftfont_list, ftfont_match):
6516 * frame.c (frame_parm_table):
6517 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6518 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6519 (font_add_log, font_deferred_log):
6520 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6521 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6522 (font_add_log, font_deferred_log):
6523 * emacs.c (argmatch):
6524 * dispextern.h (struct it):
6525 * coding.c (ENCODE_DESIGNATION):
6526 * charset.c (define_charset_internal): Use const.
6527
6528 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6529
6530 * xrdb.c: Remove include guard.
6531 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6532 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6533 realloc->xrealloc instead of using #defines.
6534
6535 2010-08-08 Eli Zaretskii <eliz@gnu.org>
6536
6537 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6538 * editfns.c (Fline_beginning_position, Fline_end_position):
6539 State in the doc strings that start and end of line are in the
6540 logical order.
6541
6542 * xdisp.c (display_line): Move the handling of overlay arrow after
6543 the call to find_row_edges. (Bug#6699)
6544
6545 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6546
6547 * keyboard.c (command_loop_1):
6548 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6549
6550 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6551
6552 * insdel.c (prepare_to_modify_buffer): Save active region text to
6553 Vsaved_region_selection.
6554
6555 * xselect.c (QPRIMARY): Move to keyboard.c.
6556
6557 * keyboard.c (Vselect_active_regions): Move from simple.el.
6558 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6559 (command_loop_1): Set window selection prior to deactivating the mark.
6560
6561 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
6562
6563 * alloc.c (lisp_malloc):
6564 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6565 * charset.h (emacs_mule_charset):
6566 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6567 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6568 (bitch_at_user):
6569 * lisp.h (Fcheck_coding_system, Fget_text_property)
6570 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6571 Remove duplicate declarations.
6572
6573 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6574
6575 * process.c: Simplify include logic.
6576
6577 * keyboard.h (quit_char): Add declaration.
6578 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6579 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6580 Add declarations.
6581 * sysdep.c:
6582 * w32.c: Remove the above declarations.
6583
6584 Remove extern declarations in .c files, .h files have them.
6585 * xterm.c:
6586 * xdisp.c:
6587 * msdos.c:
6588 * image.c:
6589 * gtkutil.c:
6590 * fileio.c:
6591 * eval.c: Remove declarations.
6592
6593 * frame.c (frame_params): Make const.
6594
6595 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6596
6597 * emacs.c (emacs_copyright, emacs_version): Make static.
6598 (Vinitial_window_system, Vauto_save_list_file_name)
6599 (Vinhibit_redisplay): Remove declarations.
6600 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6601 for AIX.
6602
6603 Use const for some arrays and functions.
6604 * xterm.h (xg_set_icon_from_xpm_data):
6605 * xfns.c (xg_set_icon_from_xpm_data):
6606 * term.c (fkeys):
6607 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6608 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6609 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6610 (frame.c frame_parms):
6611 * emacs-icon.h (gnu_xpm_bits):
6612 * callint.c (callint_argfuns): Use const.
6613
6614 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6615
6616 * sysdep.c: Move include term.h last of includes (Bug#6812).
6617
6618 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6619
6620 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6621
6622 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6623
6624 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6625
6626 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6627
6628 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6629
6630 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6631
6632 * xterm.h (x_get_focus_frame): Declare.
6633
6634 * keyboard.h (poll_for_input_1): Unconditionally declare.
6635
6636 * nsterm.h (x_set_menu_bar_lines): Declare.
6637
6638 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6639
6640 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6641
6642 * window.c: Include menu.h.
6643
6644 * unexmacosx.c (print_region_list, print_regions)
6645 (build_region_list, find_emacs_zone_regions)
6646 (unexec_regions_merge, read_load_commands, dump_it)
6647 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6648
6649 * term.c: Check HAVE_SYS_IOCTL_H.
6650
6651 * sysdep.c: Check HAVE_TERM_H.
6652
6653 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6654
6655 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6656 (ns_ring_bell, ns_defined_color, hide_hourglass)
6657 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6658 Convert to ANSI C prototypes.
6659 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6660 before code.
6661
6662 * nsterm.h : Include sysselect.h.
6663 (x_sync, x_get_focus_frame, x_set_mouse_position)
6664 (x_set_mouse_pixel_position, x_make_frame_visible)
6665 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6666 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6667 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6668 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6669 Declare.
6670
6671 * nsmenu.m (popup_activated, name_is_separator)
6672 (syms_of_nsmenu): Convert to ANSI C prototypes.
6673 (runMenuAt): Prototypes and move declarations before code.
6674
6675 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6676
6677 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6678 prototypes.
6679
6680 * nsfns.m (have_menus_p, ns_display_info_for_name)
6681 (x_set_cursor_type, ns_appkit_version_str)
6682 (ns_appkit_version_int, ns_do_applescript)
6683 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6684 (syms_of_nsfns): Convert to ANSI C prototypes.
6685
6686 * menu.h (x_set_menu_bar_line): Declare.
6687 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6688
6689 * lisp.h (fmod_float): Declare.
6690
6691 * image.c (xpm_scan, xpm_make_color_table_v)
6692 (xpm_put_color_table_v, xpm_get_color_table_v)
6693 (xpm_make_color_table_h, xpm_put_color_table_h)
6694 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6695 (xpm_load): Convert to ANSI C prototypes.
6696
6697 * emacs.c: Include nsterm.h if HAVE_NS.
6698
6699 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6700
6701 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6702
6703 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6704 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6705 (socket_options): Use const char* for name.
6706
6707 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6708
6709 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6710
6711 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6712 Don't declare xmalloc_widget_value and digest_single_submenu.
6713
6714 * w32font.c (Qlatin): Remove declaration.
6715
6716 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6717
6718 * dired.c (compile_pattern): Restore declaration.
6719
6720 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6721
6722 Remove extern declarations in .c files, .h files have them.
6723 * data.c:
6724 * dired.c:
6725 * editfns.c:
6726 * filelock.c:
6727 * fns.c:
6728 * font.c:
6729 * fontset.c:
6730 * frame.c:
6731 * fringe.c:
6732 * ftfont.c:
6733 * gtkutil.c:
6734 * indent.c:
6735 * keyboard.c:
6736 * keymap.c:
6737 * lread.c:
6738 * menu.c:
6739 * print.c:
6740 * search.c:
6741 * sound.c:
6742 * window.c:
6743 * xdisp.c:
6744 * xfaces.c:
6745 * xfns.c:
6746 * xfont.c:
6747 * xftfont.c:
6748 * xmenu.c:
6749 * xterm.c: Remove declarations.
6750
6751 Cleanup syssignal.h.
6752 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6753 (main_thread): Move down to remove #ifdef.
6754 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6755 Remove conditional definition following unconditional ones.
6756
6757 * lisp.h: Remove HAVE_SHM code, unused.
6758 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6759 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6760 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6761 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6762 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6763 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6764 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6765 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6766 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6767 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6768 (Qwindow_scroll_functions, Vafter_load_alist)
6769 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6770 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6771 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6772 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6773 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6774 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6775 (initial_argv, last_nonmenu_event, load_in_progress)
6776 (noninteractive_need_newline, scroll_margin): Add declarations.
6777
6778 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6779 Remove declarations, menu.h has them.
6780 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6781 (Vinput_method_function, Qinput_method_function)
6782 (Qevent_symbol_element_mask, last_event_timestamp):
6783 * dispextern.h (Voverflow_newline_into_fringe):
6784 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6785 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6786 (syms_of_w32font, syms_of_nsfont):
6787 * fontset.h (find_font_encoding, Qlatin):
6788 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6789 (Vtool_bar_mode, set_frame_menubar):
6790 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6791 * xterm.h (Qx_gtk_map_stock):
6792 * keymap.h (meta_prefix_char): Add declarations.
6793
6794 * term.c: Remove dead code.
6795
6796 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6797 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6798 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6799 which is what was there before BSD_PGRPS was removed.
6800
6801 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6802
6803 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6804
6805 * unexcoff.c: Renamed from unexec.c.
6806
6807 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6808
6809 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6810
6811 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6812
6813 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6814 (Bug#6744)
6815
6816 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6817
6818 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6819 to TRUE if depth of screen is < 16.
6820
6821 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6822 USE_GTK_TOOLTIP.
6823 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6824 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6825 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6826 USE_GTK_TOOLTIP.
6827 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6828
6829 * xterm.h (USE_GTK_TOOLTIP): New define.
6830 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6831
6832 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6833 to Control-D (Bug#6771).
6834
6835 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6836
6837 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6838 Wording by Drew Adams <drew.adams@oracle.com>.
6839
6840 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6841
6842 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6843 ttip_lbl.
6844
6845 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6846 calling gtk_widget_queue_draw.
6847 (x_free_frame_resources): Call xg_free_frame_widgets.
6848
6849 * xfns.c (x_gtk_use_system_tooltips): New variable.
6850 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6851 new gtkutil tooltip functions to show the tooltip.
6852 (Fx_hide_tip): Call xg_hide_tooltip.
6853 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6854
6855 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6856 (xg_show_tooltip, xg_hide_tooltip): Declare.
6857
6858 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6859 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6860 New functions.
6861 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6862 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6863 Remove code that is commented out.
6864
6865 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6866
6867 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6868
6869 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6870
6871 * xselect.c (x_own_selection): Use list4.
6872
6873 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6874
6875 * buffer.c (Qwindow): Do not define, already defined in data.c.
6876 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6877
6878 2010-07-29 Chad Brown <yandros@mit.edu>
6879
6880 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6881 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6882 * config.in: Undef HAVE_DIRENT_H.
6883 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6884 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6885
6886 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6887
6888 Rename s/usg5-4.h -> s/usg5-4-common.h.
6889 * s/usg5-4.h: Rename file to ...
6890 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6891 * s/unixware.h:
6892 * s/sol2-6.h:
6893 * s/irix6-5.h: Update includes accordingly.
6894
6895 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6896
6897 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6898
6899 * xterm.h (struct x_output): Add toolbar_top_height,
6900 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6901 Remove toolbar_height.
6902 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6903 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6904 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6905 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6906
6907 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6908
6909 * xfns.c (x_set_tool_bar_position): New function.
6910 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6911 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6912 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6913
6914 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6915 and FRAME_TOOLBAR_LEFT_WIDTH.
6916
6917 * gtkutil.h (xg_change_toolbar_position): Declare.
6918
6919 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6920 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6921 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6922 (xg_create_frame_widgets): Create a hobox for placing widgets
6923 vertically. Use gtk_box_pack_start.
6924 (xg_height_or_width_changed): Rename from xg_height_changed.
6925 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6926 (xg_update_frame_menubar, free_frame_menubar): Change to
6927 xg_height_or_width_changed.
6928 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6929 size correctly. Remove hardcoded 4, instead use handlebox size -
6930 toolbar size.
6931 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6932 size correctly. Use handlebox size + toolbar size as additional size.
6933 (xg_pack_tool_bar): POS is a new parameter.
6934 Set orientation of tool bar based on pos.
6935 Only make handlebox_widget if NULL.
6936 Check if tool bar goes to vbox or hbox depending on pos.
6937 (xg_update_tool_bar_sizes): New function.
6938 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6939 height, call xg_update_tool_bar_sizes instead.
6940 (free_frame_tool_bar): Remove from hbox or vbox depending on
6941 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6942 (xg_change_toolbar_position): New function.
6943
6944 * frame.h (struct frame): Add tool_bar_position.
6945 (Qbottom): Declare.
6946
6947 * frame.c (Qtool_bar_position): New variable.
6948 (make_frame): Set tool_bar_position to Qtop.
6949 (frame_parms): Add tool-bar-position.
6950 (x_report_frame_params): Store tool_bar_position.
6951 (x_set_fringe_width): Reset wm size hint after fringe changes.
6952
6953 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6954
6955 Make lisp_time_argument declaration work on all systems.
6956 * lisp.h (lisp_time_argument): Move declaration ...
6957 * systime.h (lisp_time_argument): ... here
6958 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6959
6960 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6961
6962 * vm-limit.c (POINTER): Add typedef for it.
6963 (start_of_data): Change return type from POINTER to char *.
6964
6965 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6966 HAVE_WINDOW_SYSTEM.
6967
6968 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6969
6970 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6971 Remove reference to __osf__, unused.
6972
6973 * mem-limits.h: Remove duplicated includes.
6974 (NULL): Remove definition, unused.
6975 (POINTER): Remove definition.
6976 (start_of_data): Use char* in prototype, as the function
6977 definition does.
6978
6979 Remove extern declarations from .c files, and them to .h files.
6980 * keyboard.h (Qhelp_echo, waiting_for_input)
6981 (input_available_clear_time, ignore_mouse_drag_p)
6982 (Vdouble_click_time, real_this_command, Vthis_original_command):
6983 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6984 (Voverriding_local_map_menu_flag):
6985 * lisp.h (Qinteractive_form, use_file_dialog)
6986 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6987 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6988 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6989 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6990 (Qfunction, debug_on_next_call, Qfield)
6991 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6992 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6993 (Qfile_directory_p, Qinsert_file_contents)
6994 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6995 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6996 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6997 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6998 (Qminibuffer_prompt)
6999 (Vtemporary_file_directory,char_ins_del_vector, Qface):
7000 * xterm.h (gray_bitmap_width, gray_bitmap_height)
7001 (gray_bitmap_bits, xic_create_fontsetname):
7002 * coding.h (Vtranslation_table_for_input): Add extern declarations.
7003
7004 * xsmfns.c (Vuser_login_name):
7005 * xrdb.c (Vdouble_click_time):
7006 * xfaces.c (xic_create_fontsetname):
7007 * w32select.c (waiting_for_input):
7008 * print.c (minibuffer_auto_raise):
7009 * msdos.c (Qhelp_echo):
7010 * macros.c (real_this_command):
7011 * keymap.c (Voverriding_local_map):
7012 * xterm.c (poll_for_input_1, gray_bitmap_width)
7013 (gray_bitmap_height, gray_bitmap_bits;
7014 * xmenu.c ( Voverriding_local_map)
7015 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
7016 (use_file_dialog, Xt_app_con):
7017 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
7018 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
7019 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
7020 (Qtool_bar_lines, ignore_mouse_drag_p):
7021 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
7022 (Qrear_nonsticky, nconc2):
7023 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
7024 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
7025 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
7026 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
7027 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
7028 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
7029 (gc_in_progress):
7030 * doc.c (Voverriding_local_map, Qremap):
7031 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
7032 (Vcompletion_regexp_list):
7033 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
7034 (Qcompletion_ignore_case):
7035 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
7036 (Vhistory_length, Vthis_original_command, real_this_command)
7037 (Qface, Qminibuffer_prompt, history_delete_duplicates):
7038 * image.c (Qrisky_local_variable):
7039 * fontset.c (QCname):
7040 * fns.c (minibuffer_auto_raise, QCname):
7041 * dispnew.c (char_ins_del_cost):
7042 * composite.c (font_fill_lglyph_metrics):
7043 * cmds.c (Qface, Vtranslation_table_for_input):
7044 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
7045 * ccl.c (charset_unicode):
7046 * callproc.c (Vtemporary_file_directory):
7047 * buffer.c (emacs_strerror): Remove extern declarations.
7048
7049 * data.c (Qwindow): Make non-static, used from other files too.
7050 * frame.c (validate_x_resource_name): Remove shadow definition for i.
7051
7052 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
7053 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
7054 * s/usg5-4.h (COFF):
7055 * s/template.h:
7056 * s/msdos.h (COFF, NO_REMAP):
7057 * s/ms-w32.h (NO_REMAP):
7058 * s/hpux10-20.h (NO_REMAP):
7059 * m/sparc.h (SEGMENT_MASK):
7060 * m/m68k.h (NO_REMAP):
7061 * m/intel386.h (SEGMENT_MASK):
7062 * m/arm.h (NO_REMAP):
7063 * m/alpha.h (COFF):
7064 * m/template.h: Remove references to unused defines.
7065
7066 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
7067
7068 * xsettings.c (Ftool_bar_get_system_style): Also check for
7069 Qtext_image_horiz.
7070
7071 * xdisp.c (Qtext_image_horiz): Define.
7072 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
7073 to documentation of tool-bar-style.
7074
7075 * lisp.h (Qtext_image_horiz): Declare.
7076
7077 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
7078 style text_image_horiz.
7079
7080 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7081
7082 * emacs.c (Fkill_emacs): Remove return statement.
7083
7084 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
7085 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
7086 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
7087 Remove local extern declarations.
7088
7089 * xmenu.c: Do not included lwlib.h, not needed.
7090
7091 * m/iris4d.h (XUINT, XSET): Remove, not needed.
7092
7093 * process.c: Move definitions earlier to minimize #ifdefs.
7094
7095 * xterm.h (x_get_customization_string, x_load_resources)
7096 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
7097 (x_check_errors, x_property_data_to_lisp, defined_color)
7098 (xic_set_xfontset, x_defined_color): Use const.
7099
7100 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
7101 (x_text_icon, x_check_errors, x_connection_closed): Use const.
7102
7103 * xselect.c (selection_data_to_lisp_data)
7104 (x_property_data_to_lisp):
7105 * xrdb.c (x_get_string_resource, file_p)
7106 (x_get_customization_string, magic_file_p, search_magic_path)
7107 (get_system_app, get_user_app, x_load_resources, x_get_resource)
7108 (x_get_string_resource): Use const.
7109
7110 * xfns.c: Include xlwmenu.h when USE_LUCID.
7111 (x_defined_color, xic_set_xfontset): Use const.
7112 (Fx_hide_tip): Remove local extern declaration.
7113
7114 * xfaces.c (Qmouse_face): Remove declaration.
7115 (face_color_gray_p, tty_defined_color, defined_color)
7116 (face_color_gray_p, face_color_supported_p): Add const.
7117
7118 * xdisp.c (do_mouse_tracking): Remove declaration.
7119 (add_to_log): Use const.
7120
7121 * minibuf.c (Qmouse_face): Remove declaration.
7122
7123 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
7124
7125 * keyboard.h (do_mouse_tracking): Add declaration.
7126
7127 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
7128 (QCdata, QCtype, Qcenter): Remove declarations.
7129
7130 * frame.c (x_get_resource_string, x_get_string_resource)
7131 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7132 (x_default_parameter): Use const.
7133
7134 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
7135 (QCheight, QCsize, QCname): Remove declarations.
7136
7137 * emacs.c (main): Remove local extern declaration.
7138
7139 * editfns.c (region_limit, syms_of_editfns): Remove local extern
7140 declarations.
7141
7142 * dispnew.c: Remove duplicate #include <unistd.h>.
7143 (update_window, update_frame_1, init_display): Remove local extern
7144 declarations.
7145
7146 * dispextern.h (add_to_log): Remove declaration.
7147 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7148 (x_frame_get_and_record_arg, x_default_parameter): Add const.
7149
7150 * dired.c (scmp): Add const.
7151 (directory_files_internal): Remove local extern declaration.
7152
7153 * data.c (Finteractive_form): Use const.
7154
7155 * composite.c (syms_of_composite): Remove local extern declarations.
7156
7157 * charset.c (add_to_log): Remove declaration.
7158
7159 * character.c (strwidth, parse_str_to_multibyte): Add const.
7160
7161 * character.h (strwidth, parse_str_to_multibyte): Likewise.
7162
7163 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
7164
7165 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
7166 (Lisp_Subr): Make doc and intspec constant.
7167 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
7168 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
7169 (QCheight, QCsize, QCname, QCwidth, QCforeground)
7170 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
7171 (display_arg): Add declarations.
7172
7173 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
7174
7175 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
7176
7177 * window.c (Fwindow_height): Doc fix (bug#6518).
7178
7179 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
7180
7181 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
7182
7183 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
7184
7185 * keyboard.c (Ftop_level, Fexit_recursive_edit)
7186 (Fabort_recursive_edit): Remove return statements in NO_RETURN
7187 functions.
7188
7189 * frame.h (Qtty_color_mode): Add declaration.
7190
7191 * lisp.h (Ftop_level, Fexit_recursive_edit)
7192 (Fabort_recursive_edit): Mark as NO_RETURN.
7193
7194 2010-07-26 Kenichi Handa <handa@m17n.org>
7195
7196 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
7197 number of glyphs gets smaller than the original length. (Bug#6621)
7198
7199 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
7200
7201 * lread.c (unreadpure, mapatoms_1): Make static.
7202
7203 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7204
7205 * terminfo.c (tparam): Fix prototype of tparm.
7206
7207 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
7208
7209 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
7210 find start of text segment.
7211 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
7212 is defined.
7213
7214 * callproc.c (set_initial_environment): Avoid unbalanced braces.
7215
7216 2010-07-25 Ken Brown <kbrown@cornell.edu>
7217
7218 * vm-limit.c (check_memory_limits): Fix previous change;
7219 accidentally reverted an earlier change.
7220
7221 2010-07-25 Ken Brown <kbrown@cornell.edu>
7222
7223 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
7224 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
7225
7226 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7227
7228 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
7229 * dired.c (opendir, readdir): Fix prototypes.
7230 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7231 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7232 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7233 (telldir): Remove declaration.
7234 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7235 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7236 * syssignal.h (strsignal): Fix prototype.
7237 * term.c (tparam): Fix prototype.
7238 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7239 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7240 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7241 and __morecore.
7242 * w32gui.h (XParseGeometry): Fix prototype.
7243 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7244 * w32term.c (my_set_focus): Declare inside #if 0.
7245 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7246 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7247 (drain_message_queue, get_next_msg, post_msg, parse_button)
7248 (ClipboardSequence_Proc): Fix prototypes.
7249 (wait_for_sync): Remove declaration.
7250
7251 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
7252
7253 * w32fns.c (w32_to_x_color): Remove, unused.
7254
7255 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7256
7257 * lisp.h: Remove leftover P_.
7258
7259 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7260
7261 * ecrt0.c, unexalpha.c: Remove files, unused.
7262
7263 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7264
7265 * cmds.c (internal_self_insert): Make static.
7266 * lisp.h (internal_self_insert): Remove declaration.
7267
7268 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
7269
7270 * alloc.c (free_float):
7271 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7272 * frame.c (delete_frame_handler):
7273 * ralloc.c (reorder_bloc):
7274 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7275 Remove unused static functions.
7276
7277 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7278 it is called only from NS code.
7279
7280 * w32term.c (my_set_focus): #ifdef away; it is called only from
7281 "#ifdef 0" code.
7282
7283 * w32fns.c (x_edge_detection):
7284 * xfaces.c (may_use_scalable_font_p):
7285 Remove obsolete static declarations.
7286
7287 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
7288
7289 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7290 (emacs_blocked_realloc, uninterrupt_malloc):
7291 * fringe.c (w32_reset_fringes):
7292 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7293 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7294 * sound.c (be2hs, do_play_sound):
7295 * vm-limit.c (get_lim_data, ret_lim_data):
7296 * w32term.c (x_free_frame_resources):
7297 * xfaces.c (x_create_gc, x_free_gc):
7298 Convert definitions to standard C.
7299
7300 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7301
7302 * eval.c (Feval, Ffuncall): Use the new names.
7303
7304 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7305 (DEFUN): Add braces around the union initialisation and use ## to
7306 specify the right union alternative and avoid a cast.
7307
7308 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
7309
7310 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7311
7312 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
7313
7314 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7315
7316 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7317
7318 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7319 is related to the menu bar (Bug#6499).
7320 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
7321
7322 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7323
7324 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7325
7326 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7327
7328 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7329 i.e. don't put back ButtonRelease (Bug#6608).
7330
7331 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7332 instead of Window. Call xg_event_is_for_menubar when
7333 USE_GTK (Bug#6499).
7334
7335 * gtkutil.h (xg_event_is_for_menubar): Declare.
7336
7337 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7338
7339 2010-07-16 Eli Zaretskii <eliz@gnu.org>
7340
7341 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7342 when it's the same as the old foreground. (Bug#6609)
7343
7344 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7345
7346 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7347 widget is non-null (Bug#6645).
7348
7349 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7350
7351 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7352 Convert old-style definition.
7353
7354 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7355 timestamp argument.
7356
7357 2010-07-15 Eli Zaretskii <eliz@gnu.org>
7358
7359 * fringe.c (update_window_fringes): Restore mistakenly reverted
7360 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7361
7362 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7363
7364 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7365 (SET_SAVED_KEY_EVENT): Remove (not used).
7366 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7367 remove size parameter.
7368 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7369 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7370 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7371 ButtonRelease.
7372 (x_set_window_size_1): scroll_bar_actual_width is always
7373 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7374
7375 * xdisp.c (pending_menu_activation): Remove extern declaration.
7376 (prepare_menu_bars): Remove setting of pending_menu_activation.
7377
7378 * xmenu.c (pending_menu_activation): Remove.
7379 (x_activate_menubar): Set popup_activated_flag for Xt also.
7380 Remove setting of pending_menu_activation.
7381 (set_frame_menubar): Remove check of pending_menu_activation.
7382 Declare menubar_size before code. Correct spelling in comment.
7383
7384 2010-07-14 Kenichi Handa <handa@m17n.org>
7385
7386 * font.c (font_open_entity): Cancel previous change.
7387 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7388
7389 2010-07-13 Eli Zaretskii <eliz@gnu.org>
7390
7391 Remove subprocesses #ifdefs.
7392 * process.c <inhibit_sentinels>: Move to the common part.
7393 (Fwaiting_for_user_input_p): Move to the common part; return nil
7394 if async subprocesses aren't supported.
7395 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7396 MS-DOS. Remove "#ifdef subprocesses".
7397 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7398 (gettimeofday): Remove "#ifdef subprocesses".
7399 (wait_without_blocking): Remove function.
7400 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7401 Remove "#ifdef subprocesses".
7402 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7403 compiled on MS-DOS.
7404 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7405 wait_for_termination on MS-DOS.
7406 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7407 initialization of inhibit_sentinels.
7408 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7409 subprocesses" conditional.
7410 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7411 wait_for_termination, since `buffer' cannot be an integer when
7412 async subprocesses are not supported
7413 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7414 for ifdefing away the call to Fprocess_status.
7415
7416 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7417 away the entire body of the function.
7418
7419 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7420
7421 Remove subprocesses #ifdefs from term.c.
7422 * process.c (add_keyboard_wait_descriptor)
7423 (delete_keyboard_wait_descriptor): Move to common section, do
7424 nothing when subprocesses is not defined.
7425 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7426 Remove subprocesses #ifdefs.
7427
7428 Convert maybe_fatal to standard C.
7429 * lisp.h (verror): Declare.
7430 * eval.c (verror): New function containing the code from ...
7431 (error): ... this. Call verror.
7432 * term.c (vfatal): New function containing the code from ...
7433 (fatal): ... this. Call vfatal.
7434 (maybe_fatal): Convert to standard C, use variable number of
7435 arguments. Declare as non-return.
7436 (init_tty): Fix maybe_fatal call.
7437
7438 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7439
7440 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7441 (_scroll_bar_note_movement): Convert definitions to standard C.
7442 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7443 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7444
7445 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7446
7447 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7448 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7449 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7450 (xaw_jump_callback, xaw_scroll_callback)
7451 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7452 (x_wm_set_size_hint, x_activate_timeout_atimer):
7453 Convert definitions to standard C.
7454 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7455 (popup_activate_callback, popup_deactivate_callback)
7456 (menu_highlight_callback, menubar_selection_callback)
7457 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7458 (free_frame_menubar, popup_selection_callback, as)
7459 (create_and_show_popup_menu, dialog_selection_callback)
7460 (create_and_show_dialog):
7461 * xfns.c (hack_wm_protocols, x_window):
7462 * xfaces.c (x_update_menu_appearance):
7463 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7464 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7465 (set_frame_size, update_wm_hints, setup_frame_gcs)
7466 (update_various_frame_slots, update_from_various_frame_slots)
7467 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7468 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7469 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7470
7471 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7472
7473 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7474
7475 2010-07-12 Eli Zaretskii <eliz@gnu.org>
7476
7477 * process.c (setup_process_coding_systems): Move to the part
7478 shared by non-subprocesses systems, and make its body empty when
7479 subprocesses is not defined.
7480 (close_process_descs): Move to the part shared by non-subprocesses
7481 systems.
7482 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7483 ANSI C.
7484
7485 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7486
7487 * editfns.c (transpose_markers): Convert old-style definition.
7488 * emacs.c (abort, shut_down_emacs, fixup_locale)
7489 (synchronize_system_time_locale)
7490 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7491 * floatfns.c (extract_float, matherr, init_floatfns)
7492 (syms_of_floatfns): Likewise.
7493 * fns.c (make_hash_table): Likewise.
7494 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7495 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7496 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7497 (ftfont_variation_glyphs): Likewise.
7498 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7499 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7500 * lread.c (read_filtered_event): Likewise.
7501 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7502 * process.c (wait_reading_process_output): Likewise.
7503 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7504 * search.c (search_buffer, boyer_moore): Likewise.
7505 * syntax.c (scan_sexps_forward): Likewise.
7506 * xdisp.c (try_scrolling): Likewise.
7507 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7508 (face_at_string_position): Likewise.
7509 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7510 * xselect.c (x_get_window_property, receive_incremental_selection)
7511 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7512 Likewise.
7513 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7514
7515 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 * callproc.c (child_setup): Remove subprocesses conditional.
7518 Remove code dealing with SET_EMACS_PRIORITY, unused.
7519
7520 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7521 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7522
7523 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7524 (__do_global_dtors, __main): Use void in definition.
7525 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7526 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7527 the only users from ...
7528 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7529 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7530 (HAVE_VOLATILE): Remove, unused.
7531
7532 Convert more function definitions to standard C.
7533 * xdisp.c (window_box_edges, handle_single_display_spec)
7534 (display_string): Convert definition to standard C.
7535 * scroll.c (do_direct_scrolling, scrolling_1):
7536 * dispnew.c (allocate_matrices_for_frame_redisplay)
7537 (mirrored_line_dance):
7538 * coding.c (code_convert_string):
7539 * charset.c (map_charset_chars):
7540 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7541 (Fregister_ccl_program, Fregister_code_conversion_map):
7542 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7543 (head_table): Make static and const.
7544
7545 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7546
7547 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7548 (PROFILING_LDFLAGS): Set from substitution.
7549 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7550 CFLAGS last.
7551
7552 2010-07-12 Kenichi Handa <handa@m17n.org>
7553
7554 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7555 (shortlisp): Likewise.
7556
7557 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7558
7559 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7560 of FONT_ENTITY_INDEX.
7561 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7562 property, get the property value dynamically.
7563 (Ffont_put): Accept font-entity and font-object too.
7564 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
7565 return value changed.
7566 (syms_of_font): Adjust for the above change.
7567
7568 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7569
7570 * blockinput.h: Remove obsolete comment.
7571
7572 * lisp.h: Include <stddef.h>.
7573 (OFFSETOF): Don't define.
7574 (VECSIZE): Use offsetof instead of OFFSETOF.
7575 (PSEUDOVECSIZE): Likewise.
7576 * process.c (conv_sockaddr_to_lisp): Likewise.
7577 * alloc.c: Don't include <stddef.h>.
7578 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7579
7580 * process.c: Remove obsolete comment.
7581
7582 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
7583
7584 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7585
7586 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7587
7588 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7589 index, rindex.
7590 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7591 * editfns.c (Fuser_full_name, Fformat): Likewise.
7592 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7593 * fileio.c (Ffile_symlink_p): Likewise.
7594 * filelock.c (current_lock_owner): Likewise.
7595 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7596 * fontset.c (fontset_pattern_regexp): Likewise.
7597 * lread.c (read1): Likewise.
7598 * sysdep.c (init_system_name): Likewise.
7599 * xfns.c (select_visual): Likewise.
7600 * s/hpux10-20.h (index, rindex): Don't define.
7601 * s/ms-w32.h (index): Likewise.
7602 * s/usg5-4.h: Likewise.
7603
7604 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7605
7606 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7607 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7608 (egetenv): Likewise.
7609 * doprnt.c (doprnt): Likewise.
7610 * editfns.c (set_time_zone_rule, format2): Likewise.
7611 * emacs.c (decode_env_path): Likewise.
7612 * eval.c (signal_error, error): Likewise.
7613 * insdel.c (replace_range_2): Likewise.
7614 * keyboard.c (cmd_error_internal): Likewise.
7615 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7616 * print.c (write_string, write_string_1, print_error_message):
7617 Likewise.
7618 * vm-limit.c (warn_function, memory_warnings): Likewise.
7619 * xdisp.c (message1, message1_nolog, message_with_string)
7620 (vmessage, message, message_nolog): Likewise.
7621 * emacs.c: Remove duplicate declaration.
7622 * keyboard.h: Likewise.
7623 * lisp.h: Update prototypes.
7624
7625 * eval.c: Fix indentation problem.
7626
7627 * keyboard.c: Include "process.h".
7628
7629 * eval.c: Remove obsolete noinline declaration.
7630 * fns.c: Likewise.
7631
7632 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7633
7634 * doprnt.c (doprnt): Take a va_list argument instead of count and
7635 pointer.
7636 * eval.c (error): Change to a standard-C variadic function.
7637 * xdisp.c (vmessage): Rename from message, made static, and
7638 changed to take a va_list argument.
7639 (message): New variadic wrapper.
7640 (message_nolog): Now a variadic function, calling vmessage.
7641 * lisp.h: Include stdarg.h for va_list.
7642 (doprnt, error, message, message_nolog): Decls updated.
7643
7644 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7645
7646 * process.c (syms_of_process) <delete-exited-processes>: Define
7647 even if !subprocesses.
7648 (delete_exited_processes): Ditto.
7649
7650 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7651 (delete_exited_processes): Don't define.
7652
7653 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7654
7655 * frame.c (make_frame): Initialize menu_bar_lines and
7656 tool_bar_lines members.
7657 (make_initial_frame, make_terminal_frame):
7658 Initialize menu_bar_lines using value of menu-bar-mode.
7659
7660 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7661
7662 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7663
7664 * process.c: Reshuffle #include's. Condition some of the global
7665 and static variables on `subprocesses'.
7666 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7667 Leave only one implementation.
7668 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7669 (kill_buffer_processes, Flist_system_processes)
7670 (Fprocess_attributes, init_process, syms_of_process): Unify the
7671 implementations for with subprocesses and without them.
7672
7673 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7674
7675 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7676 correct size for Motif.
7677 (free_frame_menubar): Call x_set_window_size to update frame size.
7678
7679 * xfns.c (x_window): Set borderWidth to 0 for pane and
7680 EmacsFrame. Frame size calculation is wrong otherwise.
7681
7682 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7683
7684 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7685 allows to suppress errors when polling in Emacs' main loop.
7686 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7687 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7688 (Fdbus_method_error_internal, Fdbus_send_signal)
7689 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7690 (Fdbus_register_method): Use it. (Bug#6579)
7691
7692 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7693
7694 * alloc.c: Convert DEFUNs to standard C.
7695 * buffer.c:
7696 * bytecode.c:
7697 * callint.c:
7698 * callproc.c:
7699 * casefiddle.c:
7700 * casetab.c:
7701 * category.c:
7702 * character.c:
7703 * charset.c:
7704 * chartab.c:
7705 * cmds.c:
7706 * coding.c:
7707 * composite.c:
7708 * data.c:
7709 * dbusbind.c:
7710 * dired.c:
7711 * dispnew.c:
7712 * doc.c:
7713 * dosfns.c:
7714 * editfns.c:
7715 * emacs.c:
7716 * eval.c:
7717 * fileio.c:
7718 * filelock.c:
7719 * floatfns.c:
7720 * fns.c:
7721 * font.c:
7722 * fontset.c:
7723 * frame.c:
7724 * fringe.c:
7725 * image.c:
7726 * indent.c:
7727 * insdel.c:
7728 * keyboard.c:
7729 * keymap.c:
7730 * lread.c:
7731 * macros.c:
7732 * marker.c:
7733 * menu.c:
7734 * minibuf.c:
7735 * msdos.c:
7736 * nsfns.m:
7737 * nsmenu.m:
7738 * nsselect.m:
7739 * print.c:
7740 * process.c:
7741 * search.c:
7742 * sound.c:
7743 * syntax.c:
7744 * term.c:
7745 * terminal.c:
7746 * textprop.c:
7747 * undo.c:
7748 * w16select.c:
7749 * w32console.c:
7750 * w32fns.c:
7751 * w32font.c:
7752 * w32menu.c:
7753 * w32proc.c:
7754 * w32select.c:
7755 * window.c:
7756 * xdisp.c:
7757 * xfaces.c:
7758 * xfns.c:
7759 * xmenu.c:
7760 * xselect.c:
7761 * xsettings.c:
7762 * xsmfns.c: Likewise.
7763
7764 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7765
7766 * process.c (kbd_is_on_hold, hold_keyboard_input)
7767 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7768
7769 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7770
7771 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7772 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7773 unless USE_LUCID.
7774
7775 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7776
7777 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7778 declaration.
7779
7780 Clean up include guards.
7781 * tparam.c: Remove include guards for config.h, string.h and code
7782 that assumes #ifndef emacs.
7783 * termcap.c:
7784 * unexalpha.c:
7785 * sysdep.c:
7786 * filemode.c:
7787 * filelock.c:
7788 * bidi.c: Likewise.
7789
7790 Remove prefix-args.c
7791 * prefix-args.c: Remove file.
7792 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7793 * Makefile.in (temacs${EXEEXT}): Remove references to
7794 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7795 (mostlyclean): Remove reference to prefix-args.
7796 (prefix-args): Remove.
7797
7798 Simplify cstart_of_data, start_of_code and related code.
7799 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7800 (start_of_data): Merge into start_of_data function.
7801 * sysdep.c (start_of_text): Remove. Move simplified versions of
7802 it in the only users: unexaix.c and unexec.c.
7803 (read_input_waiting): Remove local declaration of quit_char.
7804 (start, etext): Remove declarations.
7805 (start_of_data): Merge with the version in mem-limits.h and move
7806 to vm-limits.c.
7807 * vm-limit.c (start_of_data): Merged and simplified version of the
7808 code formerly in mem-limits.h and sysdep.c.
7809 * unexec.c (start): New declaration, moved from sysdep.c.
7810 (start_of_text): Simplified version of the code formerly in sysdep.c.
7811 * unexaix.c (start_of_text): Simplified version of the code
7812 formerly in sysdep.c.
7813 * m/alpha.h (HAVE_TEXT_START): Remove.
7814 (TEXT_START): Move ...
7815 * unexalpha.c (TEXT_START): ... here.
7816 * s/hpux10-20.h (TEXT_START): Remove.
7817 * s/darwin.h (TEXT_START):
7818 * m/mips.h (TEXT_START):
7819 * m/macppc.h (HAVE_TEXT_START):
7820 * m/m68k.h (TEXT_START):
7821 * m/iris4d.h (TEXT_START):
7822 * m/intel386.h (TEXT_START):
7823 * m/ibmrs6000.h (TEXT_START):
7824 * m/ia64.h (HAVE_TEXT_START):
7825 * s/msdos.h (TEXT_START): Likewise.
7826
7827 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7828
7829 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7830 (overrun_check_free, xstrdup, allocate_string)
7831 (allocate_string_data, compact_small_strings, Fmake_string)
7832 (make_unibyte_string, make_multibyte_string)
7833 (make_string_from_bytes, make_specified_string, make_float)
7834 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7835 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7836 memcpy, memmove, memset, memcmp.
7837 * atimer.c (start_atimer, set_alarm): Likewise.
7838 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7839 (mmap_realloc, init_buffer_once): Likewise.
7840 * callint.c (Fcall_interactively): Likewise.
7841 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7842 (getenv_internal_1): Likewise.
7843 * casefiddle.c (casify_object): Likewise.
7844 * ccl.c (ccl_driver): Likewise.
7845 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7846 * charset.c (load_charset_map_from_file)
7847 (load_charset_map_from_file, load_charset_map_from_vector)
7848 (Fdefine_charset_internal): Likewise.
7849 * cm.c (Wcm_clear): Likewise.
7850 * coding.c (decode_eol, decode_coding_object)
7851 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7852 * data.c (Faset): Likewise.
7853 * dired.c (directory_files_internal, file_name_completion_stat):
7854 Likewise.
7855 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7856 (clear_glyph_row, copy_row_except_pointers)
7857 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7858 (save_current_matrix, restore_current_matrix)
7859 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7860 (mirror_line_dance, scrolling_window): Likewise.
7861 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7862 Likewise.
7863 * doprnt.c (doprnt): Likewise.
7864 * editfns.c (Fuser_full_name, make_buffer_string_both)
7865 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7866 * emacs.c (sort_args): Likewise.
7867 * eval.c (Fapply, Ffuncall): Likewise.
7868 * fileio.c (Ffile_name_directory, make_temp_name)
7869 (Fexpand_file_name, search_embedded_absfilename)
7870 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7871 (auto_save_error): Likewise.
7872 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7873 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7874 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7875 (Fmake_hash_table): Likewise.
7876 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7877 * ftfont.c (ftfont_text_extents): Likewise.
7878 * getloadavg.c (getloadavg): Likewise.
7879 * image.c (define_image_type, make_image, make_image_cache)
7880 (x_create_x_image_and_pixmap, xbm_image_p)
7881 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7882 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7883 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7884 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7885 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7886 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7887 Likewise.
7888 * indent.c (scan_for_column, compute_motion): Likewise.
7889 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7890 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7891 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7892 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7893 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7894 (store_user_signal_events, menu_bar_items, tool_bar_items)
7895 (process_tool_bar_item, append_tool_bar_item)
7896 (read_char_minibuf_menu_prompt, read_key_sequence)
7897 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7898 Likewise.
7899 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7900 Likewise.
7901 * lisp.h (STRING_COPYIN): Likewise.
7902 * lread.c (Fload, read1, oblookup): Likewise.
7903 * msdos.c (Frecent_doskeys): Likewise.
7904 * nsfns.m (Fx_create_frame): Likewise.
7905 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7906 Likewise.
7907 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7908 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7909 Likewise.
7910 * nsmenu.m (ns_update_menubar): Likewise.
7911 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7912 * print.c (print_unwind, printchar, strout, print_string)
7913 (print_error_message): Likewise.
7914 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7915 (Fmake_network_process, Fnetwork_interface_list)
7916 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7917 (init_process): Likewise.
7918 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7919 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7920 Likewise.
7921 * scroll.c (do_scrolling, do_direct_scrolling)
7922 (scrolling_max_lines_saved): Likewise.
7923 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7924 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7925 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7926 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7927 (emacs_set_tty): Likewise.
7928 * term.c (encode_terminal_code, calculate_costs)
7929 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7930 Likewise.
7931 * termcap.c (tgetst1, gobble_line): Likewise.
7932 * termhooks.h (EVENT_INIT): Likewise.
7933 * tparam.c (tparam1): Likewise.
7934 * unexalpha.c (unexec): Likewise.
7935 * unexec.c (write_segment): Likewise.
7936 * unexmacosx.c (unexec_write_zero): Likewise.
7937 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7938 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7939 * w32font.c (w32font_list_family, w32font_text_extents)
7940 (w32font_list_internal, w32font_match_internal)
7941 (w32font_open_internal, compute_metrics, Fx_select_font):
7942 Likewise.
7943 * w32menu.c (set_frame_menubar, add_menu_item)
7944 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7945 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7946 * w32uniscribe.c (uniscribe_list_family): Likewise.
7947 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7948 * window.c (make_window, replace_window, set_window_buffer)
7949 (Fsplit_window): Likewise.
7950 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7951 (add_to_log, message3, x_consider_frame_title)
7952 (append_space_for_newline, extend_face_to_end_of_line)
7953 (decode_mode_spec_coding, init_glyph_string): Likewise.
7954 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7955 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7956 (face_attr_equal_p, make_realized_face, make_face_cache)
7957 (free_realized_faces, lookup_named_face, smaller_face)
7958 (face_with_height, lookup_derived_face)
7959 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7960 (Finternal_set_font_selection_order, realize_default_face)
7961 (compute_char_face, face_at_buffer_position)
7962 (face_for_overlay_string, face_at_string_position, merge_faces):
7963 Likewise.
7964 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7965 (Fx_window_property, x_create_tip_frame)
7966 (Fx_backspace_delete_keys_p): Likewise.
7967 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7968 (xfont_text_extents): Likewise.
7969 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7970 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7971 * xselect.c (x_queue_event, x_get_window_property)
7972 (receive_incremental_selection): Likewise.
7973 * xsmfns.c (x_session_check_input): Likewise.
7974 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7975 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7976 Likewise.
7977 * character.h (BCOPY_SHORT): Remove.
7978 * config.in: Regenerate.
7979 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7980 * emacs.c (main) [PROFILING]: Don't declare
7981 dump_opcode_frequencies.
7982 * lisp.h (safe_bcopy): Remove declaration.
7983 (memset) [!HAVE_MEMSET]: Declare.
7984 (memcpy) [!HAVE_MEMCPY]: Likewise.
7985 (memmove) [!HAVE_MEMMOVE]: Likewise.
7986 (memcmp) [!HAVE_MEMCMP]: Likewise.
7987 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7988 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7989 Don't define.
7990 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7991 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7992 (BCOPY_DOWNWARD_SAFE): Don't define.
7993 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7994 (memcpy) [!HAVE_MEMCPY]: Define.
7995 (memmove) [!HAVE_MEMMOVE]: Define.
7996 (memcmp) [!HAVE_MEMCMP]: Define.
7997
7998 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7999
8000 * process.c (kbd_is_on_hold): New variable.
8001 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
8002 New functions.
8003 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
8004 select on empty input mask.
8005 (init_process): Initialize kbd_is_on_hold to 0.
8006
8007 * process.h (hold_keyboard_input, unhold_keyboard_input)
8008 (kbd_on_hold_p): Declare.
8009
8010 * keyboard.c (input_available_signal): Declare.
8011 (kbd_buffer_nr_stored): New function.
8012 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
8013 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
8014 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
8015 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
8016 (tty_read_avail_input): If input is on hold, return.
8017 Don't read more that free slots in kbd_buffer (Bug#6571).
8018
8019 2010-07-07 Eli Zaretskii <eliz@gnu.org>
8020
8021 * msdos.h:
8022 * msdos.c:
8023 * dosfns.c:
8024 * w16select.c: Convert function definitions to ANSI C.
8025
8026 * msdos.h (ctrl_break_func, install_ctrl_break_check):
8027 Remove unused prototypes.
8028
8029 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8030
8031 * coding.c, sysdep.c: Convert some more functions to standard C.
8032
8033 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8034
8035 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
8036 (encode_coding_object): Use SPECPDL_INDEX.
8037 (syms_of_coding): Use DOS_NT.
8038
8039 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
8040
8041 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
8042
8043 Make the function member of Lisp_Subr use standard C prototypes.
8044 * lisp.h (struct Lisp_Subr): Use a union for the function member.
8045 (DECL_ALIGN): Add a cast for the function.
8046 * eval.c (Feval, Ffuncall): Use the proper type for each type
8047 function call.
8048
8049 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
8050
8051 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
8052 fringe face id, so face-remapping-alist works (Bug#6091).
8053
8054 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
8055
8056 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
8057 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
8058 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
8059
8060 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
8061
8062 * xterm.c (x_get_keysym_name): Change type of parameter to int.
8063 * lisp.h: Declare x_get_keysym_name.
8064 * keyboard.c (modify_event_symbol): Don't declare
8065 x_get_keysym_name here.
8066
8067 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
8068
8069 * ecrt0.c: Revert conversion to standard C.
8070
8071 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8072
8073 * vm-limit.c (memory_warnings):
8074 * keyboard.c (modify_event_symbol):
8075 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
8076 (round2, emacs_rint):
8077 * process.c (send_process, old_sigpipe): Convert function
8078 definitions and declarations to standard C.
8079
8080 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
8081
8082 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
8083 * xdisp.c: Convert function definitions to standard C.
8084
8085 * cm.c (cmputc): Arg C is now int, not char.
8086 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
8087
8088 2010-07-05 James Cloos <cloos@jhcloos.com>
8089
8090 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
8091
8092 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
8093 _NET_WM_ICON_NAME atoms.
8094
8095 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
8096 and _NET_WM_ICON_NAME properties, too, matching what is
8097 done in the Gtk+ case.
8098
8099 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
8100
8101 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
8102
8103 * xsmfns.c (SSDATA): New macro.
8104 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
8105 passed to strlen/strcpy/strcat.
8106 (create_client_leader_window): Surround with #ifndef USE_GTK.
8107 Cast 7:th arg to XChangeProperty to (unsigned char *).
8108
8109 * xsettings.c (something_changedCB, parse_settings)
8110 (apply_xft_settings): Reformat prototype.
8111 (something_changedCB, init_gconf): Remove unused variable i.
8112 (read_settings): Remove unused variable long_len.
8113
8114 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
8115 (xg_get_image_for_pixmap, create_dialog)
8116 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
8117 (menuitem_highlight_callback, make_menu_item)
8118 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
8119 (xg_create_scroll_bar, xg_update_scrollbar_pos)
8120 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
8121 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
8122 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
8123 (xg_tool_bar_item_expose_callback): Reformat prototype.
8124 (xg_update_menubar): GList *group => GSList *group.
8125 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
8126 before use.
8127 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
8128 to GTK_IMAGE (wimage).
8129
8130 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8131
8132 * atimer.c: Use "" instead of <> for local includes for
8133 consistency with the rest of the code.
8134
8135 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
8136 * xrdb.c (get_system_name):
8137 * window.c (shrink_windows):
8138 * syntax.c (forw_comment):
8139 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
8140 (ins_del_costs):
8141 * mem-limits.h (start_of_data):
8142 * lread.c (readevalloop):
8143 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
8144 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
8145 * frame.c (x_get_focus_frame):
8146 * floatfns.c (fmod_float):
8147 * fileio.c (choose_write_coding_system):
8148 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
8149 (malloc_initialize_hook, sort_args, synchronize_locale):
8150 * doprnt.c (doprnt):
8151 * dired.c (compile_pattern):
8152 * data.c (fmod_float):
8153 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
8154 (map_char_table_for_charset):
8155 * charset.c (define_charset_internal):
8156 * alloc.c (Fgarbage_collect): Convert declarations or definitions
8157 to standard C.
8158
8159 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
8160 Stefan Monnier <monnier@iro.umontreal.ca>
8161
8162 * lread.c (read1): Fix up last change to not mess up `c'.
8163
8164 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8165
8166 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
8167
8168 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8169
8170 Fix prototypes.
8171
8172 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
8173 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
8174 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
8175 arg, as required by internal_condition_case_1.
8176 * print.c (strout): Use const char* for arg PTR.
8177 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
8178 (analyse_first): Fix "const const".
8179 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
8180 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
8181 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
8182
8183 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
8184
8185 * alloc.c: Convert function definitions to standard C.
8186 * atimer.c:
8187 * bidi.c:
8188 * bytecode.c:
8189 * callint.c:
8190 * callproc.c:
8191 * casefiddle.c:
8192 * casetab.c:
8193 * category.c:
8194 * ccl.c:
8195 * character.c:
8196 * charset.c:
8197 * chartab.c:
8198 * cmds.c:
8199 * coding.c:
8200 * composite.c:
8201 * data.c:
8202 * dbusbind.c:
8203 * dired.c:
8204 * dispnew.c:
8205 * doc.c:
8206 * doprnt.c:
8207 * ecrt0.c:
8208 * editfns.c:
8209 * fileio.c:
8210 * filelock.c:
8211 * filemode.c:
8212 * fns.c:
8213 * font.c:
8214 * fontset.c:
8215 * frame.c:
8216 * fringe.c:
8217 * ftfont.c:
8218 * ftxfont.c:
8219 * gtkutil.c:
8220 * indent.c:
8221 * insdel.c:
8222 * intervals.c:
8223 * keymap.c:
8224 * lread.c:
8225 * macros.c:
8226 * marker.c:
8227 * md5.c:
8228 * menu.c:
8229 * minibuf.c:
8230 * prefix-args.c:
8231 * print.c:
8232 * ralloc.c:
8233 * regex.c:
8234 * region-cache.c:
8235 * scroll.c:
8236 * search.c:
8237 * sound.c:
8238 * strftime.c:
8239 * syntax.c:
8240 * sysdep.c:
8241 * termcap.c:
8242 * terminal.c:
8243 * terminfo.c:
8244 * textprop.c:
8245 * tparam.c:
8246 * undo.c:
8247 * unexelf.c:
8248 * window.c:
8249 * xfaces.c:
8250 * xfns.c:
8251 * xfont.c:
8252 * xftfont.c:
8253 * xgselect.c:
8254 * xmenu.c:
8255 * xrdb.c:
8256 * xselect.c:
8257 * xsettings.c:
8258 * xsmfns.c:
8259 * xterm.c: Likewise.
8260
8261 2010-07-03 Eli Zaretskii <eliz@gnu.org>
8262
8263 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8264 frames other than the initial one. Fix reversal of colors when
8265 `reverse' is specified in the frame parameters.
8266 Call update_face_from_frame_parameter instead of
8267 internal-set-lisp-face-attribute. Initialize screen colors from
8268 initial_screen_colors[] when f->default_face_done_p is zero,
8269 instead of depending on being called with default-frame-alist as
8270 the alist argument.
8271
8272 * xfaces.c (update_face_from_frame_parameter): Move out of
8273 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8274 with HAVE_WINDOW_SYSTEM.
8275
8276 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8277 to menu-bar-mode, if not set in the frame parameters or in
8278 default-frame-alist.
8279
8280 * w32console.c (sys_tputs): Adjust argument list to prototype in
8281 term.c.
8282
8283 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
8284
8285 * lisp.h (memory_warnings): Fix prototype.
8286
8287 * cm.h (evalcost): Fix prototype.
8288
8289 * cm.c (evalcost): Fix arg type.
8290
8291 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8292
8293 * term.c (term_clear_mouse_face, Fidentity):
8294 * syssignal.h (signal_handler_t):
8295 * lisp.h (memory_warnings):
8296 * coding.h (preferred_coding_system):
8297 * cm.h (evalcost):
8298 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8299
8300 2010-07-02 Eli Zaretskii <eliz@gnu.org>
8301
8302 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8303 from prototypes.
8304
8305 * msdos.h (load_pixmap): Don't define away.
8306
8307 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8308
8309 * lisp.h:
8310 * atimer.h: Remove define for P_.
8311
8312 * alloc.c: Remove __P and P_ from .c and .m files.
8313 * atimer.c:
8314 * buffer.c:
8315 * callint.c:
8316 * category.c:
8317 * charset.c:
8318 * chartab.c:
8319 * cm.c:
8320 * coding.c:
8321 * composite.c:
8322 * data.c:
8323 * dired.c:
8324 * dispnew.c:
8325 * doc.c:
8326 * editfns.c:
8327 * emacs.c:
8328 * eval.c:
8329 * fileio.c:
8330 * filelock.c:
8331 * fns.c:
8332 * font.c:
8333 * fontset.c:
8334 * frame.c:
8335 * ftfont.c:
8336 * ftxfont.c:
8337 * gmalloc.c:
8338 * gtkutil.c:
8339 * image.c:
8340 * indent.c:
8341 * intervals.c:
8342 * keyboard.c:
8343 * keymap.c:
8344 * lread.c:
8345 * marker.c:
8346 * menu.c:
8347 * minibuf.c:
8348 * print.c:
8349 * process.c:
8350 * scroll.c:
8351 * search.c:
8352 * sound.c:
8353 * strftime.c:
8354 * syntax.c:
8355 * sysdep.c:
8356 * term.c:
8357 * terminal.c:
8358 * textprop.c:
8359 * unexalpha.c:
8360 * w32console.c:
8361 * w32fns.c:
8362 * w32font.c:
8363 * w32menu.c:
8364 * w32term.c:
8365 * w32uniscribe.c:
8366 * window.c:
8367 * xdisp.c:
8368 * xfaces.c:
8369 * xfns.c:
8370 * xfont.c:
8371 * xftfont.c:
8372 * xmenu.c:
8373 * xselect.c:
8374 * xterm.c: Likewise.
8375
8376 Remove P_ and __P macros.
8377 * atimer.h: Remove P_ and __P macros.
8378 * buffer.h:
8379 * category.h:
8380 * ccl.h:
8381 * character.h:
8382 * charset.h:
8383 * cm.h:
8384 * coding.h:
8385 * composite.h:
8386 * dispextern.h:
8387 * disptab.h:
8388 * dosfns.h:
8389 * font.h:
8390 * fontset.h:
8391 * frame.h:
8392 * gtkutil.h:
8393 * indent.h:
8394 * intervals.h:
8395 * keyboard.h:
8396 * keymap.h:
8397 * lisp.h:
8398 * macros.h:
8399 * md5.h:
8400 * menu.h:
8401 * msdos.h:
8402 * nsterm.h:
8403 * puresize.h:
8404 * region-cache.h:
8405 * syntax.h:
8406 * syssignal.h:
8407 * systime.h:
8408 * termhooks.h:
8409 * w32font.h:
8410 * w32term.h:
8411 * widget.h:
8412 * window.h:
8413 * xgselect.h:
8414 * xsettings.h:
8415 * xterm.h: Likewise.
8416
8417 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8418
8419 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8420
8421 Cleanup old code.
8422 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8423 * syssignal.h: Remove code for Lynx, not supported anymore.
8424 * vm-limit.c: Remove unused code the depends on emacs not being
8425 defined and NO_LIM_DATA being defined.
8426 * mem-limits.h: Remove dead code.
8427
8428 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8429
8430 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8431
8432 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8433 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8434
8435 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8436 parameters, they are already absolute.
8437
8438 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8439 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8440
8441 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8442
8443 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8444 Update FRAME_TOOLBAR_HEIGHT.
8445
8446 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8447 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8448
8449 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
8450
8451 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8452 Don't check default-frame-alist.
8453
8454 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8455
8456 * process.c (create_process): Avoid using invalid file descriptors.
8457
8458 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8459
8460 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8461
8462 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8463 Improve documentation. Return font regardless of use_system_font.
8464 (syms_of_xsettings): Improve documentation for font-use-system-font.
8465
8466 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
8467
8468 * xfaces.c (realize_face): Garbage the frame if a face is removed
8469 (Bug#6593).
8470
8471 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8472
8473 * keyboard.c: Remove duplicate <setjmp.h>.
8474 (read_key_sequence): Remove volatile qualifiers.
8475
8476 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8477
8478 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8479 (struct glyph_row): New members left_fringe_offset and
8480 right_fringe_offset.
8481
8482 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8483 specially.
8484 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8485 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8486
8487 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8488 Take account of bitmap offset.
8489 (draw_window_fringes): Take account of window vscroll.
8490 (update_window_fringes): Likewise. Extend top-aligned top indicator
8491 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8492 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8493 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8494
8495 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8496
8497 * w32fns.c (Qtooltip): Declare.
8498 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8499
8500 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8501
8502 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8503 grab on just Press (Bug#6499).
8504
8505 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
8506
8507 * frame.c (Qtooltip): New var.
8508 (delete_frame): Use it. Fix faulty if statement. Don't update
8509 mode line for tooltip frames. Suggested by Martin Rudalics.
8510
8511 * xfns.c (x_create_tip_frame):
8512 * w32fns.c (x_create_tip_frame): Use it.
8513
8514 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8515
8516 * xftfont.c (xftfont_open): Check font width one by one also when
8517 spacing is dual.
8518
8519 * ftfont.c (ftfont_open): Ditto.
8520
8521 2010-06-30 Glenn Morris <rgm@gnu.org>
8522
8523 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8524
8525 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8526
8527 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8528 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8529 * s/darwin.h (SYSTEM_MALLOC):
8530 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8531
8532 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8533
8534 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8535 (ns_get_screen): Don't assign integer to f.
8536 (Fx_display_color_cells): Declarations before statements.
8537
8538 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8539
8540 * xfns.c (x_default_font_parameter): Remove got_from_system
8541 (Bug#6526).
8542
8543 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8544 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8545 New defines based on what configure finds.
8546
8547 * xterm.c (XTflash): Use gtk_widget_get_window.
8548 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8549 gtk_adjustment_get_page_size.
8550 (handle_one_xevent): Use gtk_widget_get_mapped.
8551 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8552 messages.
8553
8554 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8555
8556 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8557 HAVE_GTK_FILE_SELECTION_NEW.
8558
8559 * gtkutil.c (xg_display_open, xg_display_close):
8560 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8561 (xg_display_open): Return type is void.
8562 (gtk_widget_set_has_window)
8563 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8564 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8565 (gtk_adjustment_set_page_increment)
8566 (gtk_adjustment_get_step_increment): #define these if not found
8567 by configure.
8568 (remove_submenu): New define based on Gtk+ version.
8569 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8570 Use gtk_widget_get_window.
8571 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8572 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8573 (create_dialog): Use gtk_dialog_get_action_area and
8574 gtk_dialog_get_content_area.
8575 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8576 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8577 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8578 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8579 Use g_object_ref and g_object_unref.
8580 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8581 Use gtk_widget_get_sensitive.
8582 (xg_update_submenu): Use remove_submenu.
8583 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8584 properties instead to get old x and y position.
8585 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8586 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8587 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8588 (xg_get_tool_bar_widgets): New function.
8589 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8590 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8591 (toolbar_set_orientation): New #define based on if configure
8592 finds gtk_orientable_set_orientation.
8593 (xg_create_tool_bar): Call toolbar_set_orientation.
8594 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8595 instead of gtk_box_pack_start_defaults.
8596
8597 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
8598
8599 * cmds.c (Fdelete_backward_char): Move into Lisp.
8600
8601 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8602
8603 * s/freebsd.h (BSD4_2): Remove redundant definition.
8604 bsd-common.h defines it already.
8605
8606 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
8607
8608 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8609 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8610 tool-bar-mode, which are now set using these X resources at
8611 startup, to determine the defaults (Bug#2249).
8612
8613 * w32fns.c (Fx_create_frame):
8614 * nsfns.m (Fx_create_frame): Likewise.
8615
8616 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8617
8618 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8619
8620 * gtkutil.c (xg_update_scrollbar_pos):
8621 Avoid C99 mid-block variable declaration.
8622
8623 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8624
8625 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8626
8627 * gtkutil.h (xg_show_scroll_bar): Remove.
8628
8629 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8630 if height is less than scroll bar min size.
8631 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8632
8633 * xfns.c (x_default_font_parameter): Try to open font from system
8634 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8635
8636 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8637
8638 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8639
8640 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8641
8642 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8643 most-positive-fixnum, be extra accurate when scrolling window
8644 start, to avoid missing the cursor line.
8645
8646 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8647
8648 * xdisp.c (try_scrolling): Compute the limit for searching point
8649 in forward scroll from scroll_max, instead of an arbitrary limit
8650 of 10 screen lines.
8651 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8652 and
8653 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8654 for details.
8655
8656 2010-06-16 Glenn Morris <rgm@gnu.org>
8657
8658 * editfns.c (Fbyte_to_string): Pacify compiler.
8659
8660 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8661
8662 * lread.c (read1): Phase out old-style backquotes a bit more.
8663
8664 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8665
8666 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8667 bidimirror.h.
8668
8669 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8670
8671 * bidi.c (bidi_initialize): Remove explicit initialization of
8672 bidi_type_table; include biditype.h instead. Don't support
8673 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8674 (bidi_mirror_char): Use bidi_mirror_table.
8675
8676 * biditype.h: New file.
8677
8678 * bidimirror.h: New file.
8679
8680 * window.c (syms_of_window): Doc fix (bug#6409).
8681
8682 2010-06-12 Romain Francoise <romain@orebokech.com>
8683
8684 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8685 ediff-hook.
8686
8687 2010-06-10 Glenn Morris <rgm@gnu.org>
8688
8689 * editfns.c (Fbyte_to_string): Pacify compiler.
8690
8691 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8692
8693 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8694
8695 * alloc.c (Fmake_byte_code): Don't access undefined argument
8696 (Bug#6517).
8697
8698 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8699
8700 * xdisp.c (next_element_from_image): Ensure that after-strings are
8701 read the next time we hit handle_stop (Bug#1336).
8702
8703 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8704
8705 * lread.c (read1): Signal error if #s is not followed by paren.
8706
8707 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8710
8711 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8712
8713 2010-06-15 Glenn Morris <rgm@gnu.org>
8714
8715 * editfns.c (Fbyte_to_string): Pacify compiler.
8716
8717 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8718
8719 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8720 Check `object's type before accessing its guts.
8721
8722 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8723
8724 * s/usg5-4.h: Fix previous change.
8725 Suggested by Lawrence Mitchell <wence@gmx.li>
8726
8727 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8728
8729 * minibuf.c (Fall_completions): Add more checks.
8730
8731 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8732
8733 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8734
8735 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8736
8737 * lread.c (X_OK): Remove, unused.
8738
8739 * dispnew.c: Remove obsolete comment.
8740
8741 Remove INCLUDED_FCNTL.
8742 * xterm.c (INCLUDED_FCNTL):
8743 * callproc.c (INCLUDED_FCNTL):
8744 * alloc.c (INCLUDED_FCNTL):
8745 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8746 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8747
8748 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8749
8750 * window.c (Fselect_window): Move `record_buffer' up to the
8751 beginning of this function, so the buffer gets recorded
8752 even if the selected window does not change.
8753 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8754
8755 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8756
8757 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8758 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8759
8760 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8761
8762 Remove BSTRING related code, all platforms define it.
8763 * s/usg5-4.h (BSTRING): Remove definition.
8764 * s/template.h (BSTRING):
8765 * s/msdos.h (BSTRING):
8766 * s/ms-w32.h (BSTRING):
8767 * s/hpux10-20.h (BSTRING):
8768 * s/gnu-linux.h (BSTRING):
8769 * s/darwin.h (BSTRING):
8770 * s/cygwin.h (BSTRING):
8771 * s/bsd-common.h (BSTRING):
8772 * s/aix4-2.h (BSTRING): Likewise.
8773 * sysdep.c: Remove code depending on BSTRING not being defined.
8774
8775 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8776
8777 Remove obsolete macro BASE_LEADING_CODE_P.
8778 * character.h (BASE_LEADING_CODE_P): Remove.
8779 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8780 * buffer.c (Fset_buffer_multibyte):
8781 * indent.c (scan_for_column, compute_motion):
8782 * insdel.c (count_combining_before, count_combining_after):
8783 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8784
8785 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8786
8787 Turn `directory-sep-char' into a noop.
8788
8789 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8790 (DIRECTORY_SEP): Define unconditionally.
8791
8792 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8793
8794 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8795 call dostounix_filename directly.
8796
8797 * fileio.c (CORRECT_DIR_SEPS): Remove.
8798 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8799 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8800 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8801 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8802
8803 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8804 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8805
8806 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8807
8808 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8809 (Bug#6346)
8810
8811 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8812
8813 * ccl.c (Fccl_program_p): Fix typo in docstring.
8814
8815 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8816
8817 Move UNEXEC definition to autoconf.
8818 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8819 * s/sol2-10.h (UNEXEC):
8820 * s/irix6-5.h (UNEXEC):
8821 * s/hpux10-20.h (UNEXEC):
8822 * s/gnu-linux.h (UNEXEC):
8823 * s/darwin.h (UNEXEC):
8824 * s/cygwin.h (UNEXEC):
8825 * s/bsd-common.h (UNEXEC):
8826 * s/aix4-2.h (UNEXEC):
8827 * m/alpha.h (UNEXEC): Likewise.
8828 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8829
8830 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8831
8832 Remove obsolete pre-unicode2 macros.
8833 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8834 * composite.c (composition_reseat_it):
8835 * data.c (Faset):
8836 * fns.c (Ffillarray):
8837 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8838 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8839
8840 2010-06-03 Juri Linkov <juri@jurta.org>
8841
8842 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8843 (Fswitch_to_buffer): Remove unused variable `err'.
8844
8845 2010-06-03 Glenn Morris <rgm@gnu.org>
8846
8847 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8848
8849 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8850 now that AH_BOTTOM does it.
8851
8852 * m/hp800.h (HAVE_ALLOCA):
8853 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8854
8855 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8856 Remove NOT_C_CODE tests, it is always true now.
8857
8858 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8859
8860 Fix config.h includes.
8861 * xsettings.c:
8862 * xgselect.c:
8863 * nsterm.m:
8864 * nsselect.m:
8865 * nsimage.m:
8866 * nsfont.m:
8867 * nsfns.m:
8868 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8869 other files do.
8870
8871 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8872
8873 * s/sol2-6.h: Remove obsolete comments.
8874
8875 Remove unnecessary alloca.h includes.
8876 * keymap.c: Do not include alloca.h, config.h does that.
8877 * sysdep.c: Likewise. Do not define fwrite, not used.
8878
8879 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8880
8881 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8882 the HAVE_TERMIO where it belongs (bug#6149).
8883
8884 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8885
8886 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8887 of bug#6305).
8888
8889 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8890
8891 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8892 state is always cached (bug#6306).
8893
8894 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8895
8896 Fix cursor motion in bidi-reordered continued lines.
8897 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8898 only after finding point's row. Fix the logic. Rewrite the loop
8899 over continuation lines in bidi-reordered buffers.
8900 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8901 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8902
8903 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8904
8905 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8906
8907 2010-05-28 Kenichi Handa <handa@m17n.org>
8908
8909 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8910 Don't sheck SPEC if it is nil.
8911 (font_list_entities): Call font_delete_unmatched if
8912 Vface_ignored_fonts is non-nil. (Bug#6287)
8913
8914 2010-05-28 Glenn Morris <rgm@gnu.org>
8915
8916 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8917
8918 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8919
8920 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8921 whether to trash.
8922 (internal_delete_file, Frename_file): Callers changed.
8923 (delete_by_moving_to_trash): Doc fix.
8924 (Fdelete_directory_internal): Don't move to trash.
8925
8926 * callproc.c (delete_temp_file):
8927 * buffer.c (Fkill_buffer): Callers changed.
8928
8929 * lisp.h: Update prototype.
8930
8931 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8932
8933 * xdisp.c (redisplay_window): After redisplay, check if point is
8934 still valid before setting it (Bug#6177).
8935
8936 2010-05-27 Glenn Morris <rgm@gnu.org>
8937
8938 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8939 Convert comments to Makefile format.
8940
8941 * Makefile.in (bootstrap-clean): No more Makefile.c.
8942
8943 2010-05-26 Glenn Morris <rgm@gnu.org>
8944
8945 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8946 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8947
8948 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8949 Remove.
8950 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8951
8952 2010-05-26 Kenichi Handa <handa@m17n.org>
8953
8954 * composite.c (composition_compute_stop_pos): Fix condition for
8955 backward scanning.
8956
8957 2010-05-25 Glenn Morris <rgm@gnu.org>
8958
8959 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8960 Move before TEMACS_LDFLAGS.
8961 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8962 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8963
8964 * Makefile.in (NOT_C_CODE): No longer define.
8965 (config.h): No longer include.
8966
8967 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8968 variables it may reference.
8969
8970 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8971 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8972
8973 2010-05-25 Kenichi Handa <handa@m17n.org>
8974
8975 * dispextern.h (struct composition_it): New members rule_idx and
8976 charpos.
8977
8978 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8979 that the character positions of IT point the last character of the
8980 current grapheme cluster.
8981 (next_element_from_composition): Don't change character positions
8982 of IT.
8983 (append_composite_glyph): Set glyph->charpos to
8984 it->cmp_it.charpos.
8985
8986 * composite.c (autocmp_chars): Change the first argument to RULE,
8987 and try composition with RULE only.
8988 (composition_compute_stop_pos): Record the index number of the
8989 composition rule in CMP_IT->rule_idx.
8990 (composition_reseat_it): Call autocmp_chars repeatedly until the
8991 correct rule of the composition is found.
8992 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8993 is at the last character of the current grapheme cluster when
8994 CMP_IT->reversed_p is nonzero.
8995
8996 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8997
8998 * editfns.c (Fbyte_to_string): New function.
8999
9000 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
9001
9002 * process.c (Fmake_network_process): Set :host to nil if it's not used.
9003 Suggested by Masatake YAMATO <yamato@redhat.com>.
9004
9005 2010-05-23 Eli Zaretskii <eliz@gnu.org>
9006
9007 * dispextern.h (init_iterator): Sync prototype with changed definition.
9008
9009 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
9010
9011 * s/netbsd.h: If terminfo is found, use it in preference to
9012 termcap. (Bug#6190) [Backport from trunk]
9013
9014 2010-05-19 Eli Zaretskii <eliz@gnu.org>
9015
9016 Redesign and reimplement bidi-aware edge positions of glyph rows.
9017
9018 * dispextern.h (struct glyph_row): New members minpos and maxpos.
9019 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
9020 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
9021 and maxpos members instead of start.pos and end.pos, respectively.
9022
9023 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
9024 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
9025 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
9026 (try_window_reusing_current_matrix, try_window_id):
9027 Use ROW->minpos rather than ROW->start.pos.
9028 (init_from_display_pos, init_iterator): Use EMACS_INT for
9029 character and byte positions.
9030 (find_row_edges): Rename from find_row_end. Accept additional
9031 arguments for minimum and maximum buffer positions seen by
9032 display_line for this row. Don't use iterator to find the
9033 position following the maximum one; instead, increment the
9034 position found by display_line directly. Fix logic; eol_pos
9035 should be tested before the rest. Handle the case of characters
9036 delivered from display vector (bug#6036). Fix tests related to
9037 it->method. Handle the truncated_on_right_p rows.
9038 (RECORD_MAX_MIN_POS): New macro.
9039 (display_line): Use it to record the minimum and maximum buffer
9040 positions for glyphs in the row being assembled. Record the
9041 position of the newline that terminates the line. If word wrap is
9042 in effect, restore minimum and maximum positions seen up to the
9043 wrap point, when iterator returns to it.
9044 (try_window_reusing_current_matrix): Give up if in bidi-reordered
9045 row and cursor not already at point. Restore original pre-bidi
9046 code for unidirectional buffers.
9047
9048 * dispnew.c (increment_row_positions, check_matrix_invariants):
9049 Increment and check row->start.pos and row->end.pos, in addition
9050 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
9051
9052 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
9053 Display truncated_on_left_p and truncated_on_right_p flags.
9054 Formatting fixes.
9055 (pmtxrows): Display the ordinal number of each row. Don't display
9056 rows beyond the last one.
9057
9058 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
9059 it is not copied by bidi_copy_it.
9060
9061 2010-05-22 Eli Zaretskii <eliz@gnu.org>
9062
9063 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
9064 (Bug#6237)
9065
9066 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
9067
9068 * image.c (Fimage_flush): Rename from image-refresh.
9069
9070 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
9071
9072 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
9073 just one window.
9074
9075 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
9076 (clear_image_cache): If the number of cached images is unusually
9077 large, decrease the cache eviction delay (Bug#6230).
9078
9079 2010-05-21 Glenn Morris <rgm@gnu.org>
9080
9081 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
9082 Move these rules to ns.mk.
9083 * ns.mk: New file.
9084
9085 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
9086
9087 * Makefile.in (CANNOT_DUMP): New, set by configure.
9088 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
9089
9090 2010-05-20 Juri Linkov <juri@jurta.org>
9091
9092 * fileio.c (Fdelete_file): Change interative spec to use
9093 `read-file-name' like in `find-file-read-args' where the default
9094 value is `default-directory' instead of `buffer-file-name'.
9095 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
9096
9097 2010-05-20 Kevin Ryde <user42@zip.com.au>
9098
9099 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
9100 (Voverriding_terminal_local_map, Vsystem_key_alist)
9101 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
9102
9103 2010-05-20 Glenn Morris <rgm@gnu.org>
9104
9105 * Makefile.in (DEPDIR): New constant.
9106 (DEPFLAGS): Set with configure, not cpp.
9107 (MKDEPDIR): New, set by configure.
9108 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
9109 (clean): Use $DEPDIR.
9110 (deps_frag): Include from configure.
9111 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
9112 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
9113
9114 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
9115 Fix reallocation of the cache. (Bug#6210)
9116
9117 2010-05-19 Glenn Morris <rgm@gnu.org>
9118
9119 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
9120
9121 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
9122 (GNULIB_VAR): Remove.
9123 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
9124
9125 * m/ibms390x.h (LINKER):
9126 * m/macppc.h (LINKER) [GNU_LINUX]:
9127 * s/aix4-2.h (ORDINARY_LINK):
9128 * s/cygwin.h (LINKER):
9129 * s/darwin.h (ORDINARY_LINK):
9130 * s/gnu.h (ORDINARY_LINK):
9131 * s/netbsd.h (LINKER):
9132 * s/usg5-4.h (ORDINARY_LINK):
9133 Move to configure.
9134
9135 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
9136
9137 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
9138
9139 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
9140 prevent stack overflow if number of arguments is too large
9141 (Bug#6214).
9142
9143 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
9144
9145 * charset.c (load_charset_map_from_file): Don't call close after fclose.
9146
9147 2010-05-18 Glenn Morris <rgm@gnu.org>
9148
9149 * s/gnu-linux.h: Combine two conditionals.
9150
9151 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
9152 $(POST_ALLOC_OBJ).
9153
9154 * Makefile.in (RALLOC_OBJ): New, set by configure.
9155 (rallocobj): Replace with the previous variable.
9156 (otherobj): Use $RALLOC_OBJ.
9157
9158 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
9159 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
9160
9161 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
9162 (gmallocobj, vmlimitobj): Replace with previous two variables.
9163 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
9164
9165 2010-05-17 Glenn Morris <rgm@gnu.org>
9166
9167 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
9168 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
9169
9170 2010-05-16 Glenn Morris <rgm@gnu.org>
9171
9172 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
9173
9174 * Makefile.in (clean): Get rid of HAVE_NS conditional.
9175
9176 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
9177 trailing "/".
9178
9179 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
9180 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
9181
9182 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
9183 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
9184 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
9185 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
9186 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
9187
9188 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
9189 Remove ${STARTFLAGS}, nothing ever sets it.
9190
9191 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
9192
9193 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
9194
9195 2010-05-16 Glenn Morris <rgm@gnu.org>
9196
9197 * Makefile.in (LIBX_BASE): Always define.
9198
9199 * Makefile.in (LIBX_OTHER): Move out of cpp section.
9200
9201 * Makefile.in (LIBXT): Always define.
9202
9203 2010-05-15 Glenn Morris <rgm@gnu.org>
9204
9205 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
9206
9207 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
9208 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
9209
9210 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
9211
9212 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
9213 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
9214
9215 * emacs.c (main): Initialize initial-environment and
9216 process-environment before generating from env, not after.
9217
9218 Handle --version reasonably in CANNOT_DUMP configuration.
9219 * emacs.c (emacs_version, emacs_copyright): New string variables.
9220 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
9221 (syms_of_emacs): Defvar them, and initialize them from the C
9222 string variables.
9223 (main): If initialization hasn't been done, print initial version
9224 info from the C strings, instead of starting an interactive session.
9225
9226 2010-05-15 Eli Zaretskii <eliz@gnu.org>
9227
9228 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
9229 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
9230 (bidi_paragraph_init): Remove redundant assertion that we are at
9231 the beginning of a line after call to bidi_find_paragraph_start.
9232
9233 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9234 (syms_of_xdisp): Defsubr it.
9235
9236 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9237
9238 * Makefile.in: Fix MSDOS-related comments.
9239
9240 2010-05-15 Glenn Morris <rgm@gnu.org>
9241
9242 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9243 (really-lwlib, really-oldXMenu): Always define.
9244 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9245
9246 * Makefile.in: Simplify cpp conditional.
9247
9248 * Makefile.in (${ns_appdir}): Simplify using umask.
9249
9250 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9251
9252 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9253
9254 * eval.c (specbind): Remove left-over duplicate test.
9255 Disallow let-binding frame-local vars. Add comment.
9256
9257 2010-05-14 Eli Zaretskii <eliz@gnu.org>
9258
9259 Make the cache of bidi iterator states dynamically allocated.
9260 * bidi.c (bidi_cache_shrink): New function.
9261 (bidi_init_it): Call it.
9262 (bidi_cache_iterator_state): Enlarge the cache if needed.
9263
9264 * bidi.c (bidi_move_to_visually_next): Rename from
9265 bidi_get_next_char_visually. All callers changed.
9266
9267 2010-05-14 Kenichi Handa <handa@m17n.org>
9268
9269 * dispextern.h (struct composition_it): New member reversed_p.
9270
9271 * composite.c (composition_compute_stop_pos): Search backward if
9272 ENDPOS < CHARPOS.
9273 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9274 Set CMP_IT->reversed_p.
9275 (composition_update_it): Pay attention to CMP_IT->reversed_p.
9276
9277 * xdisp.c (set_iterator_to_next):
9278 Call composition_compute_stop_pos with negative ENDPOS if we are
9279 scanning backward. Call composition_compute_stop_pos if scan
9280 direction is changed.
9281 (next_element_from_buffer): Call composition_compute_stop_pos with
9282 negative ENDPOS if we are scanning backward.
9283 (next_element_from_composition): Pay attention to
9284 IT->cmp_it.reversed_p.
9285
9286 2010-05-14 Kenichi Handa <handa@m17n.org>
9287
9288 * font.c (font_range): Return the range for the font found at first.
9289
9290 2010-05-14 Glenn Morris <rgm@gnu.org>
9291
9292 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9293
9294 * Makefile.in (mktime, X11, register): Move undefs to configure.
9295
9296 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9297 (MSDOS_X_OBJ): New variable.
9298 (MSDOS_SUPPORT_REAL): New constant.
9299 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9300 (obj): Use MSDOS_X_OBJ.
9301 (lisp): Use MSDOS_SUPPORT as a variable.
9302
9303 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9304 (GPM_MOUSE_SUPPORT): Now it's a constant.
9305 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9306 not cpp.
9307
9308 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
9309 (ns_appresdir): Remove, unused.
9310
9311 * Makefile.in (SHELL): Move outside cpp section.
9312
9313 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9314
9315 2010-05-13 Glenn Morris <rgm@gnu.org>
9316
9317 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9318 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9319
9320 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9321 HAVE_WINDOW_SYSTEM must be too.
9322
9323 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9324 (lisp): Remove WINNT_SUPPORT.
9325
9326 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9327 Let configure set these variables (to empty) in this case as well.
9328
9329 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9330 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9331
9332 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9333 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9334 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9335 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9336 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
9337 the values output by configure.
9338 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9339
9340 2010-05-12 Glenn Morris <rgm@gnu.org>
9341
9342 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9343 (LINKER_WAS_SPECIFIED): Remove.
9344
9345 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9346 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9347 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9348 * s/cygwin.h (LIB_GCC):
9349 * s/freebsd.h (LIB_GCC):
9350 * s/gnu-linux.h (LIB_GCC):
9351 * s/msdos.h (LIB_GCC):
9352 * s/netbsd.h (LIB_GCC):
9353 Move to configure.
9354
9355 2010-05-11 Karel Klíč <kklic@redhat.com>
9356
9357 * ftfont.c: Fix incorrect parentheses of #if condition for
9358 definining M17N_FLT_USE_NEW_FEATURE.
9359
9360 2010-05-11 Glenn Morris <rgm@gnu.org>
9361
9362 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9363 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9364
9365 2010-05-10 Eli Zaretskii <eliz@gnu.org>
9366
9367 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9368 unibyte buffers. See
9369 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9370
9371 2010-05-10 Glenn Morris <rgm@gnu.org>
9372
9373 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9374 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9375 (LIBES): Use LIBS_SYSTEM as a variable.
9376 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9377 * s/aix4-2.h (LIBS_SYSTEM):
9378 * s/freebsd.h (LIBS_SYSTEM):
9379 * s/hpux10-20.h (LIBS_SYSTEM):
9380 * s/sol2-6.h (LIBS_SYSTEM):
9381 * s/unixware.h (LIBS_SYSTEM):
9382 Move to configure.
9383
9384 * s/aix4-2.h (MAIL_USE_LOCKF):
9385 * s/bsd-common.h (MAIL_USE_FLOCK):
9386 * s/darwin.h (MAIL_USE_FLOCK):
9387 * s/gnu-linux.h (MAIL_USE_FLOCK):
9388 * s/irix6-5.h (MAIL_USE_FLOCK):
9389 * s/template.h (MAIL_USE_FLOCK):
9390 Move to configure.
9391
9392 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
9393
9394 * Version 23.2 released.
9395
9396 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
9397
9398 * composite.c (autocmp_chars): Save point as marker before calling
9399 auto-composition-function (Bug#5984).
9400
9401 * lisp.h (restore_point_unwind): Add prototype.
9402
9403 * fileio.c (restore_point_unwind): Remove static attribute.
9404
9405 2010-05-08 Kenichi Handa <handa@m17n.org>
9406
9407 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9408 new feature of libotf and m17n-flt.
9409 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9410 Call OTF_check_features even if no specific feature is given.
9411 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9412 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9413 that OUT is NULL. Use OTF_drive_gsub_with_log and
9414 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9415 OTF_drive_gpos.
9416 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9417 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9418 Setup mflt_enable_new_feature and mflt_try_otf.
9419
9420 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9421
9422 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9423
9424 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9425 box and toolbar (Bug #6139).
9426 (xg_create_tool_bar): Remove comment (Bug #6139).
9427 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9428 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9429
9430 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
9431
9432 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9433 Update dependencies.
9434
9435 2010-05-08 Eli Zaretskii <eliz@gnu.org>
9436
9437 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9438 R2L lines.
9439
9440 2010-05-08 Glenn Morris <rgm@gnu.org>
9441
9442 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9443
9444 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9445 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9446 (termcapobj): Replace with TERMCAP_OBJ.
9447 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9448 (LIBES): Use LIBS_TERMCAP as a variable.
9449
9450 * s/freebsd.h (osreldate.h): No longer include, since this file
9451 does not use __FreeBSD_version any more.
9452
9453 * s/aix4-2.h (TERMINFO):
9454 * s/cygwin.h (TERMINFO):
9455 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9456 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9457 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9458 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9459 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9460 * s/irix6-5.h (TERMINFO):
9461 * s/netbsd.h (LIBS_TERMCAP):
9462 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9463 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9464 * s/usg5-4.h (TERMINFO):
9465 Move to configure.
9466
9467 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9468
9469 * eval.c (unbind_to): Don't unbind a local binding into the global
9470 binding when the local binding disappeared. Inversely, don't unbind
9471 a global binding into a newly created local binding.
9472 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9473 can specify the frame to use, when applicable. Adjust callers.
9474
9475 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
9476 Stefan Monnier <monnier@iro.umontreal.ca>
9477
9478 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9479
9480 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9481
9482 * w32fns.c: Include w32.h.
9483 (Fw32_shell_execute): Decode the error message before passing it
9484 to `error'. (Bug#6126)
9485
9486 * msdos.c (dos_set_window_size):
9487 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9488 instead of `XSYMBOL (foo)->value'.
9489
9490 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9491
9492 Fix the MS-DOS build, broken by autoconfiscation.
9493
9494 * Makefile.in: Don't use Make-style comments past the "start of
9495 cpp stuff" line.
9496 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9497
9498 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9499 edited directly by msdos/sed1v2.inp).
9500
9501 2010-05-07 Glenn Morris <rgm@gnu.org>
9502
9503 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9504 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9505 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9506 move out of cpp section.
9507 * s/freebsd.h (LD_SWITCH_SYSTEM):
9508 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9509 * s/netbsd.h (LD_SWITCH_SYSTEM):
9510 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9511
9512 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9513
9514 Define LIB_STANDARD and START_FILES using autoconf.
9515 * s/usg5-4.h (LIB_STANDARD):
9516 * s/netbsd.h (START_FILES):
9517 * s/irix6-5.h (LIB_STANDARD):
9518 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9519 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9520 * s/freebsd.h (START_FILES):
9521 * s/darwin.h (START_FILES):
9522 * s/cygwin.h (START_FILES):
9523 * s/aix4-2.h (LIB_STANDARD):
9524 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9525 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9526 autoconf, not cpp.
9527
9528 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9529
9530 Remove NEED_BSDTTY and NEED_UNISTD_H.
9531 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9532 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9533 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9534 <sys/ptyio.h> and <unistd.h>.
9535
9536 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9537
9538 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9539 * s/gnu.h (START_FILES): Remove empty definition.
9540
9541 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9542
9543 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9544
9545 2010-05-06 Glenn Morris <rgm@gnu.org>
9546
9547 * Makefile.in (CPP, LN_S): Remove unused variables.
9548
9549 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9550
9551 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9552
9553 2010-05-05 Lawrence Mitchell <wence@gmx.li>
9554
9555 * m/sparc.h: Fix typo in earlier change.
9556
9557 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9558
9559 Misc tweaks.
9560 * eval.c (Fdefvaralias): Remove unintended nested if.
9561 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9562
9563 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
9564
9565 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9566
9567 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9568
9569 Remove BSD_PGRPS.
9570 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9571 * s/gnu-linux.h (BSD_PGRPS): Remove.
9572 * term.c (dissociate_if_controlling_tty):
9573 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9574 (init_sys_modes, reset_sys_modes):
9575 * emacs.c (main):
9576 * callproc.c (Fcall_process, child_setup): Remove code depending
9577 on BSD_PGRPS.
9578
9579 Remove POSIX_SIGNALS.
9580 * s/usg5-4.h (POSIX_SIGNALS):
9581 * s/netbsd.h (POSIX_SIGNALS):
9582 * s/msdos.h (POSIX_SIGNALS):
9583 * s/ms-w32.h (POSIX_SIGNALS):
9584 * s/hpux11.h (POSIX_SIGNALS):
9585 * s/gnu.h (POSIX_SIGNALS):
9586 * s/gnu-linux.h (POSIX_SIGNALS):
9587 * s/freebsd.h (POSIX_SIGNALS):
9588 * s/darwin.h (POSIX_SIGNALS):
9589 * s/cygwin.h (POSIX_SIGNALS):
9590 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9591 * s/unixware.h:
9592 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9593 * process.c (create_process):
9594 * syssignal.h:
9595 * sysdep.c (wait_for_termination, init_signals):
9596 * process.c (create_process):
9597 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9598 remove all code that assumes the contrary.
9599
9600 2010-05-04 Glenn Morris <rgm@gnu.org>
9601
9602 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9603 variable.
9604 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9605 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9606 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9607 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9608 LD_SWITCH_SYSTEM_tmp.
9609 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9610 New variables, set by configure.
9611
9612 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9613 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9614 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9615 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9616 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9617
9618 * s/aix4-2.h (C_SWITCH_SYSTEM):
9619 * m/alpha.h (C_SWITCH_MACHINE):
9620 Move to configure.in.
9621 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9622 New variables, set by configure.
9623 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9624 $c_switch_machine and $c_switch_system.
9625
9626 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9627
9628 * s/hpux10-20.h (LIB_STANDARD): New definition.
9629 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9630 on it, not used anymore.
9631
9632 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9633
9634 * eval.c (internal_condition_case_n): Rename from
9635 internal_condition_case_2.
9636 (internal_condition_case_2): New function.
9637
9638 * xdisp.c (safe_call): Use internal_condition_case_n.
9639
9640 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9641 (internal_delete_file, Frename_file): Callers changed.
9642
9643 * buffer.c (Fkill_buffer):
9644 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9645
9646 * lisp.h: Update prototypes.
9647
9648 2010-05-03 Glenn Morris <rgm@gnu.org>
9649
9650 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9651 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9652 (LIBXT): Set with configure, not cpp.
9653 (LIBX): Remove.
9654 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9655
9656 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9657
9658 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9659 The FreeBSD is not needed, the default works, Solaris version is
9660 not needed, and the remaining case is not supported by configure.
9661
9662 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9663
9664 * xsmfns.c (CHDIR_OPT): New define.
9665 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9666 restarting emacs.
9667
9668 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9669 shut_down_emacs.
9670
9671 * emacs.c (USAGE1): Mention --chdir.
9672 (main): Handle --chdir.
9673 (standard_args): Add --chdir.
9674 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9675 #5552).
9676
9677 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9678
9679 Remove LD_SWITCH_MACHINE.
9680 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9681 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9682
9683 Clean up IRIX code.
9684 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9685 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9686
9687 Clean up AIX code.
9688 * m/ibmrs6000.inp: Remove file, unused.
9689 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9690 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9691 definition ...
9692 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9693
9694 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9695 unused.
9696
9697 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9698
9699 Emulate POSIX_SIGNALS on MS-Windows.
9700
9701 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9702 (SIG_SETMASK, SIG_UNBLOCK): Define.
9703
9704 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9705 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9706 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9707
9708 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9709 New stubs.
9710
9711 Miscellaneous fixes of bidi display.
9712
9713 * xdisp.c (find_row_end): New function, refactored from display_line.
9714 (display_line): Use it.
9715 (extend_face_to_end_of_line): In almost-filled rows, extend only
9716 if the row is R2L and not continued.
9717 (display_line): Fix prepending of truncation glyphs to R2L rows.
9718 Preserve overlay and string info in row->end.
9719 (insert_left_trunc_glyphs): Support addition of left truncation
9720 glyphs to R2L rows.
9721 (set_cursor_from_row): Don't place cursor on the vertical border
9722 glyph between adjacent windows. Fix a crash when a display string
9723 is continued to the next line. Don't return zero if cursor was
9724 found by `cursor' property of a display string.
9725 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9726 test for that explicitly.
9727
9728 2010-05-01 Glenn Morris <rgm@gnu.org>
9729
9730 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9731 for clarity.
9732 (OTHER_OBJ): Remove.
9733 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9734 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9735
9736 2010-05-01 Karel Klíč <kklic@redhat.com>
9737
9738 * fileio.c (Ffile_selinux_context): Context functions may return null.
9739
9740 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9741
9742 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9743
9744 2010-04-30 Glenn Morris <rgm@gnu.org>
9745
9746 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9747 (OTHER_OBJ): Define as a separate variable, for clarity.
9748
9749 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9750
9751 * xsettings.c: Include limits.h and update file comment.
9752
9753 2010-04-30 Glenn Morris <rgm@gnu.org>
9754
9755 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9756 Set with configure, not cpp.
9757 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9758
9759 * Makefile.in (mallocobj): Remove.
9760 (otherobj): Simplify using @OTHER_OBJ@.
9761
9762 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9763 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9764 Don't bother making nsgui.h dependency platform-specific.
9765
9766 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9767
9768 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9769
9770 * process.c (read_process_output, exec_sentinel): Don't burp if the
9771 sentinel/filter kills the current buffer (bug#6060).
9772
9773 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9774 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9775 Remove unused var `args'.
9776 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9777 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9778 * doc.c (store_function_docstring): Use XSETCAR.
9779
9780 2010-04-28 Glenn Morris <rgm@gnu.org>
9781
9782 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9783 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9784
9785 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9786
9787 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9788 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9789
9790 * Makefile.in (FONT_OBJ): New, set by configure.
9791 (FONT_DRIVERS): Use $FONT_OBJ.
9792
9793 * Makefile.in (LIBXMU): Set with configure, not cpp.
9794 * s/aix4-2.h (LIBXMU):
9795 * s/hpux10-20.h (LIBXMU):
9796 Remove definition, now set in configure.
9797
9798 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9799
9800 * m/amdx86-64.h [i386]: Move this test to configure.in.
9801
9802 2010-04-27 Glenn Morris <rgm@gnu.org>
9803
9804 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9805 * s/unixware.h (NEED_LIBW): Remove definition.
9806
9807 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9808 (TOOLKIT_LIBW): New, set by configure.
9809 (@X_TOOLKIT_TYPE@): No longer define it.
9810
9811 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9812 (MOTIF_LIBW): Set with configure, not cpp.
9813 * s/aix4-2.h (LIB_MOTIF):
9814 * s/gnu-linux.h (LIB_MOTIF):
9815 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9816
9817 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9818
9819 Reduce CPP usage.
9820 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9821 (obj): Use autoconf for unexec instead of cpp.
9822 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9823 Remove definitions and undefs. Inline definitions in the only user.
9824 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9825
9826 2010-04-27 Glenn Morris <rgm@gnu.org>
9827
9828 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9829 since the defaults (set by the system file) are fine in most cases.
9830 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9831 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9832 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9833 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9834 Remove definitions, since they are set correctly in s/gnu-linux.h.
9835 * s/freebsd.h (START_FILES, LIB_STANDARD):
9836 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9837 * s/hpux10-20.h (START_FILES):
9838 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9839 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9840
9841 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9842 (MOTIF_LIBW): Use $LIBXP.
9843 (otherobj): Use $WIDGET_OBJ.
9844
9845 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9846
9847 * Makefile.in (LIBS_MACHINE): Remove, unused.
9848
9849 Use autoconf instead of cpp for LIB_MATH.
9850 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9851 * s/cygwin.h (LIB_MATH): Likewise.
9852 * Makefile.in (LIB_MATH): Do not define with cpp.
9853 (LIBES): Use autoconf for LIB_MATH.
9854
9855 2010-04-26 Kenichi Handa <handa@m17n.org>
9856
9857 * composite.c (Ffind_composition_internal): Fix the return value
9858 for an automatic composition.
9859
9860 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9861
9862 Remove all NO_ARG_ARRAY uses.
9863 * fns.c (concat2, concat3, nconc2):
9864 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9865 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9866 * m/xtensa.h (NO_ARG_ARRAY):
9867 * m/template.h (NO_ARG_ARRAY):
9868 * m/sparc.h (NO_ARG_ARRAY):
9869 * m/sh3.h (NO_ARG_ARRAY):
9870 * m/mips.h (NO_ARG_ARRAY):
9871 * m/macppc.h (NO_ARG_ARRAY):
9872 * m/iris4d.h (NO_ARG_ARRAY):
9873 * m/intel386.h (NO_ARG_ARRAY):
9874 * m/ibms390x.h (NO_ARG_ARRAY):
9875 * m/ibms390.h (NO_ARG_ARRAY):
9876 * m/ibmrs6000.h (NO_ARG_ARRAY):
9877 * m/ia64.h (NO_ARG_ARRAY):
9878 * m/hp800.h (NO_ARG_ARRAY):
9879 * m/arm.h (NO_ARG_ARRAY):
9880 * m/amdx86-64.h (NO_ARG_ARRAY):
9881 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9882
9883 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9884
9885 * xdisp.c (display_line): Don't assume 2nd call to
9886 get_next_display_element cannot return zero. (Bug#6030)
9887 (iterate_out_of_display_property): New function, body from pop_it.
9888 (pop_it): Use it.
9889
9890 2010-04-24 Glenn Morris <rgm@gnu.org>
9891
9892 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9893 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9894 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9895 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9896
9897 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9898
9899 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9900 use `get_next_display_element' and `set_iterator_to_next' to
9901 advance to the next character, when looking for the character that
9902 begins the next row.
9903
9904 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9905 definition of "struct Lisp_Symbol".
9906
9907 2010-04-24 Glenn Morris <rgm@gnu.org>
9908
9909 * Makefile.in (CRT_DIR): New variable, set by configure.
9910 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9911 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9912
9913 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9914
9915 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9916
9917 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9918
9919 Remove redundant flags.
9920 * s/freebsd.h (C_SWITCH_SYSTEM):
9921 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9922 * s/netbsd.h (C_SWITCH_SYSTEM):
9923 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9924 of these.
9925
9926 Simplify m/intel386.h.
9927 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9928 user: ecrt0.c.
9929 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9930 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9931 the only user: s/unixware.h.
9932 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9933 from m/intel386.h.
9934 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9935 Definitions moved here from m/intel386.h.
9936
9937 * m/mips.h: Remove #if 0 code.
9938
9939 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9940
9941 Fix display of composed characters from L2R scripts in bidi buffers.
9942 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9943 After advancing IT past the composition, resync the bidi iterator
9944 with IT's position. (Bug#5977)
9945
9946 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9947
9948 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9949 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9950
9951 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9952
9953 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9954
9955 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9956
9957 Support `display' text properties and overlay strings in bidi buffers.
9958 * xdisp.c (pop_it): When the stack is popped after displaying
9959 from a string, bidi-iterate to exit from the text portion covered
9960 by the `display' property or overlay. (Bug#5988, bug#5920)
9961
9962 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9963
9964 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9965 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9966
9967 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9968 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9969
9970 Simplify STARTFILES definition.
9971 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9972 relying on Makefile.in to define it.
9973 * s/cygwin.h (START_FILES): Likewise.
9974 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9975
9976 Clean up Solaris code.
9977 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9978 (LIB_MOTIF): Remove, configure takes care of this.
9979 (NOT_USING_MOTIF): Remove, unused.
9980 * xrdb.c: Remove #if 0-ed #include.
9981 (SYSV): Remove conditional for old SysV.
9982 * sysdep.c (closedir): Remove conditional code for Solaris,
9983 Solaris has closedir.
9984
9985 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9986
9987 * xsettings.c (read_and_apply_settings): Check if current_font is
9988 NULL before strcmp (Bug#6001).
9989
9990 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9991
9992 Clean up HP-UX files.
9993 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9994 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9995 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9996 * s/hpux10-20.h: ... to the only user, here.
9997
9998 2010-04-21 Eli Zaretskii <eliz@gnu.org>
9999
10000 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
10001 use buffer-local values of paragraph-start and paragraph-separate.
10002 <paragraph_start_re, paragraph_separate_re>: Rename from
10003 fallback_paragraph_start_re and fallback_paragraph_separate_re.
10004 (Bug#5992)
10005
10006 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10007
10008 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
10009 current_tool_bar_style are new.
10010 (store_config_changed_event): Rename from store_font_changed_event.
10011 (XSETTINGS_TOOL_BAR_STYLE): New define.
10012 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
10013 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
10014 HAVE_XFT.
10015 (something_changedCB): store_font_changed_event is now
10016 store_config_changed_event.
10017 (parse_settings): Rename from parse_xft_settings.
10018 Read non-xft xsettings outside #ifdef HAVE_XFT.
10019 (read_settings): Rename from read_xft_settings.
10020 (apply_xft_settings): Take current settings as parameter. Do not
10021 call read_(xft)_settings.
10022 (read_and_apply_settings): New function.
10023 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
10024 Call read_and_apply_settings if there are settings to be read.
10025 (init_xsettings): Rename from init_xfd_settings.
10026 Call read_and_apply_settings unconditionally.
10027 (xsettings_initialize): Call init_xsettings.
10028 (Ftool_bar_get_system_style): New function.
10029 (syms_of_xsettings): Define Qmonospace_font_name and
10030 Qtool_bar_style. Initialize current_tool_bar_style to nil.
10031 defsubr Stool_bar_get_system_style. Fprovide on
10032 dynamic-setting.
10033 Move misplaced HAVE_GCONF.
10034
10035 * xsettings.h (Ftool_bar_get_system_style): Declare.
10036
10037 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
10038 Qtext, Qboth, Qboth_horiz are new.
10039 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
10040 Vtool_bar_style, tool_bar_max_label_size.
10041
10042 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
10043
10044 * keyboard.c: QClabel is new.
10045 (parse_tool_bar_item): Take out QClabel from tool bar items.
10046 Try to construct a label if ther is no QClabel.
10047 (syms_of_keyboard): Intern :label as QClabel.
10048
10049 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
10050 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
10051 New.
10052
10053 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
10054 dynamic-setting.el.
10055
10056 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
10057 (xg_make_tool_item, xg_show_toolbar_item): New function.
10058 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
10059 Call xg_make_tool_item to make a tool bar item.
10060 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
10061
10062 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
10063 into account for toolbars.
10064
10065 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10066
10067 * data.c (make_blv): Declarations before code (Bug#5993).
10068
10069 2010-04-21 Glenn Morris <rgm@gnu.org>
10070
10071 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
10072 Define using autoconf, not cpp.
10073 (LIBXSM): New variable, set by autoconf.
10074 (LIBXT): Use $LIBXSM.
10075
10076 2010-04-21 Dan Nicolaescu <local_user@dannlt>
10077
10078 Remove NOMULTIPLEJOBS, unused.
10079 * s/template.h (NOMULTIPLEJOBS):
10080 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
10081
10082 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
10083 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
10084 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
10085 detects -znocombreloc and passes it to the linker
10086 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
10087
10088 2010-04-21 Glenn Morris <rgm@gnu.org>
10089
10090 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
10091
10092 2010-04-21 Karel Klíč <kklic@redhat.com>
10093
10094 * Makefile.in (LIBSELINUX_LIBS): New.
10095 (LIBES): Add $LIBSELINUX_LIBS.
10096 * eval.c, lisp.h (call7): New function.
10097 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
10098 (Ffile_selinux_context, Fset_file_selinux_context):
10099 New functions.
10100 (Fcopy_file): New parameter preserve-selinux-context.
10101 (Frename_file): Preserve selinux context when renaming by copy-file.
10102
10103 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
10104 Eli Zaretskii <eliz@gnu.org>
10105
10106 Don't depend on cm.c or termcap.c on Windows, use stubs.
10107 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
10108 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
10109 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
10110 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
10111 (sys_tputs, sys_tgetstr): New stubs.
10112 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
10113 (tputs, tgetstr): New; define to sys_*.
10114
10115 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
10116
10117 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
10118
10119 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10120
10121 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
10122 Just signal a warning rather than an error when inside a let.
10123 (Fmake_variable_frame_local): Add the same test.
10124
10125 * font.c (syms_of_font): Make the style table vars read-only.
10126
10127 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
10128 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
10129
10130 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
10131
10132 2010-04-20 Eli Zaretskii <eliz@gnu.org>
10133
10134 Fix R2L paragraph display on TTY.
10135
10136 * xdisp.c (unproduce_glyphs): New function.
10137 (display_line): Use it when produced glyphs are discarded from R2L
10138 glyph rows.
10139 (append_composite_glyph): In R2L rows, prepend the glyph rather
10140 than appending it.
10141
10142 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
10143 rather than append it. Set up the resolved_level and bidi_type
10144 attributes of the appended glyph.
10145 (produce_special_glyphs): Mirror the backslash continuation
10146 character in R2L lines.
10147
10148 Implement display of R2L paragraphs in GUI sessions.
10149
10150 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
10151 append_stretch_glyph.
10152 (set_cursor_from_row) <cursor_x>: Remove unused variable.
10153 Fix off-by-one error in computing x at end of text in the row.
10154 (append_stretch_glyph): In reversed row, prepend the glyph rather
10155 than append it. Set resolved_level and bidi_type of the glyph.
10156 (extend_face_to_end_of_line): If the row is reversed, prepend a
10157 stretch glyph whose width is such that the rightmost glyph will be
10158 drawn at the right margin of the window. Fix off-by-one error on
10159 TTY frames in testing whether a line needs face extension.
10160 Fix face extension at ZV. If this is the last glyph row, use
10161 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
10162 region face.
10163 (set_cursor_from_row, display_line):
10164 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
10165 row->continuation_lines_width.
10166 (next_element_from_buffer): Don't call bidi_paragraph_init if we
10167 are at ZV. Fixes a crash when reseated to ZV by
10168 try_window_reusing_current_matrix.
10169 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
10170 which happens with R2L glyph rows. Fixes a crash when inserting a
10171 character at end of an R2L line.
10172 (set_cursor_from_row): Don't be fooled by truncated rows: don't
10173 treat them as having zero-width characters. Improve comments.
10174 Don't reverse pos_before and pos_after for reversed glyph rows.
10175 Set cursor.x to negative value when the cursor might be on the
10176 left fringe.
10177 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
10178 left fringe, not the right one.
10179 (notice_overwritten_cursor, draw_phys_cursor_glyph)
10180 (erase_phys_cursor): For reversed cursor_row, support cursor on
10181 the left fringe.
10182
10183 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
10184 of continuation indicators on the fringes.
10185 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
10186 left fringe.
10187
10188 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
10189 draw cursor on the left fringe.
10190
10191 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
10192 cursor on the left fringe.
10193
10194 * dispnew.c (update_text_area): Handle reversed desired rows when
10195 the cursor is on the left fringe.
10196 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
10197 below, not by 0, for when the cursor is on the left fringe.
10198
10199 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
10200
10201 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
10202 widget is a scrollbar.
10203
10204 2010-04-20 Kenichi Handa <handa@m17n.org>
10205
10206 * charset.c (char_charset): Consider Vcharset_non_preferred_head
10207 only when the arg CHARSET_LIST is nil.
10208
10209 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10210
10211 Make variable forwarding explicit rather the using special values.
10212 Basically, this makes the structure of buffer-local values and object
10213 forwarding explicit in the type of Lisp_Symbols rather than use
10214 special Lisp_Objects for that. This tends to lead to slightly more
10215 verbose code, but is more C-like, simpler, and makes it easier to make
10216 sure we handled all cases, among other things by letting the compiler
10217 help us check it.
10218 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
10219 Removing forwarding objects.
10220 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
10221 (struct Lisp_Symbol): Make the various forms of variable-forwarding
10222 explicit rather than hiding them inside Lisp_Object "values".
10223 (XFWDTYPE): New macro.
10224 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
10225 (XBUFFER_LOCAL_VALUE): Remove.
10226 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
10227 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
10228 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
10229 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10230 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10231 Remove the Lisp_Misc_* header.
10232 (struct Lisp_Buffer_Local_Value): Redefine.
10233 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10234 (struct Lisp_Misc_Any): Add filler to get the right size.
10235 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10236 Lisp_Intfwd.
10237 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10238 (DEFVAR_KBOARD): Allocate a forwarding object.
10239 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10240 (let_shadows_global_binding_p): New function.
10241 (union Lisp_Val_Fwd): New type.
10242 (make_blv): New function.
10243 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10244 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10245 (swap_in_symval_forwarding, find_symbol_value, Fset)
10246 (let_shadows_buffer_binding_p, set_internal, default_value)
10247 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10248 (Fkill_local_variable, Fmake_variable_frame_local)
10249 (Flocal_variable_p, Flocal_variable_if_set_p)
10250 (Fvariable_binding_locus):
10251 * xdisp.c (select_frame_for_redisplay):
10252 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10253 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10254 * frame.c (store_frame_param):
10255 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10256 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10257 value structure.
10258 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10259 (clone_per_buffer_values): Only adjust markers into the current buffer.
10260 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10261 (Fbuffer_local_value, set_buffer_internal_1)
10262 (swap_out_buffer_local_variables):
10263 Adapt to the new symbol value structure.
10264 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10265 (defvar_per_buffer): Take a new arg for the fwd object.
10266 (buffer_lisp_local_variables): Return a proper alist (different fix
10267 for bug#4138).
10268 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10269 (Fgarbage_collect): Don't handle buffer_defaults specially.
10270 (mark_object): Handle new symbol value structure rather than the old
10271 special Lisp_Misc_* objects.
10272 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10273 * term.c (set_tty_color_mode):
10274 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10275 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10276 a buffer_local_flags.
10277 * print.c (print_object): Get rid of impossible forwarding objects.
10278
10279 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10280
10281 * bidi.c (bidi_get_type, bidi_get_category)
10282 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
10283 (bidi_type_of_next_char, bidi_level_of_next_char):
10284 Declare static. Use `INLINE' rather than `inline'.
10285
10286 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
10287
10288 * dired.c (Ffile_attributes): Fix typo in docstring.
10289
10290 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10291
10292 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10293 NSInteger (Bug#5811).
10294
10295 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10296
10297 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10298 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10299
10300 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10301
10302 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10303
10304 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
10305
10306 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10307 terminal frames (Bug#5837).
10308
10309 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10310
10311 * .gdbinit (xsubchartable): New command.
10312
10313 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10314
10315 * xdisp.c (display_line): Don't write beyond the last glyph row in
10316 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
10317 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10318 and
10319 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10320
10321 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10322
10323 * alloc.c (Fpurecopy): Hash-cons if requested.
10324 (syms_of_alloc): Update purify-flag docstring.
10325
10326 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10327
10328 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10329 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10330
10331 2010-04-17 Eli Zaretskii <eliz@gnu.org>
10332
10333 Fix a crash when an NSM character is inserted at BEGV.
10334
10335 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10336 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10337 NEUTRAL_B or UNKNOWN_BT.
10338
10339 2010-04-16 Eli Zaretskii <eliz@gnu.org>
10340
10341 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10342 other rows with cursor unless they are different from this row and
10343 this row is part of a continued line. (Bug#5943)
10344
10345 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10346
10347 * s/freebsd.h: Restore osreldate.h include.
10348 Suggested by Naohiro Aota.
10349
10350 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10351
10352 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10353
10354 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10355
10356 * s/cygwin.h: Avoid linking against static libgcc.
10357
10358 2010-04-15 Juri Linkov <juri@jurta.org>
10359
10360 * window.c: Add Qscroll_command.
10361 Remove Vscroll_preserve_screen_position_commands.
10362 (window_scroll_pixel_based, window_scroll_line_based): Check the
10363 `scroll-command' property on the last command instead of searching
10364 the last command in Vscroll_preserve_screen_position_commands.
10365 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10366 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10367 (scroll-preserve-screen-position): Doc fix.
10368 (Vscroll_preserve_screen_position_commands): Remove variable.
10369
10370 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10371
10372 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10373
10374 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10375
10376 Reduce cpp use in Makefile.in.
10377 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10378 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10379 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10380 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10381 (CRT0_COMPILE): Remove, inline it in the only user.
10382
10383 2010-04-14 Juri Linkov <juri@jurta.org>
10384
10385 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10386 `scroll-up-command' and `M-v' from `scroll-down' to
10387 `scroll-down-command'.
10388
10389 2010-04-14 Juri Linkov <juri@jurta.org>
10390
10391 * window.c (Vscroll_preserve_screen_position_commands): New variable
10392 with the default value as the list of Qscroll_down and Qscroll_up.
10393 (window_scroll_pixel_based, window_scroll_line_based): Search the
10394 last command in the list Vscroll_preserve_screen_position_commands
10395 instead of comparing with Qscroll_up and Qscroll_down.
10396
10397 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10398
10399 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10400 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10401 does that.
10402
10403 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10404 to zero.
10405
10406 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10407
10408 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10409
10410 Try to solve the problem of spurious EOF chars in long lines of text
10411 sent to interactive subprocesses.
10412 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10413 (system_process_attributes): Remove unused var `ttotal'.
10414 * process.c (send_process): Don't bother breaking long line with EOF
10415 chars when talking to ttys any more.
10416 (wait_reading_process_output): Output a warning when called in such
10417 a way that it could block without being interruptible.
10418
10419 Try to detect file modification within the same second.
10420 * buffer.h (struct buffer): New field modtime_size.
10421 * buffer.c (reset_buffer): Initialize it.
10422 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10423 (Fverify_visited_file_modtime): Check it.
10424 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10425 (Fset_visited_file_modtime): Set (or clear) it.
10426
10427 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10428
10429 * process.c (status_notify): Remove unused var `ro'.
10430
10431 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10432
10433 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10434 more than one visual (Bug#5938).
10435
10436 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10437
10438 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10439 Undefine.
10440
10441 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10442
10443 Remove C_SWITCH_SYSTEM_TEMACS.
10444 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10445 (malloc, realloc, free): Use emacs, not temacs for conditional
10446 definition.
10447
10448 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10449 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10450
10451 Use autoconf, not cpp for some variables.
10452 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10453 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10454 (ALL_CFLAGS): Use them as make variables.
10455 (really-lwlib, really-oldXMenu): Do not pass them.
10456
10457 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10458
10459 * xmenu.c (apply_systemfont_to_dialog): New.
10460 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10461
10462 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10463
10464 * process.c (exec_sentinel): Preserve current-buffer.
10465
10466 * process.c (read_process_output): Move the save-current-buffer to
10467 apply to both the filter and the non-filter branches.
10468
10469 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10470
10471 * s/msdos.h (UNEXEC): New definition.
10472
10473 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10474
10475 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10476 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10477
10478 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10479 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10480 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10481 TRY_WINDOW_CHECK_MARGINS.
10482
10483 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
10484 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10485 width only when it is for padding.
10486
10487 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10488
10489 * xfns.c (Fx_show_tip): Call try_window in a loop until
10490 fonts_changed_p is zero (Bug#2423).
10491
10492 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10493
10494 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10495 the end of TEXT_AREA. (Bug#5856)
10496
10497 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10498
10499 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10500 HAVE_GCONF.
10501
10502 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10503
10504 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10505 prev.orig_type, for resolving type of NSM. (Bug#5858)
10506
10507 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10508
10509 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10510 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10511 in current_font.
10512 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10513 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10514 New functions.
10515 (syms_of_xsettings): Initialize current_font.
10516 defsubr Sfont_get_system_normal_font.
10517
10518 * xsettings.h (Ffont_get_system_normal_font)
10519 (xsettings_get_system_normal_font): Declare.
10520
10521 * xfns.c (extern xlwmenu_default_font): Remove.
10522 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10523 to xlwmenu.c.
10524
10525 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10526 menu items in UTF-8.
10527
10528 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10529 (apply_systemfont_to_menu): New function.
10530 (set_frame_menubar, create_and_show_popup_menu):
10531 Call apply_systemfont_to_menu.
10532
10533 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10534
10535 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10536 FRAME_LINE_TO_PIXEL_Y.
10537
10538 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10539 pixelwidth/height.
10540
10541 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10542
10543 Simplify code for HP machines.
10544 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10545 for GNU_LINUX, not needed.
10546 (UNEXEC, NEED_BSDTTY): Move definitions...
10547 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10548
10549 * m/iris4d.h (UNEXEC): Move definition ...
10550 * s/irix6-5.h (UNEXEC): ... here.
10551
10552 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10553
10554 * xfns.c (set_machine_and_pid_properties): New function.
10555 (Fx_create_frame): Call set_machine_and_pid_properties.
10556
10557 2010-04-03 Eli Zaretskii <eliz@gnu.org>
10558
10559 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10560 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10561 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10562
10563 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10564 in this function. (Bug#5703)
10565
10566 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
10567
10568 * nsterm.h: Fix last change.
10569
10570 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10571
10572 * m/intel386.h (NO_REMAP): Move definition ...
10573 * s/msdos.h (NO_REMAP): ... here.
10574
10575 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10576
10577 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10578 used on those platforms.
10579
10580 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10581
10582 Remove extern errno declarations.
10583 * xterm.c:
10584 * xrdb.c:
10585 * w32term.c:
10586 * unexec.c:
10587 * unexaix.c:
10588 * sysdep.c:
10589 * process.c:
10590 * lread.c:
10591 * keyboard.c:
10592 * floatfns.c:
10593 * filelock.c:
10594 * fileio.c:
10595 * emacs.c (main):
10596 * ecrt0.c:
10597 * dispnew.c:
10598 * callproc.c:
10599 * buffer.c: Remove errno extern declarations.
10600 * s/netbsd.h (NEED_ERRNO): Remove.
10601
10602 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10603
10604 Remove all uses of LIBX11_SYSTEM.
10605 * Makefile.in (LIBX11_SYSTEM): Remove.
10606 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10607 instead.
10608
10609 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10610
10611 Remove support for DJGPP v1.x (bug#5813).
10612
10613 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10614 * s/msdos.h:
10615 * unexec.c (make_hdr, copy_text_and_data):
10616 * sysdep.c (wait_for_termination, sys_subshell):
10617 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10618 (IT_set_terminal_modes, __write, _rename, gethostname)
10619 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10620 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10621 the value of __DJGPP__.
10622 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10623 compatibility code.
10624 * lread.c:
10625 * gmalloc.c (memalign):
10626 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10627 * emacs.c (main):
10628 * dosfns.c (init_dosfns):
10629 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10630
10631 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10632
10633 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10634 string with `cursor' property comes from an `after-string'
10635 overlay. (Bug#5816)
10636
10637 2010-04-01 Glenn Morris <rgm@gnu.org>
10638
10639 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10640 Define as Makefile variables.
10641 (LIBX): Use above variables rather than directly using autoconf.
10642
10643 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10644
10645 Clean up BSD_SYSTEM use.
10646 * xterm.c:
10647 * process.c:
10648 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10649 for including <sys/ioctl.h>.
10650 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10651 code is only used for MSDOS.
10652
10653 2010-03-31 Juri Linkov <juri@jurta.org>
10654
10655 * image.c: Add `Qextension_data'.
10656 (syms_of_image): Initialize and staticpro `Qextension_data'.
10657 (Fimage_metadata): Rename from `Fimage_extension_data'.
10658 (gif_load): Put GIF extension data to the property
10659 `Qextension_data'.
10660
10661 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10662
10663 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10664 * nsterm.h: Fix prototype.
10665
10666 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10667
10668 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10669 trailing whitespace in right-to-left rows.
10670
10671 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10672
10673 Get rid of the direct_output optimizations.
10674 * keyboard.c (nonundocount): Remove extern declaration.
10675 (command_loop_1): Remove brittle optimisation for cheap and
10676 common operations.
10677 * xdisp.c (redisplay_internal): Don't bother checking
10678 redisplay_performed_directly_p any more.
10679 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10680 any more.
10681 * dispnew.c (redisplay_performed_directly_p)
10682 (direct_output_for_insert, direct_output_forward_char):
10683 * dispextern.h (redisplay_performed_directly_p)
10684 (direct_output_for_insert, direct_output_forward_char): Remove.
10685 * cmds.c (nonundocount): Make it static.
10686
10687 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10688
10689 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10690
10691 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10692
10693 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10694 invisible (Bug#5766).
10695
10696 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10697
10698 * xdisp.c (x_consider_frame_title, update_window_cursor):
10699 Remove HAVE_NS conditionals.
10700 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10701
10702 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10703 filename for the title.
10704 (ns_set_doc_edited): Do nothing if the selected window is a
10705 minibuffer window.
10706
10707 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10708 ns_set_doc_edited.
10709
10710 * nsterm.m: Remove unneeded prototype.
10711
10712 2010-03-31 Glenn Morris <rgm@gnu.org>
10713
10714 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10715 in the DOC file. (Bug#5336)
10716
10717 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10718
10719 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10720
10721 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10722
10723 * window.c (keys_of_window): Remove redundant/overridden bindings.
10724
10725 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10726
10727 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10728 Restore original behavior when the iterator is not bidi_p.
10729
10730 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10731
10732 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10733
10734 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10735
10736 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10737 are outside the range of cached character positions.
10738
10739 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10740
10741 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10742
10743 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10744
10745 Initial support for bidirectional editing.
10746
10747 * Makefile.in (obj): Include bidi.o.
10748 (bidi.o): New target.
10749
10750 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10751 ($(BLD)/bidi.$(O)): New target.
10752
10753 * bidi.c: New file.
10754
10755 * buffer.h (struct buffer): New members bidi_display_reordering
10756 and bidi_paragraph_direction.
10757
10758 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10759 and bidi_paragraph_direction.
10760 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10761 and bidi-paragraph-direction.
10762 (Fbuffer_swap_text): Swap the values of
10763 bidi_display_reordering and bidi_paragraph_direction.
10764
10765 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10766 (bidi_type_t, bidi_dir_t): New types.
10767 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10768 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10769 prev_stop, base_level_stop, and eol_pos.
10770 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10771 (IT_STACK_SIZE): Enlarge to 5.
10772 (struct glyph_row): New member reversed_p.
10773 <string_buffer_position>: Update prototype.
10774 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10775 glyph_row if bidi_it.paragraph_dir == R2L.
10776 (struct glyph): New members resolved_level and bidi_type.
10777
10778 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10779 processing or buffer's direction is right-to-left.
10780 (prepare_desired_row): Preserve the reversed_p flag.
10781 (row_equal_p): Compare the reversed_p attributes as well.
10782
10783 * xdisp.c (init_iterator): Initialize it->bidi_p.
10784 Call bidi_init_it and set it->paragraph_embedding from the current
10785 buffer's value of bidi_paragraph_direction.
10786 (reseat_1): Initialize bidi_it.first_elt.
10787 (set_iterator_to_next, next_element_from_buffer): Use the value of
10788 paragraph_embedding to determine the paragraph direction.
10789 (set_iterator_to_next): Under bidi reordering, call
10790 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10791 new_paragraph flag is set in the bidi iterator.
10792 (next_element_from_buffer): If bidi_it.first_elt is set,
10793 initialize paragraph direction and find the first character to
10794 display in the visual order. If reseated to a middle of a line,
10795 prime the bidi iterator starting at the line's beginning.
10796 Handle the situation where we overstepped stop_charpos due to
10797 non-linearity of the bidi iteration. Likewise for when we back up
10798 beyond the previous stop_charpos. When moving across stop_charpos,
10799 record it in prev_stop.
10800 (display_line): Set row->end and it->start for the next row to the
10801 next character in logical order. Always extend reversed_p rows to
10802 the end of line, even if they end at ZV. Copy the reversed_p flag
10803 to the next glyph row. Keep calling set_cursor_from_row for
10804 bidi-reordered rows even if we already have a possible candidate
10805 for cursor position. Set row_end after all the row's glyphs have
10806 been produced, by looping over the glyphs. Record the position
10807 after EOL in it->eol_pos, and use it to set end_pos of the last
10808 row produced for a continued line.
10809 <Qright_to_left, Qleft_to_right>: New variables.
10810 (syms_of_xdisp): Initialize and staticpro them.
10811 (string_buffer_position_lim): New function.
10812 (string_buffer_position): Most of code moved to
10813 string_buffer_position_lim. Last argument and return value are
10814 now EMACS_INT; all callers changed.
10815 (set_cursor_from_row): Rewritten to support bidirectional text and
10816 reversed glyph rows.
10817 (text_outside_line_unchanged_p, try_window_id):
10818 Disable optimizations if we are reordering bidirectional text and the
10819 paragraph direction can be affected by the change.
10820 (append_glyph, append_composite_glyph)
10821 (produce_image_glyph, append_stretch_glyph): Set the
10822 resolved_level and bidi_type members of each glyph.
10823 (append_glyph): If the glyph row is reversed, prepend the glyph
10824 rather than appending it.
10825 (handle_stop_backwards): New function.
10826 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10827 (reseat): Call handle_stop_backwards to recompute prev_stop and
10828 base_level_stop for the new position.
10829 (handle_invisible_prop): Under bidi iteration, skip invisible text
10830 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10831 paragraph direction. Update IT->prev_stop after skipping
10832 invisible text.
10833 (move_it_in_display_line_to): New variables prev_method
10834 and prev_pos. Compare for strict equality in
10835 BUFFER_POS_REACHED_P.
10836 (try_cursor_movement): Examine all the candidate rows that occlude
10837 point, to return the best match. If rows are bidi-reordered
10838 and point moved backwards, back up to the row that is not a
10839 continuation line, and start looking for a suitable row from
10840 there.
10841
10842 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10843 rather than appending, if the glyph_row's reversed_p flag is set.
10844 Set the resolved_level and bidi_type members of each glyph.
10845
10846 * .gdbinit (pbiditype): New command.
10847 (pgx): Use it to display bidi level and type of the glyph.
10848 (pitx): Display some bidi information about the iterator.
10849 (prowlims, pmtxrows): New commands.
10850
10851 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10852
10853 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10854 * s/usg5-4.h (LIBS_DEBUG):
10855 * s/irix6-5.h (C_DEBUG_SWITCH):
10856 * s/gnu-linux.h (LIBS_DEBUG):
10857 * s/darwin.h (LIBS_DEBUG):
10858 * s/bsd-common.h (LIBS_DEBUG):
10859 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10860 * m/iris4d.h (LIBS_DEBUG):
10861 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10862
10863 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10864 (LIBS_DEBUG): Remove definition.
10865
10866 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10867
10868 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10869 Windows.
10870
10871 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10872
10873 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10874 `connect' (Bug#5723).
10875
10876 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10877
10878 * process.c (Fmake_network_process): Call `select' for interrupted
10879 `connect' rather than creating new socket (Bug#5173).
10880
10881 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10882
10883 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10884
10885 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10886
10887 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10888
10889 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10890
10891 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10892 XLoadQueryFont.
10893
10894 2010-03-24 Kenichi Handa <handa@m17n.org>
10895
10896 * coding.c (decode_coding_ccl): Fix previous change for the
10897 multibyte case.
10898 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10899 case that the output buffer is fullfilled.
10900 (encode_coding): Setup ccl program here.
10901
10902 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10903
10904 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10905
10906 Simplify LIBS_MACHINE definitions.
10907 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10908 * m/iris4d.h (LIBS_MACHINE): Likewise.
10909 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10910 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10911 * s/netbsd.h: Remove commented out code.
10912
10913 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10914
10915 Remove dead code dealing with POSIX_SIGNALS.
10916 * atimer.c (set_alarm): Remove dead code, all USG systems define
10917 POSIX_SIGNALS.
10918 * data.c (arith_error): Likewise.
10919 * keyboard.c (input_available_signal, handle_user_signal)
10920 (interrupt_signal): Likewise.
10921 * process.c (sigchld_handler): Likewise.
10922 (create_process): Remove if 0 code. Remove HPUX conditional when
10923 !defined (POSIX_SIGNALS), it cannot be true.
10924 * syssignal.h: Remove USG5_4 and USG conditionals when
10925 !POSIX_SIGNALS, they cannot be true.
10926
10927 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10928 NO_SOCK_SIGIO, not used anymore.
10929
10930 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10931
10932 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10933 support vax on BSDs.
10934
10935 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10936 * s/aix4-2.h (ORDINARY_LINK): ... here.
10937
10938 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10939
10940 * Makefile.in (abs_builddir): Define.
10941 (bootstrap_exe): Use it.
10942 (VPATH): Use $(srcdir) instead of @srcdir@.
10943
10944 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10945
10946 * Makefile.in (bootstrap_exe): Use an absolute name.
10947
10948 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10949
10950 Remove support for old GNU/Linux using libc version 5.
10951 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10952 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10953
10954 Consolidate redundant definitions in s/bsd-common.h.
10955 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10956 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10957 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10958 doing it in all files that include this one.
10959 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10960 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10961 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10962 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10963 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10964 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10965 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10966 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10967 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10968
10969 Consolidate redundant definitions.
10970 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10971 it's undefined in all files that include this one.
10972 (POSIX_SIGNALS): Define here instead of doing it in all files that
10973 include this one.
10974 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10975 (POSIX_SIGNALS): Do not define.
10976 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10977 (POSIX_SIGNALS): Do not define.
10978 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10979 (POSIX_SIGNALS): Do not define.
10980
10981 Remove support for old UNIX System V systems.
10982 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10983 * s/usg5-4-2.h: Remove.
10984
10985 Remove support for Solaris on PPC and for old versions.
10986 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10987 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10988 that cancel each other.
10989 * s/sol2-3.h:
10990 * s/sol2-4.h:
10991 * s/sol2-5.h: Remove.
10992 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10993 (NO_REMAP): Remove, unused.
10994 (UNEXEC): Move definition ...
10995 * s/aix4-2.h (UNEXEC): ... here.
10996
10997 * s/openbsd.h: Remove support for non-ELF and for systems that do
10998 not support shared libraries.
10999 * s/netbsd.h:
11000 * s/freebsd.h: Likewise.
11001
11002 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11003
11004 Remove non-working support for lynxos 3.0.
11005 * s/lynxos.h: Remove file.
11006
11007 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
11008 COFF_BSD_SYMBOLS, nothing defines it anymore.
11009
11010 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11011
11012 Remove obsolete uses of HAVE_SHM.
11013 * emacs.c (standard_args):
11014 (Fdump_emacs):
11015 (syms_of_emacs): Remove code depending on HAVE_SHM.
11016
11017 * alloc.c: Remove HAVE_SHM dependent definition.
11018
11019 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
11020
11021 2010-03-18 Glenn Morris <rgm@gnu.org>
11022
11023 * emacs.c (USAGE4): Hard-code bug address.
11024 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
11025 (bug_reporting_address): Remove.
11026 (main): Don't call bug_reporting_address.
11027
11028 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
11029 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
11030
11031 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
11032
11033 * xfns.c (Fx_create_frame):
11034 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
11035 on left.
11036
11037 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
11038
11039 * editfns.c (Fformat): Account for string precision when computing
11040 field width (Bug#5710).
11041
11042 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
11043
11044 * xfns.c (Fx_create_frame): Set default to Qright.
11045
11046 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
11047 all window systems.
11048
11049 2010-03-12 Eli Zaretskii <eliz@gnu.org>
11050
11051 These changes remove termcap.c from the build on Posix platforms.
11052 * Makefile.in (termcapobj): Move termcap.o from here...
11053 (MSDOS_OBJ): ...to here.
11054 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
11055 now identical to when LIBS_TERMCAP is defined.
11056
11057 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
11058
11059 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
11060
11061 * config.in: Regenerated. (See top-level ChangeLog.)
11062
11063 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
11064
11065 * Branch for 23.2.
11066
11067 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11068
11069 Cleanup setup of gl_state in various parts of the code.
11070 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
11071 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
11072 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
11073 (skip_chars):
11074 * regex.c (regex_compile): Use it.
11075 (re_compile_pattern): Don't set gl_state.current_syntax_table since
11076 it's now set in regex_compile when/if we need it.
11077
11078 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
11079
11080 Make it possible to C-g in a tight bytecode loop again (bug#5680).
11081 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
11082 (QUIT): Use it to consolidate code and remove redundancy.
11083 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
11084
11085 * regex.c (regex_compile): Setup gl_state as well.
11086
11087 * syntax.c (skip_chars): Setup gl_state (bug#3823).
11088 (in_classes): Use CONSP before XCAR/XCDR.
11089
11090 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
11091
11092 * keymap.c (Fwhere_is_internal): Use Fequal to compare
11093 definitions, so that keyboard macros are correctly handled
11094 (Bug#5481).
11095
11096 2010-03-02 Eli Zaretskii <eliz@gnu.org>
11097
11098 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
11099 text that could be relocated inside the call to emacs_mule_char.
11100 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
11101 (CODING_DECODE_CHAR): Add a comment describing its purpose.
11102
11103 2010-03-02 Kenichi Handa <handa@m17n.org>
11104
11105 * character.c (parse_str_as_multibyte): Fix handling of the
11106 multibyte form of raw-bytes.
11107 (str_as_multibyte): Likewise.
11108
11109 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
11110 form of raw-bytes.
11111
11112 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
11113
11114 * charset.c (load_charset_map_from_file)
11115 (load_charset_map_from_vector): Zero out allocated
11116 charset_map_entries before using them.
11117
11118 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
11119
11120 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
11121
11122 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
11123
11124 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
11125 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
11126
11127 2010-02-26 Kenichi Handa <handa@m17n.org>
11128
11129 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
11130
11131 * xdisp.c (reseat_to_string): Fix previous change.
11132
11133 2010-02-26 David Reitter <david.reitter@gmail.com>
11134
11135 * nsfont.m (nsfont_draw): ns_antialias_text should be a
11136 Lisp_Object (Bug#4736).
11137
11138 2010-02-25 Kenichi Handa <handa@m17n.org>
11139
11140 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
11141
11142 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
11143
11144 * xterm.c (XTflash): Move declarations before statements.
11145
11146 * gtkutil.c (xg_get_gdk_display): Remove (unused).
11147 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
11148 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
11149 (xg_create_tool_bar): Remove unused variables.
11150 (x_wm_set_size_hint): Move declarations before statements.
11151 (xg_create_frame_widgets): Remove variable grav.
11152
11153 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
11154
11155 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
11156
11157 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * term.c (fatal): Add a final \n if needed (bug#5596).
11160
11161 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
11162
11163 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
11164
11165 2010-02-18 Glenn Morris <rgm@gnu.org>
11166
11167 * callint.c (Finteractive): Doc fix.
11168
11169 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
11170
11171 * coding.c (record_conversion_result):
11172 Handle CODING_RESULT_INSUFFICIENT_DST.
11173 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
11174 memory allocation error.
11175
11176 2010-02-17 Kenichi Handa <handa@m17n.org>
11177
11178 * coding.c (decode_coding_ccl): Don't setup ccl program here.
11179 Fix for the case that the output buffer is fullfilled.
11180 (decode_coding): Setup ccl program here. Keep looping when the
11181 decoder stopped because the output buffer is
11182 fullfilled (bug#5534).
11183
11184 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
11185
11186 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
11187
11188 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
11189 bug #5571.
11190 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
11191 overdrawn.
11192
11193 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
11194
11195 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11196 doing_interact here.
11197 (ice_connection_closed): New function.
11198 (x_session_check_input, smc_die_CB, ice_io_error_handler)
11199 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
11200 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
11201 returns I/O error.
11202 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
11203 bug #5512.
11204
11205 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
11206
11207 * nsfont.m (nsfont_open): The system's value for the font descent
11208 is negative, so round it down to avoid clipping.
11209
11210 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
11211
11212 * charset.c (load_charset_map_from_file)
11213 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
11214 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
11215
11216 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
11217
11218 * charset.c (load_charset_map_from_file): Allocate large
11219 charset_map_entries structure on the heap rather than the stack.
11220 (Bug#5526).
11221
11222 2010-01-31 Kenichi Handa <handa@m17n.org>
11223
11224 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
11225 size in NAME is invalid, return -1 (Bug#5396).
11226
11227 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
11228
11229 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11230 <deactivated@gmail.com> (Bug#3605).
11231
11232 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
11233
11234 * fileio.c (Frename_file): Correctly rename symlinks to
11235 directories (Bug#5496).
11236
11237 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11238
11239 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11240
11241 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11242
11243 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11244
11245 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
11246
11247 * frame.c (DEFAULT_ROWS): Change default to 35.
11248
11249 * xfns.c (x_default_font_parameter): Change default XFT font to
11250 monospace-10 (Bug#3643).
11251
11252 2010-01-29 Eli Zaretskii <eliz@gnu.org>
11253
11254 * w32inevt.c (key_event): Remove unnecessary comparison of
11255 event->uChar.AsciiChar with 128.
11256
11257 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
11258
11259 * fileio.c (Frename_file): Fix last change (Bug#5487).
11260
11261 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11262
11263 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11264
11265 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11266
11267 * xfns.c (Fx_create_frame): Remove window size matching code from
11268 2010-01-15.
11269 (x_get_current_desktop, x_get_desktop_workarea): Remove.
11270
11271 2010-01-27 Jason Rumney <jasonr@gnu.org>
11272
11273 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
11274 (key_event): Use unicode for characters 128 and higher (Bug#4567).
11275
11276 2010-01-27 Kenichi Handa <handa@m17n.org>
11277
11278 * regex.c (analyse_first): Fix setting of fastmap for unibyte
11279 pattern string (Bug#4209).
11280
11281 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
11282
11283 * fileio.c (Frename_file): Call copy-directory and
11284 delete-directory for directories, in order to handle cross-device
11285 renaming (Bug#3353).
11286
11287 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11288
11289 * xfns.c (Fx_create_frame): If frame height is too big, try
11290 sizes 24 and 10. Bug #3643.
11291
11292 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11293
11294 Try and fix bug#788, hopefully for real this time.
11295 * keymap.c (shadow_lookup): Add `remap' arg.
11296 (describe_map, describe_vector): Update calls to shadow_lookup.
11297 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11298 `remapped' so this flag is applicable to `sequence'. Be careful to
11299 perform remapping during shadow_lookup check of remapped_sequences.
11300
11301 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11302
11303 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11304 png_check_sig, which has been removed in libpng 1.4.
11305
11306 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11307
11308 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11309 lacks this header file).
11310
11311 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11312
11313 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11314 as in Emacs 22.
11315
11316 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11317
11318 * lisp.h (make_pure_string): String pointer arg now points to const.
11319
11320 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11321 args now point to const.
11322
11323 2010-01-22 Eli Zaretskii <eliz@gnu.org>
11324
11325 * lread.c (Fload): Don't treat files without .elc extension as
11326 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11327 them. (bug#5303)
11328
11329 2010-01-20 Kenichi Handa <handa@m17n.org>
11330
11331 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11332 treat the source as actual byte sequence.
11333
11334 2010-01-19 Alan Mackenzie <acm@muc.de>
11335
11336 Fix spurious before-change-functions invocation from (insert ?\n).
11337 * textprop.c (set_text_properties): Rename parameter
11338 `signal_after_change_p' to `coherent_change_p', and make the
11339 invocation of `modify_region' conditional on it.
11340
11341 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11342
11343 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11344 for debug purpose.
11345 (syms_of_xsettings): Declare xft-settings.
11346
11347 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
11348
11349 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11350
11351 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11354
11355 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
11356
11357 * emacs.c (standard_args): Adjust arg priorities to reflect how
11358 they are processed in startup.el.
11359
11360 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11361
11362 * Makefile.in (lisp, shortlisp): Update.
11363
11364 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11365
11366 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11367 code, link the new kboard into all_kboard before running Lisp code,
11368 and protect the new terminal with GCPRO (Bug#5365).
11369 (x_term_init): Remove unused var `atom'.
11370 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11371
11372 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11373
11374 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11375 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11376 to find out usable size of the desktop. Don't make frames larger than
11377 this. Bug #3643.
11378
11379 2010-01-15 Kenichi Handa <handa@m17n.org>
11380
11381 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11382
11383 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
11384
11385 * nsterm.m (Qnone): Define.
11386
11387 * nsfns.m (Qnone): Move definition to nsterm.m.
11388
11389 2010-01-14 Kenichi Handa <handa@m17n.org>
11390
11391 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11392 systems.
11393
11394 2010-01-14 Kenichi Handa <handa@m17n.org>
11395
11396 Make auto-composition work on all buffers even if they are
11397 fundamental mode.
11398
11399 * composite.c (Vauto_composition_mode): New variable.
11400 (composition_compute_stop_pos): Check Vauto_composition_mode
11401 instead of Vauto_composition_function.
11402 (composition_adjust_point, Ffind_composition_internal): Likewise.
11403 (syms_of_composite): Declare Lisp variable
11404 "auto-composition-mode" here.
11405
11406 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
11407
11408 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11409 during call to vendor-specific-keysyms (Bug#5365).
11410
11411 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11412
11413 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11414 Call SIGNAL_THREAD_CHECK (Bug#5333).
11415
11416 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11417 Call SIGNAL_THREAD_CHECK.
11418
11419 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11420
11421 Try to fix bug#5314. This is probably not the final word, tho.
11422 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11423 recent-auto-save-p as a side-effect.
11424 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11425 * buffer.c (Fkill_buffer, reset_buffer):
11426 * editfns.c (Fsubst_char_in_region):
11427 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11428 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11429
11430 2010-01-13 Kenichi Handa <handa@m17n.org>
11431
11432 Display buffer name, etc. in mode line by composing correctly.
11433
11434 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11435 STRING is not nil.
11436 (display_mode_element): Adjust for the change of
11437 decode_mode_spec and display_line.
11438 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11439 (display_string): Handle the case that STRING is non-null and
11440 LISP_STRING is not nil.
11441
11442 * xterm.c (x_draw_composite_glyph_string_foreground):
11443 Pay attention to s->face->overstrike.
11444
11445 * composite.c (composition_reseat_it): Don't check PT if STRING is
11446 non nil.
11447
11448 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11449
11450 * keyboard.c (read_char): Don't apply previous change when current
11451 buffer is unchanged by command execution.
11452
11453 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11454
11455 * keyboard.c (read_char): Return after executing from special map.
11456
11457 2010-01-12 Glenn Morris <rgm@gnu.org>
11458
11459 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11460 bug-gnu-emacs rather than emacs-pretest-bug.
11461
11462 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11463
11464 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11465 initializing the Lisp variables that depend on them.
11466
11467 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11468
11469 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11470 Clear areas that will not be updated after change of menu bar lines.
11471 Clear the menu bar window's current matrix when the window gets empty.
11472
11473 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
11474
11475 * intervals.h, textprop.c (extend_property_ranges): Return value
11476 and args changed. Discard properties that begin at or after the
11477 new end (Bug#5306).
11478
11479 * editfns.c (Fformat): Caller changed.
11480
11481 * nsterm.m (ns_set_default_prefs): Delete function.
11482 (syms_of_nsterm): Initialize ns_command_modifier,
11483 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11484 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11485
11486 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11487 position (Bug#4040).
11488
11489 2010-01-09 Eli Zaretskii <eliz@gnu.org>
11490
11491 * editfns.c (Ffloat_time): Doc fix.
11492
11493 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11494
11495 * xfns.c (Fx_create_frame): Don't create frame larger than display
11496 by default bug#3643.
11497
11498 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11499
11500 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11501 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11502 windows above internal border.
11503
11504 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11505 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11506 windows above internal border.
11507
11508 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11509 tool bar windows specially.
11510
11511 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11512
11513 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11514 specially.
11515 (XTflash): Take account of menu bar height.
11516
11517 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11518 specially.
11519
11520 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11521
11522 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11523 also be true before we can return early (bug #5339).
11524
11525 2010-01-06 David Reitter <david.reitter@gmail.com>
11526
11527 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11528 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11529 (Bug#3233).
11530
11531 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11532
11533 * font.c (font_open_entity): Enable chache and call cached_font_ok
11534 for the driver if defined.
11535 (QCuser_spec): New symbol.
11536 (font_spec_from_name): Save name as user-spec.
11537 (font_load_for_lface): Keep user-spec instead of name.
11538 (font_open_by_name): Save name as user-spec.
11539 (syms_of_font): Initialize QCuser_spec.
11540 (font_clear_prop): Clear name if it exists in font (bug#5157).
11541
11542 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11543 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11544 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11545
11546 * font.h (struct font_driver): Add cached_font_ok.
11547
11548 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11549
11550 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11551
11552 * xterm.c (x_new_font): Move code for setting rows/cols before
11553 resizing ...
11554 (x_set_window_size): ... to here. Bug #2568.
11555
11556 * gtkutil.c (xg_clear_under_internal_border): New function.
11557 (xg_frame_resized, xg_frame_set_char_size):
11558 Call xg_clear_under_internal_border.
11559 (xg_update_scrollbar_pos): Clear under old scroll bar position.
11560
11561 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
11562
11563 * keyboard.c (read_key_sequence): Catch keyboard switch after
11564 making a new tty frame (Bug#5095).
11565
11566 2010-01-05 Kenichi Handa <handa@m17n.org>
11567
11568 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11569
11570 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11571
11572 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11573 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11574 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11575
11576 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
11577
11578 * dbusbind.c (xd_add_watch): Improve debug message.
11579 (xd_remove_watch): Improve debug message. If DATA is the session
11580 bus, unset D-Bus session environment.
11581 (Fdbus_init_bus): Pass the bus as argument to
11582 dbus_connection_set_watch_functions. (Bug#5283)
11583
11584 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
11585
11586 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11587
11588 * lread.c (syms_of_lread): Make it clearer that these are the
11589 names of loaded files (Bug#5068).
11590
11591 * eval.c (run_hook_with_args): Handle the case where the global
11592 value has the obsolete single-function form (Bug#5026).
11593
11594 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
11595
11596 * minibuf.c (Fall_completions): Minor optimization.
11597
11598 2009-12-26 Eli Zaretskii <eliz@gnu.org>
11599
11600 * .gdbinit (pgx): Fix display of composite glyphs.
11601 Display cmp.from and cmp.to as well.
11602 (pitx): Fix last change.
11603
11604 2009-12-25 Kenichi Handa <handa@m17n.org>
11605
11606 * composite.h (composition_adjust_point): Update prototype.
11607
11608 * composite.c (composition_reseat_it): Don't make a composition
11609 spanning over point.
11610 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11611 composable characters.
11612 (composition_adjust_point): New arg NEW_PT. Callers changed.
11613
11614 * keyboard.c (command_loop_1): Force redisplay if the last point
11615 was within a composition.
11616 (adjust_point_for_property): Don't adjust point for automatic
11617 composition when called after buffer modification.
11618
11619 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11620
11621 * .gdbinit (pitx): Don't use enum names, use their values.
11622 Remove reference to non-existing value GET_FROM_COMPOSITION.
11623 (pgx): Don't use enum names, use their values.
11624 (pitmethod): New helper command.
11625 (pitx): Use it to display iteration method.
11626 (pgrowit): New command.
11627
11628 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11629
11630 Update dependencies in Makefile.in.
11631
11632 * Makefile.in (alloc.o): Depend on termhooks.h.
11633 (atimer.o): Depend on blockinput.h.
11634 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11635 and frame.h.
11636 (callint.o): Depend on systime.h, coding.h, and composite.h.
11637 (callproc.o): Depend on buffer.h.
11638 (casefiddle.o): Don't depend on charset.h.
11639 (casetab.o): Depend on character.h.
11640 (ccl.o): Depend on composite.h.
11641 (chartab.o): Depend on ccl.h.
11642 (cm.o): Depend on dispextern.h.
11643 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11644 (coding.o): Don't depend on $(INTERVALS_H).
11645 (composite.o): Don't depend on dispextern.h explicitly (it's in
11646 $(INTERVALS_H)). Depend on ccl.h.
11647 (data.o): Depend on systime.h, coding.h, composite.h,
11648 dispextern.h, font.h, and ccl.h.
11649 (dired.o): Depend on composite.h.
11650 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11651 composite.h (it's in $(INTERVALS_H)).
11652 (doc.o): Depend on systime.h, coding.h, and composite.h.
11653 (editfns.o): Don't depend explicitly on dispextern.h.
11654 (emacs.o): Depend on frame.h and coding.h.
11655 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11656 (fileio.o): Depend on frame.h and commands.h. Don't depend
11657 explicitly on dispextern.h.
11658 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11659 composite.h.
11660 (fns.o): Don't depend on termhooks.h.
11661 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11662 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11663 coding.h, $(INTERVALS_H), window.h, xterm.h.
11664 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11665 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11666 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11667 fontset.h, ccl.h, and ftfont.h.
11668 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11669 (gtkutil.o): Depend on dispextern.h and composite.h.
11670 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11671 termhooks.h, and ccl.h.
11672 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11673 (intervals.o): Depend on systime.h and coding.h.
11674 (keyboard.o): Depend on composite.h and coding.h.
11675 (keymap.o): Depend on coding.h and frame.h.
11676 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11677 (macros.o): Depend on systime.h, coding.h, and composite.h.
11678 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11679 and atimer.h.
11680 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11681 dispextern.h explicitly.
11682 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11683 Don't depend explicitly on dispextern.h and composite.h.
11684 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11685 (regex.o): Don't depend on charset.h.
11686 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11687 (search.o): Don't depend explicitly on composite.h.
11688 (sound.o): Depend on atimer.h and systime.h.
11689 (syntax.o): Don't depend explicitly on composite.h.
11690 (sysdep.o): Depend on coding.h and composite.h.
11691 (term.o): Depend on xterm.h and buffer.h.
11692 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11693 (textprop.o): Don't depend on dispextern.h explicitly.
11694 (undo.o): Depend on dispextern.h.
11695 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11696 dispextern.h and composite.h explicitly.
11697 (xdisp.o): Depend on ccl.h.
11698 (xfaces.o): Depend on coding.h and ccl.h.
11699 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11700 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11701 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11702 ftfont.h.
11703 (xgselect.o): New dependency.
11704 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11705 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11706 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11707 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11708 (xsmfns.o): Depend on frame.h and dispextern.h.
11709 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11710 sysselect.h.
11711
11712 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11713
11714 * font.c (Fclear_font_cache): Pass correct cache argument to
11715 font_clear_cache.
11716
11717 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11718
11719 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11720 twice.
11721
11722 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11723
11724 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11725 calling file-remote-p. Reported by Jim Meyering.
11726
11727 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11728
11729 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11730 avoid compiler warnings. (Bug #5217)
11731
11732 2009-12-14 Kenichi Handa <handa@m17n.org>
11733
11734 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11735 in 8-bit encoding.
11736
11737 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11738
11739 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11740 tooltip windows.
11741
11742 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11743
11744 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11745 Xatom_net_window_type.
11746
11747 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11748 Xatom_net_window_type.
11749
11750 * xterm.c (my_log_handler): New function.
11751 (x_term_init): Set my_log_handler as log handler during gtk_init
11752 so we can filter out buggy messages. (Bug #5120).
11753
11754 * xterm.c (xg_scroll_callback): Parameter list changed,
11755 use parameter GtkScrollType to determine scroll/line/page.
11756 Only allow dragging if a button < 4 is grabbed (bug #5177).
11757 (xg_end_scroll_callback): New function.
11758 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11759 xg_create_scroll_bar.
11760
11761 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11762 (scroll_end_callback): Remove.
11763 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11764 button-release-event. Replace value-changed event with change-value,
11765 bug #5177.
11766 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11767 bug #5177.
11768
11769 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11770 (xg_create_scroll_bar): Add GCallback end_callback.
11771
11772 * xftfont.c (QClcdfilter): New variable.
11773 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11774 (syms_of_xftfont): Initialize QClcdfilter.
11775
11776 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11777
11778 * xsettings.c (struct xsettings): Add member seen.
11779 (parse_xft_settings): Update member seen with what we have read.
11780 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11781 (apply_xft_settings): Only update Xft settings with what member seen
11782 indicates as new.
11783
11784 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11785
11786 * dispextern.h (struct text_pos): Use EMACS_INT.
11787 (struct glyph): Use EMACS_INT for charpos.
11788 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11789 region_beg_charpos, region_end_charpos,
11790 redisplay_end_trigger_charpos, and also for
11791 iterator_stack_entry.end_charpos and
11792 iterator_stack_entry.stop_charpos.
11793
11794 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11795
11796 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11797 (xg_create_scroll_bar): Call scroll_end_callback on button release
11798 event (bug #5177).
11799 (xg_event_is_for_scrollbar): != replaced with ==.
11800
11801 2009-12-12 Kenichi Handa <handa@m17n.org>
11802
11803 * ftfont.c (struct ftfont_info): New member matrix.
11804 (ftfont_open): Setup xftfont_info->matrix.
11805 (MFLTFontFT): New member matrix.
11806 (FLOOR, CEIL, ROUND): New macros.
11807 (ftfont_get_metrics): Handle matrix transformation.
11808 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11809
11810 * xftfont.c (struct xftfont_info): New member matrix.
11811 (xftfont_open): Setup xftfont_info->matrix.
11812
11813 2009-12-10 Kenichi Handa <handa@m17n.org>
11814
11815 * xdisp.c (append_space_for_newline): Consider face-remapping.
11816
11817 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11818
11819 * xsettings.c: Include "keyboard.h".
11820
11821 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11822
11823 Fix implicit function declarations.
11824 * cmds.c: Include "frame.h".
11825 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11826 * frame.h: Move declaration of delete_frame outside of
11827 HAVE_WINDOW_SYSTEM.
11828
11829 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11830
11831 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11832
11833 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11834 GTK builds.
11835
11836 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11837
11838 * unexelf.c (unexec): Don't search for .data twice.
11839
11840 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11841
11842 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11843 if push failed.
11844 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11845 of push_display_prop (Bug#5000).
11846
11847 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11848 value of font_list_entities (Bug#5085).
11849
11850 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11851
11852 Fix `string-to-number' to deal consistently with integers and floats.
11853 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11854 trailing characters, not just whitespace.
11855 (read1): Pass new arg 0 to keep old behavior.
11856 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11857 trailing chars, as it is already done for integers. Doc fixes.
11858 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11859
11860 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11861
11862 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11863 Delete unused enumeration value.
11864
11865 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11866
11867 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11868
11869 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11870
11871 * process.c (Fmake_network_process): Fix up the tests for
11872 "connectionless socket", so they DTRT for seqpacket sockets as well.
11873
11874 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11875
11876 * process.c (Qseqpacket): New symbol.
11877 (HAVE_SEQPACKET): New macro.
11878 (Fmake_network_process): Accept new :type `seqpacket'.
11879 (init_process): Add `seqpacket' feature when applicable.
11880 (syms_of_process): Initialize Qseqpacket.
11881
11882 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11883
11884 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11885 if entity is Qnil.
11886
11887 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11888
11889 * print.c (print_preprocess): Preprocess the key_and_value table of
11890 hashtables, even tho they're "hidden" (bug#5082).
11891
11892 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11893
11894 * frame.c (frame_make_pointer_invisible)
11895 (frame_make_pointer_visible): Declare f before statements.
11896
11897 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11898
11899 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11900 omitted dependencies on lisp.h.
11901
11902 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11903
11904 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11905 is NULL.
11906
11907 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11908
11909 * frame.c (frame_make_pointer_invisible)
11910 (frame_make_pointer_visible): Just return if there isn't any selected
11911 frame.
11912
11913 * search.c (simple_search): Remove warning by making *p const.
11914
11915 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11916
11917 * xdisp.c (power_letter): Remove duplicate const.
11918
11919 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11920
11921 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11922
11923 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11924 defaults (bug #5025).
11925
11926 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11927
11928 * insdel.c (adjust_markers_for_delete): Move it in the
11929 right direction! (bug#4803)
11930
11931 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11932
11933 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11934
11935 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11936
11937 2009-11-24 Glenn Morris <rgm@gnu.org>
11938
11939 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11940
11941 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11942
11943 * Makefile.in: Must create deps for ecrt0.o in its rule.
11944
11945 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11946 because that is what Gtk+ font dialog understands.
11947
11948 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11949 of Fcopy_sequence.
11950 (font_open_by_name): Put name given into QCname for font-object returned.
11951
11952 * frame.c (x_set_font): Save original font name as frame parameter
11953 font-parameter.
11954
11955 * xsettings.c (set_default_xft_settings): New function.
11956 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11957 is found.
11958
11959 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11960
11961 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11962 searching backwards through multibyte buffer.
11963
11964 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11965
11966 * xterm.c: #include xgselect.h.
11967 (x_initialize): Call xgselect_initialize.
11968
11969 * xsettings.c (something_changedCB): C++ comments => C comments.
11970 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11971 does that now.
11972
11973 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11974 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11975 (scroll_bar_button_cb): Remove.
11976 (create_menus): C++ comments => C comments. Don't bind grab-notify
11977 event.
11978 (xg_create_scroll_bar): Don't bind button-press-event and
11979 button-release-event.
11980
11981 * process.c: Include xgselect.h if defined (USE_GTK) ||
11982 defined (HAVE_GCONF).
11983 (wait_reading_process_output): Call xg_select for the same condition.
11984
11985 * xgselect.c (xg_select): New function to better integrate with
11986 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11987
11988 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11989
11990 * Makefile.in (XOBJ): Add xgselect.o.
11991
11992 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11993
11994 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11995 Remove ignored second argument. All callers changed.
11996 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11997 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11998 * xdisp.c (string_char_and_length): Likewise.
11999
12000 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
12001
12002 * xterm.c (x_new_font):
12003 * print.c (print_object):
12004 * cmds.c (Fself_insert_command): Move declarations before statements.
12005
12006 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
12007
12008 * s/cygwin.h: Remove unneeded linker flags.
12009
12010 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
12011
12012 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
12013
12014 * xsettings.h: Declare xsettings_get_system_font.
12015
12016 * xsettings.c (xsettings_get_system_font): New function.
12017 (init_gconf): No use initiating gconf unless we have Xft also.
12018 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
12019 HAVE_GCONF.
12020
12021 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
12022 add a blank entry so it doesn't collapse into nothing.
12023
12024 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * lread.c (Funintern): Comment out last change.
12027
12028 2009-11-19 Richard Stallman <rms@gnu.org>
12029
12030 * lread.c (Funintern): Error if symbol is t or nil.
12031
12032 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12033
12034 * insdel.c (make_gap_larger): Don't make as many assumptions about the
12035 representation of Lisp integers.
12036 Reported by MJ Chan <mjchan.inbox@gmail.com>.
12037
12038 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12039
12040 * lisp.h: Remove declaration of Ffont_get_system_font.
12041 * xfns.c: Move include of "xsettings.h".
12042 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
12043
12044 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12045
12046 * xsettings.c (something_changedCB, Ffont_get_system_font):
12047 Check use_system_font.
12048 (syms_of_xsettings): DEFVAR font-use-system-font.
12049
12050 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12051
12052 * xfns.c (x_default_font_parameter): Remove dead assignment.
12053
12054 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
12055
12056 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12057
12058 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
12059 not have FC_LCD_*. #define them if not there.
12060
12061 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
12062
12063 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
12064
12065 * xterm.c (handle_one_xevent): Call xft_settings_event for
12066 ClientMessage, PropertyNotify and DestroyNotify.
12067 (x_term_init): If we have XFT, get DPI from Xft.dpi.
12068 Call xsettings_initialize.
12069
12070 * xftfont.c (xftfont_fix_match): New function.
12071 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
12072 Call xftfont_fix_match after XftFontMatch.
12073
12074 * xfont.c (xfont_driver): Initialize all members.
12075
12076 * xfns.c (x_default_font_parameter):
12077 Try font from Ffont_get_system_font.
12078 Do not get font from x_default_parameter if we got one from
12079 Ffont_get_system_font.
12080 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
12081
12082 * w32font.c (w32font_driver): Initialize all members.
12083
12084 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
12085
12086 * lisp.h: Declare syms_of_xsettings.
12087
12088 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
12089 Handle CONFIG_CHANGED_EVENT.
12090
12091 * ftfont.c (ftfont_filter_properties): New function.
12092
12093 * frame.c (x_set_font): Remove unused variable lval.
12094
12095 * font.h (struct font_driver): Add filter_properties.
12096
12097 * font.c (font_put_extra): Don't return if val is nil, it means
12098 boolean option is off.
12099 (font_parse_fcname): Collect all extra properties in extra_props
12100 and call filter_properties for all drivers with extra_props and
12101 font as parameter.
12102 (font_open_entity): Do not use cache, it does not pick up new
12103 fontconfig settings like hinting.
12104 (font_load_for_lface): If spec had a name in it, store it in entity.
12105
12106 * emacs.c (main): Call syms_of_xsettings.
12107
12108 * config.in: HAVE_GCONF is new.
12109
12110 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
12111 xsettings.o is new.
12112
12113 2009-11-17 Kenichi Handa <handa@m17n.org>
12114
12115 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
12116 back to the default font in case that no suitable font is found.
12117
12118 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12119
12120 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
12121 Suggested by Chad Brown <yandros@mit.edu>.
12122 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
12123
12124 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
12125
12126 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
12127
12128 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
12129
12130 * Makefile.in: Ignore errors from mkdir when creating deps directory.
12131
12132 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
12133
12134 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
12135 has a parent.
12136
12137 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
12138 dependency files in deps/. Include those files into Makefile.
12139
12140 * config.in: Generated (AUTO_DEPEND).
12141
12142 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
12143
12144 * dbusbind.c (Vdbus_registered_objects_table): Rename from
12145 Vdbus_registered_functions_table, because it contains also
12146 properties. Fix docstring.
12147 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
12148
12149 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
12150
12151 * alloc.c (mark_object): Don't reprocess marked strings.
12152 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
12153 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
12154
12155 2009-11-13 Kenichi Handa <handa@m17n.org>
12156
12157 * category.c (word_boundary_p): Adjust for the change of the
12158 semantics of Vword_combining_categories.
12159 (Vword_combining_categories): Describe the slight change of the
12160 semantics.
12161
12162 2009-11-13 Eli Zaretskii <eliz@gnu.org>
12163
12164 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
12165
12166 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
12167
12168 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
12169
12170 * xdisp.c (syms_of_xdisp): Fix typo in last change.
12171
12172 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
12173
12174 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
12175
12176 2009-11-11 David Reitter <david.reitter@gmail.com>
12177
12178 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
12179 variables to fix 2009-11-09 change.
12180
12181 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
12182
12183 * process.c (ifflag_def): Make flag_sym constant.
12184 (Fnetwork_interface_info): Use a constant pointer.
12185 (ifflag_table):
12186 * xfns.c (cursor_bits):
12187 * xdisp.c (power_letter):
12188 * termcap.c (speeds, esctab):
12189 * sysdep.c (baud_convert):
12190 * keyboard.c (lispy_accent_codes, modifier_names):
12191 * image.c (xbm_format, xpm_format, pbm_format, png_format)
12192 (jpeg_format, tiff_format, gif_format, svg_format)
12193 (interlace_start, interlace_increment, gs_format):
12194 * gtkutil.c (separator_names):
12195 * fringe.c (swap_nibble):
12196 * fns.c (base64_value_to_char, base64_char_to_value):
12197 * fileio.c (make_temp_name_tbl):
12198 * coding.c (suffixes): Make constant.
12199
12200 * frame.c (make_initial_frame):
12201 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
12202 build_string.
12203 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
12204
12205 * s/freebsd.h:
12206 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
12207
12208 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
12209 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
12210
12211 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
12212 * xterm.c (syms_of_xterm):
12213 * xfaces.c (syms_of_xfaces):
12214 * xdisp.c (syms_of_xdisp):
12215 * lread.c (syms_of_lread):
12216 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
12217 build_string.
12218
12219 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
12220
12221 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12222
12223 * fns.c (Fplist_get): Merge the active and the commented out code.
12224
12225 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12226
12227 * keyboard.h: Declare timer_check.
12228
12229 * keyboard.c (timer_check_2): New function that does what the old
12230 timer_check did.
12231 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12232 returned, i.e. don't return -1 with timers pending.
12233
12234 * process.c: Remove extern declaration of timer_check.
12235
12236 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12237 even if timer_check returned -1.
12238
12239 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12240 xg_dialog_data.
12241 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12242 the event loop.
12243 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12244 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12245 Destroy the dialog after xg_dialog_run.
12246
12247 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12248
12249 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12250
12251 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12252
12253 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12254
12255 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
12256
12257 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12258
12259 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12260
12261 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12262 w32menu.c, and nsmenu.m.
12263 Simplify the obsolete case where position is nil.
12264 (cleanup_popup_menu): New function, moved from nsmenu.m.
12265 (struct skp): Remove slot `notreal'.
12266 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12267 adjust callers.
12268 (single_menu_item): Adjust call to parse_menu_item.
12269 (syms_of_menu): Defsubr x-popup-menu.
12270 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12271 (keymap_panes): Don't export any more.
12272 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12273 (xmenu_show): Declare.
12274 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12275 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12276 * keyboard.h (parse_menu_item): Update declaration.
12277 * xmenu.c (Fx_popup_menu): Remove.
12278 (syms_of_xmenu): Don't defsubr x-popup-menu.
12279 * w32menu.c (Fx_popup_menu): Remove.
12280 (syms_of_w32menu): Don't defsubr x-popup-menu.
12281 * nsmenu.m (cleanup_popup_menu): Remove.
12282 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12283 moved to menu.c's Fx_popup_menu.
12284 (Fx_popup_menu): Remove.
12285 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12286 menu_items (it's done in menu.c already).
12287
12288 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12289
12290 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12291 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12292
12293 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
12296 xmenu_show. Hide any tooltip before opening a menu.
12297 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12298 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12299
12300 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12301
12302 Let integers use up 2 tags to give them one extra bit and thus double
12303 their range.
12304 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12305 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12306 New macros.
12307 (enum Lisp_Type): Use them. Give explicit values.
12308 (Lisp_Type_Limit): Remove.
12309 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12310 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12311 Pay attention to USE_2_TAGS_FOR_INTS.
12312 (INTEGERP): Use LISP_INT_TAG_P.
12313 * fns.c (internal_equal): Simplify the default case.
12314 (sxhash): Use case_Lisp_Int.
12315 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12316 any more.
12317 (Ftype_of): Use case_Lisp_Int.
12318 (store_symval_forwarding): Take into account the fact that Ints can
12319 now have more than one tag.
12320 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
12321 (buffer_slot_type_mismatch):
12322 * xfaces.c (face_attr_equal_p):
12323 * print.c (print_object):
12324 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12325 Use case_Lisp_Int.
12326
12327 2009-11-06 Eli Zaretskii <eliz@gnu.org>
12328
12329 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12330
12331 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12332 warning.
12333
12334 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12335
12336 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12337
12338 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12339
12340 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12341 ButtonPressRelease and MotionNotify (bug#4870).
12342
12343 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12344
12345 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12346
12347 * xterm.c (syms_of_xterm):
12348 * xselect.c (syms_of_xselect):
12349 * xmenu.c (syms_of_xmenu):
12350 * xfns.c (syms_of_xfns):
12351 * xfaces.c (syms_of_xfaces):
12352 * xdisp.c (syms_of_xdisp):
12353 * window.c (syms_of_window):
12354 * w32fns.c (syms_of_w32fns):
12355 * undo.c (syms_of_undo):
12356 * textprop.c (syms_of_textprop):
12357 * terminal.c (syms_of_terminal):
12358 * syntax.c (syms_of_syntax):
12359 * sound.c (syms_of_sound):
12360 * search.c (syms_of_search):
12361 * print.c (syms_of_print):
12362 * minibuf.c (syms_of_minibuf):
12363 * macros.c (syms_of_macros):
12364 * keymap.c (syms_of_keymap, initial_define_key)
12365 (initial_define_lispy_key):
12366 * keyboard.c (syms_of_keyboard):
12367 * insdel.c (syms_of_insdel):
12368 * image.c (syms_of_image):
12369 * fringe.c (syms_of_fringe):
12370 * frame.c (syms_of_frame):
12371 * fontset.c (syms_of_fontset):
12372 * fns.c (syms_of_fns):
12373 * fns.c (syms_of_fns):
12374 * fileio.c (syms_of_fileio):
12375 * fileio.c (syms_of_fileio):
12376 * eval.c (syms_of_eval):
12377 * doc.c (syms_of_doc):
12378 * dispnew.c (syms_of_display):
12379 * dired.c (syms_of_dired):
12380 * dbusbind.c (syms_of_dbusbind):
12381 * data.c (syms_of_data):
12382 * composite.c (syms_of_composite):
12383 * coding.c (syms_of_coding):
12384 * cmds.c (syms_of_cmds):
12385 * charset.c (define_charset_internal, syms_of_character):
12386 * ccl.c (syms_of_ccl):
12387 * category.c (syms_of_category, init_category_once):
12388 * casetab.c (syms_of_casetab):
12389 * casefiddle.c (syms_of_casefiddle):
12390 * callint.c (syms_of_callint):
12391 * bytecode.c (syms_of_bytecode):
12392 * buffer.c (keys_of_buffer, syms_of_buffer):
12393 * alloc.c (syms_of_alloc):
12394 * process.c (syms_of_process, init_process):
12395 * lread.c (syms_of_lread, init_obarray):
12396 * font.c (build_style_table):
12397 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12398 intern_c_string, calls to make_pure_string with
12399 make_pure_c_string. Use pure_cons instead of Fcons.
12400
12401 * process.c (socket_options): Make it const.
12402 (set_socket_option, init_process): Use a const pointer.
12403
12404 * lread.c (intern_c_string): New function.
12405 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12406 (defvar_int): Uset it. Make the name const char*.
12407
12408 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12409 (defvar_int): Update prototypes.
12410 (DEFUN, EXFUN): Support for prototypes is now required.
12411 (intern_c_string): New prototype.
12412 (struct Lisp_Subr): Make symbol_name constant.
12413
12414 * font.c (struct table_entry): Remove unused member. Make NAMES
12415 constant.
12416 (weight_table, slant_table, width_table): Make constant.
12417
12418 * emacs.c (struct standard_args): Make name and longname constant.
12419
12420 * character.h (DEFSYM): Use intern_c_string.
12421
12422 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12423
12424 * alloc.c (make_pure_c_string): New function.
12425
12426 * eval.c (Fautoload): Purecopy all arguments.
12427
12428 2009-11-05 Kenichi Handa <handa@m17n.org>
12429
12430 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12431 the buffer in case of replace.
12432
12433 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12434
12435 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12436
12437 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12438
12439 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12440 when applicable (bug#4851).
12441
12442 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12443 (P_): Support for prototypes is now required.
12444
12445 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
12446
12447 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12448 (Bug#4827).
12449
12450 2009-10-30 Eli Zaretskii <eliz@gnu.org>
12451
12452 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12453
12454 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12455
12456 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12457
12458 * lread.c (Fload): Purecopy the file name when building
12459 Vpreloaded_file_list.
12460
12461 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12462
12463 * w32fns.c (syms_of_w32fns): Change default value of
12464 w32-scroll-lock-modifier to nil. (Bug#2827)
12465
12466 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12467
12468 * minibuf.c (Fall_completions): Fix typos in docstring.
12469
12470 2009-10-26 Andreas Schwab <schwab@redhat.com>
12471
12472 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12473
12474 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12475
12476 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12477 For delta < 0, skip check that only makes sense when the mini-window
12478 is going to be enlarged. (Bug#4534)
12479
12480 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
12481
12482 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12483 string in menu maps (Bug#4471).
12484
12485 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
12486
12487 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12488 FRAME_NS_VIEW on terminal frames (Bug#4765).
12489
12490 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12491
12492 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12493 DBUS_TYPE_UINTnn separately to get proper sign extension.
12494
12495 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12496 can properly handle unsigned types.
12497 (make_uid, make_gid): Remove.
12498
12499 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12500 types again.
12501
12502 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12503 (system_process_attributes): Likewise.
12504
12505 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12506
12507 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12508
12509 * eval.c (Fautoload): Purecopy the filename. Simplify.
12510
12511 * category.c (Fdefine_category): Purecopy docstring.
12512
12513 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12514
12515 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12516
12517 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12518
12519 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
12520
12521 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12522 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12523 (Bug#4775).
12524
12525 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12526
12527 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12528 (init_fileio_once):
12529 * lisp.h (init_fileio_once): Remove.
12530 * emacs.c (main): Don't call init_fileio_once.
12531
12532 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12533
12534 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12535
12536 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12537
12538 * doprnt.c (doprnt): Fix overflow check.
12539
12540 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12541
12542 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12543
12544 * xterm.h (x_wait_for_event): Declare it.
12545
12546 * xterm.c (pending_event_wait): New variable.
12547 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12548 see pending_event_wait.eventtype.
12549 (handle_one_xevent): Don't change gravity when parent changes.
12550 (x_new_font): Call change_frame_size with new rows/columns before we
12551 try to resize the frame.
12552 (x_wait_for_event): New function.
12553 (x_set_window_size_1): Don't change gravity unless change_gravity
12554 is set.
12555 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12556 don't change frame size, instead wait for the ConfigureNotify.
12557 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12558 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12559 (x_initialize): Initialize pending_event_wait.
12560
12561 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12562 size.
12563
12564 * widget.c (EmacsFrameSetValues): Add comment.
12565 (EmacsFrameSetCharSize): Just call x_set_window_size.
12566
12567 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12568 x_wait_for_event.
12569 (flush_and_sync): Remove again.
12570 (xg_get_font_name): Suggest monospace if no previous font is known.
12571
12572 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12573
12574 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12575 8th bit, since that only made sense in the ASCII world (bug#4751).
12576
12577 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12578
12579 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12580 processing pending events when event is filtered for input method.
12581 (Bug#3681)
12582
12583 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
12584
12585 * fns.c: Add #endif accidentally removed in previous change.
12586
12587 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12588
12589 * fns.c: Remove code for unsupported system: MAC_OS.
12590 * image.c: Likewise. Include setjmp.h.
12591
12592 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12593
12594 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12595 pixel -1 (bug #4742).
12596
12597 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12598
12599 * process.c (create_pty): Remove conditionals for no longer
12600 supported systems: UNIPLUS and RTU.
12601
12602 * xterm.c:
12603 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12604
12605 * alloc.c: Do not define struct catchtag.
12606 * eval.c: Move struct catchtag definition ...
12607 * lisp.h: ... here.
12608
12609 * image.c: Move png.h #include earlier to avoid warnings.
12610
12611 * xterm.c:
12612 * xsmfns.c:
12613 * xselect.c:
12614 * xrdb.c:
12615 * xmenu.c:
12616 * xftfont.c:
12617 * xfont.c:
12618 * xfns.c:
12619 * xfaces.c:
12620 * xdisp.c:
12621 * window.c:
12622 * widget.c:
12623 * w32xfns.c:
12624 * w32uniscribe.c:
12625 * w32term.c:
12626 * w32select.c:
12627 * w32reg.c:
12628 * w32proc.c:
12629 * w32menu.c:
12630 * w32inevt.c:
12631 * w32heap.c:
12632 * w32font.c:
12633 * w32fns.c:
12634 * w32console.c:
12635 * w32.c:
12636 * w16select.c:
12637 * vm-limit.c:
12638 * unexsol.c:
12639 * unexec.c:
12640 * unexcw.c:
12641 * unexaix.c:
12642 * undo.c:
12643 * tparam.c:
12644 * textprop.c:
12645 * terminfo.c:
12646 * terminal.c:
12647 * termcap.c:
12648 * term.c:
12649 * syntax.c:
12650 * sound.c:
12651 * sheap.c:
12652 * search.c:
12653 * scroll.c:
12654 * region-cache.c:
12655 * regex.c:
12656 * ralloc.c:
12657 * process.c:
12658 * print.c:
12659 * nsterm.m:
12660 * nsselect.m:
12661 * nsmenu.m:
12662 * nsimage.m:
12663 * nsfont.m:
12664 * nsfns.m:
12665 * msdos.c:
12666 * minibuf.c:
12667 * menu.c:
12668 * marker.c:
12669 * macros.c:
12670 * keymap.c:
12671 * keyboard.c:
12672 * intervals.c:
12673 * insdel.c:
12674 * indent.c:
12675 * gtkutil.c:
12676 * ftxfont.c:
12677 * ftfont.c:
12678 * fringe.c:
12679 * frame.c:
12680 * fontset.c:
12681 * font.c:
12682 * fns.c:
12683 * floatfns.c:
12684 * filelock.c:
12685 * fileio.c:
12686 * emacs.c:
12687 * editfns.c:
12688 * dosfns.c:
12689 * doprnt.c:
12690 * doc.c:
12691 * dispnew.c:
12692 * dired.c:
12693 * dbusbind.c:
12694 * data.c:
12695 * composite.c:
12696 * coding.c:
12697 * cmds.c:
12698 * cm.c:
12699 * chartab.c:
12700 * charset.c:
12701 * character.c:
12702 * ccl.c:
12703 * category.c:
12704 * casetab.c:
12705 * casefiddle.c:
12706 * callproc.c:
12707 * callint.c:
12708 * bytecode.c:
12709 * buffer.c:
12710 * atimer.c: Include setjmp.h. (Bug#4643)
12711
12712 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12713
12714 Remove leftover table unibyte_to_multibyte_table.
12715 * character.c (unibyte_to_multibyte_table): Remove.
12716 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12717 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12718 * character.h (UNIBYTE_TO_CHAR): New macro.
12719 (MAKE_CHAR_MULTIBYTE): Use it.
12720 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12721 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12722 (message_dolog, set_message_1):
12723 * search.c (Freplace_match):
12724 * editfns.c (Fcompare_buffer_substrings):
12725 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12726 (concat):
12727 * insdel.c (copy_text, count_size_as_multibyte):
12728 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12729 * term.c (produce_glyphs):
12730 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12731 * regex.c (RE_CHAR_TO_MULTIBYTE):
12732 * cmds.c (internal_self_insert):
12733 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12734
12735 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12736
12737 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12738
12739 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12740
12741 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12742
12743 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12744
12745 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12746
12747 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12748 still needed under Tiger.
12749
12750 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12751
12752 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12753 __Apple__.
12754
12755 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12756
12757 2009-10-15 Kenichi Handa <handa@m17n.org>
12758
12759 * print.c (print_object): Escape a symbol like "2E10" too.
12760
12761 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12762
12763 Cleanups and changes for 64-bit compile under Snow Leopard.
12764 Based on suggestions by Erik Charlebois.
12765
12766 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12767
12768 * nsfont.m (ns_char_width): Replace deprecated call.
12769 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12770 cast argument.
12771 (nsfont_open): Use ns_char_width() everywhere.
12772 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12773
12774 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12775
12776 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12777 where appropriate.
12778
12779 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12780 where appropriate.
12781 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12782 Use stringWithUTF8String.
12783 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12784
12785 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12786 Add formal protocol mention to inheritance.
12787 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12788
12789 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12790 Fix printf format.
12791 (ns_query_color): Use CGFloat where appropriate.
12792 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12793 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12794 argument.
12795
12796 * config.in (NS_HAVE_NSINTEGER): Drop.
12797
12798 * dbusbind.c (dbus-method-return-internal)
12799 (dbus-method-error-internal): Use long format in printf, and cast
12800 argument.
12801
12802 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12803 in printf, and cast argument.
12804
12805 * process.c (list_processes_1): Use long format in printf, and
12806 cast argument.
12807
12808 2009-10-11 Glenn Morris <rgm@gnu.org>
12809
12810 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12811
12812 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12813
12814 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12815 menu bar with a small width so it doesn't enlarge the frame.
12816
12817 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12818
12819 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12820
12821 2009-10-06 Glenn Morris <rgm@gnu.org>
12822
12823 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12824 SOME_MACHINE_LISP (this enters indirectly via DOC).
12825
12826 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12827
12828 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12829
12830 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12831
12832 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12833 Doc fix.
12834
12835 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12836
12837 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12838
12839 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12840
12841 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12842 used anymore outside fileio.c.
12843
12844 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12845
12846 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12847
12848 * lisp.h (Qdelete_directory_internal):
12849 Declare, instead of Qdelete_directory.
12850
12851 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12852
12853 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12854
12855 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12856
12857 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12858
12859 * fileio.c (Fdelete_directory_internal): Rename from
12860 Fdelete_directory. It is not a command anymore. It has no file
12861 name handler.
12862
12863 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12864
12865 * xdisp.c (get_next_display_element): Use an enum in last change.
12866
12867 2009-09-28 Kenichi Handa <handa@m17n.org>
12868
12869 * xdisp.c (get_next_display_element): Pay attention to
12870 unibyte_display_via_language_environment in handling
12871 Vnobreak_char_display.
12872
12873 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12874
12875 * nsterm.h (ns_app_name): New extern variable.
12876
12877 * nsterm.m (ns_app_name): New variable.
12878 (ns_term_init): Set and use it.
12879 (ns_term_shutdown): Use it.
12880
12881 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12882 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12883
12884 * nsfns.m (ns_set_name_iconic, ns_set_name)
12885 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12886 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12887
12888 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12889 Remove double-casting in client_data comparison.
12890
12891 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12892
12893 * keyboard.c (make_lispy_event): Remember last wheel direction.
12894 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12895
12896 2009-09-26 Glenn Morris <rgm@gnu.org>
12897
12898 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12899 internal.elc. Add term/pc-win.elc.
12900 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12901 term/x-win.elc.
12902 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12903 term/w32-win.elc.
12904 (NS_SUPPORT): New.
12905 (lisp): Add NS_SUPPORT.
12906 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12907
12908 2009-09-25 David Reitter <david.reitter@gmail.com>
12909
12910 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12911 on Mac OS X 10.6+ (bug#4513).
12912
12913 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12914
12915 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12916 some parts of Emacs code (like font selection) don't grok them.
12917 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12918
12919 2009-09-24 Andreas Schwab <schwab@redhat.com>
12920
12921 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12922
12923 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12924
12925 * dired.c (Fdirectory_files): Fix typo in docstring.
12926
12927 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12928
12929 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12930 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12931 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12932 under GNUstep.
12933 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12934
12935 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12936 glyph advancement.
12937
12938 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12939
12940 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12941 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12942
12943 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12944 deleted (bug #4492).
12945
12946 * nsfont.m (Vns_reg_to_script): New lisp variable.
12947 (syms_of_nsfont): Declare it.
12948 (ns_registry_to_script): New function.
12949 (ns_get_req_script): Call it.
12950 (ns_findfonts): Don't give up on non-unicode registry.
12951
12952 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12953
12954 2009-09-20 Tom Tromey <tromey@redhat.com>
12955
12956 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12957 batch mode (bug#4228).
12958
12959 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12960
12961 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12962 carefully. (Bug #4339)
12963
12964 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12965
12966 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12967
12968 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12969
12970 * emacs.c (inhibit_x_resources): Update doc string for NS.
12971 (main) [HAVE_NS]: Don't process --no-init-file option.
12972 Remove legacy code for -NXHost. Fix error printf in daemon case.
12973
12974 * nsterm.h (ns_no_defaults): Remove.
12975
12976 * nsterm.m (ns_no_defaults): Remove.
12977 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12978 (ns_use_qd_smoothing): Remove legacy variable.
12979 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12980 don't update the NSWindow itself.
12981 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12982 Improve state detection and store user rect ourselves. (Bug #3581)
12983
12984 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12985 ns_use_qd_smoothing.
12986
12987 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12988 platform versions. Drop support for emacs-20-style face specs.
12989 (x-close-connection): Drop PSFlush() under OS X.
12990 (x-focus-frame): Activate the app first. (Bug #4180)
12991
12992 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
12993
12994 * emacs.c (inhibit_x_resources): New variable.
12995 (main) [HAVE_NS]: Don't process --quick command line option.
12996 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12997
12998 * lisp.h (inhibit_x_resources): Declare it extern.
12999
13000 * w32reg.c (x_get_string_resource):
13001 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
13002
13003 2009-09-17 Eli Zaretskii <eliz@gnu.org>
13004
13005 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
13006 Add lisp/term/internal.elc.
13007
13008 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13009
13010 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
13011 (bug#4461).
13012
13013 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
13014
13015 * puresize.h (BASE_PURESIZE): Increase to 1290000.
13016
13017 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
13018 (OBJECTS_MACHINE): Remove, unused.
13019
13020 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
13021
13022 * frame.c (x_get_resource_string): Remove unused.
13023
13024 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
13025
13026 * xterm.c (x_new_font): Call change_frame_size before calling
13027 x_set_window_size, in case frame size won't change.
13028
13029 * frame.c (x_set_font): Remove dead code.
13030
13031 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
13032
13033 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
13034
13035 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13036
13037 * lread.c (Fload): Don't output a message after loading an obsolete
13038 package any more (done in Lisp now).
13039
13040 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
13041
13042 * fns.c (syms_of_fns): Doc fix (Bug#4227).
13043
13044 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13045
13046 * keymap.c (Fwhere_is_internal): Use nconc2.
13047
13048 2009-09-11 Alan Mackenzie <acm@muc.de>
13049
13050 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
13051 batch mode.
13052
13053 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
13054
13055 * xdisp.c (display_mode_element): Detect cycles.
13056
13057 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13058
13059 * keymap.c (where_is_internal): Don't erroneously return nil right after
13060 filling the cache.
13061 (where_is_internal_1): Fix up typo.
13062
13063 2009-09-11 Glenn Morris <rgm@gnu.org>
13064
13065 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
13066 share a common doc-string.
13067
13068 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13069
13070 * keymap.c (get_keymap): Return the actual keymap symbol rather than
13071 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
13072
13073 * keymap.c (QCadvertised_binding): New constant.
13074 (syms_of_keymap): Initialize it.
13075 (Fwhere_is_internal): Try and use bindings from :advertised-binding
13076 if applicable.
13077
13078 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13079
13080 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
13081 (parse_menu_item): Streamline since bindings are recomputed all the
13082 time anyway. Don't bother checking Vdefine_key_rebound_commands any
13083 more and don't support lmenu's menu-alias any more either.
13084
13085 * keymap.c (where_is_internal_data): Make noindirect a boolean.
13086 (where_is_internal): Strip it down to only traverse the keymaps.
13087 Move the cache handling from Fwhere_is_internal to here.
13088 (Fwhere_is_internal): Move the handling of remapping and the choice of
13089 the best binding from where_is_internal to here.
13090 Unify the cached/noncached paths, so remapping is also handled
13091 correctly when the cache is used, and so the cache can be used to
13092 speed up remap-handling when applicable.
13093 Give preference to non-remapped bindings.
13094 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
13095 non-remapped bindings.
13096 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
13097 command remapping.
13098
13099 * xdisp.c (display_mode_element): Move list length limit from 50 to
13100 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
13101
13102 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
13103
13104 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
13105
13106 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
13107
13108 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
13109 (Bug#4334)
13110
13111 * keymap.c (where_is_internal): Filter out shadowed remappings.
13112 Assume that where_is_internal returns unshadowed bindings to simplify
13113 the code and get rid of the gotos. Use ASIZE.
13114
13115 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
13116
13117 * xterm.c (x_focus_changed): If we get a focusout and pointer
13118 is invisible, make it visible.
13119
13120 * xterm.h: Remove condition for declaration of
13121 x_*_window_to_frame.
13122
13123 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
13124
13125 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
13126 initial terminal as well.
13127
13128 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
13129
13130 * xterm.h: Rename x_non_menubar_window_to_frame to
13131 x_menubar_window_to_frame.
13132
13133 * xterm.c: Remove declarations also in xterm.h.
13134 (XTmouse_position): Do not return valid positions
13135 for clicks in the menubar and the toolbar for Gtk+.
13136
13137 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
13138 if the widget for the event has the same top level as a frame,
13139 return the frame.
13140 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
13141 internal windows, bug #4122.
13142 (x_non_menubar_window_to_frame): Remove.
13143
13144 2009-09-02 Glenn Morris <rgm@gnu.org>
13145
13146 * buffer.c (default-major-mode): Move most of the doc from here...
13147 (major-mode): ... to here.
13148
13149 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
13150
13151 * process.c (wait_reading_process_output): Keep the descriptor
13152 when pty is used by a non-child process, e.g., in I/O buffer of
13153 GDB this allows inferior to be restarted.
13154
13155 2009-08-29 Eli Zaretskii <eliz@gnu.org>
13156
13157 * xdisp.c (redisplay_internal): Remove redundant test and collapse
13158 both branches into one.
13159
13160 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13161
13162 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
13163 (main): Use enable-multibyte-characters rather than
13164 default-enable-multibyte-characters. Output a warning message when
13165 running a unibyte session.
13166
13167 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13168
13169 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
13170 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
13171 (copy_data_segment): Also copy __program_vars section.
13172 (copy_dyld_info) [LC_DYLD_INFO]: New function.
13173 (dump_it) [LC_DYLD_INFO]: Use it.
13174
13175 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
13176
13177 2009-08-28 Eli Zaretskii <eliz@gnu.org>
13178
13179 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
13180 $(SRC)/buildobj.h.
13181 (buildobj.h): Rename from $(SRC)/buildobj.h.
13182 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
13183 $(SRC)/buildobj.h.
13184 (clean): Add buildobj.h.
13185
13186 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
13187
13188 * print.c (print_object): Set escapeflag to 1 when printing
13189 hashtable keys and values.
13190
13191 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
13192
13193 * lread.c (read_integer): Use doubles (and potentially return a float
13194 number) as we do in string-to-number.
13195 (read1): Use strtol to read integers, signal errors on strtol's
13196 overflow and use floats if strtol's output is too large for
13197 Elisp integers.
13198
13199 2009-08-27 Eli Zaretskii <eliz@gnu.org>
13200
13201 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
13202 (make-buildobj-SH): Fix last change.
13203 (SRC): Move to before where it's first used.
13204
13205 2009-08-27 Kenichi Handa <handa@m17n.org>
13206
13207 * process.c (send_process): Use encode_coding_object instead of
13208 encode_coding_string to perform eol-conversion even if the string
13209 is unibyte.
13210
13211 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
13212 character.
13213
13214 * cmds.c (Fself_insert_command): Avoid unnecessay
13215 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
13216
13217 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
13218
13219 * callproc.c (Fcall_process): Remove always true #if.
13220
13221 * lisp.h: Replace #if 0 code for checking with text pointing to
13222 the --enable-checking configure flag.
13223
13224 * emacs.c (main): Mention the --enable-profiling configure flag
13225 instead of using CFLAGS.
13226
13227 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
13228
13229 * Makefile.in (buildobj.h): New target.
13230 (doc.o): Depend on it.
13231 (temacs${EXEEXT}): Don't generate buildobj.lst.
13232 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13233 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13234 ($(BLD)/doc.$(O)): Depend on it.
13235 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13236 provided by Eli Zaretskii.)
13237 ($(TEMACS)): Don't generate buildobj.lst.
13238 * doc.c: Include buildobj.h.
13239 (buildobj): New static variable.
13240 (Fsnarf_documentation): Use it, instead of opening and reading
13241 buildobj.lst.
13242
13243 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
13244
13245 * dbusbind.c (Fdbus_call_method)
13246 (Fdbus_call_method_asynchronously): Use English numeric format for
13247 timeout values in doc string.
13248
13249 2009-08-25 Kenichi Handa <handa@m17n.org>
13250
13251 * alloc.c (mark_char_table): New function.
13252 (mark_object): Use mark_char_table for a char-table.
13253
13254 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13255 (CHAR_TABLE_REF): Use it.
13256
13257 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
13258
13259 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13260 before invoking the newly build emacs to check for load-path
13261 shadowing.
13262
13263 2009-08-22 Glenn Morris <rgm@gnu.org>
13264
13265 * Makefile.in (bootstrap_exe): New variable.
13266 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13267 Use ${bootstrap_exe}.
13268
13269 2009-08-22 Eli Zaretskii <eliz@gnu.org>
13270
13271 * coding.h (encode_coding_string): Don't encode unibyte strings.
13272 (Bug#4047)
13273
13274 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
13275
13276 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13277
13278 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13279 intended as hotfix only.
13280 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13281
13282 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13283
13284 * nsterm.m (ns_get_color): Update documentation properly for last
13285 change, and clean up loose ends in the code left by it.
13286 Fix longstanding bug with 16-bit hex parsing, and add support for
13287 yet another X11 format (rgb:r/g/b) for compatibility.
13288 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13289 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13290
13291 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13292
13293 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13294
13295 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
13296
13297 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13298 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13299 (xd_initialize, xd_pending_messages): Check, whether
13300 $DBUS_SESSION_BUS_ADDRESS is set.
13301
13302 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13303
13304 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13305
13306 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13307
13308 2009-08-20 Glenn Morris <rgm@gnu.org>
13309
13310 * emacs.c (system-type): Doc fix.
13311
13312 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13313
13314 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13315 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13316
13317 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
13318
13319 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13320 New functions.
13321 (xd_initialize): Revert change from 2009-08-16.
13322
13323 2009-08-18 Kenichi Handa <handa@m17n.org>
13324
13325 * fontset.c (Ffontset_font): If a nil element is found in a
13326 font-group vector, return nil.
13327
13328 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
13329
13330 * process.c (status_notify): Don't perform redisplay.
13331 (Fdelete_process, list_processes_1, process_send_signal):
13332 Expliticly perform redisplay.
13333 (wait_reading_process_output): Always check process status, but
13334 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13335
13336 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
13337
13338 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
13339 (XFLOAT_INIT): New macro for storing a float value.
13340 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13341 * fns.c (sxhash): Copy out the value of a float in order to
13342 examine its bytes.
13343 * dbusbind.c (xd_append_arg): Likewise.
13344
13345 * emacs.c (main): Don't call syms_of_data twice.
13346
13347 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
13348
13349 * dbusbind.c (xd_initialize): Add connection file descriptor to
13350 input_wait_mask, in order to let select() detect, whether a new
13351 message has been arrived.
13352 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
13353
13354 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
13355
13356 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13357 New functions.
13358
13359 * lisp.h (xd_pending_messages): Declare.
13360
13361 * keyboard.c (readable_events): Call xd_pending_messages.
13362
13363 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
13364
13365 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
13366
13367 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13368
13369 * buffer.c (set_buffer_internal_1)
13370 (swap_out_buffer_local_variables): Check for unbound local
13371 variables (Bug#4138).
13372
13373 2009-08-14 Eli Zaretskii <eliz@gnu.org>
13374
13375 * process.c (create_pty): Fix last change.
13376
13377 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
13378
13379 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13380 (xbm_load_image): Caller changed.
13381 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13382
13383 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
13384
13385 * process.c (create_pty): New function.
13386 (Fstart_process): Use it to allow Emacs to just associate a pty
13387 with the buffer. See associated change in gdb-mi.el.
13388 (list_processes_1): Deal with no program name.
13389 (start_process_unwind): Use pid == -2 to mean no process.
13390
13391 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13392
13393 * cmds.c (nonundocount): New global variable.
13394 (keys_of_cmds): Initialize it.
13395 (Fself_insert_command): Use it to combine upto 20 sequential chars
13396 into a single undo entry, just like the Qself_insert_command code in
13397 keyboard.c does.
13398 Call frame_make_pointer_invisible, also like the Qself_insert_command
13399 code in keyboard.c does.
13400 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13401 than its own local replacement for it.
13402
13403 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
13404
13405 * fns.c (concat): Don't re-set string length to its current value.
13406
13407 * coding.h (decode_coding_string, encode_coding_string):
13408 Use SBYTES macro.
13409
13410 * doprnt.c (doprnt_lisp): Delete unused function.
13411 (doprnt): Merge with doprnt1, discarding lispstrings code.
13412 * lisp.h (doprnt_lisp): Don't declare.
13413
13414 2009-08-07 Juri Linkov <juri@jurta.org>
13415
13416 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13417
13418 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13419
13420 * print.c (syms_of_print): Undo previous change.
13421
13422 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13423
13424 * lread.c (read1, syms_of_lread): Read hashtables back from the
13425 readable format.
13426
13427 * print.c (print_preprocess, print_object): Print hashtables fully
13428 and readably.
13429 (syms_of_print): Provide 'hashtable-print-readable.
13430
13431 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13432
13433 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13434 no family set.
13435 (nsfont_open): Handle case when entity has no family.
13436
13437 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13438
13439 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13440 element, not a list, for match case.
13441
13442 2009-07-28 Kenichi Handa <handa@m17n.org>
13443
13444 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13445 rigidly.
13446
13447 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13448 font_parse_xlfd. Check font properties more rigidly.
13449
13450 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13451
13452 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13453 bsd-common.h.
13454
13455 2009-07-27 Kenichi Handa <handa@m17n.org>
13456
13457 * xfaces.c (face_with_height): Call font_clear_prop.
13458
13459 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
13460
13461 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13462
13463 * xterm.c (x_term_init): Use Qx.
13464
13465 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13466
13467 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13468 (ns_get_color): Revert 2009-07-16 change.
13469
13470 2009-07-25 Eli Zaretskii <eliz@gnu.org>
13471
13472 * lread.c (syms_of_lread) <force_load_messages>: New variable.
13473 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13474
13475 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
13476
13477 * coding.h (decode_coding_string, encode_coding_string):
13478 Use SCHARS macro.
13479
13480 * lread.c: Rewrite 2009-07-21 changes.
13481 (load_depth): Delete.
13482 (Qload_in_progress): New variable.
13483 (load_unwind): Don't reference load_depth or load_in_progress.
13484 (Fload): Likewise; specbind Qload_in_progress instead.
13485 (init_lread): Don't initialize load_depth.
13486 (syms_of_lread): Initialize and protect Qload_in_progress.
13487
13488 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13489
13490 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13491
13492 2009-07-23 Yavor Doganov <yavor@gnu.org>
13493
13494 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13495
13496 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13497
13498 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13499 Bugs 3792, 3720, 2402.
13500 (ns_lookup_indexed_color): Check for bad index.
13501 (ns_index_color): Init unused slot to 0.
13502 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13503 Bug 3714, possibly 3082.
13504
13505 2009-07-22 Jason Rumney <jasonr@gnu.org>
13506
13507 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13508 Position IME window at cursor (Bug#2570).
13509 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13510 (globals_of_w32fns): Dynamically load functions required above.
13511
13512 * w32term.c (w32_draw_window_cursor): Send message to reposition
13513 any IME window.
13514
13515 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13516
13517 * fileio.c: Revert 2009-07-16 changes.
13518 (Vauto_save_include_big_deletions): New variable.
13519 (Fdo_auto_save): Disable auto-save only if
13520 auto-save-include-big-deletions is nil.
13521
13522 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13523
13524 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13525 the overflowed pixels into account (Bug#3879).
13526
13527 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
13528
13529 * lread.c (load_depth): New variable.
13530 (Fload, load_unwind, init_lread): Set it to the load recursion
13531 depth; set load_in_progress as a simple boolean based on the
13532 current load_depth. (Bug#3892)
13533
13534 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13535
13536 * nsfont.m (ns_has_attribute): Remove.
13537 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13538
13539 2009-07-18 Juri Linkov <juri@jurta.org>
13540
13541 * process.c (Fset_process_query_on_exit_flag): Mention killing
13542 a buffer in docstring.
13543
13544 2009-07-17 Kenichi Handa <handa@m17n.org>
13545
13546 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13547
13548 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13549
13550 * nsfns.m (Fns_set_alpha): Remove function.
13551 (syms_of_nsfns): Don't defsubr it.
13552
13553 * nsterm.m (ns_get_color): Remove incompatible color formats.
13554 (ns_color_to_lisp): Generate #rrggbb color format string.
13555
13556 2009-07-16 Richard Stallman <rms@gnu.org>
13557
13558 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13559 (Fset_buffer_auto_saved): Handle save_length = -2.
13560
13561 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
13562
13563 * xterm.c (Qx_gtk_map_stock): New var.
13564
13565 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13566 of calling intern each time.
13567
13568 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13569
13570 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13571 does tiling.
13572
13573 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13574
13575 2009-07-14 Kenichi Handa <handa@m17n.org>
13576
13577 * font.c (font_vconcat_entity_vectors): New function.
13578 (struct font_sort_data): New member font_driver_preference.
13579 (font_compare): Check font_driver_preference.
13580 (font_sort_entities): The format of the first argument changed.
13581 (font_delete_unmatched): Likewise.
13582 (font_list_entities): The return type changed.
13583 (font_select_entity): The format of the second argument changed.
13584 (font_find_for_lface): Adjuste for the above changes.
13585 Don't suppress the checking of C even if the repertory supports it.
13586 (Flist_fonts): Adjust for the above changes.
13587
13588 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13589 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13590 Reject a font who has adstyle property that is different from a
13591 langname derived from registry property.
13592 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13593
13594 2009-07-13 Eli Zaretskii <eliz@gnu.org>
13595
13596 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13597 local copy of dirfilename.
13598
13599 2009-07-13 Kenichi Handa <handa@m17n.org>
13600
13601 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13602 against max_char.
13603
13604 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13605 calling XSYMBOL (sym).
13606
13607 2009-07-11 Eli Zaretskii <eliz@gnu.org>
13608
13609 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13610 New function.
13611 (directory_files_internal) [WINDOWSNT]:
13612 Bind w32-get-true-file-attributes to either t or nil, depending whether
13613 the filesystem of the directory is fast or slow.
13614
13615 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13616 file name.
13617 (is_slow_fs): New function.
13618 (stat): Use it to determine whether to issue more system calls to
13619 get accurate file attributes, when w32-get-true-file-attributes is
13620 `local'.
13621
13622 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13623
13624 * xfns.c (Fx_select_font): Remember last font selected in
13625 x_last_font_name and use that the next time. Also try the frame
13626 parameter font-parameter as default to the font dialog.
13627
13628 2009-07-10 Kenichi Handa <handa@m17n.org>
13629
13630 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13631
13632 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13633
13634 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13635
13636 * w32.c (stat): Treat UNC file names as residing on remote
13637 drives. (Bug#3542)
13638
13639 2009-07-09 Kenichi Handa <handa@m17n.org>
13640
13641 * fontset.c (fontset_find_font): Fix previous change.
13642
13643 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13644
13645 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13646 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13647 error flag.
13648
13649 2009-07-08 Kenichi Handa <handa@m17n.org>
13650
13651 * fontset.c (fontset_find_font): Fix the logic of handling
13652 charset_matched.
13653 (font_for_char): Delete unused var.
13654 (generate_ascii_font_name): Delete it.
13655
13656 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13657
13658 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13659 (encode_coding_sjis): Fix the code range check.
13660
13661 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13662
13663 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13664 (Fexpand_file_name): Copy string data properly (Bug#3772).
13665
13666 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13667
13668 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13669 first MapNotify.
13670
13671 2009-07-07 Kenichi Handa <handa@m17n.org>
13672
13673 * character.h (unibyte_has_multibyte_table): Delete extern.
13674 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13675
13676 * charset.c (Fset_charset_priority): Update charset_unibyte.
13677 (syms_of_charset): Initialize charset_unibyte.
13678
13679 * character.c (unibyte_has_multibyte_table): Delete it.
13680 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13681 charset_unibyte.
13682 (multibyte_char_to_unibyte_safe): Likewise.
13683 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13684
13685 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13686 (x_produce_glyphs): Likewise.
13687
13688 * .gdbinit (xcharset): Fix the treating $arg0.
13689
13690 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13691
13692 Emulation of `getloadavg' on MS-Windows.
13693 * w32.c: Include float.h.
13694 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13695 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13696 (get_native_system_info, get_system_times): New functions.
13697 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13698 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13699 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13700 g_b_init_get_system_times, and num_of_processors.
13701
13702 2009-07-03 Jason Rumney <jasonr@gnu.org>
13703
13704 * w32term.c (w32_initialize): Use standard types.
13705
13706 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13707
13708 * dired.c (Ffile_attributes): Decode user and group names by the
13709 locale's encoding. (Bug#3443)
13710
13711 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13712
13713 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13714 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13715
13716 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13717
13718 * term.c (init_tty): Remove spurious #ifdef.
13719
13720 * m/mips.h: Mention this file is also used for netbsd.
13721 * m/pmax.h: Remove file.
13722
13723 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13724
13725 * xterm.h (struct x_display_info): Add invisible_cursor.
13726 (struct x_output): Add current_cursor.
13727
13728 * xterm.c (XTtoggle_invisible_pointer): New function.
13729 (x_define_frame_cursor): Don't define cursor if invisible or the
13730 same as before. Set current_cursor.
13731 (x_create_terminal): Set toggle_invisible_pointer_hook.
13732
13733 * xfns.c (make_invisible_cursor): New function.
13734 (x_set_mouse_color): Call make_invisible_cursor.
13735 Set current_cursor.
13736 (x_window): Set current_cursor.
13737
13738 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13739
13740 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13741 inserting a character.
13742 (read_avail_input): Call frame_make_pointer_visible.
13743
13744 * frame.c (Vmake_pointer_invisible): New variable.
13745 (frame_make_pointer_invisible, frame_make_pointer_visible):
13746 New functions.
13747 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13748
13749 * frame.h: Declare frame_make_pointer_invisible and
13750 frame_make_pointer_visible.
13751 (struct frame): Add pointer_invisible.
13752
13753 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13754
13755 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13756 frame isn't visible.
13757 (xg_frame_resized): If width/height is -1, get size of window
13758 from X server.
13759
13760 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13761 for MapNotify.
13762
13763 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13764 here or call change_frame_size. Just call flush_and_sync.
13765 (flush_and_sync): Reintroduce.
13766
13767 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13768
13769 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13770
13771 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13772 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13773
13774 * frame.h: Declare Qsticky.
13775
13776 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13777
13778 * nsfns.m (ns_frame_parm_handlers): Ditto.
13779
13780 * frame.c: Declare Qsticky.
13781 (frame_parms): Add sticky.
13782
13783 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13784
13785 * xterm.h: Declare x_set_sticky.
13786
13787 * xterm.c (x_set_sticky): New function.
13788
13789 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13790 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13791 xg_tool_bar_proxy_help_callback.
13792
13793 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13794
13795 * frame.c: Qmaximized is new.
13796 (x_set_frame_parameters): Do not handle fullscreen specially.
13797 Only set width and height if explicitly set.
13798 (x_set_fullscreen): Handle Qmaximized.
13799 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13800 (syms_of_frame): Initialize Qmaximized.
13801
13802 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13803 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13804
13805 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13806 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13807 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13808 set gravity to NorthWestGravity when USE_GTK.
13809 (set_wm_state): New function.
13810 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13811 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13812 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13813 or the case when no window manager is running. That means remove calls
13814 to x_real_positions and x_fullscreen_adjust.
13815
13816 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13817 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13818 flush_and_sync.
13819 (xg_height_changed): New function.
13820 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13821 and gtk_window_set_policy. Set frame gravity after parsing the
13822 geometry string.
13823 (xg_update_frame_menubar, free_frame_menubar)
13824 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13825 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13826 Remove calls to xg_frame_set_char_size.
13827
13828 2009-07-01 Kenichi Handa <handa@m17n.org>
13829
13830 * keyboard.c (decode_keyboard_code): New function.
13831 (tty_read_avail_input): Decode the input bytes if necessary.
13832
13833 * coding.c (setup_coding_system):
13834 Initialize coding->carryover_bytes to 0.
13835 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13836 use Qno_conversion.
13837
13838 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13839
13840 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13841
13842 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13843
13844 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13845
13846 2009-06-30 Jason Rumney <jasonr@gnu.org>
13847
13848 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13849 is already loaded.
13850 Set user model ID if supported (bug#1849).
13851
13852 2009-06-29 Jim Meyering <meyering@redhat.com>
13853
13854 Remove useless if-before-xfree test.
13855 * nsfont.m (nsfont_close): Remove useless test.
13856 * term.c (delete_tty): Likewise.
13857 * w32.c (system_process_attributes): Likewise.
13858 * w32font.c (w32font_close): Likewise.
13859 * xfaces.c (x_free_gc): Likewise.
13860 * xselect.c (buffer): Likewise.
13861
13862 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13863
13864 * process.c (send_process): Keep decoded string in a local
13865 variable and protect it from GC. (Bug#3521)
13866
13867 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13868
13869 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13870 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13871
13872 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13873
13874 * xdisp.c (start_display, handle_face_prop)
13875 (move_it_vertically_backward, cursor_row_fully_visible_p)
13876 (redisplay_window, try_window_id, produce_image_glyph):
13877 Delete some #ifdef-ed out code chunks that are now obsolete.
13878
13879 * xterm.c (x_update_window_begin, x_new_focus_frame)
13880 (x_scroll_bar_handle_click, handle_one_xevent)
13881 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13882 (x_make_frame_visible, x_make_frame_invisible)
13883 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13884 code chunks that are now obsolete.
13885
13886 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13887
13888 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13889 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13890 for hours, when optimzation is enabled.
13891 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13892 (xd_read_message): Make them static.
13893
13894 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13895
13896 * term.c (turn_on_face): Allow simultaneously bold and dim
13897 terminal faces (Bug#3530).
13898
13899 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13902
13903 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13904 truncation glyphs (Bug#3686).
13905
13906 2009-06-27 Glenn Morris <rgm@gnu.org>
13907
13908 * m/pmax.h: Restore file, with only netbsd portions.
13909
13910 2009-06-26 David Reitter <david.reitter@gmail.com>
13911
13912 * nsterm.m (keydown): Avoid infinite loop.
13913
13914 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13915
13916 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13917 the arg FORCE_SYMBOL.
13918
13919 2009-06-25 Kenichi Handa <handa@m17n.org>
13920
13921 * fontset.c (fontset_find_font): When a usable rfont_def is found
13922 in a fallback font-group, make it the first element of the group.
13923
13924 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13925
13926 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13927
13928 2009-06-24 Kenichi Handa <handa@m17n.org>
13929
13930 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13931 set for C.
13932 (fontset_font): Record the availability of a font for C both in
13933 the realized fontsets of the current one and the default one.
13934
13935 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13936
13937 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13938 conditional, it is always defined on AIX.
13939
13940 2009-06-23 Miles Bader <miles@gnu.org>
13941
13942 * window.c (Vrecenter_redisplay): New variable.
13943 (syms_of_window): Initialize it.
13944 (Qtty): New extern declaration.
13945 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13946
13947 2009-06-23 Jim Meyering <meyering@redhat.com>
13948
13949 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13950 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13951 pointer dereferences are guaranteed to be valid.
13952
13953 2009-06-23 Kenichi Handa <handa@m17n.org>
13954
13955 * emacs.c (main): Call init_font ().
13956
13957 * font.h (Vfont_log): Extern it.
13958 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13959
13960 * font.c (font_sort_entities, font_list_entities)
13961 (font_matching_entity, font_open_entity)
13962 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13963 (Vfont_log): Delete static.
13964 (font_log_env_checked): Delete this variable.
13965 (font_add_log): Don't check font_log_env_checked.
13966 (font_deferred_log): Check Vfont_log.
13967 (init_font): New function.
13968
13969 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13970
13971 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13972
13973 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13974
13975 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13976
13977 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13978 (face_for_char): Don't call font_deferred_log here.
13979 (font_for_char): Likewise.
13980
13981 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
13982
13983 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13984 rather than its background_width for drawing the overline and
13985 underline (Bug#489).
13986
13987 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13988 rather than its background_width for drawing the overline and
13989 underline (Bug#489).
13990 (xg_default_icon_file): New variable.
13991 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13992 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13993
13994 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13995 (load_overlay_strings): Remove externs.
13996 (fast_find_position): Function deleted.
13997 (mouse_face_from_buffer_pos): New function, based on
13998 fast_find_position. Correctly handle before-strings,
13999 display-strings, and after-strings (Bug#1220).
14000 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
14001
14002 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14003
14004 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
14005 (move_it_in_display_line_to, move_it_in_display_line_to)
14006 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
14007
14008 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14009
14010 * Branch for 23.1.
14011
14012 2009-06-21 Jason Rumney <jasonr@gnu.org>
14013
14014 * w32term.c (keyboard_codepage): New static variable.
14015 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
14016 (w32_read_socket) [WM_CHAR]: Use it to decode character
14017 input (bug#3237).
14018 (w32_initialize): Initialize it.
14019 (codepage_for_locale): New function.
14020
14021 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
14022
14023 * process.c (status_message): Pass Faset index argument as a lisp
14024 object, so as to work with USE_LISP_UNION_TYPE.
14025
14026 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14027
14028 * coding.c (Ffind_coding_systems_region_internal):
14029 Cache checked characters.
14030
14031 2009-06-18 Kenichi Handa <handa@m17n.org>
14032
14033 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
14034
14035 2009-06-18 Andreas Schwab <aschwab@redhat.com>
14036
14037 * xdisp.c (redisplay_internal): Check that the frame is still
14038 live after redisplay of its windows.
14039 (redisplay_windows): Check that the window is still live.
14040
14041 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
14042
14043 * coding.c (detect_coding_utf_16): Fix previous change.
14044
14045 2009-06-16 Kenichi Handa <handa@m17n.org>
14046
14047 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
14048 UTF-16 by checking the dispersion of Eth and Oth bytes.
14049
14050 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
14051
14052 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
14053
14054 2009-06-15 Kenichi Handa <handa@m17n.org>
14055
14056 * process.c (status_message): Fix previous change. Be sure to
14057 decode a localized string.
14058
14059 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14060
14061 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
14062 add comment explaining why.
14063
14064 2009-06-14 Sidney Markowitz <sidney@sidney.com>
14065
14066 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
14067
14068 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
14069
14070 * nsfont.m (ns_attribute_value): Remove.
14071 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
14072 (ns_has_attribute): Shrink the normal range.
14073 (ns_findfonts): Don't worry about requested spec in determining
14074 need for synthItal.
14075 (ns_get_covering_families): Retain scriptToFamilies.
14076
14077 2009-06-14 Seiji Zenitani <zenitani@mac.com>
14078
14079 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
14080
14081 2009-06-11 Kenichi Handa <handa@m17n.org>
14082
14083 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14084 overhang for the static composition case.
14085
14086 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14087
14088 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14089 overhang for the automatic composition case.
14090
14091 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
14092 composition case.
14093
14094 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
14095
14096 * xdisp.c (get_next_display_element): When handling wrap-prefix
14097 and line-prefix, treat \n as a control character (bug#3502).
14098
14099 2009-06-10 Kenichi Handa <handa@m17n.org>
14100
14101 * font.c (font_parse_family_registry): Fix for one-char foundry.
14102 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
14103
14104 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
14105
14106 * process.c (status_message): Fix handling of multibyte signal
14107 string (Bug#3499).
14108
14109 2009-06-09 Jim Meyering <meyering@redhat.com>
14110
14111 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
14112 color name is missing.
14113
14114 2009-06-09 Kenichi Handa <handa@m17n.org>
14115
14116 * charset.c (Fmap_charset_chars): In docstring, state clearly that
14117 FROM-CODE and TO-CODE are codepoints of CHARSET.
14118
14119 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14120
14121 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
14122
14123 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14124
14125 Changes to support :script/:lang/:otf in NS font driver.
14126 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
14127 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
14128 indicate not part of font driver interface, and change callers.
14129 (ns_get_family): Remove pointless null check.
14130 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
14131 ns_spec_to_descriptor, ns_descriptor_to_entity.
14132 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
14133 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
14134 (ns_spec_to_descriptor, ns_descriptor_to_entity)
14135 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
14136 (ns_get_req_script, ns_accumulate_script_ranges)
14137 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
14138 New functions.
14139 (nsfont_list, nsfont_match): Use ns_findfonts.
14140 (nsfont_open): Use font descriptor instead of traits.
14141 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
14142 (dump_glyphstring): Rename to ns_dump_glyphstring.
14143
14144 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
14145
14146 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
14147
14148 * fontset.c (fontset_from_font): Remove NS-specific code.
14149
14150 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
14151
14152 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
14153 nonactive windows.
14154
14155 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
14156
14157 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
14158
14159 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14160
14161 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
14162
14163 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
14164
14165 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
14166 account for the overflowing of newlines into the last glyph on the
14167 display line (Bug#3482).
14168
14169 2009-06-05 David Reitter <david.reitter@gmail.com>
14170
14171 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
14172 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
14173 Fns_selection_exists_p, Fns_selection_owner_p.
14174
14175 2009-06-03 Jason Rumney <jasonr@gnu.org>
14176
14177 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
14178 available. (Bug#3379)
14179
14180 2009-05-29 Kenichi Handa <handa@m17n.org>
14181
14182 * coding.c (get_translation_table):
14183 Check Venable_character_translation.
14184
14185 2009-05-26 David Reitter <david.reitter@gmail.com>
14186
14187 * nsterm.m (ns_raise_frame): Only raise frame if visible.
14188 (x_make_frame_visible): Move frame to front rather than calling
14189 ns_raise_frame().
14190 (keyDown:): Do not swallow events that aren't re-sent if frame
14191 isn't key window.
14192 (drawRect:): Do not set visibility/iconified flags because
14193 drawRect may be called by NSView even if the frame is hidden.
14194
14195 * nsfns.m (Fx_create_frame): Follow other ports in
14196 determining visibility; default to t. Ensure async_visible is set.
14197
14198 2009-05-23 Eli Zaretskii <eliz@gnu.org>
14199
14200 * dired.c (Ffile_attributes): Doc fix.
14201
14202 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
14203
14204 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
14205
14206 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
14207
14208 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
14209 and xfont_scratch_props.
14210 (syms_of_xfont): Do it here instead.
14211 (xfont_find_ccl_program): Delete, unused.
14212 (xfont_open): Delete unused var `i'.
14213
14214 2009-05-21 Kenichi Handa <handa@m17n.org>
14215
14216 * fontset.c (Qlatin): Don't make it static.
14217
14218 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
14219 New functions.
14220 (xfont_scripts_cache, xfont_scratch_props): New variables.
14221 (Qlatin, Vscalable_fonts_allowed): Extern it.
14222 (xfont_list_pattern): Argument changed. Callers changed.
14223 Check Vscalable_fonts_allowed. Check the support of a script.
14224 (xfont_list): Don't reject a font spec with :script property.
14225 (xfont_has_char): Fix setting of encoding.
14226 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
14227 xfont_scratch_props.
14228
14229 2009-05-19 Kenichi Handa <handa@m17n.org>
14230
14231 * font.c (font_sort_entities): Rename from font_sort_entites.
14232 Callers changed.
14233
14234 2009-05-18 Kenichi Handa <handa@m17n.org>
14235
14236 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14237
14238 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14239
14240 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14241 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14242
14243 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14244
14245 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14246 (x_delete_terminal): Dissociate resource database from display and
14247 then call XrmDestroyDatabase before closing display.
14248
14249 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14250
14251 * nsterm.m (ns_read_socket): Remove unused variable.
14252 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14253 whether selected frame is viable before raising it (based on patch
14254 by David Reitter), and improve commentary.
14255 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
14256
14257 2009-05-15 Kenichi Handa <handa@m17n.org>
14258
14259 * font.c (Ffont_spec): Check arguments.
14260
14261 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
14262
14263 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14264 weight when testing attributes (Bug#3282).
14265
14266 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14267
14268 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14269 what we expect to get in the next ConfigureNotify event.
14270
14271 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14272 before Xft one (Bug#1696).
14273
14274 2009-05-07 David Reitter <david.reitter@gmail.com>
14275
14276 * nsfns.m (Fx_display_planes): Compute bitplanes using
14277 NSBitsPerPixelFromDepth (Bug#3207).
14278
14279 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
14280
14281 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14282
14283 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
14284
14285 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14286
14287 2009-05-07 David Reitter <david.reitter@gmail.com>
14288
14289 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14290 Respect mouse face background.
14291
14292 2009-05-07 David Reitter <david.reitter@gmail.com>
14293
14294 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14295 Mouse movement/highlight: bracket drawing operations
14296 in ns_update_begin and ns_update_end.
14297
14298 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14299
14300 * nsfns.m (ns_get_screen): Rewrite.
14301 Don't presume selected-frame is of type `ns'.
14302
14303 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14304 all drivers.
14305
14306 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14307
14308 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14309
14310 * keyboard.h (add_user_signal): Fix typo in extern.
14311
14312 * lisp.h (add_user_signal): Remove extern.
14313
14314 * unexelf.c (unexec): Consider a section to precede the .bss section
14315 if its addresses overlap that of .bss.
14316 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14317 instead of dumping process.
14318
14319 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14320
14321 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14322
14323 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14324
14325 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14326
14327 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14328
14329 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14330 any statements.
14331
14332 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14333
14334 * process.c (read_process_output): Make sure the current buffer is
14335 always restored.
14336
14337 * coding.c (record_conversion_result): Don't modify
14338 Vlast_code_conversion_error for successful result.
14339 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14340
14341 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14342
14343 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
14344 (load_charset_map): Remove unnecessary code.
14345
14346 2009-04-30 David Reitter <david.reitter@gmail.com>
14347
14348 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
14349 through f24.
14350
14351 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
14352
14353 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14354
14355 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14356 face_at_buffer_position.
14357 (face_before_or_after_it_pos, get_next_display_element)
14358 (note_mouse_highlight): Update face_at_buffer_position call.
14359
14360 * term.c (term_mouse_highlight):
14361 * msdos.c (IT_note_mouse_highlight):
14362 * fontset.c (Finternal_char_font):
14363 * font.c (font_at, font_range): Update face_at_buffer_position call.
14364
14365 * dispextern.h (face_at_buffer_position): Update prototype.
14366
14367 2009-04-30 Kenichi Handa <handa@m17n.org>
14368
14369 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
14370
14371 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14372
14373 * callproc.c (Fcall_process): Fix GC protection. Make sure
14374 current buffer is always restored.
14375
14376 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14377
14378 * atimer.c (init_atimer): Also clear stopped_atimers.
14379
14380 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14381
14382 * process.c (create_process): Clean up merger residues of
14383 2008-07-17 change.
14384
14385 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
14386
14387 * lread.c (Vread_circle): New variable.
14388 (read1): Disable recursive read if Vread_circle is nil.
14389
14390 2009-04-29 Kenichi Handa <handa@m17n.org>
14391
14392 * fontset.h (set_default_ascii_font): Delete extern.
14393
14394 * fontset.c (set_default_ascii_font): Delete this unused function.
14395
14396 * frame.c (x_set_font): When ARG is a font-object, check if the
14397 font-object matches with the ASCII font-spec of the frame's
14398 fontset. If not, create a new fontset for the frame. (Bug #3075)
14399
14400 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14401
14402 * fns.c (Flocale_info): Protect vector from GC during decoding.
14403
14404 * process.c (Fstart_process): Protect argv strings from GC during
14405 encoding.
14406
14407 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14408
14409 * sysdep.c: Include <ctype.h>.
14410
14411 2009-04-27 David Reitter <david.reitter@gmail.com>
14412
14413 * nsfont.m (nsfont_open): Remove unused variable shrink.
14414 Remove commented-out code.
14415
14416 2009-04-26 Johan Bockgård <bojohan@gnu.org>
14417
14418 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14419
14420 2009-04-25 Jason Rumney <jasonr@gnu.org>
14421
14422 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14423
14424 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14425
14426 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14427 Swap bytes in short integer if fringe bitmap width > 8.
14428
14429 2009-04-23 Kenichi Handa <handa@m17n.org>
14430
14431 * xfaces.c (Fx_list_fonts): If a font size is specified in
14432 PATTERN, set it in returned scalable fonts.
14433
14434 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
14435
14436 * keyboard.c (Fset_input_meta_mode): Doc fix.
14437
14438 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14439
14440 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14441
14442 * coding.c (Fterminal_coding_system): Doc fix.
14443
14444 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14445 (Fx_display_pixel_height, Fx_display_planes)
14446 (Fx_display_color_cells, Fx_server_max_request_size)
14447 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14448 (Fx_display_mm_height, Fx_display_mm_width)
14449 (Fx_display_backing_store, Fx_display_visual_class)
14450 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14451 Doc fixes, replacing "terminal id" with "terminal object".
14452 (check_x_display_info): Handle terminal objects instead of
14453 terminal ids.
14454
14455 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14456 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14457 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14458 Doc fixes, replacing "terminal id" with "terminal object".
14459
14460 2009-04-21 Kenichi Handa <handa@m17n.org>
14461
14462 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14463 (font_score): Check AVGWIDTH too.
14464
14465 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14466 worst case.
14467 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14468 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14469
14470 2009-04-19 Jason Rumney <jasonr@gnu.org>
14471
14472 The following changes fix Bug#3005 for wide glyphs on each platform,
14473 without reintroducing Bug#1258 for stretch glyphs.
14474
14475 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14476 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14477 get_phys_cursor_geometry.
14478
14479 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14480 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14481 using get_phys_cursor_geometry.
14482
14483 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14484 correctly calculated.
14485
14486 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14487
14488 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14489 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14490 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14491 is deprecated.
14492
14493 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14494
14495 * font.c (font_put_frame_data): Use xfree instead of free.
14496
14497 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
14498
14499 * w32font.c (Qja, Qko): Remove declarations.
14500 (syms_of_w32font): Don't DEFSYM them.
14501
14502 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
14503
14504 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14505
14506 * font.h (Qja, Qko): Extern them.
14507
14508 * ftfont.c (Qja, Qko): Remove declarations.
14509
14510 * xfont.c (Qja, Qko): Remove declarations.
14511
14512 2009-04-17 Kenichi Handa <handa@m17n.org>
14513
14514 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14515 string from a vector to handle Latin-1 characters correctly.
14516
14517 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14518 entity even if the cache hits.
14519
14520 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14521
14522 * search.c (boyer_moore): Use zero as marker value for a possible
14523 match instead of depending on overflow behavior. (Bug#2844)
14524
14525 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14526 * lisp.h: Adjust prototypes.
14527
14528 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
14529
14530 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14531 change (Bug#3003).
14532
14533 2009-04-16 Kenichi Handa <handa@m17n.org>
14534
14535 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14536
14537 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14538 adstyle.
14539
14540 * ftfont.c (Qja, Qko): Don't make them static.
14541 (enum ftfont_cache_for): New enum.
14542 (fc_charset_table): Undo the previous change.
14543 (ftfont_get_latin1_charset): Delete it.
14544 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14545 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
14546 non-scarable font, try to get AVERAGE_WIDTH.
14547 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14548 Change ft_face_cache from a list of a hash-table. Don't check
14549 `ja' and `ko' adstyle here.
14550 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14551 FTFONT_CACHE_FOR_CHARET.
14552 (ftfont_get_charset): Undo the previous change.
14553 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14554 (ftfont_close): Likewise.
14555 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14556
14557 * font.c (font_sort_entites): Change the meaning of the arg
14558 BEST-ONLY. Don't optimize for VEC of lenght 1.
14559 (font_select_entity): Just return the value of font_sort_entites.
14560
14561 * xfaces.c (merge_face_vectors): Reflect font properties in
14562 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14563 font_clear_prop if a face attribute doesn't change.
14564
14565 * charset.h (charset_ksc5601): Extern it.
14566
14567 * charset.c (charset_ksc5601): New variable.
14568 (Fdefine_charset_internal): Set charset_ksc5601.
14569 (init_charset_once): Initialize charset_ksc5601 to -1.
14570
14571 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14572
14573 * fileio.c (history_delete_duplicates): Remove unused declaration.
14574
14575 * callint.c (history_delete_duplicates): New declaration.
14576 (Fcall_interactively): Remove command history duplicates when
14577 history_delete_duplicates is true.
14578
14579 2009-04-14 Eli Zaretskii <eliz@gnu.org>
14580
14581 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14582
14583 2009-04-14 Kenichi Handa <handa@m17n.org>
14584
14585 * font.c (Ffont_info): Fix docstring. Fix the second element of
14586 the returned value (bug#2949).
14587
14588 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
14589
14590 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14591
14592 2009-04-14 Kenichi Handa <handa@m17n.org>
14593
14594 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14595 encoding charset is ascii_compatible.
14596
14597 * charset.c (Fdefine_charset_internal): Make charset
14598 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14599 code_offset is 0, and covers all ASCII characters.
14600
14601 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14604 (ns_string_to_pasteboard_internal):
14605 * nsmenu.m (process_dialog):
14606 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14607 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14608 * lisp.h (Fx_load_color_file): Declare.
14609
14610 2009-04-13 Kenichi Handa <handa@m17n.org>
14611
14612 * font.c (font_delete_unmatched): Preserve the order of list elements.
14613 (font_select_entity): Suppress the code to optimize for the same
14614 kind of fonts.
14615 (font_load_for_lface): Get a font that supports at least ASCII
14616 characters.
14617
14618 * ftfont.c (Qja, Qko): New variables.
14619 (fc_charset_table): Delete uniquifier data for iso8859-1.
14620 (ftfont_get_latin1_charset): New function.
14621 (get_adstyle_property): New function.
14622 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14623 bitmap fonts.
14624 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14625 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14626 `ko' or `ja'.
14627 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14628 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14629 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14630 property.
14631 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14632 (syms_of_ftfont): DEFSYM Qja and Qko.
14633
14634 2009-04-09 Kenichi Handa <handa@m17n.org>
14635
14636 * charset.c (map_charset_chars): For a charset of `superset'
14637 method, fix calculation of code range.
14638
14639 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14640 from the list of extra properties.
14641 (font_clear_prop): Be sure to delete `:name' font property.
14642
14643 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14644
14645 * dispnew.c (redraw_overlapping_rows): Fix detection of
14646 overlapping for topmost and bottommost rows.
14647
14648 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14649
14650 2009-04-06 Jason Rumney <jasonr@gnu.org>
14651
14652 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14653
14654 2009-04-06 Kenichi Handa <handa@m17n.org>
14655
14656 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14657
14658 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14659
14660 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14661
14662 * ftfont.c (ftfont_open): Fix checking of the return value of
14663 FT_Load_Char. Fix setting font->underline_thickness.
14664
14665 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14666
14667 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14668 (Fterminal_parameters, Fterminal_parameter)
14669 (Fset_terminal_parameter): In doc string, refer to terminal
14670 objects rather than terminal ids.
14671
14672 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14673
14674 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14675 ret_lim_data. (Bug#2867)
14676
14677 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14678
14679 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14680 so they don't get wider than the window, matching 2006-01-23
14681 change to the partner function in xdisp.c (Bug#2800).
14682
14683 2009-04-03 Kenichi Handa <handa@m17n.org>
14684
14685 * print.c (print_object): Make each lowest sub_char_table start a
14686 new line (Bug#2866).
14687
14688 2009-04-02 Kenichi Handa <handa@m17n.org>
14689
14690 * fontset.c (fontset_font): Record no-font when a fontset
14691 explicitly tells not to try another font-specs.
14692
14693 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14694
14695 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14696
14697 2009-03-30 Kenichi Handa <handa@m17n.org>
14698
14699 * fontset.c (fontset_from_font): Specify only registry in a
14700 font-spec for all characters supported by that registry.
14701
14702 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14703 even if HAVE_M17N_FLT is not defined.
14704
14705 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14706
14707 * ftfont.c: Conditionalize prototyping and use of
14708 ftfont_variation_glyphs.
14709
14710 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14711
14712 * frame.c (delete_frame): Work around compiler bug.
14713
14714 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14715 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14716 Some more EMACS_INT.
14717 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14718
14719 * xdisp.c (dump_glyph): Fix typo.
14720
14721 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14722 (adjust_markers_gap_motion, adjust_markers_for_delete)
14723 (adjust_markers_for_insert, adjust_point)
14724 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14725 (make_gap, copy_text, count_size_as_multibyte, insert)
14726 (insert_and_inherit, insert_before_markers)
14727 (insert_before_markers_and_inherit, insert_1)
14728 (count_combining_before, count_combining_after, insert_1_both)
14729 (insert_from_string, insert_from_string_before_markers)
14730 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14731 (insert_from_buffer_1, adjust_after_replace)
14732 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14733 (replace_range_2, del_range, del_range_1, del_range_byte)
14734 (del_range_both, del_range_2, modify_region)
14735 (prepare_to_modify_buffer, signal_before_change)
14736 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14737 for buffer positions and sizes.
14738 * lisp.h: Adjust prototypes accordingly.
14739
14740 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14741 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14742 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14743
14744 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14745
14746 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14747
14748 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14749 lines and columns so we keep the same pixel height and width.
14750
14751 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14752 the property _NET_WM_STATE has changed.
14753 (x_handle_net_wm_state): New function to update frame parameter
14754 fullscreen.
14755 (x_term_init): Initialize atoms for _NET_WM_STATE.
14756
14757 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14758
14759 2009-03-27 Kevin Ryde <user42@zip.com.au>
14760
14761 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14762 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14763 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14764 (Fgpm_mouse_stop): Pass that new parameter.
14765 * termhooks.h (close_gpm): Adjust prototype.
14766
14767 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14768
14769 * lisp.h (Fx_focus_frame): Declare.
14770
14771 * callint.c (Fcall_interactively): For '^' just delegate the work to
14772 handle-shift-selection.
14773 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14774
14775 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14776
14777 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14778
14779 * data.c (Qinteractive_form): New variable.
14780 (Finteractive_form): Use it.
14781
14782 * eval.c (Fcommandp): Use Qinteractive_form.
14783
14784 2009-03-24 Jason Rumney <jasonr@gnu.org>
14785
14786 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14787 Calculate total size precisely. Decode environment variables
14788 before substituting. (Bug#38)
14789
14790 2009-03-24 Kenichi Handa <handa@m17n.org>
14791
14792 * font.c (find_font_encoding): Return Qnil for unsupported
14793 encoding (Bug#2722).
14794
14795 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14796
14797 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14798 that gdpy is set.
14799
14800 2009-03-22 Alan Mackenzie <acm@muc.de>
14801
14802 * callint.c (Finteractive): Clarify the doc string - even
14803 promptless elements need \n separators.
14804
14805 2009-03-22 Jason Rumney <jasonr@gnu.org>
14806
14807 * w32term.c (syms_of_w32term): Doc fix for
14808 x-use-underline-position-properties.
14809
14810 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14811
14812 * w32.c (getpwuid): Change argument type to unsigned.
14813 (struct w32_id): Change type of `rid' member to unsigned.
14814 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14815 argument ID to unsigned. All callers changed.
14816 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14817
14818 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14819
14820 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14821 negative, produce a float value.
14822
14823 * dired.c (make_uid, make_gid): New functions.
14824 (Ffile_attributes): Use them to avoid negative UID and GID.
14825
14826 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14827
14828 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14829 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14830 Fix typos in docstrings.
14831
14832 2009-03-19 Kenichi Handa <handa@m17n.org>
14833
14834 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14835 changed, use font_load_for_lface to get a new font object.
14836 Call free_realized_fontset after handling ASCII font change.
14837
14838 * frame.c (x_set_font): Handle the case that ARG is a cons.
14839
14840 2009-03-19 Glenn Morris <rgm@gnu.org>
14841
14842 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14843
14844 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14845
14846 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14847
14848 2009-03-19 Kenichi Handa <handa@m17n.org>
14849
14850 * charset.c (load_charset_map_from_file): When a mapfile can't be
14851 loaded, signal an error.
14852
14853 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14854
14855 * dired.c (Ffile_attributes): Make sure UID and GID are always
14856 positive, even if the value is too large for a positive EMACS_INT.
14857 Doc fix.
14858
14859 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14860
14861 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14862
14863 * xmenu.c (xdialog_show): Move Fredisplay call ...
14864 (Fx_popup_dialog): ... here.
14865
14866 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14867
14868 * dired.c (file_name_completion): Disable the first optimization just
14869 installed, since it is not implemented correctly.
14870
14871 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14872
14873 * dired.c (file_name_completion): Check completion-ignored-extensions
14874 only if the entry can affect bestmatch.
14875 Stop the search early, as Ftry_completion already does.
14876
14877 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14878
14879 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14880
14881 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14882
14883 * keyboard.c (parse_menu_item): Don't display remappings as menu
14884 equivalent bindings (Bug#788).
14885
14886 2009-03-15 Jason Rumney <jasonr@gnu.org>
14887
14888 * w32term.h (WM_EMACS_PAINT): New message.
14889 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14890 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14891 before passing to lisp thread. (Bug#950)
14892
14893 2009-03-14 David Reitter <david.reitter@gmail.com>
14894
14895 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14896 variable as it was never reset.
14897 (ns_term_init): Remove initialization of Lisp-settable defaults
14898 and ns_expand_space.
14899 (-setPanelFromDefaultValues): Remove ns_expand_space.
14900 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14901 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14902 i.e. no additional spacing, similar to Carbon port.
14903
14904 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14905 * nsfns.m (ns-popup-prefs-panel): Remove.
14906
14907 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14908
14909 * sound.c (alsa_configure): Remove call to deprecated
14910 snd_pcm_sw_params_set_xfer_align.
14911
14912 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14913
14914 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14915 after clicking in a detached tool bar.
14916 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14917
14918 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14919
14920 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14921 int/Lisp_Object mixup).
14922
14923 2009-03-13 Kenichi Handa <handa@m17n.org>
14924
14925 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14926 Handle NAME nil and t correctly. Callers changed.
14927 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14928 (set_fontset_font): Change ARG to a vector. Handle range_list in
14929 ARG correctly.
14930 (Fset_fontset_font): Fix the case that TARGET is both a script
14931 name and charset name. Adjust the arg to set_fontset_font for
14932 the above change.
14933 (fontset_from_font): Fix previous change.
14934 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14935 entry. If FONTSET is the default fontset, don't set the extra
14936 slot of the returning char-table.
14937
14938 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14939
14940 * nsfns.m (Fx_close_connection): Doc fix.
14941 (Fns_do_applescript): Reflow docstring.
14942 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14943 (Fx_display_pixel_width, Fx_display_pixel_height)
14944 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14945 Fix typos in docstrings.
14946 (Fns_set_alpha): Fix typos in error messages.
14947
14948 2009-03-12 David Reitter <david.reitter@gmail.com>
14949
14950 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14951 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14952 were used for such events.
14953
14954 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14955 (toggleToolbar, performDragOperation, runHelp): Use it.
14956
14957 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14958 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14959
14960 2009-03-11 Kenichi Handa <handa@m17n.org>
14961
14962 * font.h (font_open_by_spec): Extern it.
14963
14964 * font.c (font_open_by_spec): New function.
14965 (font_open_by_name): Use font_open_by_spec.
14966
14967 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14968 fontset of the frame.
14969
14970 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14971 modify the default font of frames that use this fontset.
14972 (num_auto_fontsets): New variable.
14973 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14974 name. Be sure to set FONTSET_ASCII to the correct font name.
14975 (update_auto_fontset_alist): New function.
14976
14977 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14978
14979 * makefile.w32-in: Update dependencies.
14980
14981 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14982
14983 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14984
14985 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14986
14987 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14988
14989 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
14990
14991 * lread.c (Feval_buffer): Doc fix.
14992
14993 2009-03-09 Kenichi Handa <handa@m17n.org>
14994
14995 * charset.c (Qfile_name_handler_alist): Extern it.
14996 (load_charset_map_from_file): Temporarily bind
14997 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14998
14999 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
15000
15001 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
15002 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
15003
15004 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15005
15006 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
15007 (x_set_window_size): Change back to calculated method of setting
15008 toolbar height under Cocoa. (Bug#2546)
15009 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
15010 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
15011
15012 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
15013
15014 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
15015 accelerator in parens under GNUstep.
15016
15017 2009-03-06 Kenichi Handa <handa@m17n.org>
15018
15019 These changes are to detect incorrect composition sequence without
15020 looking ahead the source. (Bug#2370)
15021
15022 * coding.h: Include "composite.h".
15023 (enum compisition_state): New enum.
15024 (struct compisition_status): New struct.
15025 (struct iso_2022_spec): New member cmp_status.
15026 (struct emacs_mule_spec): New struct.
15027 (struct coding_system): New members ctext_extended_segment_len and
15028 embedded_utf_8. Change the union member
15029 spec.emacs_mule_full_support to spec.emacs_mule.
15030
15031 * coding.c (CODING_ISO_CMP_STATUS): New macro.
15032 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
15033 (MAX_ANNOTATION_LENGTH): Define to 5.
15034 (ADD_COMPOSITION_DATA): New arg nbytes.
15035 (emacs_mule_char): New arg cmp_status.
15036 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
15037 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
15038 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
15039 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
15040 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
15041 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
15042 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
15043 (EMACS_MULE_COMPOSITION_END): New macro.
15044 (emacs_mule_finish_composition): New function.
15045 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
15046 (decode_coding_emacs_mule): Avoid long looking ahead while
15047 handling composition.
15048 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
15049 (ENCODE_COMPOSITION_RULE): New macro.
15050 (finish_composition): New function.
15051 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
15052 (DECODE_COMPOSITION_START): New implementation.
15053 (DECODE_COMPOSITION_END): Likewise.
15054 (STORE_COMPOSITION_RULE): New macro.
15055 (decode_coding_iso_2022): Avoid long looking ahead while handling
15056 composition, CTEXT extended segment, and embedded UTF-8.
15057 (setup_coding_system): For a coding of type iso-2022, reset
15058 CODING_ISO_EXTSEGMENT_LEN (coding) and
15059 CODING_ISO_EMBEDDED_UTF_8 (coding).
15060 (get_translation): Delete arguments last_block, from_nchars,
15061 to_nchars. Callers changed.
15062 (produce_chars): Don't modify charbuf. Adjusted for the change of
15063 get_translation.
15064 (produce_composition): Adjust for the new annotation sequence.
15065 (handle_composition_annotation): Likewise.
15066 (consume_chars): Adjust for the change of get_translation.
15067
15068 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
15069
15070 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
15071
15072 2009-03-05 Kenichi Handa <handa@m17n.org>
15073
15074 * font.c (font_select_entity): New function.
15075 (font_find_for_lface): Use font_select_entity to select a font.
15076
15077 * fontset.c (fontset_find_font): If a font found without
15078 restricting to the characters C doesn't support C, try to find a
15079 font with C restriction.
15080
15081 2009-03-04 Nikolaj Schumacher <me@nschum.de>
15082
15083 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
15084
15085 2009-03-04 Jason Rumney <jasonr@gnu.org>
15086
15087 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
15088 characters that have already been read. (Bug#2569)
15089
15090 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
15091 Log an error message if check_image_size failed.
15092 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
15093 (gs_load): Mention max-image-size in size error message. (Bug#2560)
15094
15095 2009-03-02 Eli Zaretskii <eliz@gnu.org>
15096
15097 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
15098 when decoding process output.
15099
15100 2009-03-01 Richard M Stallman <rms@gnu.org>
15101
15102 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
15103
15104 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
15105
15106 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15107
15108 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
15109 (decode_coding_emacs_mule, decode_coding_iso_2022)
15110 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15111 (decode_coding_raw_text, decode_coding_charset)
15112 (setup_coding_system, decode_eol, decode_coding, consume_chars):
15113 Honor inhibit-eol-conversion. (Bug #2186)
15114
15115 2009-02-28 Jason Rumney <jasonr@gnu.org>
15116
15117 * coding.c (detect_coding_charset): If not checking latin extra,
15118 fail on characters between 0x80 and 0xA0. (Bug#2354)
15119
15120 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15121
15122 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
15123 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
15124
15125 2009-02-27 Glenn Morris <rgm@gnu.org>
15126
15127 * callint.c (Finteractive): Doc fix.
15128
15129 2009-02-27 Kenichi Handa <handa@m17n.org>
15130
15131 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
15132
15133 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
15134
15135 * font.c (font_style_to_value): Set value for unknown symbols to
15136 100 instead of 255.
15137 (weight_table, slant_table, width_table): Treat "unspecified" as
15138 the default value.
15139
15140 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
15141
15142 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
15143
15144 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
15145
15146 * lread.c (Fload): Stop checking Vloads_in_progress and signal
15147 error as soon as a recursive load is detected.
15148
15149 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15150
15151 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
15152 before caching.
15153
15154 2009-02-24 Kenichi Handa <handa@m17n.org>
15155
15156 * fontset.c (fontset_find_font): Fix the condition for checking
15157 unavailable font.
15158
15159 2009-02-24 Glenn Morris <rgm@gnu.org>
15160
15161 * xfaces.c (Finternal_set_font_selection_order): Remove leading
15162 whitespace that confuses documentation.
15163
15164 2009-02-23 Miles Bader <miles@gnu.org>
15165
15166 * process.c (Flist_system_processes, Fprocess_attributes)
15167 (syms_of_process): Rename `system-process-attributes' to
15168 `process-attributes'.
15169
15170 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
15171
15172 * coding.h (struct coding_system): Make safe_charsets a pointer to
15173 unsigned char.
15174 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
15175 being 255.
15176 (SAFE_CHARSET_P): Likewise.
15177 (setup_iso_safe_charsets): Properly setup safe_charsets.
15178 (Fdefine_coding_system_internal): Likewise.
15179 (setup_coding_system): Likewise. Remove unneeded casts.
15180 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
15181 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
15182 Remove unneeded casts.
15183
15184 * insdel.c (del_range_2): Don't modify gap contents when called
15185 from decode_coding_object. (Bug#1809)
15186
15187 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
15188
15189 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
15190 Qfont_object.
15191 (Ftype_of): Recognize font objects.
15192
15193 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
15194
15195 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
15196 Definitions moved to data.c.
15197
15198 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15199
15200 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15201 async_iconified. Based on a patch by Christian Lynbech
15202 <christian.lynbech@tieto.com>.
15203 (EmacsView-windowDidMiniaturize:): Unset async_visible.
15204
15205 2009-02-20 Glenn Morris <rgm@gnu.org>
15206
15207 * syntax.c (Fskip_chars_forward): Fix doc typo.
15208
15209 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
15210
15211 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
15212
15213 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
15214
15215 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
15216
15217 2009-02-19 Kenichi Handa <handa@m17n.org>
15218
15219 * coding.c (detect_coding): Preserve coding->mode.
15220 Don't overflow coding->carryover. (Bug#2370)
15221
15222 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
15223
15224 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
15225
15226 2009-02-18 Kenichi Handa <handa@m17n.org>
15227
15228 * font.c (font_check_otf_features): Fix handling of `nil' element.
15229 (Ffont_spec): Describe :lang and :otf in the docstring.
15230
15231 2009-02-16 Andreas Schwab <schwab@suse.de>
15232
15233 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15234 string.
15235
15236 2009-02-16 Kenichi Handa <handa@m17n.org>
15237
15238 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
15239 (Bug#1723)
15240
15241 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
15242
15243 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
15244
15245 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15246 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15247
15248 2009-02-14 Eli Zaretskii <eliz@gnu.org>
15249
15250 * msdos.c (MAX_SCREEN_BUF): New macro.
15251 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15252 Encode the entire run of glyphs sharing the same face, instead of
15253 doing that one glyph at a time (fixes a bug with displaying
15254 double-size characters).
15255
15256 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15257
15258 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15259
15260 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15261 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
15262 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
15263
15264 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
15265 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
15266
15267 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15268
15269 * keyboard.c (adjust_point_for_property): Allow stopping between two
15270 invisible areas.
15271
15272 2009-02-12 Jason Rumney <jasonr@gnu.org>
15273
15274 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15275 (add_font_entity_to_list): Call check_face_name even when family
15276 is unspecified.
15277
15278 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15279 Release DC when finished. Use NULL window to refer to desktop.
15280 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
15281
15282 * w32font.c (add_font_entity_to_list): Fix check for substituted
15283 raster fonts. (Bug#2219)
15284
15285 2009-02-12 Kenichi Handa <handa@m17n.org>
15286
15287 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15288 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15289 (autocmp_chars): Use fast_looking_at. Don't compose more
15290 characters than MAX_COMPOSITION_COMPONENTS.
15291 (find_automatic_composition): While looking forward and backward,
15292 check static composition. Fix where to stop looking forward.
15293 (composition_adjust_point): Fix checking of static composition.
15294 (Fcomposition_get_gstring): Pay attention to
15295 MAX_COMPOSITION_COMPONENTS.
15296
15297 * lisp.h (fast_looking_at): Extern it.
15298
15299 * search.c (fast_looking_at): New function.
15300
15301 * term.c (encode_terminal_code): Adjust for the change of
15302 <struct glyph>.u.cmp.to.
15303 (append_composite_glyph): Likewise.
15304
15305 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
15306 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15307 composition.
15308 (append_composite_glyph): Adjust for the change of
15309 <strcut glyph>.u.cmp.to.
15310
15311 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
15312
15313 * casetab.c (init_casetab_once):
15314 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15315 * font.c (font_update_lface):
15316 * fontset.c (Fnew_fontset):
15317 * ftfont.c (ftfont_drive_otf):
15318 * xfont.c (xfont_open):
15319 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15320
15321 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15322
15323 * fileio.c (Fwrite_region): !NILP -> CONSP.
15324
15325 2009-02-10 Andreas Schwab <schwab@suse.de>
15326
15327 * process.c (send_process): Properly relocate pointer into data
15328 when using encoded data. (Bug#2272)
15329
15330 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15331
15332 * coding.c (detect_coding_charset): Fix previous change.
15333
15334 2009-02-08 Jason Rumney <jasonr@gnu.org>
15335
15336 * w32fns.c (w32_hide_hourglass): Handle case where frame
15337 disappeared while hourglass was displayed. (Bug #2193)
15338
15339 2009-02-07 Andreas Schwab <schwab@suse.de>
15340
15341 * unexelf.c (unexec): Fix error message.
15342
15343 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15344
15345 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
15346 when modal window is active. (Bug #2152)
15347 (applicationShouldTerminate:): Remove now-unneeded while loop
15348 around NSRunAlertPanel.
15349
15350 * nsmenu.m (popupSession): New file-global variable.
15351 (pop_down_menu): End the popupSession before closing dialog.
15352 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15353 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15354 don't query NSApp for events (just sleep instead).
15355
15356 2009-02-07 Eli Zaretskii <eliz@gnu.org>
15357
15358 * coding.c (syms_of_coding) <translation-table-for-input>:
15359 Modify doc string to discourage use for character code unification.
15360
15361 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15362
15363 * atimer.c (run_timers): Update pending_atimers.
15364
15365 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
15366
15367 * image.c (svg_load_image): Fix last change.
15368
15369 * xfns.c (Fx_create_frame): Signal an error if no font is
15370 found (Bug#2147).
15371
15372 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
15373
15374 * character.c (syms_of_character) <script-representative-chars>:
15375 Fix typo in docstring.
15376
15377 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15378
15379 * nsmenu.m (pop_down_menu): New function.
15380 (ns_popup_dialog): Call it on unwind.
15381 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15382 call timer_check() (Bug#2154).
15383 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15384 handling_signal is set.
15385 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15386
15387 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15388
15389 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15390
15391 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15392
15393 * keyboard.c (poll_for_input_1, handle_async_input):
15394 Set handling_signal under HAVE_NS.
15395
15396 2009-02-04 Glenn Morris <rgm@gnu.org>
15397
15398 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15399
15400 2009-02-04 Kenichi Handa <handa@m17n.org>
15401
15402 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15403
15404 * charset.c (Fchar_charset): New optional arg restriction.
15405
15406 * coding.h (coding_system_charset_list): Extern it.
15407
15408 * coding.c (coding_system_charset_list): New function.
15409
15410 * composite.c: Include coding.h and termhooks.h.
15411 (composition_gstring_p): Fix for the terminal case.
15412 (composition_gstring_width): Likewise.
15413 (fill_gstring_body): Likewise.
15414 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15415 the frame.
15416 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15417 is within a composition.
15418 (Fcomposition_get_gstring): Fix the terminal case.
15419
15420 * term.c (encode_terminal_code): Fix handling of composition.
15421 (produce_composite_glyph): For static composition, get pixel_width
15422 from struct composition.
15423
15424 2009-02-02 Andreas Schwab <schwab@suse.de>
15425
15426 * unexelf.c (unexec): Handle unaligned bss offset.
15427
15428 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15429
15430 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15431 XT,w32read_socket changes to ns_read_socket.
15432
15433 * keyboard.c (handle_interrupt): Don't call
15434 quit_throw_to_read_char() under NS.
15435
15436 * blockinput.h: Remove NS-specific code.
15437
15438 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15439
15440 * dispnew.c (window_change_signal): Don't try to get the size of a
15441 suspended tty frame.
15442 * term.c (Fresume_tty): Resize if the size has changed while the
15443 tty was suspended.
15444
15445 * alloc.c (mark_stack): Properly conditionalize previous change.
15446
15447 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15448
15449 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15450 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15451 Remove; this code is not used on Windows.
15452
15453 2009-01-30 Eli Zaretskii <eliz@gnu.org>
15454
15455 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15456 EOLs that also has stray ^M characters.
15457
15458 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15459
15460 * atimer.c (run_timers, alarm_signal_handler):
15461 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15462 * w32inevt.c (w32_console_read_socket):
15463 * w32term.c (w32_read_socket):
15464 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15465
15466 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
15467
15468 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15469 Initialize it as a relative filename pattern.
15470 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15471 (Fcall_process_region): Simplify temp file creation using
15472 temporary-file-directory.
15473
15474 2009-01-29 Eli Zaretskii <eliz@gnu.org>
15475
15476 * msdos.c: Rename pending_signals to msdos_pending_signals.
15477 (sig_suspender, sigprocmask): Adjust.
15478
15479 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
15480
15481 * keyboard.c (pending_signals): New var.
15482 (poll_for_input, input_available_signal, init_keyboard): Set it.
15483 (process_pending_signals): New function.
15484
15485 * lisp.h (QUIT): Check pending_signals instead of
15486 interrupt_input_pending. Use process_pending_signals.
15487
15488 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15489
15490 * process.c (wait_reading_process_output): Use process_pending_signals.
15491
15492 * sysdep.c (emacs_write): Use process_pending_signals.
15493
15494 * xterm.c (XTread_socket): Update pending_signals.
15495
15496 * w32term.c (w32_read_socket): Update pending_signals.
15497
15498 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15499
15500 2009-01-29 Kenichi Handa <handa@m17n.org>
15501
15502 * xftfont.c (xftfont_has_char): New function.
15503 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15504
15505 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15506
15507 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15508 under GNUstep.
15509 (ns_query_color): New declaration.
15510
15511 * nsterm.m (ns_confirm_quit): New variable.
15512 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15513 (EmacsApp-applicationShouldTerminate:): Use it.
15514 (EmacsPrefsController): Let user set it.
15515 (ns_query_color): New function.
15516 (ns_defined_color): Use it.
15517 (ns_initialize): Drop.
15518 (ns_term_init): Add two lines from ns_initialize(), and set
15519 input_interrupt_mode to nil.
15520
15521 * image.c (svg_load_image): Don't right-shift background RGB when
15522 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
15523
15524 2009-01-28 Kenichi Handa <handa@m17n.org>
15525
15526 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15527 (fontset_get_font_group): Remember that no font-group is specified
15528 for C.
15529
15530 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
15531
15532 * fns.c (concat): Check for string overflow (bug#1787).
15533
15534 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15535 Quadruple undo limits (bug#1501).
15536
15537 2009-01-27 Kenichi Handa <handa@m17n.org>
15538
15539 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15540 directly use GT_Get_Char_index.
15541
15542 * xftfont.c (struct xftfont_info): New member `index'.
15543
15544 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15545 (Ffontset_font): Adjust for the change of fontset entry.
15546
15547 2009-01-26 Kenichi Handa <handa@m17n.org>
15548
15549 * fontset.c (fontset_find_font): Fix handling of non-cons return
15550 value of fontset_get_font_group.
15551 (fontset_font): Revert last change.
15552
15553 2009-01-26 Jason Rumney <jasonr@gnu.org>
15554
15555 * w32font.c (w32font_list_internal): Return quickly if registry is
15556 unknown. Simplify final return.
15557 (add_font_entity_to_list): Break complex logic down into more
15558 manageable chunks. Move unknown registry check to
15559 w32font_list_internal.
15560
15561 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15562
15563 Changes to remove Feval calls from GUI under NS.
15564
15565 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15566 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15567 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15568
15569 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15570 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15571 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15572 instead of NON_ASCII_KEYSTROKE_EVENT.
15573 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15574 (EmacsApp-applicationShouldTerminate:): Query user.
15575 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15576 instead of Feval.
15577
15578 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15579
15580 * keyboard.c (kbd_buffer_get_event): Check for it.
15581 (keys_of_keyboard): Define lispy keys for
15582 ns-put/unput-working-text.
15583
15584 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15585 versions.
15586 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15587
15588 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
15589
15590 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15591 setting current_buffer directly. (Bug#2044)
15592
15593 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
15594
15595 * fontset.c (fontset_font): If we know there is no font, don't do
15596 any work. (Bug#1952, bug#1990).
15597
15598 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
15599
15600 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15601
15602 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15603 (ns_no_defaults): New declaration.
15604 (main): Use it.
15605
15606 * nsterm.h (ns_no_defaults): New declaration.
15607
15608 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15609
15610 * nsterm.m (ns_no_defaults): New variable.
15611 (ns_initialize): Don't read defaults when ns_no_defaults.
15612 (EmacsView-readSelectionFromPasteboard:)
15613 (writeSelectionToPasteboard:types:): New stubbed-out methods for
15614 NSServicesRequests protocol. (Bug#1435)
15615 (ns_dumpglyphs_stretch): New function.
15616 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15617 of 2008-11-15 to other terms. (Bug#615)
15618
15619 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15620
15621 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15622
15623 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15624 call for Sparc64.
15625
15626 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15627
15628 * nsfns.m:
15629 * nsgui.h:
15630 * nsmenu.m:
15631 * nsselect.m:
15632 * nsterm.h:
15633 * nsterm.m: Remove '23' comments that indicated code added during
15634 update from emacs-20 -> emacs-23.
15635
15636 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15637
15638 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15639 ns_alternate_modifier. (Bug#1217)
15640
15641 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15642 Display all shortcuts, including those w/o super modifier.
15643
15644 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15645
15646 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15647
15648 * fileio.c (Vwrite_region_post_annotation_function)
15649 (Vwrite_region_annotation_buffers): New vars.
15650 (build_annotations_unwind): Just reset
15651 Vwrite_region_annotation_buffers.
15652 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15653 Call write-region-post-annotation-function.
15654 (build_annotations): Add to Vwrite_region_annotation_buffers if
15655 buffer changes.
15656
15657 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15658
15659 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15660 Tiger.
15661 * nsfns.m (ns_do_applescript):
15662 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15663
15664 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15665
15666 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15667
15668 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15669
15670 * nsmenu.m (NSMENUPROFILE): Change #if style.
15671
15672 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15673
15674 * nsterm.m (x_set_frame_alpha): Add prototype.
15675 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15676 handle Ctrl-tab. (Bug#1841)
15677 (ns_get_color): Use unsigned long long for scanned hex string value.
15678 (ns_term_shutdown): Abort on non SIGTERM signals.
15679 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15680 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15681 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15682 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15683 (ns_defined_color): Fix settings of the XColor variable fields:
15684 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15685
15686 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15687 DPI. (Bug#1316)
15688 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15689 values in onTiger section.
15690
15691 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15692
15693 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15694 Check return value of font_spec_from_name.
15695 (Fx_list_fonts): Doc fix. (Bug#1951)
15696
15697 * font.c (font_spec_from_name): Return Qnil if font name could not
15698 be parsed.
15699 (font_parse_name): Treat a `?' character as part of an XLFD.
15700
15701 * fns.c (Fsubstring): Doc fix.
15702
15703 2009-01-19 Kenichi Handa <handa@m17n.org>
15704
15705 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15706 (ftfont_list): Likewise.
15707
15708 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15709
15710 * dbusbind.c (Fdbus_register_signal):
15711 * process.c (conv_sockaddr_to_lisp):
15712 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15713
15714 * callproc.c (Fgetenv_internal): Doc fix.
15715
15716 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15717
15718 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15719 it is not even used.
15720
15721 2009-01-16 Glenn Morris <rgm@gnu.org>
15722
15723 * font.c (Ffont_variation_glyphs): Silence compiler.
15724
15725 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15726
15727 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15728 Reported by David Robinow <drobinow@gmail.com>.
15729
15730 2009-01-15 Kenichi Handa <handa@m17n.org>
15731
15732 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15733
15734 2009-01-14 Jason Rumney <jasonr@gnu.org>
15735
15736 * frame.c (x_set_font): Always store a font to the font parameter,
15737 never a fontset. (Bug#1562)
15738
15739 2009-01-14 Kenichi Handa <handa@m17n.org>
15740
15741 * coding.c (TWO_MORE_BYTES): New macro.
15742 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15743
15744 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15745
15746 * font.c (font_clear_prop): If clearing the family, clear the font
15747 width index too.
15748
15749 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15750
15751 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15752
15753 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15754 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15755 functions, use sizeof.
15756
15757 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15758
15759 * keyboard.c (read_char): Fix case where last_nonmenu_event
15760 returned a bad value with submenus. (Bug#447)
15761
15762 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15763
15764 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15765 family, clear the font width index too.
15766
15767 2009-01-11 Jason Rumney <jasonr@gnu.org>
15768
15769 * keyboard.c (cmd_error_internal): Exit when errors occur before
15770 frame creation and not in daemon mode. (Bug#1836)
15771
15772 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15773
15774 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15775 of a display vector, backtrack.
15776 (try_window_reusing_current_matrix): Check glyph type before
15777 referencing charpos member.
15778
15779 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15780
15781 Fix Bug #876:
15782
15783 * coding.c (inhibit_null_byte_detection): New variable.
15784 (detect_coding, detect_coding_system): Don't pay attention to null
15785 bytes if inhibit_null_byte_detection is non-zero.
15786 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15787 <inhibit-iso-escape-detection>: Doc fix.
15788
15789 2009-01-09 Jason Rumney <jasonr@gnu.org>
15790
15791 * w32font.c (add_font_entity_to_list): Don't report unknown
15792 Windows charset as any unrecognized registry. (Bug#1548)
15793 Only report Unicode Plane 2 fonts as unicode-sip.
15794
15795 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15796
15797 * xfaces.c (Fx_font_family_list): Delete function.
15798 Move compatibility version to faces.el.
15799
15800 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15801
15802 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15803
15804 * frame.c (x_set_frame_parameters): Remember requested value for
15805 fullscreen before it's reset by the parameter handler.
15806
15807 2009-01-09 Glenn Morris <rgm@gnu.org>
15808
15809 * keyboard.c (last_command_char): For clarity, rename to...
15810 (last_command_event): ... and update all users.
15811 (last_input_char): For clarity, rename to...
15812 (last_input_event): ... and update all users.
15813 (last-command-char, last-input-char): Move to subr.el as aliases.
15814 * cmds.c, commands.h: Update for last_command_char rename.
15815
15816 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15817
15818 * font.c (font_open_for_lface): Handle unspecified height attribute.
15819
15820 2009-01-08 Jason Rumney <jasonr@gnu.org>
15821
15822 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15823 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15824 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15825 Don't declare.
15826 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15827 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15828
15829 2009-01-07 Kenichi Handa <handa@m17n.org>
15830
15831 * fileio.c (Finsert_file_contents): In the case of replace,
15832 remember the coding system used for decoding in
15833 coding_system (Bug#1039).
15834
15835 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15836 breaking the loop. (Bug#870)
15837 (decode_coding_utf_16, decode_coding_emacs_mule)
15838 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15839 (decode_coding_charset): Likewise.
15840
15841 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15842
15843 * frame.c (x_set_frame_parameters): Make sure height (width) get
15844 applied when fullwidth (fullheight) is set. (Bug#1522)
15845
15846 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15847
15848 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15849 (utc_base): Declare as ULONGLONG, not long double.
15850 (convert_time_raw): Delete.
15851 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15852 (initialize_utc_base): New function.
15853 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15854 (convert_from_time_t): Use initialize_utc_base; compute result with
15855 64-bit arithmetic.
15856 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15857
15858 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15859
15860 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15861 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15862 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15863 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15864 [!subprocesses]: Define.
15865 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15866 (Flist_system_processes, Fsystem_process_attributes)
15867 [!subprocesses]: Call list_system_processes and
15868 system_process_attributes instead of returning Qnil.
15869
15870 * dosfns.c (system_process_attributes, list_system_processes):
15871 New functions.
15872
15873 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15874
15875 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15876 Don't use the default (no-op) implementation.
15877
15878 2009-01-03 Jason Rumney <jasonr@gnu.org>
15879
15880 * keyboard.c (parse_modifiers_uncached): Wheel events are
15881 clicks (bug#687).
15882
15883 * w32term.c (x_query_colors, x_query_color): New functions.
15884
15885 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15886 (svg_load_image): Cast returned pointers from dynamically loaded
15887 functions. Eliminate W32 specific code.
15888
15889 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15890
15891 * nsfns.m (x_set_foreground_color, x_set_background_color)
15892 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15893 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15894 x_ prefix instead of ns_. Update references.
15895 (syms_of_nsfns): Add a FIXME comment.
15896
15897 * nsterm.m (x_set_cursor_type): New prototype.
15898 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15899
15900 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15901 for Solaris instead of incorrectly providing Qutime and Qcutime.
15902
15903 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15904
15905 * w32.c (process_times): Compute sum of utime and stime.
15906 (system_process_attributes): Add Qtime to the alist.
15907
15908 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15909 and add them to the alist.
15910
15911 * process.c (top level) <Qtime, Qctime>: New variables.
15912 (syms_of_process): staticpro them.
15913 (Fsystem_process_attributes): Add their documentation to the doc
15914 string.
15915
15916 * process.h: Declare Qtime and Qctime.
15917
15918 2009-01-02 Jason Rumney <jasonr@gnu.org>
15919
15920 * image.c (Qgobject): New symbol.
15921 (syms_of_image): Initialize it.
15922 (init_svg_functions): Load some functions from gobject library.
15923
15924 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15925
15926 * frame.c (make_terminal_frame): Remove redundant code and useless
15927 block.
15928
15929 2009-01-01 Andreas Schwab <schwab@suse.de>
15930
15931 * process.c (conv_sockaddr_to_lisp): Add workaround for
15932 getsockname bug on BSD.
15933
15934 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15935
15936 * xfns.c (x_create_tip_frame): Set border width of the X window.
15937
15938 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15939
15940 2009-01-01 Jason Rumney <jasonr@gnu.org>
15941
15942 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15943 Don't block input, as per earlier xterm.c changes.
15944
15945 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15946
15947 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15948 (ns_appkit_version_int): New function.
15949 (x-server-version): Use ns_appkit_version_int and follow 21+
15950 convention of returning 3 integers.
15951
15952 2008-12-30 Kenichi Handa <handa@m17n.org>
15953
15954 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15955 (CHAR_SURROGATE_PAIR_P): New macro.
15956
15957 * font.h (struct font_driver): New member get_variation_glyphs.
15958
15959 * font.c (font_range): Don't require a font for a variation selector.
15960 (Ffont_variation_glyphs): New function.
15961 (syms_of_font): Defsubr it.
15962
15963 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15964 ftfont_variation_glyphs.
15965 (setup_otf_gstring): New function.
15966 (ftfont_drive_otf): Use it.
15967 (ftfont_shape_by_flt): Handle variation selector.
15968 (ftfont_variation_glyphs): New function.
15969
15970 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15971
15972 * frame.c (Vemacs_iconified): Remove.
15973
15974 2008-12-30 Jason Rumney <jasonr@gnu.org>
15975
15976 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15977 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15978
15979 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
15980
15981 * indent.c (Fvertical_motion): Don't advance iterator if we have
15982 reseated to the desired position.
15983
15984 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15985 checking for pos match.
15986
15987 2008-12-30 Kenichi Handa <handa@m17n.org>
15988
15989 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15990 just get the low 8-bit of the code.
15991
15992 * font.c (font_intern_prop): Validate str as multibyte.
15993
15994 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15995
15996 * dispextern.h (struct face): Move lface and hash from the middle
15997 of bitfields.
15998
15999 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
16000
16001 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
16002
16003 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
16004 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
16005 instead of intervals.h.
16006
16007 2008-12-26 Andreas Schwab <schwab@suse.de>
16008
16009 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
16010 cons.
16011
16012 2008-12-26 Martin Rudalics <rudalics@gmx.at>
16013
16014 * textprop.c (Qminibuffer_prompt): New variable.
16015 (syms_of_textprop): Initialize it.
16016 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
16017 in minibuffer-prompt face. (Bug#1662)
16018
16019 2008-12-25 Jason Rumney <jasonr@gnu.org>
16020
16021 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
16022
16023 2008-12-24 Jason Rumney <jasonr@gnu.org>
16024
16025 * ralloc.c (r_alloc_reset_variable): New function.
16026
16027 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
16028 record of what points where. (Bug#716)
16029
16030 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
16031
16032 * minibuf.c (read_minibuf): Follow the non-interactive case when
16033 running as a daemon, before detaching.
16034
16035 2008-12-22 Andreas Schwab <schwab@suse.de>
16036
16037 * buffer.c (init_buffer): Use realloc instead of xrealloc.
16038 * gtkutil.c (free_widget_value): Use xfree instead of free.
16039
16040 2008-12-22 Martin Rudalics <rudalics@gmx.at>
16041
16042 * frame.c (delete_frame): New function derived from
16043 Fdelete_frame to handle Qnoelisp value for FORCE argument.
16044 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
16045 (Fdelete_frame): Call delete_frame. Remove line from doc-string
16046 saying that FORCE non-nil doesn't run `delete-frame-functions'.
16047 * frame.h: Extern delete_frame.
16048 * window.c (window_loop):
16049 * terminal.c (delete_terminal):
16050 * xterm.c (x_connection_closed):
16051 * xfns.c (Fx_hide_tip):
16052 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
16053
16054 2008-12-21 Jason Rumney <jasonr@gnu.org>
16055
16056 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
16057 when character maps to .notdef character.
16058
16059 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
16060
16061 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
16062
16063 2008-12-20 Jason Rumney <jasonr@gnu.org>
16064
16065 * frame.c (Fmake_terminal_frame): Raise an error when called from
16066 a graphical frame on Windows. (Bug#1325)
16067
16068 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
16069
16070 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
16071
16072 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
16073
16074 * minibuf.c (Fread_buffer): Doc fix.
16075
16076 2008-12-20 Jason Rumney <jasonr@gnu.org>
16077
16078 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
16079 server name in UNC paths. (Bug#719)
16080
16081 * coding.c (decode_coding): Clear chars_at_source flag when using
16082 charbuf. (Bug#1035)
16083
16084 2008-12-19 Daniel Engeler <engeler@gmail.com>
16085
16086 * sysdep.c (serial_configure): Fix typo.
16087
16088 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16089
16090 * sysdep.c: Include alloca.h.
16091 (system_process_attributes): Add implementation for Solaris.
16092
16093 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
16094
16095 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16096
16097 Reorganize implementation of Flist_system_processes and
16098 Fsystem_process_attributes. No functional changes.
16099 * process.c: Don't #include pwd.h, grp.h and limits.h.
16100 (Flist_system_processes): Just call list_system_processes.
16101 (Fsystem_process_attributes): Just call system_process_attributes.
16102 (procfs_list_system_processes, time_from_jiffies)
16103 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16104 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
16105
16106 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
16107 (list_system_processes): Rename from
16108 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
16109 Provide a do nothing implementation.
16110 (system_process_attributes): Rename from
16111 procfs_list_system_processes.
16112 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16113 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
16114
16115 * w32.c (list_system_processes): Rename from
16116 w32_list_system_processes.
16117 (system_process_attributes): Rename from
16118 w32_system_process_attributes.
16119
16120 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
16121
16122 * process.h (w32_list_system_processes)
16123 (w32_system_process_attributes): Remove.
16124 (list_system_processes, system_process_attributes):
16125 New prototypes.
16126
16127 2008-12-19 Kenichi Handa <handa@m17n.org>
16128
16129 * xfont.c (xfont_decode_coding_xlfd): New function.
16130 (xfont_encode_coding_xlfd): New function.
16131 (xfont_list_pattern): Decode XLFD by iso-8859-1.
16132 (xfont_list): Decode and encode XLFD by iso-8859-1.
16133 (xfont_match): Likewise.
16134 (xfont_list_family): Likewise.
16135 (xfont_open): Likewise.
16136
16137 * ftfont.c (ftfont_open): Generate a multibyte string if given
16138 names are utf-8.
16139
16140 * xftfont.c (xftfont_open): Generate a multibyte string if given
16141 names are utf-8.
16142
16143 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
16144
16145 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
16146 changed.
16147 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
16148 clicked on a detached tool bar button.
16149
16150 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
16151
16152 * emacs.c (main): Print and error and exit when no data is read
16153 from the pipe.
16154
16155 2008-12-17 Jason Rumney <jasonr@gnu.org>
16156
16157 * w32font.c (w32font_has_char): Always return -1.
16158
16159 2008-12-16 Kenichi Handa <handa@m17n.org>
16160
16161 * font.c (font_open_entity): Fix previous change.
16162
16163 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
16164
16165 * process.c: Include <limits.h>.
16166
16167 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
16168
16169 * font.c (font_update_drivers): Fix mistake in reconstructing the
16170 driver list.
16171
16172 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
16173
16174 * font.c (font_clear_cache): Fix format of font cache data.
16175
16176 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
16177
16178 * xftfont.c (xftfont_open): Free Xft font pattern if
16179 XftFontOpenPattern fails.
16180
16181 * xterm.c (x_free_frame_resources): Remove extraneous call to
16182 free_frame_faces.
16183
16184 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16185
16186 * xterm.c (x_delete_display): Move xim_close_dpy call to
16187 x_delete_terminal.
16188 (x_delete_terminal): Call xim_close_dpy.
16189
16190 2008-12-13 Jason Rumney <jasonr@gnu.org>
16191
16192 * w32font.c (intern_font_name): New function.
16193 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
16194 (w32font_open_internal, Fx_select_font): Decode font name.
16195 (fill_in_logfont, list_all_matching_fonts): Encode font name.
16196
16197 * w32font.h (intern_font_name): Declare new function.
16198
16199 * w32uniscribe.c (add_opentype_font_name_to_list):
16200 Use intern_font_name.
16201
16202 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16203
16204 * frame.c (Fdelete_frame): Call free_font_driver_list.
16205
16206 * font.c (free_font_driver_list): Implement missing function.
16207
16208 * w32term.c (w32_term_init): Don't initialize the image cache
16209 here; it will be done in init_frame_faces.
16210
16211 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
16212 (struct x_display_info): Remove unused member null_pixel.
16213 New member xim_callback_data.
16214
16215 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
16216 (xim_initialize): Save pointer to callback function data.
16217 (xim_close_dpy): Free callback function data. Call XCloseIM,
16218 reverting 2008-11-04 change by David Smith.
16219 (x_term_init): Don't initialize the image cache here; it will be
16220 done in init_frame_faces. Remove ancient "null_pixel" cruft.
16221 (x_delete_display): Free x_dnd_atoms member.
16222
16223 2008-12-13 Kenichi Handa <handa@m17n.org>
16224
16225 * font.c (font_rescale_ratio): Move from xfaces.c.
16226 Argument type changed. Handle a font-spec too.
16227 (font_score): Check Vface_font_rescale_alist.
16228 (font_open_entity): Likewise. (Bug#1547)
16229
16230 * xfaces.c (font_rescale_ratio): Move to font.c.
16231
16232 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16233
16234 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16235
16236 2008-12-12 Jason Rumney <jasonr@gnu.org>
16237
16238 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16239 Set Vwindow_system_version to the real w32 major version.
16240
16241 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16242
16243 * term.c (init_tty): Move setting the terminal name before the
16244 potential user: maybe_fatal.
16245
16246 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
16247
16248 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
16249 all callers changed. Call free_frame_faces to free the face cache.
16250
16251 2008-12-11 Jason Rumney <jasonr@gnu.org>
16252
16253 * w32font.c (fill_in_logfont): Don't assume symbol script means
16254 SYMBOL_CHARSET. (Bug#547)
16255
16256 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
16257 size for surrogates. (Bug#1096, bug#872)
16258
16259 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16260
16261 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16262
16263 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16264
16265 * process.c (Fsystem_process_attributes, syms_of_process):
16266 Fix typo in name of Ssystem_process_attributes.
16267 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16268
16269 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16270
16271 * syntax.c (Fmodify_syntax_entry): Doc fix.
16272
16273 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16274
16275 * font.c (Ffont_spec): Move usage to end of docstring.
16276
16277 2008-12-10 Jason Rumney <jasonr@gnu.org>
16278
16279 * w32font.c (Qcham): New symbol.
16280 (font_supported_scripts): Add cham, and comments for other new
16281 scripts in bitfield from OpenType spec.
16282 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16283 contain characters beyond the bmp.
16284
16285 2008-12-10 Kenichi Handa <handa@m17n.org>
16286
16287 * ftfont.c (fc_charset_table): Add "unicode-sip".
16288 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
16289 Qunicode_sip.
16290
16291 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16292
16293 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16294 (Fcoding_system_put): Use QCdefault_char.
16295 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16296
16297 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
16298
16299 * xftfont.c (syms_of_xftfont): Fix typo.
16300
16301 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
16302
16303 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16304
16305 * emacs.c (main): Close daemon_pipe on exec.
16306
16307 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
16308
16309 * termchar.h (struct tty): New members termcap_term_buffer and
16310 termcap_strings_buffer.
16311
16312 * term.c (encode_terminal_code): Free any previous memory blocks
16313 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
16314 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16315 All callers changed.
16316 (init_tty): Store termcap data and string buffers in new struct
16317 tty members termcap_term_buffer and termcap_strings_buffer.
16318 (delete_tty): Free them.
16319 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
16320
16321 2008-12-07 Seiji Zenitani <zenitani@mac.com>
16322
16323 * nsfns.m (ns_set_background_color): Remove code duplication.
16324 It was a substitute for face-transparency on OS X 10.3.
16325
16326 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
16327
16328 * coding.c (make_conversion_work_buffer): Disable buffer
16329 modification hooks in the work buffer.
16330
16331 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16332
16333 * process.c (procfs_system_process_attributes): If `nread' has a
16334 negative value, assign zero to it.
16335
16336 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
16337
16338 * eval.c (Vdebug_on_error): Doc fix.
16339
16340 2008-12-05 Kenichi Handa <handa@m17n.org>
16341
16342 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16343 second character is a combining character.
16344
16345 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16346
16347 * process.c (procfs_system_process_attributes): Don't use cmd,
16348 cmdsize, and q without initializing them first.
16349
16350 2008-12-04 Jason Rumney <jasonr@gnu.org>
16351
16352 * w32font.c (w32font_draw): Initialize orig_clip before getting
16353 it, and delete it when finished.
16354
16355 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16356
16357 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16358 case when running as a daemon before detaching.
16359
16360 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
16361
16362 * w32.c (init_environment): Don't unload library shell32.dll.
16363
16364 2008-12-03 Kenichi Handa <handa@m17n.org>
16365
16366 * font.c (font_at): Set `multibyte' at first.
16367
16368 * coding.c (decode_coding_charset): Check type of an element of
16369 vector VALIDS.
16370 (encode_coding_emacs_mule): Be sure to set `code'.
16371
16372 * fontset.c (face_for_char): Handle invalid charset property correctly.
16373 (font_for_char): Likewise.
16374
16375 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
16376
16377 * font.c (Fopen_font): Compute pixel size correctly.
16378 (font_update_lface): Handle fonts with corrupted size specs,
16379 i.e. non-int and non-float.
16380
16381 * ftfont.c (ftfont_match): Initialize entity variable.
16382 (ftfont_resolve_generic_family): Avoid using uninitialized var.
16383 (ftfont_list_family): Initialize list var earlier.
16384
16385 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16386
16387 * xterm.c (x_draw_glyph_string): Fall back on
16388 underline_minimum_offset for underline position.
16389
16390 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16391
16392 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16393
16394 * character.c (c_string_width): Specify the type for LEN.
16395
16396 2008-12-03 Kenichi Handa <handa@m17n.org>
16397
16398 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16399 (decode_coding_utf_8): Likewise.
16400 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16401 (produce_chars): Initialize consumed_chars to 0.
16402
16403 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16404
16405 * keyboard.c (make_lispy_position): Only use PT if the selected
16406 window is current.
16407
16408 2008-12-02 Andreas Schwab <schwab@suse.de>
16409
16410 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16411
16412 * doprnt.c (doprnt1): Fix size of charbuf.
16413
16414 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16415
16416 * keyboard.c (timer_check): Revert last change.
16417
16418 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
16419
16420 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16421
16422 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
16423
16424 * makefile.w32-in: Update dependencies.
16425 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16426
16427 2008-12-01 Andreas Schwab <schwab@suse.de>
16428
16429 * font.c (register_font_driver): Use xmalloc.
16430 (font_put_frame_data): Likewise.
16431
16432 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
16433
16434 * xfaces.c (realize_x_face): Make abort condition clearer.
16435
16436 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16437
16438 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
16439
16440 * keyboard.c (timer_check): After a timer runs, ensure that the
16441 selected window's buffer is current.
16442
16443 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
16444
16445 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16446 It was accidentally restored by the Unicode merge.
16447
16448 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16449
16450 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
16451
16452 * w32proc.c: Include "coding.h".
16453 (Fw32_short_file_name): Encode filename passed to Windows API.
16454 (Fw32_long_file_name): Encode filename passed to Windows API and
16455 decode back the result. (Bug#1433)
16456
16457 2008-11-29 Kenichi Handa <handa@m17n.org>
16458
16459 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16460 not before accessing it.
16461
16462 * charset.c (Fdefine_charset_internal): After calculating
16463 min_char, max_char, and fastmap, copy the charset structure again.
16464 (encode_char): Fix the previous change.
16465
16466 2008-11-28 Seiji Zenitani <zenitani@mac.com>
16467
16468 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16469
16470 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16471
16472 * nsterm.m (x_set_frame_alpha): New function.
16473
16474 2008-11-27 Eli Zaretskii <eliz@gnu.org>
16475
16476 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16477
16478 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
16479
16480 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16481 pointer to check_face_name.
16482
16483 2008-11-27 Kenichi Handa <handa@m17n.org>
16484
16485 * category.h (SET_CATEGORY_SET): Call set_category_set.
16486 (set_category_set): Extern it.
16487
16488 * category.c (hash_get_category_set): New function.
16489 (Fmodify_category_entry): Adjust for the change of
16490 char_table_ref_and_range. Call hash_get_category_set to get a
16491 category set to store in the table.
16492
16493 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16494 Funify_charset.
16495
16496 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16497 (DECODE_CHAR): Check if the decoder vector is ready.
16498 (ENCODE_CHAR): Check if the encoder char-table is ready.
16499 (maybe_unify_char): Extern it.
16500
16501 * charset.c (Vchar_unified_charset_table): Delete it.
16502 (inhibit_load_charset_map): New variable.
16503 (temp_charset_work): New variable.
16504 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16505 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16506 New macros.
16507 (load_charset_map): Meaning of control_flag changed.
16508 If inhibit_load_charset_map is nonzero, setup a table in
16509 temp_charset_work.
16510 (load_charset): New argument control_flag.
16511 (map_charset_for_dump): New function.
16512 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16513 map_charset_for_dump.
16514 (Fdefine_charset_internal): If the charset method is MAP, load
16515 mapping tables by calling load_charset.
16516 (Funify_charset): Don't load a mapping table but directly set
16517 Vchar_unify_table.
16518 (maybe_unify_char): New function.
16519 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16520 Handle the case of inhibit_load_charset_map being nonzero.
16521 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16522 Handle the case of inhibit_load_charset_map being nonzero.
16523 (Fclear_charset_maps): Just free temp_charset_work.
16524 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16525 variable.
16526
16527 * chartab.c (sub_char_table_ref_and_range): Adjust for the
16528 change of char_table_ref_and_range.
16529 (char_table_ref_and_range): Change the meaning of argument FROM
16530 and TO. Now the caller must provide initial values for *FROM
16531 and *TO.
16532
16533 * fontset.c (fontset_add): Adjust for the change of
16534 char_table_ref_and_range.
16535 (fontset_get_font_group): Likewise.
16536 (Ffontset_info): Likewise.
16537
16538 * keymap.c (describe_vector): Adjust for the change of
16539 char_table_ref_and_range. For char-table, put boundary between
16540 non-ASCII and 8-bit characters.
16541
16542 * print.c (print_object): For bool-vector, delete unnecessary
16543 check of ASCII_BYTE_P.
16544
16545 2008-11-26 Jason Rumney <jasonr@gnu.org>
16546
16547 * w32font.c (w32font_open_internal): Don't include external
16548 leading in font height. (Bug#879)
16549
16550 2008-11-26 Glenn Morris <rgm@gnu.org>
16551
16552 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16553 redefinition with ifdef. (Bug#1383)
16554
16555 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16556
16557 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16558
16559 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
16560
16561 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16562 New EmacsView methods.
16563 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16564 Fixes bug #1048,1357,1414.
16565
16566 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16567
16568 Fix bug #1362.
16569 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16570 is not an indexed color.
16571 * nsterm.m (free_indexed_color): Add argument checking.
16572 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16573
16574 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
16575
16576 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16577 Document confirm-after-completion value for
16578 minibuffer-completion-confirm.
16579
16580 2008-11-24 Jason Rumney <jasonr@gnu.org>
16581
16582 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16583 warning.
16584
16585 2008-11-23 Jason Rumney <jasonr@gnu.org>
16586
16587 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16588 restored before returning.
16589
16590 * w32font.c (check_face_name): New function.
16591 (add_font_entity_to_list): Use it to filter out common substituted
16592 fonts. (Bug#642)
16593
16594 2008-11-22 Martin Rudalics <rudalics@gmx.at>
16595
16596 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16597 confirm-nonexistent-file-or-buffer in doc-string.
16598
16599 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16600
16601 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16602 Fix copy/paste typo. Add checks.
16603
16604 2008-11-21 Kenichi Handa <handa@m17n.org>
16605
16606 * coding.c (detect_coding_iso_2022): Reject invalid composition
16607 sequence.
16608 (DECODE_COMPOSITION_START): If the current source is the last
16609 block, and the current composition doesn't end, regard this
16610 sequence as invalid.
16611 (decode_coding_iso_2022): Handle invalid composition sequence.
16612
16613 2008-11-20 Martin Rudalics <rudalics@gmx.at>
16614
16615 * window.c (coordinates_in_window): Don't return
16616 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16617 line when the window is not the rightmost one. (Bug#1372)
16618
16619 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16620
16621 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16622
16623 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16624
16625 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16626 and bright_bg if noninteractive is non-zero.
16627
16628 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16629
16630 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16631 x_draw_glyph_string_background.
16632
16633 * w32term.c (x_draw_glyph_string): Likewise.
16634
16635 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16636
16637 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16638 the next glyph string once past the overhang width.
16639
16640 * nsterm.m (ns_draw_glyph_string): Likewise.
16641
16642 * w32term.c (x_draw_glyph_string): Likewise.
16643
16644 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16645
16646 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16647 double file close.
16648
16649 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16650
16651 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16652 dedicated status of window before attempting to display another
16653 buffer in it.
16654
16655 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16656
16657 * msdos.c (Fmsdos_long_file_names):
16658 (syms_of_msdos) <dos-unsupported-char-glyph>:
16659 * dosfns.c (Fint86): Fix typos in docstrings.
16660
16661 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16662
16663 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16664
16665 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16666
16667 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16668
16669 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16670
16671 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16672
16673 * frame.h: Negative alpha means "don't touch".
16674
16675 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16676
16677 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16678
16679 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16680
16681 * hftctl.c:
16682 * chpdef.h:
16683 * acldef.h: Remove files used only for systems no longer supported.
16684
16685 * Makefile.in: Fix .o alphabetical ordering.
16686 (hftctl.o): Remove dependency, file removed.
16687 (keymap.o, print.o): Depend on charset.h.
16688
16689 2008-11-10 Kenichi Handa <handa@m17n.org>
16690
16691 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16692
16693 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16694
16695 * dired.c (file_name_completion): If completion_ignore_case is
16696 enabled, ignore case when checking completion-regexp-list.
16697
16698 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16699
16700 * vm-limit.c (get_lim_data): Fix last change.
16701
16702 2008-11-08 Kenichi Handa <handa@m17n.org>
16703
16704 * character.c (Fget_byte): New function.
16705 (syms_of_character): Defsubr Fget_byte.
16706
16707 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16708
16709 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16710 cursor position is valid after scrolling.
16711
16712 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16713
16714 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16715
16716 2008-11-06 Glenn Morris <rgm@gnu.org>
16717
16718 * xterm.c (handle_one_xevent): Don't let popup menus cause
16719 mouse-autoselect-window related window switching. (Bug#1261)
16720
16721 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16722
16723 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16724
16725 2008-11-04 Andreas Schwab <schwab@suse.de>
16726
16727 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16728
16729 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16730
16731 * xfns.c (Fx_wm_set_size_hint): New function.
16732
16733 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16734
16735 * textprop.c (Fprevious_single_char_property_change): Return 0
16736 when there's no change in a string. (Bug#1301)
16737
16738 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16739
16740 * frame.c (do_switch_frame): New argument NORECORD passed to
16741 Fselect_window.
16742 (Fselect_frame): New argument NORECORD passed to
16743 do_switch_frame.
16744 (Fset_frame_selected_window): New argument NORECORD passed to
16745 Fselect_frame.
16746 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16747 in call of do_switch_frame.
16748 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16749 Handle NORECORD argument in call of Fselect_frame.
16750 * lisp.h (do_switch_frame, Fselect_frame)
16751 (Fset_frame_selected_window): Adjust declarations.
16752 * window.c (select_frame_norecord): New function.
16753 (run_window_configuration_change_hook): Use it and call
16754 Fselect_frame with NORECORD set.
16755 (Fselect_window): Pass NORECORD to Fselect_frame.
16756 (Fset_window_configuration): Handle NORECORD argument in call of
16757 do_switch_frame.
16758 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16759 Fset_frame_selected_window.
16760 * keyboard.c (command_loop_1): Handle NORECORD in call of
16761 Fselect_frame (currently ifdefd).
16762
16763 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16764
16765 * emacs.c (USAGE2): Untabify.
16766
16767 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16768
16769 * composite.c (fill_gstring_header): Fix copy/paste typo.
16770
16771 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16772
16773 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16774 (Fother_window): Rename argument and rewrite doc-string.
16775 (select_window_norecord): Fix return value. (Bug#1276)
16776
16777 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16778
16779 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16780 new frames overriding foreground for tooltips. Based on similar patch
16781 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16782
16783 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16784
16785 * emacs.c (Fdaemon_initialized): Initialize nfd.
16786
16787 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16788
16789 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16790 (Fwindow_text_height): Clarify doc-strings.
16791 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16792 doc-string of window-scroll-functions.
16793
16794 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16795
16796 * category.c (syms_of_category): Fix typo in docstring.
16797
16798 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16799
16800 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16801 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16802 Fix typos in docstrings.
16803
16804 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16805
16806 * emacs.c (daemon_pipe): Make non-static.
16807 (IS_DAEMON): Move definition ...
16808 * lisp.h (IS_DAEMON): ... here.
16809 (daemon_pipe): Declare.
16810 (is_daemon): Remove.
16811 * dispnew.c (init_display): Use IS_DAEMON.
16812
16813 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16814
16815 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16816 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16817
16818 * emacs.c (is_daemon): Remove.
16819 (main): Don't set is_daemon.
16820 (IS_DAEMON): New macro.
16821 (Fdaemonp, Fdaemon_initialized): Use it.
16822 (Fdaemon_initialized): Write a char into the pipe to make sure the
16823 parent exits.
16824 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16825
16826 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16827
16828 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16829 over-sized glyph, draw it with the default glyph width.
16830
16831 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16832 glyph, draw it with the default glyph width.
16833
16834 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16835 glyph, draw it with the default glyph width.
16836
16837 * xdisp.c (try_scrolling): When computing the distance from the
16838 scroll margin to PT, try moving some distance past the window
16839 bottom before giving up.
16840
16841 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16842
16843 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16844 (Fset_window_buffer): Explain in doc-string that a window can be
16845 "strongly" dedicated to its buffer.
16846
16847 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16848
16849 * emacs.c (daemon_name): New variable.
16850 (main): Deal with --daemon=SERVER_NAME.
16851 (Fdaemonp): Return a name if one was passed to --daemon.
16852
16853 2008-10-26 Romain Francoise <romain@orebokech.com>
16854
16855 * emacs.c (daemon_pipe): New variable.
16856 (main): Create a pipe before forking, make the parent exit only after
16857 the child has closed its end of the pipe. Move closing the
16858 descriptors ...
16859 (Fdaemon_initialized): ... here. New function.
16860
16861 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16862
16863 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16864 the previous unoptimized table.
16865
16866 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16867 the distinction between non-nil and non-t value of `dedicated'.
16868
16869 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16870
16871 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16872 read_char_minibuf_menu_text is large enough to hold the menu string.
16873
16874 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16875
16876 * window.c (Fget_buffer_window, Fdelete_windows_on)
16877 (Freplace_buffer_in_windows): Make buffer argument optional and
16878 rename to buffer_or_name.
16879
16880 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16881
16882 * xdisp.c (handle_single_display_spec, handle_display_prop):
16883 Undo 2005-05-16 change.
16884 (handle_stop): Pop iterator if it's loaded with an empty string.
16885 (get_overlay_strings_1): Don't save iterator if it's loaded with
16886 an empty string (bug#1201).
16887
16888 2008-10-24 Kenichi Handa <handa@m17n.org>
16889
16890 * ftfont.c (ftfont_otf_features): Fix previous change.
16891 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16892 calling ftfont_otf_features.
16893
16894 2008-10-24 Kenichi Handa <handa@m17n.org>
16895
16896 * font.c (font_match_p): Fix for the case that a vector of
16897 characters is in script-representative-chars.
16898
16899 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16900
16901 * dbusbind.c (xd_in_read_queued_messages): New variable.
16902 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16903 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16904 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16905 macro. (Bug#1186)
16906
16907 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16908
16909 * s/sol2-10.h: New file.
16910
16911 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16912
16913 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16914 poor beast has survived 9+ years and the jump from xterm.c!).
16915
16916 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16917
16918 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16919 Reword doc-string.
16920 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16921
16922 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16923
16924 * character.c (syms_of_character) <script-representative-chars>:
16925 <unicode-category-table>: Doc fixes.
16926
16927 2008-10-23 Noah Friedman <friedman@splode.com>
16928
16929 * coding.c (make_conversion_work_buffer): Check that
16930 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16931 Fget_buffer_create.
16932
16933 2008-10-23 Kenichi Handa <handa@m17n.org>
16934
16935 * font.c (font_add_log): Check the values of extra properties.
16936
16937 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16938
16939 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16940 Reword doc-string.
16941 (Fset_window_parameter): Use NILP.
16942 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16943 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16944
16945 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16946
16947 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16948
16949 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16950
16951 * nsfns.m (ns_appkit_version): New function.
16952 (x-server-version): Use it.
16953 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16954 (x-server-vendor): Don't check_ns().
16955
16956 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16957
16958 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16959
16960 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16961 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16962
16963 2008-10-22 Kenichi Handa <handa@m17n.org>
16964
16965 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16966 scripts.
16967
16968 * category.c (word_boundary_p): Check scripts instead of charset.
16969 Handle nil value in word-separating-categories and
16970 word-combining-categories.
16971 (syms_of_category): Fix docstrings of word-separating-categories
16972 and word-combining-categories.
16973
16974 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16975
16976 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16977 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16978
16979 2008-10-21 Martin Rudalics <rudalics@gmx.at>
16980
16981 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16982 Rename arg "buffer" to "buffer_or_name".
16983 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16984 it optional.
16985 (no_switch_window): Remove since the return value is not used.
16986 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16987 Consider window as dedicated when Fwindow_dedicated_p returns a
16988 non-nil value.
16989 * lisp.h: Remove prototype for no_switch_window.
16990
16991 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16992
16993 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16994 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16995
16996 2008-10-21 Kenichi Handa <handa@m17n.org>
16997
16998 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16999 check Vlatin_extra_code_table.
17000
17001 2008-10-20 Eli Zaretskii <eliz@gnu.org>
17002
17003 * fileio.c (Fset_file_modes): Doc fix.
17004
17005 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
17006
17007 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
17008 in arrays.
17009
17010 2008-10-19 Martin Rudalics <rudalics@gmx.at>
17011
17012 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
17013 Mention kill-buffer in doc-string.
17014 (Fset_window_buffer): Reinsert tem check removed in last commit.
17015 (Fenlarge_window, Fshrink_window): Have argument names and
17016 doc-string follow Elisp manual more closely.
17017
17018 2008-10-18 Eli Zaretskii <eliz@gnu.org>
17019
17020 * fileio.c (Fset_file_modes): Doc fix.
17021
17022 2008-10-18 Martin Rudalics <rudalics@gmx.at>
17023
17024 * window.c (Fwindow_width, Fset_window_start)
17025 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
17026 (Fdelete_windows_on, Freplace_buffer_in_windows):
17027 Make doc-strings follow code and Elisp manual more closely.
17028 (Fwindow_dedicated_p): Make window argument optional.
17029 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
17030 (Fset_window_buffer): Respect any non-nil dedicated value for
17031 window. Rename "buffer" argument to "buffer_or_name".
17032
17033 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
17034
17035 * m/sh3.h: New file, machine description for SuperH.
17036
17037 2008-10-17 Martin Rudalics <rudalics@gmx.at>
17038
17039 * window.c (Fsplit_window): Rename arg horflag to horizontal.
17040
17041 2008-10-17 Kenichi Handa <handa@m17n.org>
17042
17043 * ftfont.c (ftfont_otf_features): Fix indexing
17044 gsub_gpos->FeatureList.Feature. Check the validity of indices.
17045
17046 2008-10-16 Magnus Henoch <mange@freemail.hu>
17047
17048 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
17049 (Fdbus_call_method_asynchronously): Ditto.
17050 This change makes C-h f display the argument list.
17051
17052 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
17053
17054 * fileio.c (Fexpand_file_name): Doc fix.
17055
17056 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
17057 of :foreground and :background equivalent to unspecified (20.x
17058 compatibility).
17059
17060 2008-10-15 Eli Zaretskii <eliz@gnu.org>
17061
17062 * buffer.c (syms_of_buffer): Doc fix.
17063
17064 2008-10-14 Kenichi Handa <handa@m17n.org>
17065
17066 * font.c (font_clear_prop): When clearing font width, clear the
17067 average width field too.
17068
17069 2008-10-12 Andreas Schwab <schwab@suse.de>
17070
17071 * ftfont.c (ftfont_shape_by_flt): Make static.
17072 * ftfont.h (ftfont_shape_by_flt): Don't declare.
17073
17074 * font.c: Don't include <m17n-flt.h>.
17075
17076 2008-10-10 Eli Zaretskii <eliz@gnu.org>
17077
17078 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
17079
17080 2008-10-09 Eli Zaretskii <eliz@gnu.org>
17081
17082 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
17083 away code.
17084
17085 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
17086
17087 * dispnew.c (update_text_area): Avoid looping due to large glyph
17088 overhangs (bug#1070).
17089
17090 2008-10-09 Kenichi Handa <handa@m17n.org>
17091
17092 * fontset.c (face_for_char): If face->fontset is negative, just
17093 return ascii_face.
17094
17095 * font.c (font_delete_unmatched): Fix previous change.
17096 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
17097
17098 2008-10-09 Martin Rudalics <rudalics@gmx.at>
17099
17100 * frame.c (Fraise_frame): On text-only terminals select frame in
17101 order to make it visible. (Bug#1061)
17102
17103 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
17104
17105 * fontset.c (fontset_find_font): Check frame validity.
17106
17107 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
17108
17109 * gtkutil.c (xg_display_open): Reset default display if none exists.
17110 (xg_display_close): Allow Emacs to close all displays (bug#985).
17111
17112 2008-10-06 Andreas Schwab <schwab@suse.de>
17113
17114 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
17115
17116 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
17117
17118 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
17119
17120 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
17121
17122 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
17123 during initialization.
17124
17125 2008-10-04 Eli Zaretskii <eliz@gnu.org>
17126
17127 * xdisp.c (redisplay_internal): If frame switched, redisplay the
17128 whole thing on MSDOS frames as well as on a TTY.
17129
17130 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
17131 well as for TTY.
17132 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
17133 well as on a TTY.
17134
17135 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
17136 as well as for TTY.
17137
17138 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
17139
17140 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
17141 MSDOS frames as well.
17142
17143 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17144
17145 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
17146 correct arguments.
17147 * menu.c (find_and_return_menu_selection): Add cast.
17148
17149 2008-10-03 Glenn Morris <rgm@gnu.org>
17150
17151 * emacs.c (USAGE1): Add --daemon.
17152
17153 2008-10-02 Eli Zaretskii <eliz@gnu.org>
17154
17155 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
17156 100, so it's in percents as advertised.
17157
17158 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17159
17160 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
17161 (ns_output.current_cursor, ns_output.desired_cursor)
17162 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
17163 (FRAME_NEW_CURSOR_COLOR): Remove.
17164
17165 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
17166 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
17167 enumeration (HOLLOW_BOX_CURSOR, etc.).
17168
17169 * nsterm.m (ns_frame_rehighlight): Remove commented code.
17170 (draw_window_cursor): Simplify code.
17171 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
17172 Don't change cursor type. In latter, call rehighlight instead of doing
17173 updates manually.
17174 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
17175 Use core Emacs cursor types.
17176
17177 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
17178
17179 2008-10-02 Martin Rudalics <rudalics@gmx.at>
17180
17181 * process.c (Faccept_process_output): Fix doc-string.
17182
17183 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
17184
17185 * gmalloc.c (__sbrk): Also define for uClibc.
17186
17187 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
17188 for uClibc.
17189
17190 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17191
17192 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
17193 styles.
17194 (nsfont_open): Reenable the cache.
17195
17196 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17197
17198 * font.c (font_matching_entity): Reflect ATTRS in font selection.
17199 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
17200
17201 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
17202
17203 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
17204 a suspended terminal.
17205
17206 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
17207
17208 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
17209
17210 2008-09-30 Eli Zaretskii <eliz@gnu.org>
17211
17212 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
17213
17214 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
17215
17216 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
17217 in a continued line coincides with a line beginning.
17218
17219 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
17220
17221 * nsfont.m (nsfont_trait_distance): Fix bug.
17222 (nsfont_list): Return a list rather than a vector (syncs with Handa
17223 changes of 2008-05-14).
17224 (nsfont_open): Improve logging.
17225
17226 2008-09-29 Andreas Schwab <schwab@suse.de>
17227
17228 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
17229
17230 2008-09-28 Martin Rudalics <rudalics@gmx.at>
17231
17232 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17233 name as char-resolve-modifiers.
17234 Reported by: Markus Triska <markus.triska@gmx.at>
17235
17236 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17237
17238 * dispnew.c (init_display): Return earlier when running as a daemon.
17239
17240 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17241
17242 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17243
17244 2008-09-27 Eli Zaretskii <eliz@gnu.org>
17245
17246 * composite.c (Fcomposition_get_gstring)
17247 (Fcompose_region_internal, Fcompose_string_internal)
17248 (Ffind_composition_internal): Doc fix.
17249 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17250 (syms_of_composite) <auto-composition-function>: Doc fix.
17251 (syms_of_composite) <composition-function-table>: Doc fix.
17252
17253 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
17254
17255 * search.c (wordify): New argument for lax word-ends.
17256 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17257
17258 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17259
17260 * lisp.h (is_daemon): Declare.
17261 * dispnew.c (init_display): Do not try to initialize the terminal
17262 when running as a daemon.
17263
17264 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
17265
17266 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17267 x_display_pixel_height.
17268
17269 2008-09-22 Martin Rudalics <rudalics@gmx.at>
17270
17271 * undo.c (record_point): Don't call Fundo_boundary for first
17272 change. (Bug#731)
17273
17274 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
17275
17276 * emacs.c (Fdaemonp): Doc fix.
17277
17278 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17279
17280 * emacs.c (main): Place #ifdef in the proper place.
17281
17282 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17283
17284 * emacs.c (standard_args): Add --daemon.
17285 (main): Disconnect from the terminal when --daemon is passed.
17286 (is_daemon): New variable.
17287 (Fdaemonp): New function.
17288 (syms_of_emacs): Defsubr it.
17289
17290 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
17291
17292 * xdisp.c (get_next_display_element): Handle string display
17293 correctly when checking for the end of a box run.
17294
17295 2008-09-20 Glenn Morris <rgm@gnu.org>
17296
17297 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17298 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17299 (Frename_file): Avoid copying to trash if a rename involves
17300 a delete. (Bug#964).
17301
17302 2008-09-20 Eli Zaretskii <eliz@gnu.org>
17303
17304 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17305 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17306 frames as well as termcap frames.
17307 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17308 get_named_tty.
17309
17310 2008-09-19 Eli Zaretskii <eliz@gnu.org>
17311
17312 * process.c (procfs_system_process_attributes): Fix cmdline in
17313 case /proc/PID/cmdline is empty.
17314
17315 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17316 x_display_pixel_height.
17317
17318 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
17319
17320 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17321
17322 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17323 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17324
17325 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17326
17327 * dispextern.h (struct it): Move line_wrap away from the middle of
17328 bitfields. Move voffset in struct iterator_stack_entry after the
17329 bitfields. Move tab_width near after another short.
17330
17331 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17332
17333 * frame.h (struct frame): Move alpha from the middle of bitfields.
17334
17335 * window.h (struct window): Move frozen_window_start_p after the
17336 rest of the bitfields to reduce padding.
17337
17338 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
17339
17340 * xterm.h (x_display_info): Remove `height' and `width' members.
17341
17342 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17343
17344 * w32term.h (w32_display_info): Remove `height', `width',
17345 `height_in', and `width_in' members.
17346
17347 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17348 New functions.
17349 (x_calc_absolute_position): Use them.
17350 (x_term_init): Omit removed `height' and `width' members.
17351
17352 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17353 New functions.
17354 (w32_read_socket, x_calc_absolute_position): Use them.
17355 (w32_initialize_display_info, w32_term_init): Omit removed members
17356 of w32_display_info.
17357
17358 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17359 New functions.
17360 (ns_initialize_display_info): Omit removed members of ns_display_info.
17361
17362 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17363 New functions.
17364 (x_calc_absolute_position): Use them.
17365 (x_term_init): Omit removed `height' and `width' members.
17366
17367 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17368 (compute_tip_xy):
17369 * frame.c (x_fullscreen_adjust):
17370 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17371 x_display_pixel_width.
17372
17373 2008-09-18 Kenichi Handa <handa@m17n.org>
17374
17375 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17376 (composition_compute_stop_pos): Fix handling of static composition.
17377 (Fcomposition_get_gstring): Check FROM and TO at first.
17378
17379 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17380
17381 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17382 mixup (YAILOM).
17383
17384 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
17385
17386 * indent.c (Fvertical_motion): Use position reported by iterator
17387 instead of PT for determining screen motion (bug#943).
17388
17389 2008-09-17 Romain Francoise <romain@orebokech.com>
17390
17391 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17392
17393 2008-09-17 Kenichi Handa <handa@m17n.org>
17394
17395 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17396
17397 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17398 if necessary.
17399
17400 2008-09-16 Kenichi Handa <handa@m17n.org>
17401
17402 * coding.c (make_conversion_work_buffer): Avoid calling
17403 Fget_buffer_create if it is not necessary.
17404
17405 2008-09-15 Martin Rudalics <rudalics@gmx.at>
17406
17407 * window.c (Fselect_window): Don't update window_select_count and
17408 use_time when norecord is not nil.
17409
17410 2008-09-14 Kenichi Handa <handa@m17n.org>
17411
17412 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17413 specpdl_ptr.
17414
17415 2008-09-12 Kenichi Handa <handa@m17n.org>
17416
17417 * indent.c (scan_for_column): Don't handle automatic composition
17418 if the current buffer is not associated with a window.
17419
17420 * composite.c (composition_reseat_it): If the current buffer is
17421 not associated with a window, ignore the automatic composition.
17422 (find_automatic_composition): Likewise.
17423
17424 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17425
17426 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17427 (Fgpm_mouse_stop): Use it.
17428 * termhooks.h (close_gpm): Declare.
17429 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17430 connection if Gpm_GetEvent fails.
17431
17432 * window.c (set_window_buffer): Always preserve current-buffer.
17433
17434 2008-09-12 Glenn Morris <rgm@gnu.org>
17435
17436 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17437
17438 2008-09-11 Glenn Morris <rgm@gnu.org>
17439
17440 * charset.c (charset-map-path): Doc fix.
17441
17442 2008-09-10 Kenichi Handa <handa@m17n.org>
17443
17444 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17445
17446 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17447 compose a grapheme cluster with the preceding base glyph.
17448
17449 * composite.c (composition_compute_stop_pos): Fix previous change.
17450 Reset cmp_it->id to -1 at first.
17451
17452 2008-09-10 Glenn Morris <rgm@gnu.org>
17453
17454 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17455
17456 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
17457
17458 * keyboard.c (read_key_sequence): Reapply translation maps when
17459 switching keyboards.
17460
17461 2008-09-09 Kenichi Handa <handa@m17n.org>
17462
17463 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17464 characters.
17465
17466 * composite.c (FORWARD_CHAR): Fix calculation
17467 of (POSITION).pos_byte.
17468 (composition_compute_stop_pos): Limit the search of composition to
17469 at most 500 characters ahead. If we reach the limit or find a
17470 newline, set cmp_it->ch to -2 and return 0.
17471 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17472
17473 2008-09-08 Kenichi Handa <handa@m17n.org>
17474
17475 * indent.c (Fvertical_motion): Be sure to set
17476 it_overshoot_expected if it.cmp_it.id is non-negative.
17477
17478 2008-09-07 Andreas Schwab <schwab@suse.de>
17479
17480 * callproc.c (Fcall_process): Don't hold references to string data
17481 across garbage collection. Move initialisation of new_argv down
17482 to avoid compiler bug.
17483
17484 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17485
17486 * process.c (Fsystem_process_attributes): Doc fix.
17487
17488 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
17489
17490 * callproc.c (Fcall_process): Canonicalize current directory name.
17491
17492 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17493 iterator advances to the next line if the current line ends in a
17494 continued tab.
17495
17496 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17497
17498 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17499 member to point to cmp_from.
17500
17501 * xdisp.c: Doc fix for references to gidx data member.
17502
17503 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17504
17505 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17506
17507 2008-09-07 Kenichi Handa <handa@m17n.org>
17508
17509 * composite.c (FORWARD_CHAR): Check STOP after
17510 incrementing (POSITION).pos.
17511
17512 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17513
17514 * process.c (Fsystem_process_attributes): Doc fix.
17515
17516 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
17517
17518 * keyboard.c (Ftop_level): Doc fix.
17519
17520 2008-09-06 Eli Zaretskii <eliz@gnu.org>
17521
17522 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17523 minibuffer, don't let lower part of menu invade the echo area.
17524
17525 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17526 "char *q" to access menu text and advance through it. Revert the
17527 change that displayed ">" instead of ASCII character 0x10.
17528
17529 2008-09-05 Eli Zaretskii <eliz@gnu.org>
17530
17531 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17532 toggle boxes and radio buttons on MS-DOS as well.
17533
17534 2008-09-05 Kenichi Handa <handa@m17n.org>
17535
17536 * composite.c (autocmp_chars): Check lookback count.
17537 (composition_compute_stop_pos): Set cmp_it->lookback.
17538 (composition_reseat_it): Check lookback count.
17539 (struct position_record): New struct.
17540 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17541 (find_automatic_composition): New function.
17542 (composition_adjust_point): Use find_automatic_composition.
17543
17544 * dispextern.h (struct composition_it): New member lookback.
17545
17546 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
17547
17548 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17549 if moving by a single line.
17550
17551 2008-09-02 Andreas Schwab <schwab@suse.de>
17552
17553 * xterm.c (x_delete_display): Fix merge error.
17554
17555 * fileio.c (Fexpand_file_name): Remove unused variables.
17556
17557 2008-09-02 Eli Zaretskii <eliz@gnu.org>
17558
17559 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17560 storage on all platforms, not just on DOS_NT.
17561
17562 2008-09-02 Jason Rumney <jasonr@gnu.org>
17563
17564 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17565 Ensure mouse is not grabbed after menu is finished.
17566
17567 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
17568
17569 * xfaces.c (Finternal_set_alternative_font_family_alist)
17570 (Finternal_set_alternative_font_registry_alist): Properly copy
17571 entire alist structure.
17572
17573 2008-09-01 Kenichi Handa <handa@m17n.org>
17574
17575 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17576 representative chars of the script is a vector.
17577 (ftfont_list): Handle the case where the representative chars of
17578 the script is a vector.
17579
17580 * character.c (syms_of_character): Docstring of
17581 script-representative-chars fixed.
17582
17583 2008-08-31 Eli Zaretskii <eliz@gnu.org>
17584
17585 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17586 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17587 the menu. Allocate larger buffer for `text', to account for
17588 possible ^C characters.
17589
17590 2008-08-31 Martin Rudalics <rudalics@gmx.at>
17591
17592 * xdisp.c (prepare_menu_bars): Don't call
17593 Vwindow_size_change_functions with arg Qt.
17594
17595 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17596
17597 * font.h (font_range):
17598 * fileio.c (report_file_error):
17599 * composite.c (composition_update_it): Yet another int/Lisp_Object
17600 mixup (YAILOM).
17601
17602 2008-08-30 Glenn Morris <rgm@gnu.org>
17603
17604 * data.c (Fmake_variable_frame_local): Doc fix.
17605
17606 * frame.c (Fmodify_frame_parameters): Doc fix.
17607
17608 2008-08-30 Eli Zaretskii <eliz@gnu.org>
17609
17610 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17611 needed by GetTokenInformation.
17612 (w32_system_process_attributes): Check return values of all system
17613 APIs.
17614
17615 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17616 only when the state changes.
17617 (IT_update_begin, IT_update_end): Add termscript trace.
17618
17619 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17620 clipboard is unavailable. Set dst to NULL if it doesn't point to
17621 malloc'ed data.
17622 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17623 passing random values to xfree.
17624
17625 * dispnew.c (init_display): Set `tty's association in frame's
17626 parameters alist to the name of the terminal device, if that is known.
17627
17628 2008-08-29 Jason Rumney <jasonr@gnu.org>
17629
17630 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17631
17632 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17633
17634 * composite.c (fill_gstring_body): Avoid compiler warnings.
17635
17636 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17637 LGLYPH_SET_CODE to avoid compiler warnings.
17638
17639 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17640
17641 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17642
17643 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17644 LGLYPH_SET_CODE.
17645
17646 2008-08-29 Kenichi Handa <handa@m17n.org>
17647
17648 * fileio.c (report_file_error): Don't downcase the first character
17649 of errstring if it is still unibyte.
17650
17651 2008-08-29 Kenichi Handa <handa@m17n.org>
17652
17653 These changes are to re-implement the automatic composition so
17654 that it doesn't use text properties.
17655
17656 * Makefile.in (ftfont.o): Depend on composite.h.
17657 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17658
17659 * character.h (Vunicode_category_table): Extern it.
17660
17661 * character.c (Vunicode_category_table): New variable.
17662 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17663
17664 * chartab.c (optimize_sub_char_table): Perform more greedy
17665 optimization.
17666
17667 * composite.h (enum composition_method):
17668 Delete COMPOSITION_WITH_GLYPH_STRING.
17669 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17670 (Vcomposition_function_table): Extern it.
17671 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17672 (composition_gstring_put_cache, composition_gstring_from_id)
17673 (composition_gstring_p, composition_gstring_width)
17674 (composition_compute_stop_pos, composition_reseat_it)
17675 (composition_update_it, composition_adjust_point): Extern them.
17676 (Fcomposition_get_gstring): EXFUN it.
17677
17678 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17679 (Vcomposition_function_table)
17680 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17681 (gstring_hash_table, gstring_work, gstring_work_headers):
17682 New variables.
17683 (gstring_lookup_cache, composition_gstring_put_cache)
17684 (composition_gstring_from_id, composition_gstring_p)
17685 (composition_gstring_width, fill_gstring_header)
17686 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17687 (composition_reseat_it, composition_update_it)
17688 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17689 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17690 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17691 Defsubr composition_get_gstring.
17692
17693 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17694 cmp_id.
17695 (struct glyph_string): Delete the member gidx. New members
17696 cmp_id, cmp_from, and cmp_to.
17697 (enum it_method): Delete GET_FROM_COMPOSITION.
17698 (struct composition_it): New struct.
17699 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17700 Delete c, len, cmp_id, cmp_len in u.comp.
17701
17702 * font.h (enum lgstring_indices): Delete it.
17703 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17704 (enum lglyph_indices): Likewise.
17705 (font_range): Adjust extern.
17706 (font_fill_lglyph_metrics): Extern it.
17707
17708 * font.c (QCf): New variable.
17709 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17710 (font_prepare_composition): Delete this function.
17711 (font_range): Type and arguments changed.
17712 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17713 (font_fill_lglyph_metrics): New function.
17714 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17715 (syms_of_font): DEFSYM QCf. Delete defsubr for
17716 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17717 Defsubr Sfont_shape_gstring.
17718
17719 * fontset.h (font_for_char): Extern it.
17720
17721 * fontset.c (font_for_char): New function.
17722
17723 * ftfont.c: Include composite.h.
17724 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17725 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17726
17727 * indent.c: Include composite.h and dispextern.h.
17728 (check_composition): Delete this function.
17729 (scan_for_column): Handle composition by
17730 composition_compute_stop_pos, composition_reseat_it, and
17731 composition_update_it.
17732 (compute_motion): Likewise.
17733 (Fvertical_motion): Fix checking of composition.
17734
17735 * keyboard.c (adjust_point_for_property): Check composition by
17736 composition_adjust_point.
17737
17738 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17739 struct glyph_string.
17740
17741 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17742 (append_composite_glyph): Adjust for the change of struct it and
17743 struct glyph.
17744 (produce_composite_glyph): Likewise.
17745
17746 * w32term.c (x_draw_composite_glyph_string_foreground):
17747 Adjust for the change of struct glyph_string.
17748 (x_draw_glyph_string): Likewise.
17749
17750 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17751 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17752
17753 * xdisp.c: Include font.h.
17754 (it_props): Delete the entry for Qauto_composed.
17755 (init_iterator): Initialize it->cmp_it.id to -1.
17756 (compute_stop_pos): Call composition_compute_stop_pos.
17757 (face_before_or_after_it_pos): Adjust for the change of struct it.
17758 (handle_auto_composed_prop): Delete it.
17759 (handle_composition_prop): Handle only static composition.
17760 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17761 from xassert. Initialize it->cmp_it.stop_pos.
17762 (push_it): Adjust for the change of struct it.
17763 (pop_it): Likewise.
17764 (get_next_element): Delete next_element_from_composition.
17765 (CHAR_COMPOSED_P): New macro.
17766 (get_next_display_element): For automatic composition, get a face
17767 from the font in the glyph-string.
17768 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17769 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17770 (next_element_from_string): Check if the character at the current
17771 position is composed by CHAR_COMPOSED_P.
17772 (next_element_from_buffer): Likewise.
17773 (next_element_from_composition): Adjust for the change of struct it.
17774 Update it->cmp_it.
17775 (dump_glyph): Adjust for the change of struct glyph.
17776 (fill_composite_glyph_string): Adjust for the change of struct
17777 it and struct glyph. Don't handle automatic composition here.
17778 (fill_gstring_glyph_string): New function.
17779 (x_get_glyph_overhangs): Handle automatic composition.
17780 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17781 (BUILD_GSTRING_GLYPH_STRING): New macro.
17782 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17783 automatic composition.
17784 (append_composite_glyph): Adjust for the change of struct it and
17785 struct glyph.
17786 (x_produce_glyphs): Adjust for the change of struct it.
17787
17788 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17789 the change of struct glyph_string.
17790 (x_draw_glyph_string): Likewise.
17791
17792 2008-08-29 Glenn Morris <rgm@gnu.org>
17793
17794 * buffer.c (word-wrap): Doc fix.
17795 * xdisp.c (truncate-partial-width-windows): Doc fix.
17796 Increase default to 50.
17797
17798 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17799
17800 * xdisp.c (update_tool_bar_unwind): New function.
17801 (update_tool_bar): Temporarily set selected frame before building
17802 tool-bar items.
17803
17804 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17805
17806 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17807 snprintf, respectively.
17808 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17809
17810 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17811
17812 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17813 LDFLAGS to GNUstep CC invocation.
17814
17815 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17816
17817 * indent.c (Fvertical_motion): Revert last change. Handle the
17818 general case where we are moving forward, and PT spans multiple
17819 screen lines.
17820
17821 * eval.c (find_handler_clause): Temporarily increase
17822 max-lisp-eval-depth while printing the backtrace buffer, to
17823 guarantee that help-mode code can run.
17824
17825 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17826
17827 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17828 colors under -rv.
17829 (IT_set_frame_parameters): Don't swap foreground and background
17830 colors if `(reverse . t)' is present in the frame properties.
17831 (internal_terminal_init): Call init_frame_faces only for the
17832 initial frame.
17833
17834 2008-08-27 Andreas Schwab <schwab@suse.de>
17835
17836 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17837
17838 2008-08-27 Andreas Schwab <schwab@suse.de>
17839
17840 * search.c (search_buffer): Set char_base to zero only at the end.
17841
17842 2008-08-27 Kenichi Handa <handa@m17n.org>
17843
17844 * fileio.c (report_file_error): Fix handling of multibyte error string.
17845
17846 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17847
17848 * xterm.c (x_term_init): Temporarily hide the partially
17849 initialized terminal while calling vendor-specific-keysyms.
17850
17851 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17852
17853 * msdos.c (internal_terminal_init): Most initializations done only
17854 once, especially initial_screen_colors[] and termscript open.
17855
17856 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17857
17858 * eval.c (Fcondition_case): Doc fix.
17859
17860 * widgetprv.h (EmacsFramePart): Change font member to the new font
17861 struct.
17862
17863 * widget.c: Include character.h and font.h for XSETFONT.
17864 (setup_frame_gcs): Compute X font id from font struct, just once.
17865
17866 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17867
17868 * term.c (get_named_tty): Fix last change.
17869
17870 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17871
17872 * indent.c (Fvertical_motion): If moving forward starting from a
17873 multi-line string, move the iterator to the last line of that string.
17874
17875 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17876
17877 * frame.c (do_switch_frame): Mark previously displayed frame as
17878 obscured for FRAME_MSDOS_P frames as well.
17879
17880 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17881
17882 * frame.c (make_terminal_frame): Initialize f->terminal,
17883 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17884 Set the top frame to newly created frame.
17885 (Fmake_terminal_frame): Reuse the_only_display_info.
17886
17887 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17888 estimating available memory.
17889
17890 2008-08-23 David Reitter <david.reitter@gmail.com>
17891
17892 * nsterm.m (ns_draw_window_cursor): Don't call
17893 NSDisableScreenUpdates and NSEnableScreenUpdates on
17894 non-NS_IMPL_COCOA systems.
17895
17896 2008-08-23 Andreas Schwab <schwab@suse.de>
17897
17898 * process.c (procfs_system_process_attributes): Fix use of
17899 uninitialized variables.
17900
17901 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17902
17903 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17904
17905 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17906 calling tty-set-up-initial-frame-faces.
17907
17908 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17909 Allow MSDOS frames along with X frames.
17910
17911 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17912 addition to output_termcap.
17913
17914 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17915
17916 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17917 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17918 highlight.
17919
17920 * process.c [!subprocesses]: Define QCname.
17921 (syms_of_process): Intern and staticpro it.
17922
17923 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17924 Adjust for changes in encoding/decoding routines.
17925 Use encode_coding_object and decode_coding_object instead of
17926 encode_coding and decode_coding.
17927
17928 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17929
17930 * dosfns.c: Include frame.h before termhooks.h.
17931 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17932 variable termscript.
17933
17934 * s/msdos.h (USER_FULL_NAME): Define.
17935 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17936
17937 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17938 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17939 pw->pw_gecos.
17940
17941 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17942 SELECTED_FRAME as additional (1st) argument.
17943 (tty_read_avail_input): Handle output_msdos_raw in
17944 addition to output_termcap.
17945
17946 * msdos.c: Include frame.h before termhooks.h.
17947 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17948 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17949 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17950 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17951 (IT_set_terminal_modes, IT_reset_terminal_modes)
17952 (IT_set_frame_parameters): Use tty->termscript instead of a global
17953 variable termscript.
17954 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17955 global variable terminal_coding. Don't refer to
17956 Vnonascii_translation_table.
17957 (internal_terminal_init): Set Vwindow_system in current_kboard.
17958 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17959 Announce date and time of session start, if termscript is open.
17960 Don't zero out the_only_display_info (it is done in
17961 term.c:init_tty). Open termscript only of not already open.
17962 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17963 here instead of dos_ttraw. Don't initialize display if this is an
17964 initial tty. Don't set FRAME_FONT.
17965 (Vwindow_system_version): Bump to 23.
17966 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17967 is available, set up mouse_position_hook.
17968 (dos_ttraw, IT_set_terminal_modes): If called with initial
17969 terminal, do nothing.
17970 (IT_set_frame_parameters): Handle the Qtty_type frame
17971 parameter by calling internal_terminal_init.
17972 (dos_set_window_size, show_mouse_face)
17973 (clear_mouse_face, IT_note_mode_line_highlight)
17974 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17975 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17976 (initialize_msdos_display): New function.
17977 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17978 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17979 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17980 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17981 Accept additional argument: a pointer to a frame. Update all callers.
17982 (request_sigio, unrequest_sigio): Don't define, now defined on
17983 sysdep.c.
17984 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17985
17986 * term.c [MSDOS]: Include msdos.h.
17987 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17988 conditional to DOS_NT. Allow only one call to this function in a
17989 session. Don't allocate a new struct tty_display_info; instead,
17990 reuse the_only_display_info. Call get_tty_size to get screen
17991 dimensions. Call init_baud_rate to set bad_rate.
17992 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17993 (Fsuspend_tty) [MSDOS]: Don't close input and output.
17994 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17995 (get_tty_terminal, get_named_tty, Ftty_type)
17996 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17997 output_termcap.
17998 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17999 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
18000 only when subprocesses are supported.
18001
18002 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
18003 f->output_data.x.
18004 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
18005 terminal devices.
18006
18007 * msdos.h: Remove definition of struct x_display_info and struct
18008 x_output.
18009 (FRAME_FONT): Use output_data.tty.
18010 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
18011 (struct x_display_info): Rename from display_info. Update all users in
18012 msdos.c.
18013 (struct x_output): Remove background_pixel and foreground_pixel.
18014 (the_only_display_info): Rename from the_only_x_display.
18015 (dos_ttraw): Update prototype.
18016
18017 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
18018 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
18019
18020 2008-08-23 Jason Rumney <jasonr@gnu.org>
18021
18022 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
18023 (fn_TIFFSetDirectory): New library function used.
18024 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
18025 (tiff_load): Use :index to select among multiple images. Set count
18026 property when multiple images exist.
18027 (gif_format): Use :index, not :image.
18028
18029 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
18030
18031 * xdisp.c (try_scrolling): Check INT_MAX instead of
18032 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
18033 to obtain INT_MAX.
18034
18035 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
18036
18037 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
18038
18039 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
18040
18041 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
18042 GNUstep library location.
18043
18044 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
18045
18046 * xfaces.c (x_update_menu_appearance): Check validity of menu font
18047 before using it.
18048
18049 * puresize.h (BASE_PURESIZE): Increase to 1250000.
18050
18051 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18052
18053 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
18054 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
18055 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
18056 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
18057 (EmacsApp-cursor_blink_handler): Remove declaration.
18058 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
18059 match 01 Feb 2008 changes in xterm.c.
18060 (ns_read_socket): Add cast to avoid warning.
18061 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
18062 GNUstep.
18063
18064 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
18065
18066 * xselect.c (x_get_foreign_selection): Return nil if desired
18067 selection could not be obtained, instead of signalling an error.
18068
18069 2008-08-20 David Reitter <david.reitter@gmail.com>
18070
18071 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
18072 * nsterm.m: Remove ns-specific code for cursor blinking.
18073 (ns_draw_window_cursor): Clear cursor properly rather than
18074 redrawing the area. Respect width of bar cursors.
18075 These changes enable the use of generic blink-cursor-mode and
18076 generic cursor types in NS and support smooth cursor movements (do
18077 not blink off after command).
18078 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
18079 Nextstep, too.
18080
18081 2008-08-19 Kenichi Handa <handa@m17n.org>
18082
18083 * font.c (Vfont_log_deferred): New variable.
18084 (font_add_log): Check Vfont_log_deferred.
18085 (font_deferred_log): New function.
18086
18087 * font.h (font_deferred_log): Extern it.
18088
18089 * fontset.c (reorder_font_vector): Use encoding charset of fonts
18090 for sorting.
18091 (face_for_char): Use deferred log.
18092
18093 2008-08-18 Kenichi Handa <handa@m17n.org>
18094
18095 * fontset.c (face_for_char): Add font log.
18096
18097 * font.c (font_add_log): Add the font properties :script, :lang,
18098 and :otf in the log.
18099
18100 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
18101
18102 * xdisp.c: Remove dead code.
18103 (handle_invisible_prop, next_overlay_string): Defer call to
18104 setup_for_ellipsis.
18105 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
18106
18107 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
18108
18109 * xfaces.c (lookup_derived_face): Properly handle possible zero
18110 return value of get_lface_attributes.
18111 (merge_faces): Don't tell lookup_derived_face to signal an error
18112 if face is not found.
18113
18114 * dired.c (Fdirectory_files): Doc fix.
18115
18116 * process.c (make_process): Initialize kill_without_query struct
18117 member.
18118
18119 2008-08-15 Eli Zaretskii <eliz@gnu.org>
18120
18121 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
18122 Alternative calculation of totphys for Visual Studio 6.
18123
18124 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
18125
18126 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
18127 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
18128 All users changed.
18129 (stat): Only root directory passed to GetDriveType. Allow RAM
18130 disk as well as local fixed disk when w32-get-true-file-attributes
18131 is set to `local'.
18132 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
18133 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
18134 (w32_cached_id, w32_add_to_cache): New functions.
18135 (get_name_and_id): Look account names in the cache before calling
18136 lookup_account_sid.
18137 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
18138 New initialization flags.
18139 (globals_of_w32): Initialize them to zero.
18140 (w32_system_process_attributes): Use w32_cached_id and
18141 w32_add_to_cache.
18142
18143 2008-08-14 Lawrence Mitchell <wence@gmx.li>
18144
18145 * lread.c (Fread_char, Fread_char_exclusive): If no character
18146 event is read before timeout is reached, return nil, rather than
18147 converting to a number.
18148
18149 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
18150
18151 * fns.c (use_dialog_box): Doc fix.
18152
18153 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
18154 on OS X.
18155
18156 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
18157
18158 * frame.c (Qns_parse_geometry): New var.
18159 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
18160
18161 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
18162
18163 * xdisp.c (x_produce_glyphs): Handle the case when font has no
18164 space character in calculating tabs.
18165
18166 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
18167
18168 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
18169
18170 2008-08-10 Glenn Morris <rgm@gnu.org>
18171
18172 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
18173 silence gcc "limited range of data type" warnings in some
18174 make_fixnum_or_float calls.
18175
18176 2008-08-09 Eli Zaretskii <eliz@gnu.org>
18177
18178 * w32.c (w32_system_process_attributes): If the process does not
18179 exist, return nil.
18180
18181 * w32.c: Include thelp32.h, psapi.h and coding.h.
18182 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
18183 declarations.
18184 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
18185 (Process32Next_Proc): New typedefs.
18186 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
18187 (g_b_init_process32_next, g_b_init_open_thread_token)
18188 (g_b_init_impersonate_self, g_b_init_revert_to_self)
18189 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
18190 (g_b_init_get_process_working_set_size)
18191 (g_b_init_global_memory_status_ex): New static variables.
18192 (globals_of_w32): Initialize them.
18193 (create_toolhelp32_snapshot, process32_first, process32_next)
18194 (open_thread_token, impersonate_self, revert_to_self)
18195 (get_process_memory_info, get_process_working_set_size)
18196 (global_memory_status, global_memory_status_ex): New wrapper
18197 functions.
18198 (w32_list_system_processes, w32_system_process_attributes)
18199 (enable_privilege, restore_privilege, ltime, process_times):
18200 New functions.
18201 (convert_time_raw): New function.
18202 (convert_time): Remove conversion of FILETIME into time in 100
18203 nsec units, call convert_time_raw instead.
18204
18205 * process.h (w32_list_system_processes, w32_system_process_attributes):
18206 Add prototypes.
18207 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
18208 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
18209 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
18210 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
18211
18212 * process.c (Fsystem_process_attributes): Doc fix.
18213
18214 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
18215
18216 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
18217 a continued multi-char glyph; if so, advance to the actual glyph.
18218
18219 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
18220
18221 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
18222
18223 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
18224 (.m.o): Use it.
18225 * config.in: Regenerate.
18226
18227 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
18228
18229 * xdisp.c (redisplay_window): Revert last change.
18230 (try_window): Check bottom scroll margin too.
18231
18232 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18233
18234 * config.in: Regenerate.
18235
18236 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18237 -list-load-path-shadows'.
18238 (nsgui.h): Reduce number of things depending on it.
18239
18240 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
18241
18242 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18243 instead of window-end which does the wrong thing at eob.
18244 (try_cursor_movement): Minor optimization.
18245 (redisplay_window): If scroll margin is defined, don't assume
18246 window doesn't need scrolling.
18247
18248 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18249
18250 * config.in: Regenerate.
18251
18252 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18253 (mostlyclean): Don't delete *.d under NS.
18254
18255 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18256
18257 2008-08-06 Kenichi Handa <handa@m17n.org>
18258
18259 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18260
18261 2008-08-06 Andreas Schwab <schwab@suse.de>
18262
18263 * config.in: Regenerate.
18264
18265 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
18266
18267 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18268 forcing a window start.
18269
18270 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18271 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18272
18273 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18274
18275 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18276 argument.
18277
18278 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
18279
18280 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18281 <scroll-down-aggressively, before-change-functions>:
18282 <after-change-functions>: Reflow docstrings.
18283
18284 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18285 Ken Raeburn <raeburn@gnu.org>
18286
18287 Dock menu customization, based on a patch by Ken Raeburn, plus some
18288 other fixes.
18289 * nsmenu.m (dockMenu): New variable.
18290 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18291
18292 * nsterm.h (dockMenu): Declare.
18293
18294 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18295 (ns_term_init): Initialize dockMenu.
18296 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18297 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18298 left.
18299
18300 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18301
18302 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18303
18304 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18305
18306 * config.in: Regenerate.
18307
18308 2008-08-04 Seiji Zenitani <zenitani@mac.com>
18309
18310 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18311
18312 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18313
18314 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18315
18316 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18317
18318 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18319
18320 * keyboard.h: Comment an #endif.
18321
18322 * lisp.h (have_menus_p): Adjust comment.
18323
18324 * menu.c (find_and_return_menu_selection): Fix comparison with
18325 client_data.
18326
18327 * nsmenu.m (popup_activated_flag): New variable.
18328 (popup_activated): New function.
18329 (menu-or-popup-active-p): New exported lisp definition.
18330 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18331 when popup done.
18332 (ns_popup_dialog): Set popup_activated_flag.
18333
18334 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18335 version for GNUstep (handled by conditional typedef in nsterm.m).
18336 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18337 in rgb.txt).
18338
18339 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18340
18341 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18342
18343 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18344
18345 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18346 shortcircuit if popup_activated like GTK and X toolkit.
18347
18348 * m/inter386.h: Change DARWIN to DARWIN_OS.
18349
18350 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18351 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
18352 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18353 Expand comment on NO_SOCK_SIGIO.
18354
18355 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
18356
18357 * nsterm.m (windowDidResize): Remove stopModal call.
18358
18359 2008-08-03 Andreas Schwab <schwab@suse.de>
18360
18361 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18362 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18363
18364 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
18365
18366 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18367 Don't use uninitialized pointer variable when using getrlimit.
18368
18369 2008-08-02 Jason Rumney <jasonr@gnu.org>
18370
18371 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18372
18373 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18374
18375 * alloc.c (NSTATICS): Bump to 0x640.
18376
18377 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18378
18379 * lisp.h: Add prototype for directory_files_internal.
18380
18381 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18382 New functions.
18383 (syms_of_process): Defsubr them. Add initializations for various
18384 Q* symbols used in procfs_system_process_attributes.
18385 (procfs_list_system_processes, procfs_system_process_attributes)
18386 [HAVE_PROCFS]: New functions.
18387 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18388 (procfs_get_total_memory): New functions.
18389
18390 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18391
18392 * xfaces.c (Fx_load_color_file): Fix previous change;
18393 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18394
18395 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
18396
18397 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18398
18399 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18400
18401 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18402
18403 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
18404
18405 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18406
18407 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18408 define NSApplicationDelegateReplySuccess.
18409 (EmacsView -converstationIdentifier): Use long instead of
18410 NSInteger for GNUstep, since it doesn't have NSInteger.
18411
18412 * xmenu.c: Revert last change.
18413
18414 * keyboard.h: Fix last change.
18415
18416 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18417
18418 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18419 on Windows.
18420
18421 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18422
18423 Warning clearing and clean-up in NS port.
18424 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18425 Add prototypes.
18426 * nsgui.h (FACE_DEFAULT): Remove, unused.
18427 (XGCValues): Change colors to unsigned long.
18428 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18429 nsterm.m.
18430 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18431 (ns_list_fonts): Remove, unused.
18432 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18433 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18434 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18435 (nsfont_draw): Compare face colors to 0, not nil.
18436 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18437 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18438 (-addSubmenuWithTitle:): Use NSMenuItem class.
18439 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18440 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18441 (ns_clip_to_row): Make gc arg a BOOL.
18442 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18443 ns_clip_to_row() call.
18444 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18445 used). Cast FRAME_FONT assignments.
18446 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18447 (ns_string_to_lispmod): Change arg to const char.
18448 (ns_term_init): Use NSMenuItem class.
18449 (EmacsApp -openFile:): Move to different section of file.
18450 (EmacsApp -application:openFiles:): Don't return a value, call
18451 -replyToOpenOrPrint:.
18452 (EmacsView -keyDown:): Fix up cast.
18453 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18454 (EmacsView -menuDown:): Cast tag in call to
18455 find_and_call_menu_selection().
18456 (ns_list_fonts): Remove, unused.
18457 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18458 (ns_fontname_to_xlfd): Make static.
18459 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18460 Remove prototypes (now in keyboard.h).
18461 (next_menubar_widget_id): Remove, unused.
18462 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18463 Remove prototypes (now in keyboard.h).
18464 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18465
18466 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18467
18468 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18469 (floatfns.o): Depend on syssignal.h.
18470 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18471
18472 * systty.h: Fix previous change that removed BSD_TERMIOS.
18473 Add comments to #ifdefs.
18474
18475 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18476
18477 * w32fns.c (w32-load-color-file): Remove.
18478 (x-open-connection): Use renamed Fx_load_color_file.
18479 * xfaces.c (x-load-color-file): Add.
18480 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18481 Emacs.clr.
18482 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18483
18484 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
18485
18486 * dbusbind.c (Fdbus_call_method_asynchronously)
18487 (Fdbus_method_error_internal): New defuns.
18488 (xd_read_message): Handle also reply messages.
18489 (Vdbus_registered_functions_table): Extend docstring.
18490
18491 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
18492
18493 * keyboard.c (gobble_input): Fix previous change.
18494
18495 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18496
18497 * bitmaps/README:
18498 * xfns.c:
18499 * termcap.c:
18500 * term.c:
18501 * syswait.h:
18502 * systty.h:
18503 * systime.h:
18504 * syssignal.h:
18505 * sysdep.c:
18506 * process.h:
18507 * process.c:
18508 * print.c:
18509 * ndir.h:
18510 * lread.c:
18511 * keyboard.c:
18512 * getpagesize.h:
18513 * floatfns.c:
18514 * fileio.c:
18515 * emacs.c:
18516 * doc.c:
18517 * dispnew.c:
18518 * dired.c:
18519 * data.c:
18520 * callproc.c:
18521 * buffer.c:
18522 * README:
18523 * Makefile.in:
18524 * s/template.h:
18525 * s/msdos.h:
18526 * m/vax.h: Remove VMS support.
18527 * s/vms.h:
18528 * vlimit.h:
18529 * uaf.h:
18530 * temacs.opt:
18531 * param.h:
18532 * ioctl.h: Remove file.
18533
18534 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18535
18536 * s/ms-w32.h (MULTI_KBOARD): Remove.
18537 * xterm.c:
18538 * xselect.c:
18539 * xfns.c:
18540 * window.c:
18541 * w32term.c:
18542 * w32fns.c:
18543 * terminal.c:
18544 * termhooks.h:
18545 * term.c:
18546 * sysdep.c:
18547 * keyboard.h:
18548 * keyboard.c:
18549 * frame.h:
18550 * frame.c:
18551 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18552 * config.in: Regenerate.
18553
18554 2008-07-30 Jason Rumney <jasonr@gnu.org>
18555
18556 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18557
18558 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18559 (w32font_open_internal): Get unicode version of textmetrics.
18560 Don't enable or disable glyph indices here.
18561 (w32font_open): Disable use of glyph indices.
18562
18563 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18564
18565 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
18566
18567 * minibuf.c (Vread_buffer_function): Doc fix.
18568
18569 2008-07-30 John Paul Wallington <jpw@pobox.com>
18570
18571 * minibuf.c (read_buffer_completion_ignore_case): New var.
18572 (Fread_buffer): Use it.
18573
18574 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18575
18576 * systty.h (sensemode): Remove empty #if. Remove reference to
18577 BSD_TERMIOS, unused.
18578
18579 * sysdep.c: Remove reference to DGUX.
18580 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18581
18582 * config.in: Regenerate.
18583
18584 2008-07-30 Jason Rumney <jasonr@gnu.org>
18585
18586 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18587
18588 2008-07-29 Jason Rumney <jasonr@gnu.org>
18589
18590 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18591 is populated.
18592 (uniscribe_encode_char): Always use uniscribe.
18593 Avoid using context if cache is populated.
18594
18595 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18596
18597 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18598 open menu.
18599
18600 * gtkutil.c (menu_nav_ended): Remove.
18601 (create_menus): Remove signal connect for menu_nav_ended.
18602
18603 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
18604
18605 * xdisp.c (redisplay_window): Check return value of
18606 compute_window_start_on_continuation_line before forcing a window
18607 start.
18608
18609 2008-07-28 Jason Rumney <jasonr@gnu.org>
18610
18611 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18612
18613 * w32term.c (w32_enable_unicode_output, cleartype_active):
18614 Remove obsolete display options.
18615 (x_draw_glyph_string_background): Don't use old cleartype_active
18616 workaround.
18617 (w32_initialize): Remove cleartype_active initialization.
18618 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18619
18620 2008-07-28 Andreas Schwab <schwab@suse.de>
18621
18622 * lisp.h (init_weak_hash_tables, syms_of_font)
18623 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18624 (remove_hash_entry): Don't declare.
18625 * eval.c (maybe_call_debugger): Make static and move before use.
18626 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18627 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18628 * xterm.h (x_set_frame_alpha): Declare.
18629
18630 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18631
18632 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18633 (create_menus): Connect selection-done to menu_nav_ended.
18634
18635 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18636
18637 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18638 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18639 parameter with read of 'alpha' one.
18640 (Qns_frame_parameter): Remove.
18641 * nsselect.m (selection-coding-system)
18642 (next-selection-coding-system, Vselection_coding_system)
18643 (Vnext_selection_coding_system): Drop.
18644
18645 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18646
18647 * nsfns.m (do-applescript, do_applescript): Rename to
18648 ns-do-applescript, ns_do_applescript, and move within file.
18649
18650 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18651
18652 Remove support for Mac Carbon.
18653 * mactoolbox.c:
18654 * macterm.h:
18655 * macterm.c:
18656 * macselect.c:
18657 * macmenu.c:
18658 * macgui.h:
18659 * macfns.c:
18660 * mac.c: Remove file.
18661 * s/darwin.h:
18662 * m/intel386.h:
18663 * xfaces.c:
18664 * xdisp.c:
18665 * window.c:
18666 * tparam.c:
18667 * termhooks.h:
18668 * termcap.c:
18669 * term.c:
18670 * syssignal.h:
18671 * sysselect.h:
18672 * sysdep.c:
18673 * process.c:
18674 * lread.c:
18675 * lisp.h:
18676 * keyboard.c:
18677 * image.c:
18678 * fringe.c:
18679 * frame.h:
18680 * frame.c:
18681 * fontset.c:
18682 * font.h:
18683 * font.c:
18684 * fns.c:
18685 * fileio.c:
18686 * emacs.c:
18687 * dispnew.c:
18688 * dispextern.h:
18689 * config.in:
18690 * atimer.c:
18691 * Makefile.in: Remove code for Carbon.
18692
18693 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18694
18695 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18696
18697 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18698
18699 * macterm.h (kCGBitmapByteOrder32Host): New define for
18700 non-universal SDKs.
18701
18702 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18703 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18704
18705 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18706 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18707
18708 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18709
18710 * w32inevt.c: Include dispextern.h.
18711
18712 2008-07-26 Andreas Schwab <schwab@suse.de>
18713
18714 * print.c (print_object): Fix off-by-one in last change.
18715
18716 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18717
18718 * term.c (syms_of_term): Don't initialize default_orig_pair,
18719 default_set_foreground and default_set_background on Windows.
18720
18721 2008-07-25 Jason Rumney <jasonr@gnu.org>
18722
18723 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18724 ScriptItemize. Clean up return value checking. Remove unused
18725 variables.
18726 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18727 shaping engine.
18728
18729 * w32font.c (w32font_has_char): Handle the case where we can't
18730 determine the script for a character.
18731
18732 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18733
18734 * term.c (syms_of_term): Initialize default_orig_pair,
18735 default_set_foreground, and default_set_background.
18736
18737 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18738 clash (bug#86).
18739 (getloadavg): Callers changed.
18740
18741 * image.c (svg_load_image): Fix last change.
18742 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18743 image size is valid. Use g_object_unref instead of deprecated
18744 rsvg_handle_free to free rsvg handle.
18745 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18746
18747 2008-07-25 Jason Rumney <jasonr@gnu.org>
18748
18749 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18750 surrogates before looking up glyph index.
18751 (w32font_text_extents): Encode as surrogates if falling back to
18752 functions that need UTF-16 wide chars.
18753
18754 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18755 BMP as surrogates before looking up glyph index.
18756
18757 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18758
18759 * image.c (svg_load_image): Check for failure in return value of
18760 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18761
18762 2008-07-25 Jason Rumney <jasonr@gnu.org>
18763
18764 * w32font.c (Fx_select_font): Reverse sense of second arg.
18765
18766 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18767
18768 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18769 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18770
18771 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18772 (PURESIZE): Use it.
18773
18774 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18775
18776 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18777 * m/alpha.h (TEXT_END):
18778 * m/ibmrs6000.h (TEXT_END):
18779 * m/macppc.h (TEXT_END):
18780 * s/darwin.h (TEXT_END):
18781 * s/msdos.h (TEXT_END): Remove, unused.
18782 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18783 * s/cygwin.h: Remove comment.
18784
18785 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18786 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18787 * m/intel386.h (DOT_GLOBAL_START):
18788 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18789 (USG): Remove, file not used on USG platforms.
18790
18791 * Makefile.in (HAVE_X11): Remove empty #else.
18792
18793 2008-07-24 Andreas Schwab <schwab@suse.de>
18794
18795 * fileio.c (Finsert_file_contents): Properly adjust undo list
18796 after format conversion.
18797
18798 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18799
18800 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18801 (menu_nav_ended): Remove.
18802 (create_menus): Remove signal connect for menu_nav_ended.
18803 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18804 create_menus.
18805 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18806
18807 2008-07-23 Jason Rumney <jasonr@gnu.org>
18808
18809 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18810 with opened font.
18811 (w32font_open): Set font type to gdi.
18812
18813 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18814
18815 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18816
18817 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18818 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18819 defines it.
18820 * unexec.c (ADDR_CORRECT): Define unconditionally.
18821
18822 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18823
18824 * unexec.c: Remove code depending on !COFF and USG, the file is
18825 not used for such systems.
18826
18827 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18828 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18829 (LD_SWITCH_SYSTEM_1): Remove, update users.
18830
18831 * s/darwin.h (DATA_END):
18832 * m/intel386.h (DATA_END):
18833 * m/ibmrs6000.h (DATA_END):
18834 * m/alpha.h (DATA_END): Remove, unused.
18835
18836 * config.in: Regenerate.
18837 * s/ms-w32.h (subprocesses): Define unconditionally.
18838 * s/template.h (subprocesses): Update comment.
18839 * s/vms.h (subprocesses):
18840 * s/usg5-4.h (subprocesses):
18841 * s/hpux10-20.h (subprocesses):
18842 * s/gnu-linux.h (subprocesses):
18843 * s/cygwin.h (subprocesses):
18844 * s/bsd-common.h (subprocesses):
18845 * s/aix4-2.h (subprocesses):
18846 * s/darwin.h (subprocesses): Do not define, defined by default now.
18847
18848 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18849 Remove all references.
18850 (temacs): Add GNUstep specific ld flags.
18851
18852 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18853 similarly to what X does.
18854
18855 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18856
18857 * nsfns.m (x-list-fonts): Remove.
18858 (syms_of_nsfns): Drop the x-list-fonts declaration.
18859 * nsterm.m: Get rid of remaining "//" comments.
18860
18861 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18862
18863 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18864
18865 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18866 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18867 (Fns_own_selection_internal, Fx_disown_selection_internal)
18868 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18869
18870 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18871 ... */' style of docstrings. Doc fixes.
18872
18873 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18874
18875 * terminfo.c (UP, BC, PC): Undo previous change.
18876
18877 * nsfns.m: Rename ns prefixed functions/variables to the
18878 corresponding x versions. Update references.
18879
18880 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18881
18882 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18883
18884 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18885
18886 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18887 Remove forwarding functions.
18888 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18889 non-static.
18890 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18891 non-static.
18892 (ns_frame_parm_handlers): Use the new names.
18893 (syms_of_nsfns): Move to the end of file.
18894
18895 * nsterm.m (syms_of_nsterm): Move to the end of file.
18896
18897 * dispnew.c (init_display): Remove code for X10.
18898
18899 2008-07-22 Jason Rumney <jasonr@gnu.org>
18900
18901 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18902 bare drive.
18903
18904 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18905
18906 * nsterm.m (syms_of_nsterm): Remove debugging println.
18907
18908 2008-07-22 David Reitter <david.reitter@gmail.com>
18909
18910 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18911 Carbon implementation of the same functionality: execute arbitrary
18912 AppleScript code.
18913
18914 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18915
18916 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18917 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18918 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18919 (Fx_display_mm_height, Fx_display_mm_width)
18920 (Fx_display_backing_store, Fx_display_visual_class)
18921 (Fx_display_save_under, Fx_open_connection)
18922 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18923 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18924 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18925 (Fx_display_pixel_width, Fx_display_pixel_height)
18926 (Fx_display_usable_bounds, Fx_display_planes)
18927 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18928 ... */' style of docstrings.
18929
18930 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18931
18932 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18933 on this platform.
18934 (mips):
18935 * m/iris4d.h (mips): Do not define.
18936 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18937
18938 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18939
18940 * image.c:
18941 * nsfns.m:
18942 * nsselect.m:
18943 * nsterm.h:
18944 * nsterm.m: Rename ns prefixed functions/variables to the
18945 corresponding x versions. Update references.
18946
18947 * m/ibms390x.h (NO_REMAP): Do not undefine.
18948
18949 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18950
18951 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18952
18953 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18954 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18955 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18956 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18957 (Fns_display_mm_height, Fns_display_mm_width)
18958 (Fns_display_backing_store, Fns_display_visual_class)
18959 (Fns_display_save_under, Fns_open_connection)
18960 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18961 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18962 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18963 (Fns_display_pixel_width, Fns_display_pixel_height)
18964 (Fns_display_usable_bounds, Fx_display_planes)
18965 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18966
18967 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18968
18969 * print.c (print_object): Check print_depth before searching for
18970 circularities.
18971
18972 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18973
18974 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18975 only sprintf.
18976
18977 2008-07-21 Kenichi Handa <handa@m17n.org>
18978
18979 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18980
18981 2008-07-20 Andreas Schwab <schwab@suse.de>
18982
18983 * syntax.c (find_start_pos, find_start_value)
18984 (find_start_value_byte, find_start_begv, find_defun_start)
18985 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18986
18987 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18988
18989 * s/sol2-3.h: Insert contents of s/sol2.h.
18990 (LD_SWITCH_SYSTEM): Remove redundant definition.
18991 * s/sol2.h: Remove, unused.
18992
18993 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18994
18995 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18996
18997 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18998
18999 * Makefile.in (ns_appdir): Fix typo in find command.
19000
19001 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
19002
19003 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
19004
19005 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
19006 added not supported anymore.
19007
19008 * s/usg5-4-2.h (LIBS_SYSTEM):
19009 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
19010
19011 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19012 * s/lynxos.h (GETPGRP_NO_ARG):
19013 * s/hpux10-20.h (NO_SIOCTL_H):
19014 * s/gnu.h (GETPGRP_NO_ARG):
19015 * s/gnu-linux.h (NO_SIOCTL_H):
19016 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19017 * s/cygwin.h (GETPGRP_NO_ARG):
19018 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
19019 (C_DEBUG_SWITCH): Remove duplicate definition.
19020
19021 * m/ibms390.h: Remove boilerplate comments.
19022
19023 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
19024
19025 * process.c (HAVE_SERIAL): Consolidate ifdefs.
19026 (wait_reading_process_output): Remove code for SunOS, platform not
19027 supported anymore. Use SOLARIS2 instead of sun.
19028
19029 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19030
19031 * font.c (font_open_by_name): Under NS, default lface height to zero.
19032 (font_open_for_lface): Under NS, set size based on frame fontsize.
19033 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
19034 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
19035
19036 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19037
19038 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
19039 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
19040 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
19041 YES/NO.
19042 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
19043 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
19044 * Makefile.in (clean): Clear out build destination dir.
19045
19046 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19047
19048 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
19049 xterm, xselect.
19050 * lisp.h: Remove declaration of hash_remove.
19051 * nsgui.h: Remove redefinitions of hash_remove.
19052 * fns.c (hash_remove): Rename to hash_remove_from_table.
19053
19054 2008-07-19 Seiji Zenitani <zenitani@mac.com>
19055
19056 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
19057 strdup() the family UTF8String before modifying it.
19058
19059 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19060
19061 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
19062 NS_FACE_BACKGROUND with 0 instead of nil.
19063 * nsfont.m (nsfont_draw): Same.
19064
19065 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
19066
19067 * nsfns.m (ns_set_background_color): Fix crash.
19068
19069 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
19070
19071 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
19072
19073 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
19074
19075 * puresize.h (BASE_PURESIZE): Increase to 1240000.
19076
19077 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19078
19079 * gtkutil.c: Include <config.h> instead of "config.h".
19080
19081 * lisp.h (Foverlay_buffer): Add EXFUN.
19082
19083 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
19084 child process to complete child_setup. Undo 2005-09-21 change.
19085
19086 * s/darwin.h: Mention setsid after vfork.
19087
19088 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19089
19090 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
19091 Depend on macgui.h.
19092
19093 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
19094 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
19095
19096 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
19097 and f19.
19098 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
19099
19100 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
19101 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
19102 Remove enumerators.
19103
19104 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
19105 Check if FACE_FROM_ID returns NULL.
19106
19107 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
19108
19109 * w32inevt.c (change_frame_size): Remove extern declaration.
19110 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
19111 change_frame_size.
19112
19113 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19114
19115 * getloadavg.c: Revert last change (2008-07-15).
19116
19117 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19118
19119 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
19120 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
19121 from configure.
19122
19123 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
19124
19125 * s/sol2.h:
19126 * s/sol2-4.h: Reorganize conditionals.
19127
19128 * ecrt0.c: Remove code depending on m68000, not used anymore.
19129
19130 * fns.c (hash_remove): Make static.
19131 * lisp.h (hash_remove): Don't prototype.
19132
19133 * m/ibmrs6000.h:
19134 * m/ibms390x.h:
19135 * m/macppc.h: Remove boilerplate comments.
19136
19137 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
19138 Solaris, which does not need them.
19139
19140 * m/vax.h: Remove comments about unsupported systems.
19141
19142 * s/darwin.h: Reorganize ifdefs.
19143
19144 2008-07-17 Andreas Schwab <schwab@suse.de>
19145
19146 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
19147
19148 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19149
19150 Use SDATA. Follow coding convention of placing operators at
19151 beginning of next line rather than end of previous line, and placing
19152 spaces around infix operators.
19153
19154 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
19155 in case it was defined already.
19156 USE @GNUSTEP_MAKEFILES@ rather than envvars.
19157 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
19158 ns_default.
19159 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
19160 Lisp_Objects.
19161 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
19162 (ns_defined_color, ns_color_to_lisp): Declare.
19163 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
19164 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
19165 it's accepted even with USE_LISP_UNION_TYPE.
19166 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
19167 (update_frame_tool_bar): Remove apparently obsolete tests for
19168 non-integerness of f->tool_bar_lines.
19169 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
19170 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
19171 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
19172 (nsfont_open): Don't confuse NULL for Qnil.
19173 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
19174 * menu.h (find_and_call_menu_selection):
19175 * menu.c (find_and_call_menu_selection): Use just int for vector size.
19176 (find_and_return_menu_selection): Always return something.
19177 * frame.h: Include dispextern.h for Display_Info.
19178 (display_x_get_resource): Declare.
19179
19180 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
19181
19182 * syntax.c: Remove stdio.h include accidentally introduced in
19183 Emacs.app commit.
19184 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
19185 NS_IMPL_COCOA.
19186 * keyboard.c (handle_async_input, input_available_signal): Remove
19187 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
19188
19189 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
19192 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
19193 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
19194 Use SDATA.
19195
19196 * keymap.c: Remove all NS-specific code.
19197 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
19198 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
19199 where_is_preferred_modifier, return a different value depending on how
19200 preferred is the binding.
19201 (where_is_internal): Adjust accordingly.
19202 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
19203 Adjust to new preferred_sequence_p.
19204 (syms_of_keymap): Declare `where-is-preferred-modifier'.
19205 * keyboard.c (parse_solitary_modifier): Not static any more.
19206 * keyboard.h (parse_solitary_modifier): Declare.
19207
19208 2008-07-16 Andreas Schwab <schwab@suse.de>
19209
19210 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
19211 of easymenu.
19212
19213 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
19214
19215 * xdisp.c (move_it_in_display_line): Account for word wrap, so
19216 that we don't move off the line.
19217
19218 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19219
19220 * keyboard.c (Qsuper): Remove.
19221 (parse_menu_item): Don't call where_is_internal specially for NS.
19222
19223 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19224
19225 * s/gnu-linux.h: Remove boilerplate comments.
19226
19227 * m/alpha.h (__ELF__): Consolidate conditions.
19228
19229 * m/m68k.h (linux): Use GNU_LINUX instead.
19230 Remove boilerplate comments.
19231
19232 * m/intel386.h: Undo refactoring from previous change.
19233 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19234 too, remove dead code.
19235 (linux): Use GNU_LINUX instead.
19236
19237 2008-07-16 Jason Rumney <jasonr@gnu.org>
19238
19239 * w32gui.h: Repeat 26 June changes lost by last change.
19240
19241 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19242
19243 * systty.h: Remove code for Aix on 386, unsupported platform.
19244
19245 * s/ms-w32.h: Remove boilerplate comments.
19246 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19247
19248 * s/gnu-linux.h (TERM): Remove support.
19249 (HAVE_SYSVIPC): Remove, unused.
19250 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19251 for this system.
19252
19253 * process.c: Remove support for IRIS, unused.
19254 Remove support for TERM, not relevant anymore.
19255
19256 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19257 used with the definition.
19258
19259 * s/aix4-2.h (static): Do not undef.
19260
19261 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19262 only used on Aix.
19263 (HAVE_SYSVIPC): Remove, unused.
19264
19265 * m/hp800.h (CANNOT_DUMP): Do not undef.
19266
19267 * m/alpha.h: Fix comment.
19268
19269 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19270 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19271 used by this configuration.
19272 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19273 * unexec.c: Remove code depending on HPUX and
19274 USG_SHARED_LIBRARIES, not used with this file. Remove code
19275 depending on IRIS, unused. Remove if 0-ed code.
19276
19277 * s/template.h: Remove comments about static.
19278
19279 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19280 Remove if 0-ed code.
19281 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19282 were the same as the default.
19283 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19284 Remove boilerplate comments.
19285 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19286 (HAVE_SYSVIPC): Remove, unused.
19287 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19288
19289 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19290 Remove boilerplate comments.
19291 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19292 Remove boilerplate comments.
19293 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19294 Remove boilerplate comments.
19295 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19296
19297 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19298 USG systems which do not use DATA_SEG_BITS.
19299 Refactor code. Remove boilerplate comments.
19300
19301 * m/ibms390.h:
19302 * m/m68k.h:
19303 * s/bsd-common.h:
19304 * s/cygwin.h:
19305 * s/darwin.h:
19306 * s/freebsd.h:
19307 * s/gnu.h:
19308 * s/msdos.h: Remove boilerplate comments.
19309
19310 * m/iris4d.h: Remove boilerplate comments and code for systems that
19311 do not use this file.
19312 (IRIS_4D): Remove, unused.
19313
19314 * m/mips.h: Remove boilerplate comments and code for systems that
19315 do not use this file.
19316 (SIGN_EXTEND_CHAR):
19317 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19318 * unexmips.c: Remove file, unused.
19319
19320 * editfns.c (Fuser_full_name): Replace the only use of
19321 USER_FULL_NAME with its value.
19322 * config.in: Regenerate.
19323
19324 2008-07-16 David Reitter <david.reitter@gmail.com>
19325
19326 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19327 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19328
19329 2008-07-16 Glenn Morris <rgm@gnu.org>
19330
19331 * emacs.c (system-type): Doc fix.
19332
19333 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19334
19335 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19336 If the cache doesn't work, let's fix it, rather than work around it.
19337
19338 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19339
19340 * Makefile.in: Correct additions for nsfont.o in last commit.
19341 * nsfont.m: New file (forgot last commit).
19342
19343 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19344
19345 * callproc.c (set_initial_environment):
19346 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
19347 batch-compiling for bootstrap).
19348
19349 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19350 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19351
19352 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19353 CANNOT_DUMP case -- fix crash due to different init order.
19354
19355 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19356
19357 Changes and additions for NeXTstep windowing system (Cocoa and
19358 GNUstep) support.
19359
19360 * Makefile.in:
19361 * config.in: Support defines and build commands for NS port.
19362 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19363 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19364 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19365 windowing.
19366 (struct face): Add synth_ital field.
19367 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19368 (init_display): Initialize Vinitial_window_system to "ns" when so
19369 compiled.
19370 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19371 (display_arg): Use under NS.
19372 (main): Under NS, allocate autorelease pool and handle command line
19373 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19374 (standard_args): Add NS-specific args.
19375 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19376 * font.c (DEFAULT_ENCODING): New variable.
19377 (font_find_for_lface): Use it.
19378 (syms_of_font): Load syms_of_nsfont under NS.
19379 * font.h: Declare nsfont_driver when compiled under NS.
19380 * fontset.c: When compiling under NS, include nsterm.h.
19381 (fontset_from_font): Autoconstruct fontset under NS.
19382 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19383 symbol, document and use it.
19384 (do_switch_frame): When for_deletion under Cocoa, add
19385 Fraise_frame(Qnil).
19386 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19387 (x_get_arg): Allow "yes" and "no" as boolean values.
19388 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19389 Qright under Cocoa.
19390 (focus-follows-mouse): Default to 0 under NS.
19391 * frame.h (enum output_method): Add output_ns.
19392 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19393 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19394 (FRAME_WINDOW_P): NS-specific definition.
19395 * fringe.c (max_used_fringe_bitmap): Make public.
19396 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19397 (getloadavg): Use NeXT code under descendant OS's.
19398 * image.c (includes and header section, x_create_bitmap_from_data)
19399 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19400 (image_background_transparent, x_clear_image_1)
19401 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19402 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19403 (x_to_xcolors, x_from_xcolors, x_disable_image)
19404 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19405 other GUIs, including XPM support using code originally written for
19406 Carbon GUI.
19407 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19408 using NS API.
19409 (image_ascent): Use font metrics macros instead of direct struct field
19410 access.
19411 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19412 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19413 Also, handle NS as GTK for menu bar purposes.
19414 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19415 toolkit where they differ.
19416 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19417 use cachelist, still needed under NS.
19418 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19419 (struct widget_value): Define it here for menu.c.
19420 * keymap.c (includes): Include modifier internals.
19421 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19422 NS.
19423 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19424 support for preferring sequences using certain modifiers, specified by
19425 the FIRSTONLY argument.
19426 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19427 under NS GNUstep implementation.
19428 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19429 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19430 * menu.c: Include nsterm.h under NS.
19431 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19432 (free_menubar_widget_tree_value, update_submenu_strings)
19433 (find_and_call_menu_selection): Treat NS as X and NT.
19434 (find_and_return_menu_selection): New function, used for popup menus.
19435 * nsgui.h:
19436 * nsterm.h:
19437 * nsfns.m:
19438 * nsimage.m:
19439 * nsmenu.m:
19440 * nsselect.m:
19441 * nsterm.m: New files.
19442 * process.c (wait_reading_process_output): Under NS, call ns_select()
19443 instead of plain select().
19444 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19445 beginning of buffer.
19446 * sysselect.h (init_process): Rename when compiling under Cocoa to
19447 avoid name conflict.
19448 * termhooks.h (display_info): Add ns_display_info to union.
19449 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19450 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19451 COCOA environment.
19452 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19453 unexec() signature. (Note, this will dump, but the resulting file
19454 crashes; unexosx is used instead; keeping around for reference and
19455 possible aid in getting dump working under GNUstep.)
19456 * w32gui.h (button_type, widget_value): Remove definitions (now in
19457 keyboard.h).
19458 * window.c: Include nsterm.h when compiling under NS.
19459 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19460 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19461 other GUI windowing systems.
19462 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19463 GTK.
19464 (x_consider_frame_title): Under NS, set icon type and frame
19465 modified-state indicator; use ns_set_name_as_filename() when using
19466 formatted title.
19467 (update_window_cursor): Make public when compiling under NS.
19468 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19469 (hourglass_atimer, Vhourglass_delay
19470 * xfaces.c (header section, init_frame_faces, clear_font_table)
19471 (defined_color, unload_color, x_face_list_fonts)
19472 (prepare_face_for_display): Add NS support parallel to other GUIs.
19473 Emulate GCs like other non-X GUIs.
19474 (split_font_name): Don't lowercase font name under NS.
19475 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19476 under NS.
19477 * s/darwin.h: Add support for compilation under NS.
19478
19479 2008-07-15 Jason Rumney <jasonr@gnu.org>
19480
19481 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19482 (w32_show_hourglass): Rename from show_hourglass.
19483 (w32_hide_hourglass): Rename from hide_hourglass.
19484 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19485 (Vhourglass_delay): Declare extern.
19486 (hourglass_started): Remove.
19487
19488 * xdisp.c (Vhourglass_delay): Remove static.
19489 (hourglass_started, start_hourglass, cancel_hourglass):
19490 Don't include these versions on WINDOWSNT.
19491
19492 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19493
19494 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19495 variables (formerly in xfns.c).
19496 (show_hourglass, hide_hourglass): New prototypes (same).
19497 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19498 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19499 in xfns.c).
19500 (syms_of_xdisp): Declare/initialize display-hourglass,
19501 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19502 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19503 formerly in xfns.c.
19504 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19505 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19506 (start_hourglass, cancel_hourglass): Remove.
19507 (show_hourglass, hide_hourglass): Remove prototypes and static
19508 modifiers.
19509 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19510 hourglass_atimer, hourglass_shown_p declaration/initialization.
19511 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19512 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19513 (start_hourglass, cancel_hourglass): Remove.
19514 (show_hourglass, hide_hourglass): Remove prototypes and static
19515 modifiers.
19516 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19517 hourglass_atimer, hourglass_shown_p declaration/initialization.
19518 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19519 (DEFAULT_HOURGLASS_DELAY): Remove.
19520 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19521 hourglass_shown_p declaration/initialization.
19522
19523 2008-07-14 Jason Rumney <jasonr@gnu.org>
19524
19525 * w32fns.c (w32_get_arg): Remove wrapper function.
19526 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19527 directly.
19528 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19529
19530 2008-07-14 Kenichi Handa <handa@m17n.org>
19531
19532 * xfont.c (xfont_open): Add workaround for X's bug.
19533
19534 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19535
19536 * fontset.c: Include <stdio.h> unconditionally.
19537
19538 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
19539
19540 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19541 for filtering.
19542
19543 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19544
19545 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19546
19547 * m/macppc.h:
19548 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19549
19550 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19551 (SPECIAL_EMACS_INT):
19552 * m/ia64.h (SPECIAL_EMACS_INT):
19553 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19554 * s/gnu.h (NLIST_STRUCT):
19555 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19556 * s/gnu-linux.h (LINUX):
19557 * s/msdos.h (HAVE_FACES):
19558 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19559
19560 * systty.h:
19561 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19562 anymore.
19563
19564 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19565
19566 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19567 always defined as int.
19568
19569 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19570 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19571 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19572 * s/freebsd.h (HAVE_WAIT_HEADER):
19573 * s/bsd-common.h (HAVE_UNION_WAIT):
19574 * s/aix4-2.h (HAVE_WAIT_HEADER):
19575 * m/mips.h (HAVE_UNION_WAIT):
19576 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19577 (COFF, static): Do not define, they are undefined later in the file.
19578
19579 * process.c (update_status): Don't use a union.
19580 (status_convert):
19581 (sigchld_handler): Use int instead of WAITTYPE.
19582
19583 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
19584
19585 * indent.c (Fvertical_motion): Restore hscroll before moving to
19586 goal column.
19587
19588 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19589
19590 * lisp.h: Remove left over code.
19591
19592 2008-07-11 Andreas Schwab <schwab@suse.de>
19593
19594 * lisp.h: Fix logic in last change.
19595
19596 * menu.h: New file.
19597 * menu.c: Include it.
19598 * xmenu.c: Likewise.
19599 * Makefile.in: Update dependencies.
19600
19601 2008-07-11 Kenichi Handa <handa@m17n.org>
19602
19603 * fontset.c (fontset_from_font): Cancel the previous change.
19604
19605 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19606
19607 * lisp.h:
19608 * w32heap.c:
19609 * emacs.c:
19610 * alloc.c: Replace all references of NO_UNION_TYPE with
19611 USE_LISP_UNION_TYPE.
19612
19613 * m/xtensa.h (NO_UNION_TYPE):
19614 * m/vax.h (NO_UNION_TYPE):
19615 * m/template.h (NO_UNION_TYPE):
19616 * m/sparc.h (NO_UNION_TYPE):
19617 * m/mips.h (NO_UNION_TYPE):
19618 * m/macppc.h (NO_UNION_TYPE):
19619 * m/m68k.h (NO_UNION_TYPE):
19620 * m/iris4d.h (NO_UNION_TYPE):
19621 * m/intel386.h (NO_UNION_TYPE):
19622 * m/ibms390x.h (NO_UNION_TYPE):
19623 * m/ibms390.h (NO_UNION_TYPE):
19624 * m/ibmrs6000.h (NO_UNION_TYPE):
19625 * m/ia64.h (NO_UNION_TYPE):
19626 * m/hp800.h (NO_UNION_TYPE):
19627 * m/arm.h (NO_UNION_TYPE):
19628 * m/amdx86-64.h (NO_UNION_TYPE):
19629 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19630 defining it the same.
19631
19632 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19633
19634 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19635
19636 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19637
19638 * fileio.c:
19639 * sysdep.c:
19640 * systty.h:
19641 * m/ibmrs6000.h:
19642 * m/iris4d.h:
19643 * s/aix4-2.h:
19644 * s/freebsd.h:
19645 * s/gnu-linux.h:
19646 * s/hpux10-20.h:
19647 * s/hpux11.h:
19648 * s/netbsd.h:
19649 * s/sol2-3.h:
19650 * s/sol2-4.h:
19651 * s/sol2.h:
19652 * s/usg5-4.h:
19653 * s/vms.h: Remove references to unused variables.
19654
19655 2008-07-10 Andreas Schwab <schwab@suse.de>
19656
19657 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19658 pattern before matching the generic family.
19659
19660 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19661
19662 * unexec.c:
19663 * s/vms.h:
19664 * s/usg5-4-2.h:
19665 * s/sol2-5.h:
19666 * s/freebsd.h:
19667 * s/darwin.h: Remove dead code.
19668
19669 * m/template.h:
19670 * m/sparc.h:
19671 * m/mips.h:
19672 * m/m68k.h:
19673 * m/iris4d.h:
19674 * m/intel386.h:
19675 * m/ibms390x.h:
19676 * m/ibms390.h:
19677 * m/ia64.h:
19678 * m/hp800.h:
19679 * m/arm.h:
19680 * m/amdx86-64.h: Remove dead code and references to unused
19681 and compiler defined symbols.
19682
19683 * unexmips.c:
19684 * unexelf.c: Remove references to desupported systems.
19685
19686 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19687
19688 * m/powermac.h: Remove boilerplate comments.
19689 (NO_REMAP): Remove unused definition.
19690
19691 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19692 define them.
19693
19694 2008-07-10 Kenichi Handa <handa@m17n.org>
19695
19696 * xfont.c (xfont_open): Log the reason of failure.
19697
19698 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19699
19700 * fontset.c (fontset_get_font_group):
19701 * font.c (font_check_otf): Specify argument types.
19702
19703 2008-07-09 Kenichi Handa <handa@m17n.org>
19704
19705 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19706 non-ASCII char is found.
19707
19708 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19709 (reorder_font_vector): Change the arg preferred_family to font.
19710 Prefer the spec matching with font.
19711 (fontset_get_font_group): New function.
19712 (fontset_find_font): Change the format of an element of a realized
19713 fontset. Use fontset_get_font_group.
19714 (fontset_font): Try the current fontset, the default fontset, the
19715 fallbacks of the current fontset, and the fallbacks of the default
19716 fontset in this order.
19717 (face_for_char): Delete the shortcut to use the current font.
19718 (fontset_from_font): Don't set fonts for Latin in the fontset.
19719
19720 * font.h (font_make_object, font_match_p): Adjust prototypes.
19721
19722 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19723
19724 * font.c (font_make_object): New arg entity and pixelsize.
19725 (font_check_otf_features, font_check_otf): New functions.
19726 (font_match_p): Check :lang, :script, and :otf properties.
19727
19728 * xfont.c (xfont_open): Adjust it for the change of
19729 font_make_object.
19730 (xfont_text_extents): Fix initial setting of metrics.
19731
19732 * ftfont.c (struct ftfont_info): New member index, delete member
19733 fc_charset_idx. Make the member order compatible with struct
19734 xftfont_info.
19735 (fc_charset_table): Change charset names to registry names.
19736 (ftfont_pattern_entity): Delete the args registry and
19737 fc_charset_idx. Change the value of :font-entity property
19738 to (FONTNAME . INDEX). Always set :registry property to
19739 `iso10646-1'.
19740 (struct ftfont_cache_data): New struct.
19741 (ftfont_lookup_cache): New arg for_face.
19742 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19743 (ftfont_driver): Set the member otf_capability.
19744 (ftfont_get_charset): Adjust it for the change of
19745 fc_charset_table.
19746 (OTF_TAG_SYM): New macro.
19747 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19748 for the change of fc_charset_table.
19749 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19750 ftfont_pattern_entity. Add FC_INDEX to objset.
19751 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19752 and ftfont_pattern_entity.
19753 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19754 font_make_object, struct ftfont_info.
19755 (ftfont_has_char): Use ftfont_get_fc_charset.
19756 (ftfont_otf_features, ftfont_otf_capability): New functions.
19757 (ftfont_shape): Use ftfont_get_otf.
19758 (ftfont_text_extents): Fix initial setting of metrics.
19759
19760 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19761 member order compatible with struct ftfont_info.
19762 (xftfont_open): Add FC_CHARSET to the pattern.
19763 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19764 properties if appropriate.
19765 (xftfont_close): Unlock the face.
19766 (xftfont_anchor_point, xftfont_shape): Delete.
19767 (syms_of_xftfont): Don't set members anchor_point and shape of
19768 xftfont_driver.
19769
19770 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19771 font_make_object.
19772
19773 * w32font.c (w32font_open): Adjust it for the change of
19774 font_make_object.
19775 (w32font_open_internal): Don't set properties of font_object here.
19776
19777 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19778
19779 * macfns.c (x_create_tip_frame):
19780 * w32fns.c (x_create_tip_frame):
19781 * xfns.c (x_create_tip_frame): Pass parameter argument to
19782 face-set-after-frame-default.
19783
19784 * xfaces.c (Finternal_merge_in_global_face): Save merged
19785 attributes for the default face back into the face vector.
19786
19787 2008-07-08 Andreas Schwab <schwab@suse.de>
19788
19789 * fontset.h: Declare fontset_from_font. Don't declare
19790 new_fontset_from_font and fontset_from_font_name.
19791 * xterm.c: Include "fontset.h".
19792 * Makefile.in (xterm.o): Update dependencies.
19793
19794 2008-07-08 Glenn Morris <rgm@gnu.org>
19795
19796 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19797 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19798
19799 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19800
19801 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19802 (x_set_frame_parameters): Don't bind it.
19803
19804 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19805
19806 * w32fns.c (map_w32_filename): Declare extern.
19807
19808 2008-07-07 Jason Rumney <jasonr@gnu.org>
19809
19810 * w32term.c (WS_EX_LAYERED): Define if not already.
19811
19812 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19813
19814 * xfaces.c (set_font_frame_param): Don't try to set the font
19815 parameter if it is still unspecified in the lface.
19816
19817 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19818
19819 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19820 face if it didn't already exist.
19821
19822 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19823
19824 2008-07-05 Andreas Schwab <schwab@suse.de>
19825
19826 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19827
19828 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19829
19830 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19831 word-wrapping.
19832 (IT_DISPLAYING_WHITESPACE): New macro.
19833 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19834 when word-wrapping. Simplify word-wrapping logic. Use correct
19835 pixel positions when saving copies of the iterator.
19836 (display_line): Use proper wrap point if the last character on a
19837 line was preceded by whitespace.
19838
19839 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19840
19841 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19842
19843 2008-07-04 Kenichi Handa <handa@m17n.org>
19844
19845 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19846
19847 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19848
19849 2008-07-02 Jason Rumney <jasonr@gnu.org>
19850
19851 * xfns.c (syms_of_xfns): Only define x-select-font when both
19852 HAVE_FREETYPE and USE_GTK.
19853
19854 * xdisp.c (next_element_from_display_vector): Move assignment out
19855 of if statement.
19856
19857 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19858
19859 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19860
19861 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19862 (syms_of_fileio): Initialize and export them.
19863 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19864
19865 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19866 (Fsystem_move_file_to_trash): New function.
19867 (syms_of_w32fns): Export it to lisp.
19868
19869 2008-07-01 Jason Rumney <jasonr@gnu.org>
19870
19871 * w32font.c (w32font_text_extents): Don't count overhang as part
19872 of width.
19873
19874 2008-06-30 Miles Bader <miles@gnu.org>
19875
19876 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19877 Add `avoid_cursor_p' field.
19878
19879 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19880 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19881 (append_glyph, append_composite_glyph, produce_image_glyph)
19882 (append_stretch_glyph): Initialize avoid_cursor_p.
19883 (get_it_property): Rename from `get_line_height_property'.
19884 (x_produce_glyphs): Use get_it_property.
19885 (handle_line_prefix, push_display_prop): New functions.
19886 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19887 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19888 New variables.
19889 (syms_of_xdisp): Initialize them.
19890
19891 2008-06-30 Kenichi Handa <handa@m17n.org>
19892
19893 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19894 XftDefaultSubstitute (they are called in XftFontMatch).
19895 (xftfont_open): Fix args to ftfont_font_format.
19896
19897 * ftfont.c (fc_charset_table): New member lang.
19898 (ftfont_resolve_generic_family): New arg pattern.
19899 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19900 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19901 (ftfont_open): Fix args to ftfont_font_format.
19902 (ftfont_font_format): New arg filename.
19903
19904 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19905
19906 * xfaces.c (Finternal_merge_in_global_face): If default face was
19907 modified, realize it again. Update the font face attribute.
19908
19909 2008-06-29 Jason Rumney <jasonr@gnu.org>
19910
19911 * w32term.c (x_set_frame_alpha): Fix logic.
19912
19913 2008-06-29 Kenichi Handa <handa@m17n.org>
19914
19915 * fontset.c (Finternal_char_font): Return font-object instead of
19916 font-name.
19917
19918 * composite.c (get_composition_id): Fix the width calculation for TAB.
19919
19920 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19921
19922 * indent.c (Fvertical_motion): Properly handle float column arg.
19923
19924 2008-06-28 Jason Rumney <jasonr@gnu.org>
19925
19926 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19927 (pfnSetLayeredWindowAttributes): New function pointer.
19928 (w32_initialize): Initialize it when supported.
19929 (x_set_frame_alpha): New function.
19930
19931 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19932 (w32_frame_parm_handlers): Set alpha handler.
19933
19934 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19935
19936 2008-06-27 Jason Rumney <jasonr@gnu.org>
19937
19938 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19939 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19940 (w32_to_x_charset, x_to_w32_charset)
19941 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19942 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19943 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19944 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19945 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19946 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19947 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19948 (Qw32_charset_unicode): Remove.
19949 (syms_of_w32fns): Update for above changes.
19950
19951 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19952 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19953 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19954 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19955 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19956 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19957 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19958 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19959 (syms_of_w32font): Update for above changes.
19960
19961 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19962
19963 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19964 removed #if.
19965 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19966
19967 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19968 Eli Zaretskii <eliz@gnu.org>
19969
19970 * makefile.w32-in (LOCAL_FLAGS):
19971 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19972
19973 * sysdep.c (_spawnlp, _getpid):
19974 Declare with explicit _cdecl instead of _CRTAPI1.
19975
19976 * editfns.c (Fget_internal_run_time):
19977 Check for WINDOWSNT with #ifdef, not #if.
19978
19979 2008-06-26 Jason Rumney <jasonr@gnu.org>
19980
19981 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19982
19983 * w32term.c (x_draw_glyph_string_foreground)
19984 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19985 Use FONT_HANDLE macro.
19986 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19987
19988 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19989 (uniscribe_encode_char): Use FONT_HANDLE macro.
19990
19991 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19992 (w32font_text_extents): Use precast w32_font.
19993 (w32font_close): Free cached metrics.
19994 (w32font_open_internal): Allocate space for name on stack.
19995
19996 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
19997
19998 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19999
20000 2008-06-26 Jason Rumney <jasonr@gnu.org>
20001
20002 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
20003 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
20004
20005 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
20006
20007 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
20008
20009 2008-06-26 Jason Rumney <jasonr@gnu.org>
20010
20011 * w32bdf.c, w32bdf.h: Remove obsolete files.
20012
20013 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
20014
20015 * w32gui.h: Don't include w32bdf.h.
20016 (XCharStruct, enum w32_char_font_type, W32FontStruct):
20017 Remove obsolete font support.
20018
20019 * w32font.h (struct w32font_info): Remove compat_w32_font.
20020 Add hfont member.
20021 (FONT_COMPAT): Remove obsolete macro.
20022
20023 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
20024 (w32font_encode_char, w32font_text_extents): Use new hfont member.
20025 (w32font_open_internal): Remove compat code. Set new hfont member.
20026 (Fx_select_font): Use new hfont member.
20027
20028 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20029 (uniscribe_encode_char): Use new hfont member.
20030
20031 * w32term.c (x_draw_glyph_string_foreground)
20032 (x_draw_composite_glyph_string_foreground): Use new hfont member.
20033 (x_draw_glyph_string): Use metrics in w32font_info.
20034
20035 2008-06-26 Kenichi Handa <handa@m17n.org>
20036
20037 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
20038
20039 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
20040
20041 * unexnext.c:
20042 * m/ews4800.h:
20043 * m/hp9000s300.h:
20044 * m/ibm370aix.h:
20045 * m/mips-siemens.h:
20046 * m/ncr386.h:
20047 * m/next.h:
20048 * m/pmax.h:
20049 * m/powerpcle.h:
20050 * m/tandem-s2.h:
20051 * s/386bsd.h:
20052 * s/bsd386.h:
20053 * s/bsd4-1.h:
20054 * s/bsd4-2.h:
20055 * s/bsdos2-1.h:
20056 * s/bsdos2.h:
20057 * s/bsdos3.h:
20058 * s/bsdos4.h:
20059 * s/nextstep.h:
20060 * s/ultrix4-3.h:
20061 * s/usg5-0.h:
20062 * s/usg5-2-2.h:
20063 * s/usg5-2.h:
20064 * s/usg5-4-3.h:
20065 * s/ux4800.h:
20066 * s/uxpds.h:
20067 * s/uxpv.h: Remove support for obsolete systems.
20068 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
20069 Remove, insert contents in s/hpux10-20.h.
20070 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
20071 Remove, insert contents in s/aix4-2.h.
20072 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
20073 * s/bsd4-3.h: Rename to ...
20074 * s/bsd-common.h: ... this.
20075 * data.c:
20076 * doc.c:
20077 * ecrt0.c:
20078 * emacs.c:
20079 * fileio.c:
20080 * floatfns.c:
20081 * keyboard.c:
20082 * mem-limits.h:
20083 * print.c:
20084 * process.c:
20085 * sysdep.c:
20086 * syssignal.h:
20087 * systty.h:
20088 * syswait.h:
20089 * term.c:
20090 * unexec.c:
20091 * unexelf.c:
20092 * unexhp9k800.c:
20093 * m/hp800.h:
20094 * m/ibmrs6000.h:
20095 * m/mips.h:
20096 * m/vax.h:
20097 * s/darwin.h:
20098 * s/freebsd.h:
20099 * s/gnu.h:
20100 * s/ms-w32.h:
20101 * s/msdos.h:
20102 * s/netbsd.h:
20103 * s/template.h: Remove references to obsolete variables.
20104
20105 * Makefile.in: Add dependencies for all unexec files.
20106 (admindir): Remove unused variable.
20107 (UNEXEC_SRC): Remove references.
20108
20109 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
20110
20111 * xfns.c (x_default_font_parameter): If Xft is available, first
20112 try Monospace-12 for the default font.
20113
20114 2008-06-25 Jason Rumney <jasonr@gnu.org>
20115
20116 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
20117
20118 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
20119
20120 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
20121
20122 * buffer.c (syms_of_buffer): Remove default-word-wrap.
20123
20124 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
20125
20126 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
20127 <scroll-conservatively>: Fix typo in docstring.
20128
20129 * xselect.c (Fx_send_client_event): Doc fix.
20130
20131 2008-06-25 Kenichi Handa <handa@m17n.org>
20132
20133 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
20134
20135 * font.c (font_parse_fcname): Remove unused variables.
20136 (font_sort_entites): Delete the arg SPEC. Caller changed.
20137 Fix for the case of ! best_only.
20138 (font_delete_unmatched): Check DPI and AVGWIDTH too.
20139
20140 * lisp.h (Fstring_to_unibyte): EXFUN it.
20141
20142 * character.h (str_to_unibyte): Extern it.
20143
20144 * character.c (str_to_unibyte): New function.
20145
20146 * fns.c (Fstring_to_unibyte): New function.
20147 (syms_of_fns): Defsubr it.
20148
20149 2008-06-24 Kenichi Handa <handa@m17n.org>
20150
20151 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
20152 DPI too.
20153 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
20154
20155 2008-06-24 Andreas Schwab <schwab@suse.de>
20156
20157 * Makefile.in (${lispsource}loaddefs.el): Rename from
20158 ../lisp/loaddefs.el.
20159 (bootstrap-clean): Do what distclean does but don't remove
20160 Makefile.
20161 (distclean): Depend on bootstrap-clean and remove Makefile.
20162
20163 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
20164
20165 * buffer.h (struct buffer): New member word_wrap.
20166
20167 * buffer.c (syms_of_buffer): New variables default-word-wrap and
20168 word-wrap.
20169 (init_buffer_once): Initialize them.
20170
20171 * dispextern.h (struct it): Replace bool truncate_lines_p with a
20172 line_wrap enum possessing three possible values.
20173
20174 * termopts.h: Replace truncate_partial_width_windows with
20175 Vtruncate_partial_width_windows.
20176
20177 * dispnew.c (direct_output_for_insert): Avoid direct output when
20178 inserting a space with word wrap on.
20179
20180 * indent.c (compute_motion): Obey integer values of
20181 truncate-partial-width-windows.
20182
20183 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
20184 replacing truncate_partial_width_windows.
20185 (init_iterator): If Vtruncate_partial_width_windows is an integer,
20186 truncate only if the window width is below that integer.
20187 (start_display, resize_mini_window, produce_stretch_glyph)
20188 (display_string, move_it_in_display_line_to): Use line_wrap.
20189 (back_to_previous_visible_line_start, reseat_1):
20190 Reset string_from_display_prop_p.
20191 (display_line): Extend default face to end of line when wrapping.
20192
20193 2008-06-24 Kim F. Storm <storm@cua.dk>
20194
20195 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
20196 to wrap continued lines at word boundaries.
20197
20198 2008-06-24 Jason Rumney <jasonr@gnu.org>
20199
20200 * font.c (Ffont_face_attributes): Multiply pixel size before point
20201 conversion to avoid multiplying rounding error.
20202
20203 2008-06-23 Jason Rumney <jasonr@gnu.org>
20204
20205 * w32term.c (x_draw_glyph_string_background)
20206 (x_draw_glyph_string): Remove old bdf font code.
20207
20208 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
20209
20210 2008-06-22 Kenichi Handa <handa@m17n.org>
20211
20212 * font.c (font_find_for_lface): Try the adstyle specified in
20213 the property of LFACE_FONT of LFACE (if any).
20214
20215 2008-06-21 Seiji Zenitani <zenitani@mac.com>
20216 Ryo Yoshitake <ryo@shiftmode.net>
20217
20218 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
20219
20220 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
20221
20222 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
20223 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
20224 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
20225 (witness-emacs): Remove.
20226 (lisp, shortlisp): Move loaddefs.el earlier.
20227 (mostlyclean): Forget about witness-emacs.
20228
20229 2008-06-22 Glenn Morris <rgm@gnu.org>
20230
20231 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20232 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20233
20234 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20235
20236 * Makefile.in (PRECOMP): Remove.
20237 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20238 (witness-emacs): Run `compile-first'.
20239 (.el.elc): Use the new compile-onefile target.
20240
20241 2008-06-21 Kenichi Handa <handa@m17n.org>
20242
20243 * xftfont.c (xftfont_open): Handle QCembolden only when
20244 FC_EMBOLDEN is defined.
20245
20246 2008-06-21 Andreas Schwab <schwab@suse.de>
20247
20248 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20249 (.el.elc): Likewise.
20250
20251 2008-06-21 Miles Bader <miles@gnu.org>
20252
20253 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20254 build dir, not the lisp source dir.
20255
20256 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20257
20258 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20259 (bootstrapclean): Remove.
20260 (.el.elc): New rule.
20261 (PRECOMP): New var.
20262 (../lisp/subdirs.el): Remove.
20263 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20264 (witness-emacs): New target.
20265 (mostlyclean): Remove witness-emacs as well.
20266 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20267 Add witness-emacs dependency.
20268
20269 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
20270
20271 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20272 defined by the font.
20273
20274 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20275
20276 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20277 (bootstrap-clean): New target that keeps TAGS around.
20278 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20279 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20280
20281 2008-06-20 Jason Rumney <jasonr@gnu.org>
20282
20283 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20284 Remove obsolete font code.
20285
20286 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20287 to determine language support.
20288
20289 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20290
20291 * sysdep.c (cfsetspeed): New fun extracted from the code.
20292 (cfmakeraw): Move before first use.
20293
20294 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20295
20296 * sysdep.c (cfmakeraw): Provide fallback implementation.
20297 (serial_configure): Provide fallback implementation of cfsetspeed.
20298
20299 2008-06-20 Kenichi Handa <handa@m17n.org>
20300
20301 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20302 the pattern.
20303
20304 * fontset.c (fontset_from_font): Copy font_spec before changing
20305 the elements.
20306
20307 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20308
20309 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20310
20311 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20312 for explicit `font' parameters.
20313
20314 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20315
20316 2008-06-19 Kenichi Handa <handa@m17n.org>
20317
20318 * frame.c: Include <ctype.h>.
20319 (x_set_font_backend): Allow spacing characters in the X resource
20320 for FontBackend.
20321
20322 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20323
20324 * w32fns.c, xfns.c (Qfont_param): New var.
20325 (syms_of_w32fns): Initialize it.
20326 (x_default_font_parameter): Record explicit `font' into
20327 `font-parameter'.
20328
20329 2008-06-18 Kenichi Handa <handa@m17n.org>
20330
20331 * font.c (font_parse_xlfd): Fix previous change.
20332 (font_parse_fcname): Don't use :fc-unknown-spec.
20333 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20334 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20335 (font_add_log): Prepend the driver name to the resulting fonts.
20336
20337 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20338 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20339 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20340
20341 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20342 (QCembolden): New variables.
20343 (syms_of_xftfont): DEFSYM them.
20344 (xftfont_open): Call XftFontMatch. Don't trust the result of
20345 XftTextExtents8 if the pixel_size is less than 5.
20346
20347 2008-06-18 Andreas Schwab <schwab@suse.de>
20348
20349 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20350 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20351
20352 2008-06-18 Jason Rumney <jasonr@gnu.org>
20353
20354 * w32font.c (w32font_list, w32font_match): Add logging.
20355
20356 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20357
20358 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
20359
20360 * font.c (font_parse_fcname): Store divider characters for
20361 unknown-spec list. For known key symbols, intern using correct
20362 symbol name.
20363
20364 2008-06-17 Kenichi Handa <handa@m17n.org>
20365
20366 * xfaces.c (realize_default_face): If the frame is not on window
20367 system, set the fontset of face to nil.
20368
20369 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20370
20371 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20372
20373 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20374
20375 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20376 (build_font_name_from_vector): Delete externs.
20377
20378 * xfaces.c (struct font_name): Don't declare.
20379
20380 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20381
20382 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20383
20384 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20385
20386 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20387
20388 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20389
20390 * font.c (Ffont_spec): Fix usage in docstring.
20391 (Ffont_face_attributes): Doc fix.
20392
20393 2008-06-16 Andreas Schwab <schwab@suse.de>
20394
20395 * font.c (Ffont_face_attributes): Fix definition.
20396
20397 2008-06-16 Jason Rumney <jasonr@gnu.org>
20398
20399 * font.h (font_style_symbolic_from_value): Remove.
20400
20401 * font.c (font_style_symbolic_from_value): Remove.
20402 (font_style_symbolic): Revert to pre 2008-06-13 version.
20403
20404 * w32font.c (w32_to_fc_weight): New function.
20405 (w32font_full_name, logfont_to_fcname): Use it.
20406
20407 2008-06-16 Kenichi Handa <handa@m17n.org>
20408
20409 * font.c (font_check_object): Delete it.
20410 (font_clear_cache): Check if a font-object is alive.
20411 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20412 font-object to nil.
20413 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20414 (font_at): Don't call font_check_object.
20415 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20416
20417 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20418
20419 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20420
20421 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20422
20423 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20424
20425 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
20426
20427 * font.c (font_parse_fcname): Only one decimal point.
20428 (font_unparse_fcname): Handle data in family and foundry indices
20429 as symbols, not strings.
20430 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20431
20432 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20433
20434 * font.h (font_unparse_gtkname): Add prototype.
20435
20436 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20437
20438 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20439
20440 2008-06-15 Andreas Schwab <schwab@suse.de>
20441
20442 * font.c (font_update_drivers): Fix crash when no drivers match.
20443
20444 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20445
20446 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20447 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20448
20449 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20450
20451 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20452
20453 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20454
20455 * process.c (Fserial_process_configure, Fprocess_send_eof):
20456 Use EQ to compare Lisp_Objects.
20457
20458 2008-06-13 Jason Rumney <jasonr@gnu.org>
20459
20460 * w32fns.c (Fw32_select_font): Remove old font API function.
20461
20462 * w32font.c (logfont_to_fcname): New function.
20463 (Fx_select_font): New font dialog function compatible with
20464 GTK/fontconfig version.
20465
20466 * font.c (font_style_symbolic_from_value): New function.
20467 (font_style_symbolic): Use it.
20468
20469 * font.h (font_style_symbolic_from_value): Declare new function.
20470
20471 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
20472
20473 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20474 <font-width-table>: Fix typos in docstrings.
20475
20476 2008-06-13 Daniel Engeler <engeler@gmail.com>
20477
20478 These changes add serial port access.
20479 * process.c: Add HAVE_SERIAL.
20480 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20481 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20482 (list_processes_1, select_wrapper, Fstop_process)
20483 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20484 (status_notify): Modify to handle serial processes.
20485 [HAVE_SERIAL] (Fserial_process_configure)
20486 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20487 New functions.
20488 * process.h (struct Lisp_Process): Add `type'.
20489 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20490 New functions.
20491 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20492 serial ports.
20493 (serial_open, serial_configure): New functions.
20494 * w32.h: Add FILE_SERIAL.
20495 (struct _child_process): Add ovl_read, ovl_write.
20496
20497 2008-06-13 Kenichi Handa <handa@m17n.org>
20498
20499 * dispextern.h (enum lface_attribute_index): New member
20500 LFACE_FOUNDRY_INDEX.
20501
20502 * font.c (font_score): Delete arg alternate_families. Check only
20503 weight, slant, width, and size. Ignore the difference of alias
20504 style symbols.
20505 (font_sort_entites): Adjust for the above change. Reflect the
20506 order of font-driver to scores.
20507 (font_list_entities): Don't check alternate_familes here.
20508 (font_clear_prop): Handle foundry.
20509 (font_update_lface): Don't parse "foundry-family" form here.
20510 Handle FONT_FOUNDRY_INDEX.
20511 (font_find_for_lface): Likewise. Handle alternate families here.
20512 If registry is nil, try iso8859-1 and ascii-0.
20513 (font_open_for_lface): Pay attention to size in ENTITY.
20514 (font_open_by_name): Simplify by calling font_load_for_lface.
20515 (free_font_driver_list): Delete it.
20516 (font_update_drivers): Preserve the order of backends.
20517 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20518 of font_score and font_sort_entites.
20519 (font_update_sort_order): Likewise.
20520
20521 * xfaces.c (LFACE_FOUNDRY): New macro.
20522 (check_lface_attrs): Check foundry.
20523 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20524 (merge_face_vectors): Check foundry.
20525 (merge_face_ref): Likewise.
20526 (Finternal_set_lisp_face_attribute): Likewise.
20527 (x_update_menu_appearance): Likewise.
20528 (Finternal_get_lisp_face_attribute): Likewise.
20529 (lface_hash): Likewise.
20530 (lface_same_font_attributes_p): Likewise.
20531 (x_supports_face_attributes_p): Likewise.
20532 (tty_supports_face_attributes_p): Likewise.
20533 (Finternal_set_alternative_font_family_alist): Intern strings.
20534 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20535 (realize_default_face): Set LFACE_FOUNDRY (lface).
20536
20537 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20538 font-driver at first.
20539
20540 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20541
20542 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20543
20544 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20545
20546 2008-06-12 Jim Meyering <meyering@redhat.com>
20547
20548 Make unexec_free handle NULL the same way free does.
20549 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20550
20551 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20552
20553 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20554 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20555 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20556 (WEAK_ALIAS): Simplify.
20557 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20558 when searching a unibyte buffer.
20559
20560 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
20561
20562 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20563
20564 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
20565
20566 * w32font.c: Include ctype.h.
20567
20568 2008-06-11 Jason Rumney <jasonr@gnu.org>
20569
20570 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20571 misreported as space.
20572 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20573 as aliases for registry iso10646-1.
20574
20575 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20576
20577 * buffer.c (clone_per_buffer_values): Skip `name'.
20578
20579 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
20580
20581 * font.c (font_parse_fcname): Fix last change; accept decimal
20582 points in font size.
20583
20584 2008-06-10 Jason Rumney <jasonr@gnu.org>
20585
20586 * w32uniscribe.c (add_opentype_font_name_to_list):
20587 Skip non unicode fonts.
20588
20589 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20590
20591 * xfns.c (Fx_font_dialog): New function.
20592
20593 * gtkutil.c (xg_dialog_response_cb): Rename from
20594 xg_file_response_callback.
20595 (pop_down_dialog): Rename from pop_down_file_dialog.
20596 (xg_get_file_name): Callers changed.
20597 (xg_get_font_name): New function.
20598
20599 * gtkutil.h (xg_get_font_name): Insert prototype.
20600
20601 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20602
20603 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20604 x_underline_minimum_display_offset.
20605 (syms_of_xdisp): Declare it here rather than in xterm.c.
20606 * dispextern.h (underline_minimum_offset): Declare it.
20607 * w32term.c (x_draw_glyph_string): Use it.
20608 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20609 (syms_of_xterm): Don't declare it any more.
20610 (x_draw_glyph_string): Adjust to the new name.
20611
20612 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
20613
20614 * xterm.c (x_underline_minimum_display_offset): New var.
20615 (x_draw_glyph_string): Use it.
20616 (syms_of_xterm): Declare it.
20617
20618 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20619
20620 * font.c (font_parse_fcname): Accept GTK-style font names too.
20621
20622 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20623
20624 * dired.c (file_name_completion): Don't return t if the match is exact
20625 but with different capitalization.
20626 * minibuf.c (Ftry_completion): Simplify.
20627
20628 * window.c (Vwindow_point_insertion_type): New var.
20629 (set_window_buffer): Use it.
20630 (syms_of_window): Init and export it to Lisp.
20631
20632 2008-06-10 Kenichi Handa <handa@m17n.org>
20633
20634 * font.h (font_intern_prop): Prototype adjusted.
20635
20636 * font.c (font_intern_prop): New arg force_symbol.
20637 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20638 Adjust for the change of font_intern_prop.
20639
20640 * ftfont.c (ftfont_pattern_entity):
20641 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20642 (w32_registry):
20643 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20644 the change of font_intern_prop.
20645
20646 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20647
20648 * w32menu.c (digest_single_submenu): Declare extern.
20649
20650 2008-06-09 Jason Rumney <jasonr@gnu.org>
20651
20652 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20653
20654 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20655 (parse_single_submenu): Remove.
20656 (digest_single_submenu): Remove.
20657 (syms_of_w32menu): Don't initialise variables that have moved
20658 to menu.c.
20659 (set_frame_menubar): Sync with version in xmenu.c.
20660 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20661
20662 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20663 Make static again.
20664
20665 2008-06-09 Jason Rumney <jasonr@gnu.org>
20666
20667 Changes to w32 files related to the move of common menu code
20668 to menu.c on 2008-06-08 by Chong Yidong.
20669
20670 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20671 defs to w32gui.h.
20672 (single_keymap_panes, push_menu_item, push_menu_pane):
20673 Make globally visible.
20674
20675 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20676 (local_free, malloc_widget_value, free_widget_value)
20677 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20678 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20679 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20680 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20681 (menu_items, menu_items_allocated, menu_items_used)
20682 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20683 (init_menu_items, finish_menu_items, discard_menu_items)
20684 (grow_menu_items, push_submenu_start, push_submenu_end)
20685 (push_left_right_boundary, push_menu_pane, push_menu_item)
20686 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20687 (free_menubar_widget_tree_value, parse_single_submenu)
20688 (update_submenu_strings): Remove functions.
20689 (xmalloc_widget_value): Remove and declare extern.
20690
20691 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20692 (OBJ1): Build it.
20693
20694 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20695 (local_heap, local_alloc, local_free, malloc_widget_value)
20696 (free_widget_value): Define here.
20697
20698 2008-06-09 Kenichi Handa <handa@m17n.org>
20699
20700 * font.h (Qascii_0): Extern it.
20701
20702 * font.c (Qascii_0): New variable.
20703 (syms_of_font): DEFSYM it.
20704 (font_open_by_name): If the registry "iso8859-1" fails, try also
20705 "ascii-0".
20706
20707 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20708
20709 2008-06-08 Kenichi Handa <handa@m17n.org>
20710
20711 * .gdbinit (xfont): New command.
20712
20713 2008-06-08 Andreas Schwab <schwab@suse.de>
20714
20715 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20716 * Makefile.in (menu.o): Update dependencies.
20717
20718 * Makefile.in (obj): Always add menu.o.
20719 * emacs.c (main): Always call syms_of_menu.
20720 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20721
20722 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20723
20724 * Makefile.in: Compile menu.c.
20725
20726 * lisp.h: Declare syms_of_menu.
20727
20728 * emacs.c (main): Call syms_of_menu.
20729
20730 * keyboard.h: Relocate platform-independent menu definitions from
20731 xmenu.c.
20732
20733 * menu.c: New file. Relocate platform-independent menu
20734 definitions from xmenu.c. Suggested by Adrian Robert.
20735
20736 * xmenu.c: Remove platform-independent menu definitions.
20737 (menu_items, menu_items_inuse, menu_items_allocated)
20738 (menu_items_used, menu_items_n_panes)
20739 (menu_items_submenu_depth): Move to keyboard.h.
20740 (init_menu_items, finish_menu_items, unuse_menu_items)
20741 (discard_menu_items, restore_menu_items, save_menu_items)
20742 (grow_menu_items, push_submenu_start, push_submenu_end)
20743 (push_left_right_boundary, push_menu_pane, push_menu_item)
20744 (keymap_panes, single_keymap_panes, single_menu_item)
20745 (list_of_panes, list_of_items, find_and_call_menu_selection)
20746 (xmalloc_widget_value, free_menubar_widget_value_tree)
20747 (parse_single_submenu, digest_single_submenu)
20748 (update_submenu_strings): Move to menu.c.
20749
20750 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20751
20752 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20753
20754 2008-06-06 Miles Bader <miles@gnu.org>
20755
20756 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20757 face, not frame default.
20758
20759 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20760
20761 * window.c (pop_up_windows, pop_up_frames)
20762 (display_buffer_reuse_frames, Vpop_up_frame_function)
20763 (Vdisplay_buffer_function, Veven_window_heights)
20764 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20765 (Vspecial_display_function, Vsame_window_buffer_names)
20766 (Vsame_window_regexps, split_height_threshold)
20767 (Vsplit_window_preferred_function): Move those vars to window.el.
20768 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20769 (Fdisplay_buffer): Move those functions to window.el.
20770 (syms_of_window): Remove corresponding declarations.
20771 (display_buffer): New function.
20772 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20773 * dispnew.c (Flast_nonminibuf_frame): New function.
20774 * buffer.c (Fpop_to_buffer): Move to window.el.
20775
20776 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20777
20778 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20779
20780 2008-06-05 Kenichi Handa <handa@m17n.org>
20781
20782 * coding.c (detect_coding): Fix previous change.
20783 (detect_coding_system): Likewise.
20784
20785 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20786
20787 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20788
20789 * keymap.c (Vminibuffer_local_filename_must_match_map):
20790 Rename from Vminibuffer_local_must_match_filename_map.
20791 (syms_of_keymap):
20792 * minibuf.c (Fcompleting_read): Adjust accordingly.
20793 * commands.h: Rename declaration as well.
20794
20795 2008-06-05 Kenichi Handa <handa@m17n.org>
20796
20797 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20798 family name.
20799 (Ffont_put): Likewise.
20800
20801 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20802 current font-spec.
20803
20804 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20805 is unspecified.
20806
20807 * xfaces.c (realize_x_face): If the font-related face attributes
20808 are the same as those of default face, realize a new fontset from
20809 default->fontset.
20810 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20811
20812 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20813
20814 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20815 (move_it_in_display_line): New wrapper.
20816
20817 * window.c (window_scroll_pixel_based_preserve_x)
20818 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20819 (window_scroll_pixel_based, window_scroll_line_based):
20820 Use them to preserve column positions.
20821 (syms_of_window): Initialize them.
20822
20823 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20824 (HPOS . VPOS) pair.
20825
20826 * dispextern.h (move_it_in_display_line): Declare.
20827
20828 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20829
20830 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20831 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20832 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20833
20834 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20835
20836 * window.c (Fset_window_parameter): Doc fix.
20837 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20838
20839 2008-06-04 Joakim Verona <joakim@verona.se>
20840
20841 * window.h (struct window): Add new member window_parameters.
20842
20843 * window.c (Fwindow_parameters, Fwindow_parameter)
20844 (Fset_window_parameter): New defuns.
20845 (syms_of_window): Defsubr the new defuns.
20846 (make_window): Initialize window_parameters to nil.
20847
20848 2008-06-04 John Paul Wallington <jpw@pobox.com>
20849
20850 * eval.c (Fdefmacro): Doc fix.
20851
20852 2008-06-04 Kenichi Handa <handa@m17n.org>
20853
20854 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20855 Be sure to call setup_coding_system when we find a proper coding system.
20856 (detect_coding_system): Fix handling of coding->head_ascii.
20857
20858 2008-06-03 Andreas Schwab <schwab@suse.de>
20859
20860 * font.c (font_prop_validate_spacing): Fix last change.
20861
20862 2008-06-03 Kenichi Handa <handa@m17n.org>
20863
20864 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20865 (font_parse_fcname): Fix handling of unknown key.
20866
20867 * xfont.c (xfont_list): Try an alias.
20868
20869 * charset.c (char_charset): Return NULL if the arg charset_list is
20870 specified and C doesn't belong to any of them.
20871
20872 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20873
20874 * font.c (font_pixel_size): Don't take cdr of an integer.
20875
20876 2008-06-02 Jim Meyering <meyering@redhat.com>
20877
20878 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20879 * alloc.c (xfree): Return right away for a NULL arg.
20880 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20881 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20882 * mac.c (create_apple_event_from_event_ref): Likewise.
20883 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20884 Likewise.
20885 * doprnt.c (doprnt1): Likewise.
20886 * frame.c (frame): Likewise.
20887 * keyboard.c (wipe_kboard): Likewise.
20888 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20889 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20890 * term.c (tty_default_color_capabilities, maybe_fatal)
20891 (delete_tty): Likewise.
20892 * w16select.c (string): Likewise.
20893 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20894 * w32bdf.c (w32_free_bdf_font): Likewise.
20895 * w32fns.c (w32_unload_font): Likewise.
20896 * w32font.c (w32font_close): Likewise.
20897 * window.c (size_window): Likewise.
20898 * xselect.c (receive_incremental_selection): Likewise.
20899 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20900 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20901 * w32.c (stat): Likewise.
20902
20903 Remove useless if-before-free tests.
20904 * editfns.c (Fset_time_zone_rule): Likewise.
20905 * lread.c (nosuffix): Likewise.
20906 * ralloc.c (get_bloc): Likewise.
20907 * regex.c (reg_free): Likewise.
20908 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20909 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20910 * xsmfns.c (smc_save_yourself_CB): Likewise.
20911
20912 2008-06-02 Kenichi Handa <handa@m17n.org>
20913
20914 * font.c (font_find_for_lface): Handle float font size.
20915 (font_open_for_lface): Likewise.
20916
20917 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20918 comparing the properties.
20919
20920 2008-06-01 Jason Rumney <jasonr@gnu.org>
20921
20922 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20923 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20924 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20925 Don't add empty script list.
20926 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20927
20928 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20929
20930 * Makefile.in (dot, dotdot): Remove, update users.
20931 ".." has been used elsewhere in the file for a long time.
20932 (LIBXT_STATIC): Remove conditional based on unused variable.
20933
20934 2008-06-01 Miles Bader <miles@gnu.org>
20935
20936 * xfaces.c (Vface_remapping_alist): New variable.
20937 (syms_of_xfaces): Initialize it.
20938 (enum named_merge_point_kind): New type.
20939 (struct named_merge_point): Add `named_merge_point_kind' field.
20940 (push_named_merge_point): Make cycle detection respect different
20941 named-merge-point kinds.
20942 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20943 Remove face-name alias resolution.
20944 (lface_from_face_name): New definition using
20945 `lface_from_face_name_no_resolve'.
20946 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20947 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20948 (get_lface_attributes): New definition that layers face-remapping on
20949 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20950 (lookup_basic_face): New function.
20951 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20952 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20953 `get_lface_attributes'.
20954 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20955 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20956 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20957
20958 * xdisp.c (init_iterator): Pass base_face_id through
20959 `lookup_basic_face' when we actually use it as a face-id.
20960 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20961 DEFAULT_FACE_ID.
20962
20963 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20964 lookup the initial face-id.
20965
20966 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20967
20968 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20969
20970 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20971 (Fremove_text_properties): Fix typos in docstrings.
20972
20973 2008-05-31 Kenichi Handa <handa@m17n.org>
20974
20975 * font.c (font_list_entities): Fix the car part of data to be
20976 stored in the cache.
20977
20978 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20979
20980 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20981
20982 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20983 Add a `test' argument so another predicate than `equal' can be used.
20984 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20985 (map_char_table): Remove unused vars `c' and `i'.
20986 * lisp.h (Foptimize_char_table): Adjust declaration.
20987 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20988
20989 2008-05-30 Kenichi Handa <handa@m17n.org>
20990
20991 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20992 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20993 defined.
20994
20995 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20996
20997 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20998 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20999 frame-local settings for the same variable.
21000
21001 2008-05-30 Kenichi Handa <handa@m17n.org>
21002
21003 * fontset.c (Ffont_info): Move to font.c.
21004 (syms_of_fontset): Delete defsubr of Sfont_info.
21005
21006 * font.c (font_style_to_value, font_score): Delete casting of the
21007 args to xstcasecmp.
21008 (register_font_driver): Increment num_font_drivers only when
21009 registering the driver globally.
21010 (Ffont_info): Move from fontset.c. Handle a font object too.
21011 (syms_of_font): Defsubr Sfont_info.
21012
21013 2008-05-29 Kenichi Handa <handa@m17n.org>
21014
21015 * coding.h (enum define_coding_utf8_arg_index): New enum.
21016 (enum coding_attr_index): Change coding_attr_utf_16_bom to
21017 coding_attr_utf_bom.
21018 (enum utf_bom_type): Rename from utf_16_bom_type.
21019 (struct utf_16_spec): Adjust for the above change.
21020 (struct coding_system): Add utf_8_bom in `spec' union.
21021
21022 * coding.c (CODING_UTF_8_BOM): New macro.
21023 (enum coding_category): Delete coding_category_utf_8, add
21024 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
21025 coding_category_utf_8_sig.
21026 (CATEGORY_MASK_UTF_8): Delete it.
21027 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
21028 (CATEGORY_MASK_UTF_8_SIG): New macros.
21029 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
21030 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
21031 CATEGORY_MASK_UTF_8_SIG.
21032 (CATEGORY_MASK_UTF_8): New macro.
21033 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
21034 (detect_coding_utf_8): Check BOM.
21035 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
21036 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
21037 (encode_coding_utf_16): Likewise.
21038 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
21039 (detect_coding, detect_coding_system): Handle utf-8-auto.
21040 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
21041 (syms_of_coding): Fix setting up of Vcoding_category_table.
21042
21043 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
21044
21045 * process.c (Faccept_process_output): If `millisec' is non-nil,
21046 `seconds' default to 0.
21047 (wait_reading_process_output): Also return non-nil if we read output
21048 from a non-running process.
21049
21050 2008-05-29 Jason Rumney <jasonr@gnu.org>
21051
21052 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
21053 `raster' specified.
21054 (add_font_entity_to_list): Allow non-opentype truetype fonts back
21055 in the uniscribe backend, but disallow any font that has no
21056 unicode subrange support.
21057
21058 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
21059
21060 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
21061 Fix typos in docstrings.
21062
21063 2008-05-29 Kenichi Handa <handa@m17n.org>
21064
21065 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
21066 (Fx_family_fonts): Set frame correctly.
21067
21068 2008-05-28 Jason Rumney <jasonr@gnu.org>
21069
21070 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
21071
21072 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
21073
21074 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
21075 calling build_annotations.
21076
21077 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
21078
21079 * coding.c (Fdecode_coding_region, Fencode_coding_region)
21080 (Fencode_coding_string):
21081 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
21082 <latin-extra-code-table>: Fix typos in docstrings.
21083 (syms_of_coding) <coding-system-alist>: Doc fix.
21084 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
21085
21086 2008-05-28 Kenichi Handa <handa@m17n.org>
21087
21088 * fontset.c (Ffont_info): Don't call font_close_object.
21089
21090 * font.c (font_parse_family_registry): Use Ffont_put to validate
21091 foundry and family.
21092 (font_delete_unmatched): Don't check spacing.
21093 (font_list_entities): Add spacing to the spec to list fonts.
21094
21095 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
21096 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
21097
21098 * coding.c (encode_coding_raw_text): Fix previous change.
21099 (encode_coding_object): When the dst_object is a buffer and is
21100 different from src_object, move gap to PT.
21101
21102 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21103
21104 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
21105
21106 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21107
21108 * coding.c (encode_coding_raw_text): Set coding->produced_char for
21109 all branches. Compute it differently.
21110
21111 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
21112
21113 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
21114
21115 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
21116 into "else if () ... else ...".
21117
21118 2008-05-27 Jason Rumney <jasonr@gnu.org>
21119
21120 * w32font.c (w32font_open_internal): Determine if glyph indices
21121 are likely to work here.
21122
21123 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21124
21125 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
21126 draw overlap glyphs with appropriate highlighting.
21127
21128 2008-05-27 Kenichi Handa <handa@m17n.org>
21129
21130 * xfont.c (xfont_open): Fix calculation of font->average_width.
21131
21132 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21133
21134 * casefiddle.c (casify_object): Try to guess better whether the
21135 argument is a byte or a char.
21136
21137 2008-05-26 Andreas Schwab <schwab@suse.de>
21138
21139 * xselect.c (x_reply_selection_request): Properly handle format == 32.
21140 Always send multiples of format size.
21141
21142 * xterm.c (x_set_frame_alpha): Fix type mismatch.
21143
21144 2008-05-26 Jason Rumney <jasonr@gnu.org>
21145
21146 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
21147 (compute_metrics): Don't set failure if we just cleared the cache.
21148 (w32_weight_table): Remove unused variable.
21149 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
21150 backwards compatibility.
21151
21152 2008-05-25 Kenichi Handa <handa@m17n.org>
21153
21154 * w32term.c (x_draw_glyph_string):
21155 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
21156
21157 * xfaces.c: Delete unused function prototypes.
21158 (xstrlwr, font_frame): Delete them.
21159 (clear_face_cache): Delete unused variable.
21160
21161 * xftfont.c (xftfont_open): Delete unused variable.
21162 If underline_thickness is not 1, adjust underline_position.
21163
21164 * ftxfont.c (ftxfont_open): Delete unused variable.
21165
21166 * fontset.c (face_for_char): Optimize for the case of no charset
21167 property.
21168
21169 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
21170 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
21171 (otf_open, font_otf_capability, generate_otf_features)
21172 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21173 Comment out by surrounding "#if 0" and "#endif" for the moment.
21174 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
21175 (syms_of_font): Codes for accessing above commented out.
21176
21177 2008-05-24 Eli Zaretskii <eliz@gnu.org>
21178
21179 * w32proc.c: Include dispextern.h.
21180
21181 * w32.c: Include dispextern.h.
21182
21183 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
21184
21185 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
21186 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
21187 Fix typos in docstrings.
21188
21189 2008-05-23 Jason Rumney <jasonr@gnu.org>
21190
21191 * xsmfns.c: Remove includes that are already included by config.h.
21192
21193 2008-05-23 Kenichi Handa <handa@m17n.org>
21194
21195 * charset.c (Qemacs, charset_emacs): New variables.
21196 (char_charset): Fix for non-Unicode characters.
21197 (syms_of_charset): Define charset_emacs.
21198
21199 * w32term.c (x_draw_glyph_string): Be sure to update
21200 s->underline_thickness and s->underline_position. Be sure to draw
21201 underline within the current line area.
21202
21203 * xterm.c (x_draw_glyph_string): Be sure to update
21204 s->underline_thickness and s->underline_position. Be sure to draw
21205 underline within the current line area.
21206
21207 * fontset.c: Delete unused variables and add casting for char *
21208 throughout the file.
21209 (fontset_font): Try the fallback fonts of the current fontset
21210 before consulting the default fontset.
21211
21212 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
21213
21214 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
21215
21216 2008-05-22 Jason Rumney <jasonr@gnu.org>
21217
21218 * font.c: Don't include strings.h.
21219
21220 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
21221
21222 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
21223 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
21224 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
21225 to call xstrcasecmp.
21226
21227 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
21228
21229 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21230
21231 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21232
21233 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21234
21235 2008-05-22 Kenichi Handa <handa@m17n.org>
21236
21237 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21238
21239 * font.c (font_prop_validate_style): Adjust for the format
21240 change of font_style_table.
21241
21242 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21243 two args.
21244
21245 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21246 two args.
21247
21248 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21249
21250 * minibuf.c (keys_of_minibuf): Delete.
21251 * lisp.h (keys_of_minibuf): Delete.
21252 * emacs.c (main): Don't call keys_of_minibuf.
21253
21254 2008-05-22 Kenichi Handa <handa@m17n.org>
21255
21256 * ftfont.c (ftfont_resolve_generic_family): Rename from
21257 ftfont_list_generic_family. Return a single family for each
21258 generic family.
21259 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21260 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21261 Call font_add_log.
21262 (ftfont_match): Call font_add_log.
21263
21264 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21265 (FONT_DEBUG): Define it.
21266 (font_add_log): Extern it.
21267 (font_assert): Rename from xassert.
21268
21269 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21270 (xfont_list_family): Call font_add_log.
21271 (xfont_match): Likewise.
21272 (memq_no_quit): Delete.
21273
21274 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21275 call of Ffont_xlfd_name.
21276
21277 * xfaces.c (struct table_entry, slant_table, weight_table)
21278 (swidth_table): Move to font.c.
21279
21280 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21281 xassert are changed to font_assert. Delete many unused variables.
21282 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21283 New variables.
21284 (struct table_entry): Move from xfaces.c and modified.
21285 (weight_table, slant_table, width_table): Move from xfaces.c and
21286 contents adjusted for the change of struct table_entry.
21287 (font_style_to_value, font_style_symbolic): Adjust for the
21288 format change of font_style_table.
21289 (font_parse_family_registry): Don't overwrite existing foundry and
21290 family of font_spec.
21291 (font_score): Fix calculation of diff for sizes.
21292 (font_sort_entites): Call font_add_log.
21293 (font_delete_unmatched): Return a newly created list.
21294 (font_list_entities): Fix previous change. Call font_add_log.
21295 (font_matching_entity, font_open_entity, font_close_entity):
21296 Call font_add_log.
21297 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21298 (Finternal_set_font_style_table): Delete.
21299 (BUILD_STYLE_TABLE): New macro.
21300 (build_style_table): New function.
21301 (Vfont_log, font_log_env_checked): New variables.
21302 (font_add_log): New function.
21303 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21304 Declare Lisp variables "font-weight-table", "font-slant-table",
21305 "font-width-table", and "font-log". Initialize font_style_table.
21306
21307 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21308
21309 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21310
21311 2008-05-21 Seiji Zenitani <zenitani@mac.com>
21312 Ryo Yoshitake <ryo@shiftmode.net>
21313
21314 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21315 (Vframe_alpha_lower_limit): New variable.
21316 (x_set_alpha): New function.
21317
21318 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21319
21320 * xfns.c (x-create-frame, Qalpha):
21321 Initialize the frame parameter `alpha'.
21322 * xterm.c (OPAQUE, OPACITY): New.
21323 (x_set_frame_alpha): New function.
21324 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21325
21326 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21327 * w32fns.c (w32_frame_parm_handlers): Likewise.
21328
21329 2008-05-20 Jason Rumney <jasonr@gnu.org>
21330
21331 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21332 truetype fonts to opentype list.
21333
21334 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
21335
21336 * fontset.c (Ffontset_info): Doc fix.
21337 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21338 <ignore-relative-composition>: Fix typos in docstrings.
21339
21340 * font.c (syms-of-font) <font-encoding-alist>:
21341 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21342 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21343 (Ffont_otf_alternates): Doc fixes.
21344
21345 2008-05-20 Kenichi Handa <handa@m17n.org>
21346
21347 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21348 font.h through out the file.
21349 (FONT_DRIVERS): Rename from FONTOBJ.
21350 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21351 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21352
21353 * emacs.c (main): Call syms_of_font unconditionally.
21354
21355 * font.h (find_font_encoding): Extern it.
21356
21357 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21358 fontset.c.
21359 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
21360 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21361 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21362 only when HAVE_WINDOW_SYSTEM is defined.
21363 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21364 when HAVE_WINDOW_SYSTEM is defined.
21365
21366 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21367 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21368
21369 * xfaces.c: Include font.h unconditionally.
21370 (merge_face_ref, merge_face_vectors)
21371 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21372
21373 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21374
21375 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21376 indirect_variable.
21377 * eval.c (lisp_indirect_variable): New fun.
21378 (Fuser_variable_p): Use it.
21379
21380 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21381
21382 * lisp.h (indirect_variable):
21383 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21384 Use Lisp_Symbol pointers rather than Lisp_Object.
21385 Adjust callers.
21386 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21387 To this end, change calling-convention.
21388
21389 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21390 if some non-hidden buffers are selected by string&pred.
21391
21392 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
21393
21394 * process.c (wait_reading_process_output): Always check status
21395 when in batch mode.
21396
21397 2008-05-19 Kenichi Handa <handa@m17n.org>
21398
21399 * font.c (font_list_entities): Fix handling of cache.
21400 (font_matching_entity): Likewise.
21401
21402 * ftfont.c (cs_iso8859_1): Delete.
21403 (ft_face_cache): New variable.
21404 (struct ftfont_info): New member fc_charset_idx.
21405 (ftfont_build_basic_charsets): Delete.
21406 (fc_charset_table): New variable.
21407 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21408 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21409 Callers changed.
21410 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21411 (ftfont_spec_pattern): New argument fc_charset_idx.
21412 Check registry more rigidly. Change callers.
21413 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21414 change of :font-entity property of the font.
21415
21416 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21417 property of the font.
21418
21419 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
21420
21421 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21422 (Funencodable_char_position, Fcheck_coding_systems_region)
21423 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21424 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21425 (Ffind_operation_coding_system, Fset_coding_system_priority)
21426 (Fcoding_system_eol_type): Doc fixes.
21427
21428 2008-05-17 Glenn Morris <rgm@gnu.org>
21429
21430 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21431
21432 2008-05-16 Eli Zaretskii <eliz@gnu.org>
21433
21434 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21435 and st_gid.
21436
21437 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21438 HAVE_WINDOW_SYSTEM is not defined.
21439
21440 * xfaces.c (merge_face_ref, merge_face_vectors)
21441 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21442 HAVE_WINDOW_SYSTEM is defined.
21443 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21444
21445 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21446
21447 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21448
21449 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21450
21451 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21452
21453 2008-05-15 Kenichi Handa <handa@m17n.org>
21454
21455 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21456 preference.
21457
21458 2008-05-15 Glenn Morris <rgm@gnu.org>
21459
21460 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21461
21462 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
21463
21464 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21465 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21466
21467 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21468
21469 2008-05-15 Kenichi Handa <handa@m17n.org>
21470
21471 * ftfont.c (ftfont_list): Downcase family name to check generic
21472 families.
21473
21474 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21475 font-spec for QCfont value.
21476
21477 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21478 buffer. Check the return value of it.
21479
21480 2008-05-14 Jason Rumney <jasonr@gnu.org>
21481
21482 * w32term.c (w32_get_glyph_overhangs): Remove.
21483 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21484
21485 2008-05-14 Kenichi Handa <handa@m17n.org>
21486
21487 * font.c (font_prop_validate): Make nil a valid value.
21488 (font_clear_cache): Check if the cached vector of entities is nil
21489 or not.
21490
21491 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21492
21493 * emacs.c (main_thread): Conditionalize on
21494 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21495 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21496
21497 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21498 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21499 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21500
21501 2008-05-14 Kenichi Handa <handa@m17n.org>
21502
21503 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21504 has no corresponding coding system.
21505
21506 2008-05-14 Jason Rumney <jasonr@gnu.org>
21507
21508 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21509
21510 * w32font.h (w32font_open_internal): Update declaration.
21511
21512 * w32font.c (w32font_open_internal): Change last argument from
21513 w32font_info struct to font object. Fill in font object from
21514 font_entity. Get Outline metrics if possible. Use them to
21515 calculate underline position and thickness. Use xlfd name as name
21516 property. Don't set codepage.
21517 (w32font_open): Pass font_object to w32font_open_internal. Don't
21518 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21519 (w32font_draw): Use s->font.
21520 (clear_cached_metrics): Don't clear non-existent blocks.
21521
21522 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21523 font was not found.
21524 (x_draw_glyph_string): Use underline position and thickness from font.
21525
21526 * w32uniscribe.c (uniscribe_open): Pass font_object to
21527 w32font_open_internal.
21528
21529 2008-05-14 Kenichi Handa <handa@m17n.org>
21530
21531 These changes are to delete all legacy font-handling codes, and
21532 make Emacs use only font-backends.
21533
21534 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21535 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21536
21537 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21538
21539 * charset.h (Vcharset_non_preferred_head)
21540 (Vcurrent_iso639_language): Extern them.
21541
21542 * charset.c (Vcharset_non_preferred_head): New variable.
21543 (Vcurrent_iso639_language): New variable.
21544 (syms_of_charset): Declare it as a Lisp variable.
21545 (char_charset): Don't check non preferred charsets. As a last
21546 resort, return charset_unicode.
21547 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21548
21549 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21550 conditionals. Don't check enable_font_backend. Delete all codes
21551 used only when USE_FONT_BACKEND is not defined.
21552
21553 * dispextern.h (struct glyph_string): Change type of `font' to
21554 `struct font *'.
21555 (struct glyph_string): New member underline_position and
21556 underline_thickness.
21557 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21558 (struct face): Change type of `font' to `struct font *'.
21559 Remove members `font_name', `font_info_id'.
21560 (per_char_metric, encode_char): Delete externs.
21561 (calc_pixel_width_or_height): Adjust the prototype.
21562
21563 * emacs.c (enable_font_backend): Delete extern.
21564 (main): Don't set enable_font_backend. Don't check the command
21565 line argument "-disable-font-backend".
21566
21567 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21568 (enum font_property_index): New members FONT_DPI_INDEX,
21569 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21570 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21571 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21572 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21573 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21574 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21575 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21576 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21577 (struct font_spec, struct font_entity): New structs.
21578 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21579 (struct font): Many members from old "struct font_info" moved to
21580 here. Members font and entity deleted.
21581 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21582 the new font-related objects.
21583 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21584 (CHECK_FONT_GET_OBJECT): Likewise.
21585 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21586 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21587 (struct font_driver): New members case_sensitive anc check.
21588 Type of the member list and open changed.
21589 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21590 (font_symbolic_width, font_find_object, font_get_spec)
21591 (font_set_lface_from_name): Delete extern.
21592 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21593
21594 * font.c: Include <strings.h>.
21595 (enable_font_backend): Delete it.
21596 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21597 (CHECK_VALIDATE_FONT_SPEC): Delete it.
21598 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21599 (null_string): Delete it.
21600 (null_vector): Make it static.
21601 (font_family_alist): Delete it.
21602 (Qnormal): Extern it.
21603 (QCextra, QClanguage): Delete it.
21604 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21605 (font_make_spec, font_make_entity, font_make_object)
21606 (font_intern_prop): Rename from intern_downcase. Don't downcase
21607 the string. Callers changed.
21608 (font_pixel_size): Adjust for the format change of font-related
21609 objects.
21610 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21611 (font_style_to_value, font_style_symbolic): New function.
21612 (build_font_family_alist): Delete it.
21613 (font_registry_charsets): Use Fassoc_string instead of
21614 assq_no_quit.
21615 (font_prop_validate_symbol): Don't return null_string.
21616 (font_prop_validate_style): Adjust for the change of
21617 style-related values in a font vector.
21618 (font_property_table): Delete entries for QClanguage and
21619 QCantialias, add entries for QCavgwidth.
21620 (get_font_prop_index): Delete the 2nd argument FROM.
21621 (font_prop_validate): Arguments changed.
21622 (font_put_extra): Adjust for the change of font-related objects.
21623 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21624 (font_parse_fcname, font_unparse_fcname)
21625 (font_prepare_composition): Likewise.
21626 (font_parse_family_registry): Rename from font_merge_old_spec.
21627 (otf_open): Delete the 1st arg entity.
21628 (font_otf_capability): Adjust for the above change.
21629 (font_score): New arg alternate_families. Adjusted for the change
21630 of font-related objects.
21631 (font_sort_entites): New arg best_only.
21632 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21633 Delete them.
21634 (font_match_p): Check alternate families.
21635 (font_find_object): Delete it.
21636 (font_check_object): New function.
21637 (font_clear_cache): Adjust for the change of font-related objects.
21638 (font_delete_unmatched): New arg.
21639 (font_list_entities): Call font_driver->list with a spec that
21640 doesn't specify style-related properties.
21641 (font_matching_entity): Arguments changed. Caller changed.
21642 (font_open_entity): Adjust for the change of font-related objects.
21643 (font_close_object, font_has_char, font_encode_char)
21644 (font_get_name, font_get_spec): Likewise.
21645 (font_spec_from_name, font_clear_prop, font_update_lface):
21646 New functions.
21647 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21648 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21649 (font_at): Adjust for the change of font-related objects.
21650 (font_range): New function.
21651 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21652 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21653 (Fcopy_font_spec, Fmerge_font_spec): New function.
21654 (Ffont_family_list): Rename from list-families.
21655 (Finternal_set_font_style_table): Arguments changed.
21656 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21657 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21658 change of font-related objects.
21659 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21660
21661 * fontset.h (struct font_info): Delete it. Most members go to
21662 struct font.
21663 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21664 (enum FONT_SPEC_INDEX): Delete it.
21665 (font_info, list_fonts_func, load_font_func, query_font_func)
21666 (set_frame_fontset_func, find_ccl_program_func)
21667 (get_font_repertory_func, new_fontset_from_font_name):
21668 Delete externs.
21669 (fontset_from_font_name): Extern it.
21670 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21671 (FONT_INFO_FROM_FACE): Delete.
21672 (face_for_font): Adjust prototype.
21673
21674 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21675 conditionals. Don't check enable_font_backend. Delete all codes
21676 used only when USE_FONT_BACKEND is not defined.
21677 (get_font_info_func, list_font_func, load_font_func)
21678 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21679 (get_font_repertory_func): Delete them.
21680 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21681 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21682 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21683 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21684 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21685 (fontset_compare_rfontdef): New function.
21686 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21687 rfont-defs by qsort. Adjusted for the change of font-group vector.
21688 (load_font_get_repertory): Delete.
21689 (fontset_find_font): Use new macros to ref/set elements of
21690 font-def and rfont-def.
21691 (fontset_font): Fix the timing of remembering that no font for C.
21692 (free_face_fontset): Do nothing if the face has no fontset.
21693 (face_suitable_for_char_p): Use new macros to ref/set elements of
21694 rfont-def.
21695 (face_for_char): Likewise. Call face_for_char with font_object.
21696 (fs_load_font): Delete. Delete #pragma surrounding it.
21697 (fs_query_fontset): Use strcasecmp instead of strcmp.
21698 (generate_ascii_font_name): Adjust for the format change of
21699 font-spec.
21700 (Fset_fontset_font): Likewise. Use new macros to set elements of
21701 font-def.
21702 (Fnew_fontset): Use font_unparse_xlfd to generate
21703 FONTSET_ASCII (fontset).
21704 (new_fontset_from_font_name): Delete.
21705 (fontset_from_font): Rename from new_fontset_from_font. Check if
21706 a fontset is already created for the font. FIx updating of
21707 Vfontset_alias_alist.
21708 (fontset_ascii_font): Delete.
21709 (Ffont_info): Adjust for the format change of font-spec.
21710 (Finternal_char_font): Likewise.
21711 (Ffontset_info): Likewise.
21712 (syms_of_fontset): Don't check load_font_func.
21713
21714 * fns.c (internal_equal): Handle PREV_FONT.
21715
21716 * frame.h: Delete USE_FONT_BACKEND conditional.
21717
21718 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21719 conditionals. Don't check enable_font_backend. Delete all codes
21720 used only when USE_FONT_BACKEND is not defined.
21721 (x_set_font): Call x_new_font, not x_new_fontset2.
21722 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21723 already set for the frame.
21724
21725 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21726 Make a font-entity by font_make_entity. Use font_intern_prop instead
21727 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21728 font property. If a font is scalable, set avgwidth property to 0.
21729 Set font-entity property by font_put_extra.
21730 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21731 (ffont_driver): Adjust for the change of struct font_driver.
21732 (ftfont_spec_pattern): New function.
21733 (ftfont_list): Return a list, not vector.
21734 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21735 (ftfont_list_family): Don't downcase names.
21736 (ftfont_free_entity): Delete.
21737 (ftfont_open): Return a font-object. Adjusted for the change of
21738 struct font. Get underline_thickness and underline_position from
21739 font property. Don't update dpyinfo->smallest_font_height and
21740 dpyinfo->smallest_char_width.
21741 (ftfont_close): Don't free `struct font'.
21742 (ftfont_has_char): Adjust for the format change of font-entity.
21743 (ftfont_encode_char, ftfont_text_extents): Likewise.
21744
21745 * ftxfont.c (ftxfont_list): Return a list, not vector.
21746 (ftxfont_open): Return a font-object. Adjusted for the change of
21747 struct font. Get underline_thickness and underline_position from
21748 font property. Don't update dpyinfo->smallest_font_height and
21749 dpyinfo->smallest_char_width.
21750 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21751 (ftxfont_draw): Adjust for the change of struct font.
21752
21753 * image.c (image_ascent): Don't include "charset.h".
21754 Include "character.h" and "font.h".
21755
21756 * lisp.h (enum pvec_type): New member PREV_FONT.
21757 (Fassoc_string): EXFUN it.
21758
21759 * print.c: Include font.h.
21760 (print_object): Handle font-related objects.
21761
21762 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21763 conditionals. Don't check enable_font_backend. Delete all codes
21764 used only when USE_FONT_BACKEND is not defined.
21765 (handle_auto_composed_prop): Do nothing if it->f is not on a
21766 window system. Check how many following characters can be
21767 displayed by the same font.
21768 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21769 'struct font *'.
21770 (get_char_face_and_encoding): Assign the whole encoding task to
21771 the `encode-char' method of a font driver.
21772 (fill_composite_glyph_string): Adjust for the change of `struct
21773 face' and `struct glyph_string'.
21774 (fill_glyph_string): Likewise.
21775 (get_per_char_metric): Arguments changed.
21776 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21777 and `struct glyph_string'.
21778 (produce_stretch_glyph, calc_line_height_property)
21779 (x_produce_glyphs): Likewise.
21780
21781 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21782 conditionals. Don't check enable_font_backend. Delete all codes
21783 used only when USE_FONT_BACKEND is not defined.
21784 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21785 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21786 (Qp): Extern them.
21787 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21788 Delete.
21789 (struct font_name): Delete.
21790 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
21791 (compare_fonts_by_sort_order): New function.
21792 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21793 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21794 Delete.
21795 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21796 compare_fonts_by_sort_order.
21797 (Fx_font_family_list): Call Ffont_family_list.
21798 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21799 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21800 (face_symbolic_slant, face_symbolic_swidth)
21801 (split_font_name_into_vector, build_font_name_from_vector)
21802 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21803 (font_rescale_ratio, split_font_name, build_font_name)
21804 (free_font_names, sort_fonts, x_face_list_fonts)
21805 (face_font_available_p, sorted_font_list, cmp_font_names)
21806 (font_list_1, concat_font_list, font_list, remove_duplicates):
21807 Delete.
21808 (Fx_list_fonts): Use Ffont_list.
21809 (LFACE_AVGWIDTH): Delete.
21810 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21811 by FONTP.
21812 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21813 (set_lface_from_font_name): Delete it.
21814 (set_lface_from_font): Rename from
21815 set_lface_from_font_and_fontset. Caller changed. Don't set
21816 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21817 for face.
21818 (merge_face_vectors): Copy font-spec if necessary.
21819 Clear properties of the font-spec if necessary.
21820 (merge_face_ref): Clear properties of the font-spec if necessary.
21821 (Finternal_set_lisp_face_attribute): Likewise.
21822 (set_font_frame_param): Use font_load_for_lface to load a
21823 font-object, and call Fmodify_frame_parameters with it.
21824 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21825 font name by Ffont_xlfd_name.
21826 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21827 QCslant, and QCwidth.
21828 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21829 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21830 Compare fonts by EQ.
21831 (lookup_non_ascii_face): Delete.
21832 (face_for_font): The 2nd argument changed.
21833 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21834 Check atomic font properties by case insensitive.
21835 (realize_non_ascii_face): Set face->overstrike correctly.
21836 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21837 (dump_realized_face): Get font name from
21838 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21839
21840 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21841 conditionals. Don't check enable_font_backend. Delete all codes
21842 used only when USE_FONT_BACKEND is not defined.
21843 (xic_create_xfontset): Original code deleted and renamed from
21844 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21845 (x_make_gc): Don't set GCFont in GCs.
21846 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21847 opened by "fixed".
21848 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21849 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21850 get_font_repertory_func.
21851
21852 * xfont.c: Include <stdlib.h> and "ccl.h".
21853 (struct xfont_info): New structure.
21854 (xfont_query_font): Delete.
21855 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21856 moved from xterm.c.
21857 (xfont_driver): Adjust for the change of struct font_driver.
21858 (compare_font_names): New function.
21859 (xfont_list_pattern): Sort font names case insensitively.
21860 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21861 (xfont_list): Return a list, not vector.
21862 (xfont_match): If the font doesn't have QCname property, generate
21863 a name from the other font properties.
21864 (xfont_open): Return a font-object. Adjusted for the change of
21865 struct font. Get underline_thickness and underline_position from
21866 font property. Don't update dpyinfo->smallest_font_height and
21867 dpyinfo->smallest_char_width.
21868 (xfont_close): Don't free struct font.
21869 (xfont_prepare_face): Adjust for the change of struct font.
21870 (xfont_done_face): Delete.
21871 (xfont_has_char): Adjust for the change of struct font.
21872 (xfont_encode_char, xfont_draw): Likewise.
21873 (xfont_check): New function.
21874
21875 * xftfont.c (xftfont_list): Adjust for the change of `list'
21876 callback function.
21877 (xftfont_match): Adjust for the format change of font-entity.
21878 (xftfont_open): Adjust for the format change of font-entity and
21879 font-object. Adjusted for the change of struct font. Return a
21880 font-object. Don't update dpyinfo->smallest_font_height and
21881 dpyinfo->smallest_char_width.
21882 (xftfont_close): Block input while calling XftFontClose.
21883 (xftfont_prepare_face): Don't block input while calling
21884 xftfont_get_colors. Adjusted for the change of struct font.
21885 (xftfont_shape): Return value of error case fixed.
21886
21887 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21888
21889 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21890 conditionals.
21891 (FONT_WIDTH): Return (f)->max_width.
21892 (struct x_display_info): Delete member `font'.
21893 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21894 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21895 (struct x_output): Change type of `font' to `struct font *'.
21896
21897 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21898 conditionals. Don't check enable_font_backend. Delete all codes
21899 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21900 (x_per_char_metric, x_encode_char): Delete.
21901 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21902 (x_compute_glyph_string_overhangs): Adjust for the change of
21903 `struct face'.
21904 (x_draw_glyph_string_foreground)
21905 (x_draw_composite_glyph_string_foreground): Likewise.
21906 (x_draw_glyph_string): Likewise. Use font->underline_position and
21907 font->underline_thickness.
21908 (x_new_font): Rename from x_new_fontset2.
21909 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
21910 (x_check_font): Call `check' method of a font driver.
21911 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21912 (x_query_font, x_get_font_repertory): Delete.
21913 (x_find_ccl_program): Rename and moved to xfont.c.
21914 (x_redisplay_interface): Adjust for the change of `struct
21915 redisplay_interface'.
21916
21917 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21918 conditionals. Don't check enable_font_backend. Delete all codes
21919 used only when USE_FONT_BACKEND is not defined. Surround non-used
21920 code by "#ifdef OLD_FONT" and "endif".
21921 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21922
21923 * w32font.h (struct w32font_info): New member.
21924 (FONT_COMPAT): New macro.
21925 (w32font_open_internal): Prototype adjusted.
21926
21927 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21928 OLD_FONT" and "endif".
21929
21930 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21931 conditionals. Don't check enable_font_backend. Delete all codes
21932 used only when USE_FONT_BACKEND is not defined.
21933 (w32font_open): Return a font-object. Make a font-object by
21934 font_make_object. Adjusted for the change of struct w32font_info.
21935 (w32font_close): Don't free struct font. Adjusted for the change
21936 of struct w32font_info.
21937 (w32font_encode_char, w32font_text_extents, w32font_draw):
21938 Adjust for the change of struct w32font_info.
21939 (w32font_draw): Likewise.
21940 (w32font_list_internal): Return a list, not vector.
21941 (w32font_open_internal): Change the 4th arg to font-object.
21942 Adjusted for the change of struct w32font_info and font-object format.
21943 (add_font_name_to_list): Don't downcase names.
21944 (w32_enumfont_pattern_entity): Make a font-entity by
21945 font_make_entity. Adjusted for the format change of font-entity.
21946 Use FONT_SET_STYLE to set a style-related font property. If a
21947 font is scalable, set avgwidth property to 0. Set font-entity
21948 property by font_put_extra.
21949 (font_matches_spec): Adjust for the format change of font-entity.
21950 (w32_weight_table, w32_decode_weight): New variables.
21951 (w32_encode_weight): New function.
21952 (fill_in_logfont): Adjust for the format change of font-spec.
21953 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21954 weight value.
21955 (w32font_driver): Adjust for the change of struct font_driver.
21956
21957 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21958 conditionals. Don't check enable_font_backend. Surround non-used
21959 code by "#ifdef OLD_FONT" and "endif".
21960 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21961 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21962
21963 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21964 conditionals. Don't check enable_font_backend. Delete all codes
21965 used only when USE_FONT_BACKEND is not defined. Surround non-used
21966 code by "#ifdef OLD_FONT" and "endif".
21967
21968 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21969 (uniscribe_open): Return value changed to font-object.
21970 Adjusted for the format change of font-object.
21971 (uniscribe_otf_capability): Adjust for the change of struct font.
21972 (add_opentype_font_name_to_list): Don't downcase names.
21973 (uniscribe_font_driver): Adjust for the change of struct
21974 font_driver.
21975
21976 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21977
21978 * dispnew.c (update_frame_1): Check if tty output is still valid
21979 before flushing it.
21980
21981 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21982
21983 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21984 to Gtk+ menus.
21985
21986 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21987
21988 * dired.c (file_name_completion): Tweak the code so as to always do it
21989 in a single pass. Tighten the scope of some variables.
21990
21991 * dired.c (Qdefault_directory): New var.
21992 (file_name_completion): Use it instead of Fexpand_file_name.
21993 (syms_of_dired): Initialize it.
21994
21995 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21996
21997 * fileio.c (double_dollars): Remove dead code.
21998
21999 2008-05-10 Eli Zaretskii <eliz@gnu.org>
22000
22001 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
22002 Mention w32-get-true-file-attributes in doc string.
22003
22004 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
22005
22006 2008-05-09 Glenn Morris <rgm@gnu.org>
22007
22008 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
22009 2008-04-23.
22010
22011 2008-05-09 Eli Zaretskii <eliz@gnu.org>
22012
22013 Support for reporting owner and group of each file on MS-Windows:
22014 * dired.c (stat_uname, stat_gname): New functions, with special
22015 implementation for w32.
22016 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
22017
22018 * w32.c: Rename the_passwd_* to dflt_passwd_*.
22019 (dflt_group_name): New static variable.
22020 (dflt_group): Rename from the_group.
22021 (init_user_info): Init dflt_group fields. Get user's group name
22022 from LookupAccountSid.
22023 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
22024 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
22025 New initialization states.
22026 (globals_of_w32): Initialize them to zero. Initialize the default
22027 group name to "None".
22028 (GetFileSecurity_Name): New global var, the name of the function
22029 to call for GetFileSecurity.
22030 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
22031 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
22032 (get_file_security, get_security_descriptor_owner)
22033 (get_security_descriptor_group, is_valid_sid)
22034 (get_file_security_desc, get_rid, get_name_and_id)
22035 (get_file_owner_and_group): New functions.
22036 (stat): Use get_file_security_desc and get_file_owner_and_group to
22037 report the owner and primary group of each file. Don't ignore the
22038 high 32 bits of file's size, now that st_size is 64-bit wide.
22039 Fix test when to get true file attributes.
22040 (init_user_info): Use get_rid instead of equivalent inline code.
22041 (fstat): Don't ignore the high 32 bits of file's size.
22042
22043 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
22044
22045 * image.c (png_load): Use correct bit-depth for setting background
22046 color.
22047
22048 2008-05-08 Eli Zaretskii <eliz@gnu.org>
22049
22050 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
22051 epa-hook.elc.
22052
22053 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
22054
22055 * font.c (Ffont_match_p): Don't use `iff' in docstring.
22056
22057 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
22058
22059 * macfns.c (Fx_create_frame): Make a copy of frame parameters
22060 because the original parameters are in pure storage now.
22061 (mac_window): Remove unused params. Update callers.
22062
22063 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
22064
22065 * lread.c (substitute_object_recurse): Use lower-level primitives.
22066 Don't signal errors when traversing sub-char-tables.
22067 Don't loop over all the possible characters when traversing char-tables.
22068
22069 * print.c (print_preprocess): Add sub-char-tables to the print-table,
22070 just like we do in print.c.
22071
22072 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
22073
22074 * minibuf.c (Ftry_completion): Remove code left over from when we used
22075 scmp instead of Fcompare_strings.
22076
22077 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
22078
22079 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
22080
22081 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22082
22083 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
22084 Create bitmap context in native byte order.
22085
22086 * macterm.c (XDrawLine)
22087 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
22088 context in native byte order.
22089
22090 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22091
22092 * config.in: Regenerate.
22093
22094 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
22095 New definitions for Image I/O support.
22096 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
22097 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
22098 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22099 (mac_data_provider_release_data, image_load_image_io)
22100 [USE_MAC_IMAGE_IO]: New functions.
22101 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
22102 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
22103 (init_image_func_pointer) [MAC_OSX]: Remove function.
22104 (image_load_quartz2d) [MAC_OSX]: Check availability of
22105 CGImageCreateWithPNGDataProvider at compile time.
22106 Use lowercase `false' for boolean constant.
22107 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
22108 Use image_load_image_io.
22109 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
22110 Don't check MyCGImageCreateWithPNGDataProvider.
22111 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
22112 Don't call init_image_func_pointer.
22113
22114 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
22115
22116 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
22117 Make variable non-static.
22118 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
22119 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22120
22121 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
22122 (RED_FROM_ULONG): Mask off higher bits.
22123 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
22124
22125 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
22126 Include AvailabilityMacros.h.
22127 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
22128 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
22129
22130 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
22131
22132 * chartab.c (Fset_char_table_range): If range is t, really set all
22133 chars to that value.
22134
22135 2008-05-03 Eli Zaretskii <eliz@gnu.org>
22136
22137 * dired.c (Ffile_attributes): Don't allow the device number become
22138 negative.
22139
22140 2008-05-02 Daiki Ueno <ueno@unixuser.org>
22141
22142 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
22143
22144 2008-05-02 Juri Linkov <juri@jurta.org>
22145
22146 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
22147 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
22148 DEFAULT argument as a list of default values in docstrings.
22149
22150 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
22151
22152 * puresize.h (BASE_PURESIZE): Increase to 1210000.
22153
22154 2008-05-01 Martin Rudalics <rudalics@gmx.at>
22155
22156 * dispnew.c (change_frame_size_1): Preserve small windows when
22157 shrinking frames by calling set_window_height|width with third
22158 arg 2.
22159
22160 * window.h (struct window): Replace field too_small_ok by field
22161 resize_proportionally.
22162
22163 * window.c (make_window): Initialize resize_proportionally.
22164 (enlarge_window): Temporarily set resize_proportionally to make
22165 sure that shrink_windows does scale the window proportionally.
22166 (shrink_windows): When window has resize_proportionally set try
22167 to shrink it proportionally by stealing from other windows.
22168 (struct saved_window, Fset_window_configuration)
22169 (compare_window_configurations): Handle resize_proportionally.
22170 (WINDOW_TOTAL_SIZE): New macro.
22171 (window_min_size, shrink_windows, size_window): Use it.
22172 (check_min_window_sizes): Remove. Invalid values of
22173 window-min-height|width are handled by window_min_size_2 now.
22174 (size_window, Fsplit_window, enlarge_window)
22175 (adjust_window_trailing_edge, grow_mini_window): Don't call
22176 check_min_window_sizes.
22177 (window_min_size_2, window_min_size_1, window_min_size):
22178 New argument safe_p for retrieving "safe" minimum sizes.
22179 (Fdisplay_buffer, Fsplit_window, enlarge_window)
22180 (adjust_window_trailing_edge, grow_mini_window):
22181 Adjust arguments of window_min_size... functions.
22182 (shrink_windows): Argument min_size removed. New argument
22183 safe_p allows shrinking windows to their safe minimum sizes.
22184 Calculate minimum size and decide whether a window shall be
22185 deleted for each window individually.
22186 (size_window): When nodelete_p equals 2, tell shrink_windows to
22187 delete windows only if their new minimum size is no more safe.
22188 (shrink_window_lowest_first): Call window_min_size_1 to make
22189 sure to preserve modeline of bottom-most window when resizing
22190 the minibuffer.
22191 (Fset_window_configuration, Fcurrent_window_configuration)
22192 (compare_window_configurations): Do not handle
22193 window-min-height|width any more.
22194 (syms_of_window): Clarify window-min-height|width doc-strings.
22195
22196 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
22197
22198 * dired.c (file_name_completion): Fix up the encoding/decoding issue
22199 some more. Copy some of the code from Ftry_completions.
22200 Remove special case code that dates back to initial revision when the
22201 slash was only added when necessary and that can't trigger nowadays.
22202
22203 2008-04-27 Kenichi Handa <handa@m17n.org>
22204
22205 * font.c (font_prop_validate): Signal `error' instead of `font'.
22206
22207 2008-04-29 Jason Rumney <jasonr@gnu.org>
22208
22209 * w32fns.c (Fw32_battery_status): New defun.
22210 (syms_of_w32fns): Defsubr it.
22211
22212 2008-04-28 Andreas Schwab <schwab@suse.de>
22213
22214 * dired.c (file_name_completion): Fix another mixing of encoded
22215 and decoded names.
22216
22217 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
22218
22219 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
22220
22221 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
22222
22223 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
22224
22225 2008-04-27 Andreas Schwab <schwab@suse.de>
22226
22227 * dired.c (file_name_completion): Fix inappropriate mixing of
22228 encoded and decoded names.
22229
22230 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22231
22232 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22233
22234 2008-04-26 Eli Zaretskii <eliz@gnu.org>
22235
22236 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22237 2008-03-31, it's not needed anymore with `struct stat' definition
22238 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22239 for the same reasons.
22240
22241 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22242
22243 * m/sparc.h: Additional redefinitions for GNU/Linux.
22244
22245 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22246
22247 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22248 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22249 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22250 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22251 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22252 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22253 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22254 Likewise.
22255
22256 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22257 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22258 (mac_ax_number_of_characters): Add externs.
22259 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22260 [USE_MAC_TSM]: Likewise.
22261 (mac_handle_text_input_event) [MAC_OSX]:
22262 Handle kEventTextInputOffsetToPos for no active input area case.
22263 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22264 (mac_handle_document_access_event)
22265 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22266 (install_application_handler) [MAC_OSX]: Register handlers for
22267 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22268 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22269 Register mac_handle_document_access_event.
22270
22271 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22272 Make functions non-static.
22273
22274 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22275
22276 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22277 (read_file_name_completion_ignore_case, insert_default_directory)
22278 (Qdefault_directory): Move to minibuffer.el.
22279 (Fread_file_name): Call the new `read-file-name' instead.
22280
22281 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22282
22283 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22284 Make function non-static.
22285 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22286 Remove function.
22287 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22288 Move to mactoolbox.c.
22289 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22290
22291 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22292 (mac_rect_make): New macro.
22293
22294 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22295 instead of float.
22296 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22297 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22298 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22299 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22300 CGRectMake.
22301 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22302 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22303 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22304 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22305 instead of WindowRef in argument type.
22306 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22307 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22308 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22309 instead of DISPLAY. All uses changed.
22310 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22311 (x_calc_absolute_position): Simplify so as not to use
22312 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22313
22314 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22315 instead of WindowRef in argument type.
22316 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22317 [TARGET_API_MAC_CARBON]: Remove externs.
22318 (create_apple_event, mac_event_parameters_to_lisp)
22319 [TARGET_API_MAC_CARBON]: Add externs.
22320
22321 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22322 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22323 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22324 is clicked.
22325 (x_activate_menubar): Remove extern for saved_menu_event_location.
22326 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22327 Move from mac.c.
22328
22329 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22330
22331 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22332 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22333
22334 2008-04-23 Jason Rumney <jasonr@gnu.org>
22335
22336 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22337 attributes only for local files.
22338
22339 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22340 default to Qlocal.
22341
22342 2008-04-22 Juri Linkov <juri@jurta.org>
22343
22344 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22345 read-buffer-to-switch instead of using the letter "B".
22346
22347 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22348
22349 * fileio.c (Qdefault_directory): New variable.
22350 (Fread_file_name): Use it to pass `dir' to the completion functions.
22351
22352 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
22353
22354 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22355
22356 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22357
22358 * keyboard.c (Vpre_help_message): Remove.
22359 (show_help_echo): Remove default C code.
22360
22361 * dired.c (directory_files_internal, file_name_completion):
22362 Only call ENCODE_FILE if the string is indeed decoded.
22363
22364 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22365
22366 * Makefile.in (TOOLKIT_DEFINES): Remove.
22367 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22368
22369 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22370
22371 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22372 (mactoolbox.o): New target.
22373
22374 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22375 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22376
22377 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22378 Use mac_set_frame_window_background instead of XSetWindowBackground.
22379 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22380 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22381 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22382 instead of SetWindowTitleWithCFString.
22383 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22384 Move function to mactoolbox.c.
22385 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22386 Use mac_set_window_modified instead of SetWindowModified.
22387 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22388 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22389 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22390 FrontNonFloatingWindow. Use mac_activate_window instead of
22391 ActivateWindow. Use mac_active_non_floating_window instead of
22392 ActiveNonFloatingWindow.
22393 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22394 Use mac_show_hourglass and mac_hide_hourglass.
22395 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22396 instead of GetGlobalMouse.
22397 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22398 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22399 Use mac_bring_window_to_front instead of BringToFront.
22400 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22401 mactoolbox.c.
22402 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22403 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22404 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22405 mactoolbox.c.
22406
22407 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22408 (XtPointer): Move typedef from macmenu.c.
22409 (enum button_type): Move enum from macmenu.c.
22410 (widget_value): Move typedef from macmenu.c.
22411 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22412 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22413 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22414 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22415 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22416 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22417 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22418 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22419 (Selection): Move typedef from macselect.c.
22420 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22421 macterm.c.
22422 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22423 (mac_is_window_collapsed, mac_bring_window_to_front)
22424 (mac_send_window_behind, mac_hide_window, mac_show_window)
22425 (mac_collapse_window, mac_front_non_floating_window)
22426 (mac_active_non_floating_window, mac_activate_window)
22427 (mac_move_window_structure, mac_move_window, mac_size_window)
22428 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22429
22430 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22431 (enum mac_menu_kind): Move enum to mactoolbox.c.
22432 (min_menu_id): Move variable to mactoolbox.c.
22433 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22434 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22435 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22436 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22437 [TARGET_API_MAC_CARBON]: Likewise.
22438 (XtPointer): Move typedef to macgui.h.
22439 (enum button_type): Move enum to macgui.h.
22440 (widget_value): Move typedef to macgui.h.
22441 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22442 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22443 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22444 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22445 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22446 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22447 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22448 (popup_activated_flag): Make variable non-static.
22449 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22450 (add_menu_item, fill_menu, dispose_menus):
22451 Move functions to mactoolbox.c.
22452 (restore_show_help_function, menu_target_item_handler)
22453 (install_menu_target_item_handler, mac_handle_dialog_event)
22454 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22455 [TARGET_API_MAC_CARBON]: Likewise.
22456 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22457 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22458 (find_and_call_menu_selection, name_is_separator): Make function
22459 non-static.
22460 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22461 to mactoolbox.c.
22462 (set_frame_menubar): Don't call install_menu_quit_handler.
22463 (menu_item_selection): New variable.
22464 (mac_menu_show): Use create_and_show_popup_menu.
22465 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22466 selection but set variable menu_item_selection. All uses changed.
22467 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22468 Call install_menu_quit_handler. Move to mactoolbox.c.
22469
22470 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22471 (Selection): Move typedef to macgui.h.
22472 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22473 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22474 Make variables non-static.
22475 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22476 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22477 Make functions non-static.
22478 (Vmac_service_selection) [MAC_OSX]: Likewise.
22479 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22480 (mac_valid_selection_target_p, mac_clear_selection)
22481 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22482 (mac_put_selection_value, mac_selection_has_target_p)
22483 (mac_get_selection_value, mac_get_selection_target_list)
22484 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22485 Move functions to mactoolbox.c.
22486 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22487 Likewise.
22488 (copy_scrap_flavor_data, mac_handle_service_event)
22489 (install_service_handler) [MAC_OSX]: Likewise.
22490 (syms_of_macselect) <Vmac_dnd_known_types>:
22491 Use mac_dnd_default_known_types.
22492
22493 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22494 Move to mactoolbox.c.
22495 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22496 (Fx_selection_owner_p): Add EXFUN.
22497 (install_window_handler, remove_window_handler, XSetWindowBackground):
22498 Remove externs.
22499 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22500 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22501 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22502 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22503 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22504 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22505 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22506 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22507 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22508 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22509 (mac_valid_selection_target_p, mac_clear_selection)
22510 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22511 (mac_put_selection_value, mac_selection_has_target_p)
22512 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22513 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22514 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22515 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22516 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22517 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22518 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22519 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22520 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22521
22522 * mactoolbox.c: New file.
22523
22524 2008-04-18 Jason Rumney <jasonr@gnu.org>
22525
22526 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22527
22528 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22529
22530 * character.c (Fmultibyte_char_to_unibyte):
22531 Return latin1 chars unchanged.
22532
22533 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22534 relocated if it points to `name'.
22535
22536 2008-04-17 Kenichi Handa <handa@m17n.org>
22537
22538 * data.c (Faset): Allow setting a multibyte character in an
22539 ASCII-only unibyte string.
22540
22541 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22542
22543 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22544
22545 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22546 done in config.h.
22547
22548 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
22549
22550 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22551 (Fchar_direction): Add usage in the docstring.
22552
22553 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
22554
22555 * keyboard.c (read_key_sequence): Remove always-true checks.
22556
22557 2008-04-14 Jason Rumney <jasonr@gnu.org>
22558
22559 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22560 compatibility struct, for better underline positioning.
22561
22562 2008-04-13 David Hansen <david.hansen@gmx.net>
22563
22564 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22565 string.
22566
22567 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22568
22569 * m/hp800.h (XUINT, XSET): Remove.
22570
22571 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
22572
22573 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22574 previous change.
22575
22576 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22577
22578 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22579 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22580
22581 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22582
22583 * keymap.h (map_keymap_canonical): Declare.
22584 * xmenu.c (single_keymap_panes): Use it.
22585
22586 2008-04-11 Glenn Morris <rgm@gnu.org>
22587
22588 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22589 set the target's value to that of the alias.
22590
22591 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22592
22593 * term.c (set_tty_color_mode): Left over typo.
22594
22595 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
22596
22597 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22598 only after check for file name handler functions. Signal, when
22599 native functionality is not supported.
22600 (syms_of_fileio): Declare it unconditionally.
22601
22602 2008-04-10 Jason Rumney <jasonr@gnu.org>
22603
22604 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22605 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22606
22607 * w32.c (logon_network_drive): Also logon to remote drives that
22608 are mapped to drive letters.
22609
22610 2008-04-10 Glenn Morris <rgm@gnu.org>
22611
22612 * xdisp.c (truncate-partial-width-windows): Doc fix.
22613
22614 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22615
22616 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22617 Move functions to minibuffer.el.
22618 (syms_of_fileio): Don't declare them.
22619
22620 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22621
22622 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22623 (syms_of_minibuf): Remove its initialization.
22624
22625 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22626
22627 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22628
22629 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22630
22631 2008-04-09 Jason Rumney <jasonr@gnu.org>
22632
22633 * makefile.w32-in (distclean): Delete makefile too.
22634 (maintainer-clean): New target.
22635
22636 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22637
22638 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22639 for new font backend and composite cases.
22640
22641 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22642
22643 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22644 Most of the code moved to run_timers.
22645 (do_pending_atimers): Call run_timers.
22646 (run_timers): New function.
22647
22648 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22649 run atimers.
22650
22651 * process.c (wait_reading_process_output): The same as above.
22652
22653 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22654
22655 * minibuf.c (last_exact_completion): Remove variable.
22656 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22657 (complete_and_exit_1, complete_and_exit_2)
22658 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22659 (Fdisplay_completion_list, display_completion_list_1)
22660 (Fminibuffer_completion_help, Fself_insert_and_exit)
22661 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22662 minibuffer.el.
22663 (syms_of_minibuf): Remove corresponding initializations.
22664
22665 * keyboard.c (Qdeactivate_mark): New var.
22666 (command_loop_1): Use it to call `deactivate-mark'.
22667 (syms_of_keyboard): Initialize it.
22668
22669 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22670 to another frame.
22671 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22672 Don't call set_tty_color_mode.
22673 (store_frame_param): Reset previous_frame rather than call
22674 set_tty_color_mode.
22675 * term.c (set_tty_color_mode): Rewrite.
22676 * dispextern.h (set_tty_color_mode): New type.
22677 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22678
22679 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22680
22681 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22682 for generic chars, which do not exist any more in emacs-unicode.
22683
22684 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22685
22686 * coding.c (detect_coding_emacs_mule)
22687 (Ffind_operation_coding_system): Fix typo.
22688
22689 2008-04-08 Jason Rumney <jasonr@gnu.org>
22690
22691 * w32uniscribe.c (SNAME): Extract only symbol name.
22692
22693 * w32font.h (struct w32_metric_cache): New struct.
22694 (w32font_info): Use it.
22695 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22696 (CACHE_BLOCKSIZE): New constants.
22697
22698 * w32font.c (Qja, Qko, Qzh): New symbols.
22699 (syms_of_w32font): Initialise them.
22700 (font_matches_spec): Use them to filter by language.
22701 (recompute_cached_metrics): Remove function.
22702 (compute_metrics, clear_cached_metrics): New functions.
22703 (w32font_encode_char): Use them to manage metric cache.
22704 (w32font_text_extents): Cache metrics for all glyphs on demand.
22705 Delay converting glyph indices to WORD until needed.
22706 (w32font_open_internal): Initialize metric cache to empty.
22707 (registry_to_w32_charset): Charset should always be a symbol.
22708 (fill_in_logfont, list_all_matching_fonts): Family should
22709 always be a symbol.
22710
22711 2008-04-06 Jason Rumney <jasonr@gnu.org>
22712
22713 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22714 Give up if glyph indices not supported. Use uniscribe obtained
22715 ABC widths for individual metrics. Map glyph clusters back to
22716 characters using fClusterStart flag. Return number of glyphs
22717 produced, not chars processed.
22718 (uniscribe_shape): Map char at FROM to current glyph.
22719
22720 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22721
22722 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22723 Use SetMenuItemHierarchicalMenu.
22724
22725 2008-04-05 Jason Rumney <jasonr@gnu.org>
22726
22727 * image.c (pbm_load): Allow color values up to 65535.
22728 Throw an error if max_color_idx is outside the supported range.
22729 Report an error when image size is invalid.
22730 Read two bytes at a time when raw images have max_color_idx above 255.
22731
22732 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22733
22734 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22735 append "CCL: Quitted" when the CCL program is quitted.
22736 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22737
22738 * ccl.h (struct ccl_program): New member quit_silently.
22739
22740 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22741
22742 * search.c (compile_pattern_1): Treat non-nil and non-string of
22743 search-spaces-regexp as nil.
22744
22745 * minibuf.c (Fassoc_string): Tweak docstring.
22746
22747 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22748
22749 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22750 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22751 2008-03-14 to force inode be positive.
22752
22753 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22754 _S_* ones, since we now use our own sys/stat.h.
22755 (stat, fstat): Don't mangle the inode number.
22756 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22757
22758 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22759
22760 * frame.h (struct frame): Give one more bit to `visible' since we use
22761 values larger than 1 to indicate obscured frames on ttys.
22762
22763 * keymap.c (Qkeymap_canonicalize): New var.
22764 (Fmap_keymap_internal): New fun.
22765 (describe_map): Use keymap-canonicalize.
22766
22767 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22768 (Fundo_boundary): Set them.
22769 (syms_of_undo): Initialize them.
22770 (record_point): Use them instead of last_point_position*.
22771 (last_undo_buffer): Change type.
22772
22773 2008-04-04 Jason Rumney <jasonr@gnu.org>
22774
22775 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22776 (recompute_cached_metrics): Don't set ascent and descent per char.
22777
22778 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22779 (uniscribe_check_otf): Add GC protection before consing.
22780 Rearrange loop for counting features.
22781
22782 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22783
22784 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22785 buffer with byte-size of source buffer.
22786
22787 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22788
22789 * callint.c (Fcall_interactively): Handle temporary region even
22790 when shift-select-mode is off.
22791
22792 2008-04-03 Jason Rumney <jasonr@gnu.org>
22793
22794 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22795
22796 2008-04-03 Kenichi Handa <handa@m17n.org>
22797
22798 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22799 (CATEGORY_MASK_UTF_16): Likewise.
22800 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22801 binary file.
22802 (detect_coding): Add null-byte detection for a binary file.
22803 (detect_coding_system): Likewise.
22804
22805 2008-04-03 Jason Rumney <jasonr@gnu.org>
22806
22807 * w32uniscribe.c: New file.
22808
22809 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22810
22811 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22812
22813 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22814 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22815 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22816 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22817 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22818 (Qphonetic): New symbols.
22819 (syms_of_w32font): Initialize them.
22820 (font_supported_scripts): Use them.
22821 (w32font_list_family): List all charsets.
22822 (w32font_text_extents, recompute_cached_metrics): Fix metric
22823 calculations.
22824 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22825 Give opentype fonts their own format.
22826 (font_matches_spec): New arguments backend and logfont.
22827 Handle :otf spec for uniscribe backend.
22828 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22829 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22830
22831 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22832 font backend.
22833 (globals_of_w32fns): Initialize uniscribe font backend.
22834
22835 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22836 dependencies.
22837 (w32uniscribe.$(O)): New file to build.
22838 (FONT_OBJ): Include w32uniscribe.$(O).
22839 (LIBS): Add uniscribe libraries.
22840
22841 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22842
22843 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22844
22845 * callint.c (Vshift_select_mode): New var.
22846 (Finteractive): Document new ^ spec.
22847 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22848 is present.
22849
22850 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22851 (command_loop_1): Avoid running the direct display versions of
22852 forward-char and backward-char if shift-selection may occur.
22853 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22854 shift-translation takes place.
22855
22856 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22857 avoid clobbering by define-minor-mode.
22858
22859 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22860 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22861
22862 * syntax.c (Fforward_word): Add ^ interactive spec.
22863
22864 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22865 (Fscroll_right): Add ^ interactive spec.
22866
22867 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22868
22869 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22870
22871 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22872
22873 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22874
22875 2008-03-31 Juri Linkov <juri@jurta.org>
22876
22877 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22878
22879 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22880
22881 * gtkutil.c (xg_set_geometry): Fix indentation.
22882 (xg_resize_outer_widget): Remove.
22883 (x_wm_size_hint_off): Fix indentation.
22884 (xg_frame_set_char_size): Call flush_and_sync after
22885 gtk_window_resize.
22886 (x_wm_set_size_hint): Pass NULL as geometry window to
22887 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22888 Add menu bar and tool bar height to base height.
22889 (xg_update_frame_menubar, free_frame_menubar)
22890 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22891 (update_frame_tool_bar, free_frame_tool_bar):
22892 Change xg_resize_outer_widget to xg_frame_set_char_size.
22893
22894 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22895
22896 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22897 (Fdbus_call_method): New parameter TIMEOUT.
22898 (dbus-send-signal): Optimize UNGCPRO call.
22899
22900 2008-03-29 Juri Linkov <juri@jurta.org>
22901
22902 * window.c (Fdisplay_buffer): Move call to
22903 Vsplit_window_preferred_function out of conditions that check
22904 if window is eligible for vertical splitting.
22905 When Vsplit_window_preferred_function is non-nil, call it and use
22906 its non-nil return value as window. Otherwise, continue doing
22907 vertical splitting using Fsplit_window with arg horflag=nil.
22908 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22909 default value from `split-window' to nil.
22910
22911 2008-03-29 Juri Linkov <juri@jurta.org>
22912
22913 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22914 for interactive code letters 'b' and 'B'.
22915
22916 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22917
22918 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22919 multibyte string.
22920
22921 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22922
22923 * keyboard.c (pending_funcalls): New var.
22924 (timer_check): Run it.
22925 (syms_of_keyboard): Initialize it.
22926 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22927 (Vdelete_terminal_functions): New vars.
22928 (syms_of_terminal): Initialize them.
22929 (Fdelete_terminal): Run delete-terminal-functions.
22930 * xdisp.c (safe_eval): Rewrite.
22931 (safe_call2): New fun.
22932 * frame.c (Qdelete_frame_functions): New var.
22933 (syms_of_frame): Initialize it.
22934 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22935 * lisp.h (safe_call2, pending_funcalls): Declare.
22936
22937 2008-03-28 Andreas Schwab <schwab@suse.de>
22938
22939 * indent.c (Fmove_to_column): Move declaration before statements.
22940
22941 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22942
22943 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22944 (struct frame): Use bit fields for boolean vars.
22945
22946 * process.c (server_accept_connection): Simplify naming.
22947 (emacs_get_tty_pgrp): Use SDATA.
22948
22949 * coding.c (decode_coding_object): Fix last change.
22950
22951 2008-03-27 Jason Rumney <jasonr@gnu.org>
22952
22953 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22954
22955 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22956
22957 * charset.c (Fdefine_charset_internal): Change the way of
22958 registering charsets in Vcharset_order_list.
22959 (syms_of_charset): Make the charset `eight-bit' supplementary.
22960
22961 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22962
22963 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22964 operations, to avoid having the difference between pointers
22965 overflow.
22966
22967 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22968
22969 * indent.c (check_display_width): New fun.
22970 (scan_for_column): Use it.
22971
22972 * data.c (syms_of_data): Mark most-positive-fixnum and
22973 most-negative-fixnum as constants.
22974
22975 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22976
22977 * indent.c (scan_for_column): Extract from current_column_1.
22978 Merge with the same code from Fmove_to_column.
22979 (current_column_1, Fmove_to_column): Use it.
22980
22981 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22982
22983 * keymap.c (map_keymap_internal): New fun.
22984 (map_keymap): Use it.
22985 (Fmap_keymap_internal): New fun.
22986 (Fmap_keymap): Remove left-out test from before make_save_value.
22987
22988 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22989
22990 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22991 Use XCAR/XCDR.
22992
22993 * process.h (struct Lisp_Process): Remove filter_multibyte.
22994 * process.c (QCfilter_multibyte): Remove.
22995 (setup_process_coding_systems): Don't use filter_multibyte.
22996 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22997 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22998 (Fset_process_filter_multibyte): Change the coding-system to
22999 approximate the previous behavior.
23000 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
23001 coding-system.
23002
23003 * coding.c (decode_coding_object): When not decoding into a buffer,
23004 obey the coding system's preference of (uni|multi)byte.
23005
23006 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
23007
23008 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
23009 every char is changed and has a different byte-length.
23010 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
23011 Fix int -> EMACS_INT.
23012
23013 2008-03-23 David Hansen <david.hansen@gmx.net>
23014
23015 * dbusbind.c (xd_read_message): Remove extra copying of message
23016 strings. Check for NULL `interface' or `member'.
23017
23018 2008-03-22 Eli Zaretskii <eliz@gnu.org>
23019
23020 * w32.c (readdir): If FindFirstFile/FindNextFile return in
23021 cFileName a file name that includes `?' characters, use the 8+3
23022 alias in cAlternateFileName instead.
23023
23024 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
23025
23026 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
23027
23028 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23029
23030 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
23031 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
23032 work on current_buffer only instead (that was already the case
23033 for some of the code anyway).
23034 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
23035 (temp_set_point, temp_set_point_both): Use EMACS_INT.
23036 (SET_PT, SET_PT_BOTH): Adjust.
23037 * intervals.h (set_point, temp_set_point, set_point_both)
23038 (temp_set_point_both): Remove redundant declarations.
23039
23040 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23041
23042 * fileio.c (Finsert_file_contents):
23043 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
23044 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
23045 when buffer != current_buffer anyway.
23046
23047 2008-03-20 Andreas Schwab <schwab@suse.de>
23048
23049 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
23050 as default.
23051
23052 2008-03-19 Jason Rumney <jasonr@gnu.org>
23053
23054 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
23055 (syms_of_w32fns): Initialize them.
23056 (HOURGLASS_ID): New constant.
23057 (x_window_to_frame): Don't check hourglass_window.
23058 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
23059 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
23060 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
23061 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
23062 Only change the cursor if hourglass is not active.
23063 (Fx_create_frame): Initialize frame's current_cursor.
23064 (hourglass_atimer): Remove.
23065 (hourglass_started): New function.
23066 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
23067 (show_hourglass): Adapt to w32, changing argument to frame.
23068
23069 * w32term.h (struct w32_output): Remove hourglass_window.
23070 Add current_cursor.
23071
23072 * eval.c (call_debugger, Fsignal):
23073 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
23074 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
23075 (Fexecute_extended_command, cancel_hourglass_unwind):
23076 * minibuf.c (read_minibuf):
23077 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
23078
23079 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
23080
23081 * window.c (run_funs): New fun.
23082 (run_window_configuration_change_hook): Use it to run the buffer-local
23083 and the global part of the hook.
23084
23085 * xdisp.c (format_mode_line_unwind_data): Add window argument.
23086 (unwind_format_mode_line): Restore selected window.
23087 (x_consider_frame_title, Fformat_mode_line): Set selected window.
23088
23089 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
23090
23091 * editfns.c (Fchar_equal): Check they are valid characters.
23092
23093 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
23094
23095 2008-03-17 Andreas Schwab <schwab@suse.de>
23096
23097 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
23098 against a charset.
23099
23100 * lisp.h (Fbuffer_list): Declare.
23101
23102 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
23103
23104 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
23105 handlebox_widget is != 0.
23106
23107 2008-03-16 Juri Linkov <juri@jurta.org>
23108
23109 * callint.c (Fcall_interactively): For interactive code letters
23110 'b' and 'B' put the buffer list into the list of default "future"
23111 values of the minibuffer.
23112
23113 2008-03-16 Andreas Schwab <schwab@suse.de>
23114
23115 * keyboard.c (read_key_sequence): Fix downcasing of letters with
23116 modifiers.
23117
23118 * regex.c (re_match_2_internal): Correct matching of a charset
23119 against latin-1 characters.
23120
23121 2008-03-16 Kenichi Handa <handa@m17n.org>
23122
23123 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
23124 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
23125 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
23126 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
23127 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
23128 CHAR_STRING_ADVANCE.
23129 (produce_chars): Fix for the case that the source and the
23130 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
23131 instead of CHAR_STRING_ADVANCE.
23132 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
23133 STRING_CHAR_ADVANCE.
23134
23135 2008-03-15 Andreas Schwab <schwab@suse.de>
23136
23137 * regex.c (re_match_2_internal): Correct matching of eight bit
23138 characters in unibyte strings.
23139
23140 2008-03-15 Martin Rudalics <rudalics@gmx.at>
23141
23142 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
23143 at end of range when it coincides with the end of the buffer.
23144
23145 2008-03-14 Eli Zaretskii <eliz@gnu.org>
23146
23147 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
23148
23149 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
23150
23151 2008-03-14 Jason Rumney <jasonr@gnu.org>
23152
23153 * editfns.c (initial_tz): New variable.
23154 (syms_of_editfns): Initialize it.
23155 (Fset_time_zone_rule): Set it when first called.
23156 Use it when TZSTRING is nil.
23157
23158 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
23159 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
23160 (monitor_from_point_fn, get_monitor_info_fn): New globals.
23161 (globals_of_w32fns): Initialize them.
23162 (compute_tip_xy): Use them to position tooltips.
23163
23164 2008-03-14 Glenn Morris <rgm@gnu.org>
23165
23166 * emacs.c (main): Revert previous change.
23167 (standard_args): Revert -internal-script back to -scriptload,
23168 and remove the long-option form.
23169
23170 2008-03-13 Glenn Morris <rgm@gnu.org>
23171
23172 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
23173 Remove option -enable-font-backend.
23174
23175 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
23176
23177 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
23178
23179 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
23180
23181 * xterm.c (x_connection_closed): For GTK: If this is the last
23182 terminal just exit without closing the display.
23183
23184 2008-03-11 Jason Rumney <jasonr@gnu.org>
23185
23186 * w32font.c (w32font_full_name): Use floor to round.
23187
23188 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23189
23190 * sound.c (alsa_configure): Declare vol at beginning of block.
23191
23192 * fontset.c (Ffontset_info): Remove extra semicolon.
23193
23194 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
23195
23196 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
23197 size of resulting string.
23198
23199 2008-03-10 Jason Rumney <jasonr@gnu.org>
23200
23201 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
23202
23203 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23204
23205 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
23206 Don't pretend as if characters with display property haven't been
23207 consumed for string-replacing-string case.
23208
23209 2008-03-08 Kim F. Storm <storm@cua.dk>
23210
23211 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
23212 (get_next_display_element, next_element_from_string)
23213 (next_element_from_ellipsis, next_element_from_buffer): Use it.
23214
23215 2008-03-08 Andreas Schwab <schwab@suse.de>
23216
23217 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
23218
23219 2008-03-06 Jason Rumney <jasonr@gnu.org>
23220
23221 * w32font.c (w32_registry): Take font_type argument. Use ANSI
23222 when charset not specified. Only translate ANSI to unicode when
23223 font_type is truetype.
23224 (w32font_coverage_ok): New function.
23225 (add_font_entity_to_list): Use it to filter unsuitable fonts.
23226
23227 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
23228
23229 * lread.c (Fread_char): Resolve modifiers.
23230 (Fread_char_exclusive): Likewise.
23231
23232 * character.c (char_resolve_modifier_mask): New function.
23233 (char_string): Use char_resolve_modifier_mask.
23234 (Fchar_resolve_modifiers): New function.
23235 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23236 function.
23237
23238 2008-03-04 Jason Rumney <jasonr@gnu.org>
23239
23240 * makefile.w32-in: Always include w32font.c in the build.
23241 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23242
23243 2008-03-04 Andreas Schwab <schwab@suse.de>
23244
23245 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23246 (versionclean): Likewise.
23247
23248 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
23249
23250 * .cvsignore: Add oo.
23251
23252 2008-03-03 Andreas Schwab <schwab@suse.de>
23253
23254 * coding.c (decode_coding_object): Inhibit gap shrinking while
23255 decoding in place.
23256
23257 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23258
23259 * w32term.c: Remove unused include "gnu.h".
23260 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23261
23262 * gnu.h: Rename to ...
23263 * emacs-icon.h: ... this.
23264 * xterm.c: Use emacs-icon.h instead of gnu.h.
23265 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23266
23267 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
23268
23269 * w32font.c: Include math.h.
23270
23271 2008-03-03 Jason Rumney <jasonr@gnu.org>
23272
23273 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23274 Compute options separately.
23275 (w32font_open_internal): Set glyph_idx before caching metrics.
23276
23277 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23278 Define if system headers don't.
23279 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23280 (w32font_encode_char): Don't declare here.
23281
23282 * w32font.c (Quniscribe, QCformat): New symbols.
23283 (syms_of_w32font): Define them.
23284 (w32font_has_char): Indicate uncertainty.
23285 (w32font_encode_char): Encode as glyph point. Make static.
23286 (recompute_cached_metrics): New function.
23287 (w32font_open_internal): Use it. Set font to use glyph points
23288 initially. Set format based on type of font.
23289 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23290 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23291 on it. Set format based on information available here.
23292 (add_font_entity_to_list): Identify backend based on opentype_only.
23293
23294 2008-03-02 Andreas Schwab <schwab@suse.de>
23295
23296 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23297
23298 * coding.c (decode_coding_big5, produce_chars):
23299 Fix typos in last change.
23300
23301 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23302
23303 * gnu.h: New icon.
23304
23305 2008-03-02 Kenichi Handa <handa@m17n.org>
23306
23307 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23308 `dos', don't decode '\r' if that is the last in the source.
23309 (decode_coding_utf_16, decode_coding_emacs_mule)
23310 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23311 (decode_coding_raw_text, decode_coding_charset): Likewise.
23312 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23313
23314 2008-03-01 Jason Rumney <jasonr@gnu.org>
23315
23316 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23317
23318 2008-03-01 Kim F. Storm <storm@cua.dk>
23319
23320 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23321
23322 2008-03-01 Jason Rumney <jasonr@gnu.org>
23323
23324 * w32font.c (w32font_full_name): New function.
23325 (w32font_open_internal): Use it.
23326
23327 2008-03-01 Kim F. Storm <storm@cua.dk>
23328
23329 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23330
23331 2008-03-01 Jason Rumney <jasonr@gnu.org>
23332
23333 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23334
23335 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23336
23337 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23338 xg_frame_resized when the event is for the edit widget.
23339
23340 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
23341
23342 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23343 set_char_size.
23344 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
23345 operations on widgets here. Just set frame size if needed.
23346 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23347 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23348 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23349 the whole frame.
23350 (xg_create_tool_bar): Move attachment of the tool bar to
23351 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23352 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23353
23354 2008-03-01 Jason Rumney <jasonr@gnu.org>
23355
23356 * w32fns.c (w32_msg_pump): Disable debug code.
23357
23358 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23359
23360 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23361
23362 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23363
23364 * xdisp.c (next_overlay_string): Don't set
23365 overlay_strings_at_end_processed_p if we're currently reading from
23366 a display string.
23367
23368 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23369
23370 * xdisp.c (get_overlay_strings_1): Fix typo.
23371
23372 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23373
23374 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23375
23376 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23377
23378 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23379
23380 * xdisp.c (display_mode_element): Cancel the previous change.
23381 (decode_mode_spec): Likewise.
23382 (handle_auto_composed_prop): Don't make composition if it->string
23383 is a string.
23384
23385 2008-02-27 Kim F. Storm <storm@cua.dk>
23386
23387 * lisp.h (GLYPH): Change type from int to struct with separate char
23388 and face_id members.
23389 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23390 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23391 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23392 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23393 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23394 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23395 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23396 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23397 handle new Lisp glyph code encoding, either an integer or a cons.
23398
23399 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23400 (GLYPH_ALIAS): Delete.
23401 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23402 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23403 (GLYPH_FROM_CHAR): Replace macro by ...
23404 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23405
23406 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23407 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23408 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23409 (GLYPH_INVALID_P): New macro.
23410 (spec_glyph_lookup_face): Update prototype.
23411
23412 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23413 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23414 new glyph code encoding.
23415 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23416 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23417
23418 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23419 Adapt to new glyph type and new glyph code encoding.
23420
23421 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23422
23423 * indent.c (current_column, current_column_1, Fmove_to_column)
23424 (compute_motion): Adapt to new glyph code encoding.
23425
23426 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23427
23428 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
23429
23430 * process.c (wait_reading_process_output): Check for window
23431 changes caused by timers.
23432 Suggested by Johan Bockgård.
23433
23434 2008-02-27 Glenn Morris <rgm@gnu.org>
23435
23436 * emacs.c (USAGE1): Add `--disable-font-backend'.
23437
23438 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23439
23440 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23441 is made to the buffer.
23442
23443 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23444
23445 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23446 (face_at_string_position):
23447 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23448 (face_at_string_position):
23449 * xdisp.c (display_string, next_overlay_change):
23450 * buffer.h (overlays_at):
23451 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23452 Update callers.
23453
23454 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
23455
23456 * editfns.c (Fformat): Doc fix.
23457
23458 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
23459
23460 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23461 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23462 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23463
23464 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23465
23466 * buffer.c (Fbuffer_swap_text): New function.
23467 (syms_of_buffer): Defsubr it.
23468
23469 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
23470
23471 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23472
23473 2008-02-25 Jason Rumney <jasonr@gnu.org>
23474
23475 * w32font.c (w32font_draw): Draw one character at a time when padding.
23476
23477 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23478
23479 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23480 Handle a nil arg. Use run_window_configuration_change_hook.
23481 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23482 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23483 Use run_window_configuration_change_hook.
23484
23485 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23486
23487 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23488 1-pixel width.
23489
23490 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23491
23492 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23493 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23494 if the glyph in the font is zero pixel with.
23495
23496 * dispextern.h (struct glyph_string): New member padding_p.
23497
23498 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23499
23500 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23501
23502 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23503
23504 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23505
23506 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23507
23508 2008-02-25 Jason Rumney <jasonr@gnu.org>
23509
23510 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23511
23512 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23513
23514 Allow fine-grained image-cache flushing.
23515 * dispextern.h (struct image): Add `dependencies' field.
23516 (clear_image_caches): Change arg to Lisp_Object.
23517 * image.c (make_image): Initialize `dependencies' field.
23518 (clear_image_cache): Change arg to allow fine-grained flushing.
23519 Perform the flush even if image-cache-eviction-delay is nil.
23520 (clear_image_caches): Change arg to Lisp_Object.
23521 (Fclear_image_cache): Expand meaning of the argument.
23522 (mark_image): Mark `dependencies' field.
23523 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23524 (lface_hash): Use XHASH rather than XFASTINT.
23525 (face_at_buffer_position): Fix int -> EMACS_INT position.
23526 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23527 (select_frame_for_redisplay): Remove code duplication.
23528 (redisplay_internal): Adapt arg to call to clear_image_caches.
23529
23530 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23531
23532 * s/vms4-0.h:
23533 * s/vms4-2.h:
23534 * s/vms4-4.h:
23535 * s/vms5-5.h: Remove, unused.
23536
23537 * s/irix5-2.h:
23538 * s/irix6-0.h:
23539 * s/riscos5.h:
23540 * s/mach-bsd4-3.h:
23541 * m/mips4.h: Remove files for obsolete systems.
23542
23543 * Makefile.in:
23544 * filelock.c:
23545 * unexmips.c:
23546 * m/hp9000s300.h:
23547 * m/iris4d.h:
23548 * s/aix3-1.h:
23549 * s/hpux.h:
23550 * s/msdos.h:
23551 * s/usg5-0.h:
23552 * s/usg5-2-2.h:
23553 * s/usg5-2.h:
23554 * s/usg5-3.h: Remove references to obsolete variables.
23555
23556 * s/irix5-0.h: Remove, move all the contents ...
23557 * s/irix6-5.h: ... here. Simplify.
23558 * config.in: Regenerate.
23559
23560 2008-02-24 Jason Rumney <jasonr@gnu.org>
23561
23562 * w32term.c (x_draw_glyph_string_background): Clear the background
23563 manually when cleartype is in use.
23564 (x_draw_glyph_string_foreground): Draw text transparently when
23565 cleartype is in use.
23566
23567 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23568 a font into it unless we have to.
23569
23570 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23571
23572 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23573 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23574
23575 2008-02-18 Jason Rumney <jasonr@gnu.org>
23576
23577 * w32fns.c (Fw32_shell_execute): Encode parameters.
23578
23579 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23580
23581 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23582
23583 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
23584
23585 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23586
23587 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23588
23589 * xterm.c (x_set_offset): Don't change the gravity if
23590 CHANGE_GRAVITY is -1.
23591
23592 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
23593
23594 * fileio.c (auto_save_error_occurred): New var.
23595 (auto_save_error): Set it.
23596 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23597 error occurred.
23598
23599 2008-02-23 Eli Zaretskii <eliz@gnu.org>
23600
23601 * w32.c (globals_of_w32): Add initializations for
23602 g_b_init_get_sid_sub_authority and
23603 g_b_init_get_sid_sub_authority_count.
23604
23605 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23606
23607 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23608 (font_parse_xlfd): Use them for sanity check.
23609 (Finternal_set_font_style_table): Make sure the table is bijective.
23610
23611 Consolidate the image_cache to the terminal struct.
23612 * termhooks.h (P_): Remove redundant def.
23613 (struct terminal): New field `image_cache'.
23614 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23615 of FRAME_X_IMAGE_CACHE.
23616 * xterm.h (struct x_display_info): Remove image_cache field.
23617 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23618 * w32term.h (struct w32_display_info): Remove image_cache field.
23619 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23620 * macterm.h (struct mac_display_info): Remove image_cache field.
23621 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23622 * xterm.c (x_term_init):
23623 * w32term.c (w32_term_init):
23624 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23625 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23626 Remove declarations.
23627 (clear_image_caches, mark_image_cache): New declarations.
23628 * xfaces.c (clear_face_cache):
23629 * xdisp.c (redisplay_internal): Use clear_image_caches.
23630 * image.c (clear_image_cache): Don't check that a frame is on
23631 a window-system before checking if it shares the same cache.
23632 (clear_image_caches): New function.
23633 (Fclear_image_cache): Use it.
23634 (mark_image): Move from allo.c.
23635 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23636 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23637 (mark_object): Don't call mark_image_cache for frames.
23638 (mark_terminals): Call mark_image_cache.
23639
23640 * lisp.h (Fdelete_terminal): Declare.
23641
23642 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23643 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23644 wrong_type_argument.
23645
23646 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23647
23648 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23649 malayalam.el, and tamil.el. Add sinhala.el.
23650
23651 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23652
23653 * xterm.c (x_connection_closed): Consolidate identical tests.
23654 (x_delete_terminal): Don't crash if called via x_connection_closed.
23655
23656 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23657
23658 * xdisp.c (decode_mode_spec): New arg string.
23659 (display_mode_element): Adjust for the above change.
23660
23661 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23662
23663 * callint.c (Fcall_interactively): Use AREF.
23664
23665 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23668
23669 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23670
23671 * xfns.c (Fx_show_tip): Set string to " " if empty.
23672
23673 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23674
23675 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23676 with Qt.
23677
23678 2008-02-17 Kenichi Handa <handa@m17n.org>
23679
23680 * ftfont.c (ftfont_shape): Return Lispy number.
23681
23682 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23683 for GCs.
23684 (Finternal_set_font_selection_order): Call font_update_sort_order
23685 only when enable_font_backend is set.
23686 (realize_x_face): Set face->font_info to that of default face only
23687 when enable_font_backend is set.
23688
23689 * xdisp.c (handle_composition_prop): Set it->c to the fist
23690 character of the composed region.
23691 (fill_composite_glyph_string): Set base_face->font_info to
23692 s->font_info. Get a face for ascii from base_face->ascii_face.
23693 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23694 with a face already decided.
23695 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23696 non-negative.
23697 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23698 call font_prepare_composition unconditionally.
23699
23700 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23701
23702 * xterm.h (struct x_display_info): New member font.
23703
23704 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23705 (x_set_mouse_face_gc, x_new_font): Likewise.
23706 (x_term_init): Setup display_info->font.
23707 (x_delete_terminal): Free display_info->font.
23708
23709 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23710
23711 * ftxfont.c (ftxfont_default_fid): Delete it.
23712 (ftxfont_open): Set xfont->fid to 0.
23713 (ftxfont_end_for_frame): Clear data specific to the frame and the
23714 font-driver.
23715
23716 * xftfont.c (xftfont_default_fid): Delete it.
23717 (xftfont_open): Set xfont->fid to 0.
23718
23719 * fontset.c (FONTSET_OBJLIST): New macro.
23720 (fontset_find_font): Update font-object list of the fontset.
23721 (free_realized_fontset): New function.
23722 (free_face_fontset): Call free_realized_fontset.
23723 (Ffont_info): Call font_close_object only when enable_font_backend
23724 is set.
23725
23726 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23727 [HAVE_NTGUI]: Include w32term.h.
23728 [MAC_OS]: Include macterm.ch.
23729 (font_otf_ValueRecord): Use make_number.
23730 (font_finish_cache): Fix handling of reference count.
23731 (font_clear_cache): Update num_fonts.
23732 (font_open_entity): Update smallest_char_width and
23733 smallest_font_height of the frame.
23734 (font_close_object): Update num_fonts.
23735 (Fclear_font_cache): Fix finding the target cache data.
23736
23737 2008-02-16 Glenn Morris <rgm@gnu.org>
23738
23739 * fontset.c (Finternal_char_font): Fix compilation warning.
23740
23741 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23742
23743 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23744 instead of char arrays. Enlarge the size of array passed to
23745 get_token_information.
23746
23747 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23748 warnings.
23749
23750 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23751
23752 * .gdbinit: Don't set `args', it breaks gdb --args.
23753
23754 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23755
23756 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23757 within a narrowed buffer.
23758
23759 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23760
23761 * coding.c (decode_coding_object, encode_coding_object):
23762 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23763
23764 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23765
23766 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23767 hardcoding 1.
23768 (detect_coding_system):
23769 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23770 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23771 * insdel.c (insert_from_gap):
23772 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23773 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23774 (string_to_multibyte):
23775 * character.c (chars_in_text, multibyte_chars_in_text):
23776 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23777
23778 * character.h (FETCH_STRING_CHAR_ADVANCE)
23779 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23780 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23781 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23782
23783 * casefiddle.c (casify_region): Only call after-change and composition
23784 functions on the part of the region that was changed.
23785
23786 * keyboard.c (read_avail_input):
23787 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23788
23789 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23790
23791 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23792 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23793
23794 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23795
23796 * w32menu.c (push_submenu_start, push_submenu_end)
23797 (push_left_right_boundary, push_menu_pane, push_menu_item):
23798 * keyboard.c (read_key_sequence): Don't pass args with side effects
23799 to AREF, it fails when compiling with -DENABLE_CHECKING.
23800
23801 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23802
23803 * Makefile.in (${lispsource}international/charprop.el):
23804 Delete this target.
23805
23806 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23807 emacs-unicode-2.
23808
23809 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23810
23811 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23812
23813 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23814
23815 * frame.c (Qnoelisp): New symbol.
23816 (syms_of_frame): Initialize it.
23817 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23818 harmless Elisp code, from a strong `force' from x_connection_closed.
23819 * frame.h (Qnoelisp): Declare.
23820 * xterm.c (x_connection_closed): Pass `noelisp'.
23821
23822 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23823 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23824 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23825 rather than `int' for the type of `type'.
23826
23827 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23828
23829 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23830
23831 * Makefile.in (GNUC): Remove support for gcc-1.x.
23832
23833 2008-02-10 Richard Stallman <rms@gnu.org>
23834
23835 * lisp.h (ASET): Use AREF, not ASLOT.
23836
23837 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23838
23839 * lisp.h (ASET): Check bounds.
23840
23841 2008-02-10 Glenn Morris <rgm@gnu.org>
23842
23843 * buffer.c (mode-name): Doc fix.
23844
23845 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23846
23847 * Makefile.in:
23848 * emacs.c:
23849 * gmalloc.c:
23850 * keyboard.c:
23851 * lisp.h:
23852 * m/ibm370aix.h:
23853 * process.c:
23854 * regex.c:
23855 * s/hpux.h:
23856 * sysdep.c:
23857 * sysselect.h:
23858 * systty.h:
23859 * unexec.c:
23860 * w32term.c:
23861 * xsmfns.c:
23862 * xterm.c: Remove code that deals with obsolete variables.
23863
23864 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23865
23866 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23867 nothing else needs it anymore.
23868
23869 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23870
23871 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23872 instead of unibyte_char_to_multibyte.
23873
23874 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23875
23876 * s/gnu-linux.h: Remove commented out code.
23877
23878 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23879
23880 * Makefile.in: Update what RMS says about using autoconf.
23881 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23882 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23883 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23884 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23885
23886 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23887
23888 * keymap.c (Fkey_description): Move side effect outside of macro call.
23889
23890 * xfaces.c (Finternal_make_lisp_face):
23891 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23892
23893 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23894 (syms_of_fontset): Use ASET.
23895
23896 * fns.c (concat): Move side effect outside of macro call.
23897 (hash_clear): Use ASET.
23898
23899 2008-02-08 Richard Stallman <rms@gnu.org>
23900
23901 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23902 If FORCE, and frame has a surrogate minibuffer for another frame,
23903 delete the other frame first.
23904
23905 2008-02-07 Timo Savola <timo.savola@iki.fi>
23906
23907 * xterm.c (x_detect_focus_change): Handle embed client message.
23908 (handle_one_xevent): Ditto.
23909 (handle_one_xevent): If embedded and we get a button press/release,
23910 request focus.
23911 (xembed_set_info, xembed_send_message): New functions.
23912 (x_make_frame_visible): Call xembed_set_info if embedded.
23913 (x_make_frame_invisible): Call xembed_set_info if embedded.
23914 (x_term_init): Initialize Xatom_XEMBED.
23915 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23916 (x_iconify_frame): Ditto.
23917
23918 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23919 (enum xembed_info, enum xembed_message, enum xembed_focus)
23920 (enum xembed_modifier, enum xembed_accelerator): New.
23921 (xembed_set_info, xembed_send_message): Declare.
23922 (FRAME_X_EMBEDDED_P): New.
23923
23924 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23925 gtk_plug_new.
23926
23927 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23928 window ID of a frame.
23929 (x_window): Reparent frame if embedded.
23930 (Fx_create_frame): Don't set border width if embedded.
23931
23932 * emacs.c (USAGE3): Add --parent-id.
23933 (standard_args): Ditto.
23934
23935 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23936
23937 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23938
23939 2008-02-07 Jim Meyering <meyering@redhat.com>
23940
23941 Use "do...while (0)", not "if (1)...else" in macro definitions.
23942 The latter provokes a warning from gcc about the empty else, when
23943 followed by ";". Also, without that trailing semicolon, it would
23944 silently swallow up any following statement.
23945 * syntax.h (SETUP_SYNTAX_TABLE)
23946 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23947 * buffer.h (DECODE_POSITION): Likewise.
23948 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23949 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23950 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23951 (FETCH_CHAR_ADVANCE): Likewise.
23952 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23953
23954 2008-02-07 Jim Meyering <meyering@redhat.com>
23955
23956 * lread.c [lint]: Don't include <sys/inode.h>.
23957
23958 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23959
23960 * xselect.c (x_handle_dnd_message):
23961 * xmenu.c (digest_single_submenu, xmenu_show):
23962 * xdisp.c (with_echo_area_buffer_unwind_data)
23963 (format_mode_line_unwind_data, unwind_format_mode_line)
23964 (display_menu_bar):
23965 * eval.c (Ffetch_bytecode):
23966 * doc.c (store_function_docstring):
23967 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23968 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23969 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23970
23971 2008-02-07 Kenichi Handa <handa@m17n.org>
23972
23973 * ftxfont.c (ftxfont_open): Don't set
23974 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23975
23976 * ftfont.c (ftfont_open): Fix previous change.
23977
23978 2008-02-06 Jason Rumney <jasonr@gnu.org>
23979
23980 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23981 Use cached metrics for ASCII characters.
23982 (w32font_open_internal): Don't set font's owning_frame.
23983 Cache metrics for ASCII characters.
23984
23985 * w32font.h (struct w32font_info): Add ascii_metrics.
23986 Remove owning_frame.
23987
23988 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23989
23990 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23991 to negative value.
23992
23993 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23994
23995 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23996
23997 * charset.c (syms_of_charset): Set QCtest and Qeq.
23998
23999 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
24000
24001 * process.c (Fstart_process):
24002 * callproc.c (Fcall_process): Handle the case where
24003 Funhandled_file_name_directory returns nil.
24004
24005 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
24006 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
24007 * font.c (check_gstring): Use them and AREF to access the vector before
24008 we know it's really a gstring.
24009 (Ffont_shape_text): Fix typo.
24010 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
24011
24012 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
24013 Declare.
24014
24015 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
24016
24017 2008-02-05 Jason Rumney <jasonr@gnu.org>
24018
24019 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
24020 Set smallest_font_height and smallest_char_width in display info.
24021
24022 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
24023
24024 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
24025
24026 2008-02-05 Miles Bader <miles@gnu.org>
24027
24028 * xfaces.c (get_lface_attributes, merge_named_face)
24029 (lookup_named_face, lookup_derived_face, realize_named_face):
24030 Revert 2008-02-01 change by cyd@stupidchicken.com.
24031
24032 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
24033
24034 * fontset.c (Ffontset_info): Handle the case of inhibitting the
24035 fallback fonts.
24036 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
24037
24038 2008-02-04 Jason Rumney <jasonr@gnu.org>
24039
24040 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
24041 set full_name.
24042 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
24043
24044 2008-02-03 Jason Rumney <jasonr@gnu.org>
24045
24046 * makefile.w32-in (OBJ1): Include font.o here.
24047 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
24048
24049 2008-02-02 Jason Rumney <jasonr@gnu.org>
24050
24051 * makefile.w32-in (temacs): Bump EMHEAP to 21.
24052
24053 2008-02-01 Jason Rumney <jasonr@gnu.org>
24054
24055 * s/cygwin.h: Define VIRT_ADDR_VARIES.
24056
24057 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
24058
24059 2008-02-01 Andreas Schwab <schwab@suse.de>
24060
24061 * Makefile.in (shortlisp, lisp): Update for rename of
24062 ../lisp/language/myanmar.el.
24063
24064 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
24065
24066 * xfaces.c (get_lface_attributes): Delete function.
24067 (merge_named_face, lookup_named_face, lookup_derived_face)
24068 (realize_named_face): Call lface_from_face_name directly, and use
24069 the fact that merge_face_vectors does not alter its FROM argument.
24070
24071 2008-02-01 Jason Rumney <jasonr@gnu.org>
24072
24073 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
24074 input in the default locale. Handle non-Unicode multibyte input.
24075
24076 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24077
24078 * fontset.c (reorder_font_vector): Exclude nil elements from the
24079 font group. Don't try multiple fonts.
24080 (fontset_font): Adjust for the above change.
24081 (Finternal_char_font): Return nil if the found font doesn't
24082 contain the character ch.
24083
24084 * Makefile.in (lisp, shortlisp): Add cham.el.
24085
24086 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24087
24088 * font.h (FONTP): Make it return 1 also for a font-object.
24089
24090 * .gdbinit (xfontset): New function.
24091
24092 * font.c (font_find_for_lface): Check if the character C is
24093 supported or not only for the first font.
24094
24095 * fontset.c (reorder_font_vector): Fix typo.
24096 (fontset_find_font): Don't add a font-spec specifying a script.
24097 Use 0 (not Qt) for the indication of empty font-group. Change the
24098 format of RFONT-DEF. Return Qt if no font in the font-group
24099 support the character.
24100 (fontset_font): Adjust for the above change. If no font was
24101 found the character, remember that.
24102 (face_for_char): Adjust for the change of RFONT-DEF.
24103 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
24104 no font for the target.
24105 (Finternal_char_font): Adjust for the change of RFONT-DEF.
24106
24107 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24108
24109 * font.c (font_load_for_face): Handle the case that the font in
24110 face->lface is a string.
24111
24112 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24113
24114 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
24115
24116 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24117
24118 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
24119 Fix previous change. If the frame is not on a window system,
24120 signal an error.
24121
24122 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24123
24124 * coding.c (decode_coding_object, encode_coding_object):
24125 Adjust marker positions after conversion.
24126
24127 * lisp.h (struct Lisp_Marker): New member need_adjustment.
24128
24129 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24130
24131 * font.c (font_find_for_lface): Fix the handling of the return
24132 value of font_has_char.
24133 (Ffont_shape_text): Fix previous change.
24134
24135 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
24136 (fontset_ref_and_range): Delete it.
24137 (fontset_find_font): Call char_table_ref_and_range instead of
24138 FONTSET_REF_AND_RANGE.
24139 (make_fontset): Don't setup font groups of Latin here.
24140 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
24141 (new_fontset_from_font): Make the specified font the default for
24142 all Latin characters.
24143
24144 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24145
24146 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
24147 is on a window system before accessing the fontset of the frame.
24148
24149 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24150
24151 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
24152
24153 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
24154 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
24155
24156 * font.c (Ffont_shape_text): If the font driver doesn't have a
24157 shaper function, make zero-width glyphs to have at least one-pixel
24158 width. Fix setting of `to' field of glyphs.
24159
24160 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24161
24162 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
24163 glyphs.
24164
24165 * font.h (struct font_driver): Improve docstring of member `shape'.
24166
24167 2008-02-01 Kenichi Handa <handa@m17n.org>
24168
24169 * composite.c (syms_of_composite): Fix docstring of
24170 auto-composition-function.
24171
24172 * font.h (LGLYPH_SIZE): New macro.
24173
24174 * font.c (Ffont_fill_gstring): Stop filling when a character not
24175 supported by the font is found.
24176 (Ffont_shape_text): When a shape callback function returns nil,
24177 try at most two more times with larger gstring.
24178 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
24179
24180 * xdisp.c (handle_auto_composed_prop): Change the argument to
24181 auto-composition-function.
24182
24183 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
24184 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
24185 Lispy glyph and store it in the lgstring.
24186
24187 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
24188
24189 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
24190
24191 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24192
24193 * font.c (Ffont_shape_text): Avoid unnecessary composition.
24194
24195 * fontset.c (Vfont_encoding_charset_alist): New variable.
24196 (syms_of_fontset): DEFVAR it.
24197 (reorder_font_vector, fontset_find_font): Optimize for the case of
24198 no need of reordering.
24199 (face_for_char): Map the charset property by
24200 Vfont_encoding_charset_alist.
24201
24202 2008-02-01 Jason Rumney <jasonr@gnu.org>
24203
24204 * w32font.c (logfonts_match): Don't check adstyle here.
24205 (font_matches_spec): Check here against physical font instead.
24206 (add_font_entity_to_list): Avoid some substitutions.
24207
24208 * font.c (font_parse_fcname): Default weight and slant to normal.
24209 (font_score): Prefer normal fonts if weight or slant unspecified.
24210 (font_score) [WINDOWSNT]: Scale weight difference down to closer
24211 match freetype scores.
24212
24213 2008-02-01 Jason Rumney <jasonr@gnu.org>
24214
24215 * w32font.c (w32font_text_extents): Don't use the frame stored in the
24216 font, as it may have been deleted.
24217 (w32_enumfont_pattern_entity): Map generic family to adstyle using
24218 most common hyphenless variation.
24219 (logfonts_match): Check generic family.
24220 (font_matches_spec): Don't check generic family here.
24221 (fill_in_logfont): Set generic family based on adstyle.
24222
24223 * w32font.h (w32font_get_cache): Update declaration.
24224
24225 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24226
24227 * ftfont.c (ftfont_get_cache): Adjust the argument type.
24228
24229 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24230 If none of the new drivers are available, call font_update_drivers
24231 with the old drivers.
24232
24233 * w32font.c (w32font_get_cache): Adjust the argument type.
24234
24235 * xfont.c (xfont_get_cache): Adjust the argument type.
24236
24237 * font.h (struct font_driver): Change argument type of get_cache.
24238
24239 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24240
24241 * font.c (Ffont_get): Fix arguments to Fassoc.
24242 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24243 (font_clear_cache): New function.
24244 (font_list_entities, font_matching_entity): Use font_get_cache.
24245 (font_update_drivers): Call font_clear_cache when finishing a driver.
24246
24247 * fontset.c (fontset_find_font): Fix previous change.
24248
24249 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24250
24251 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24252 dpyinfo->font_table.
24253 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24254 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24255
24256 * font.c (font_at): Handle the case that the arg C is negative.
24257 Handle the unibyte case.
24258 (Ffont_at): Call font_at with the arg C -1.
24259
24260 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24261 the position here, and call font_at with the arg C -1.
24262 Don't check the range of the existing composition at the point.
24263
24264 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24265
24266 * fontset.c (fontset_add): New args charset_id and family.
24267 Change caller.
24268 (load_font_get_repertory, fontset_find_font): Assume that
24269 font_spec is always a font-spec object.
24270 (Fset_fontset_font): Always store a font-spec object in a fontset.
24271
24272 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24273 instead of get_property_and_range.
24274
24275 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24276
24277 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24278 (xftfont_open): Don't keep locking face.
24279 (xftfont_close): Don't unlock face.
24280 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24281
24282 * fontset.c (fontset_find_font): Don't prefer a font of
24283 supplementary charset.
24284
24285 2008-02-01 Kenichi Handa <handa@m17n.org>
24286
24287 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24288 script, langsys_tag to langsys, new member script.
24289 (OTF_TAG_STR): Terminate by '\0'.
24290 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
24291 listing to the script specified in that property. Fix arg to
24292 OTF_check_features.
24293
24294 2008-02-01 Jason Rumney <jasonr@gnu.org>
24295
24296 * w32font.h: New file.
24297
24298 * w32font.c: Include it.
24299 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24300 (w32font_open): Set owning_frame.
24301 (w32font_text_extents): Use owning_frame.
24302 (struct font_callback_data): Add opentype_only field.
24303 (add_font_entity_to_list): Use it to filter fonts.
24304 Don't check against full name.
24305 (w32font_list_internal): New function.
24306 (w32font_list): Use it.
24307 (w32font_match_internal): New function.
24308 (w32font_match): Use it.
24309 (w32font_open_internal): New function.
24310 (w32font_open): Use it.
24311 (w32font_get_cache, w32font_close, w32font_has_char)
24312 (w32font_encode_char, w32font_text_extents, w32font_draw):
24313 Make non-static.
24314
24315 * makefile.w32-in (w32font.o): Depend on w32font.h.
24316
24317 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24318
24319 * charset.c (Fdefine_charset_internal): Record a supplementary
24320 charset at the tail of Vcharset_order_list.
24321
24322 * font.c (Ffont_shape_text): Fix the return value.
24323
24324 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24325
24326 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24327
24328 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24329
24330 * ftfont.c (struct OpenTypeSpec): New struct.
24331 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24332 (ftfont_get_open_type_spec): New function.
24333 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24334
24335 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24336
24337 2008-02-01 Jason Rumney <jasonr@gnu.org>
24338
24339 * w32font.c (add_font_entity_to_list): Compare only the beginning
24340 of full name.
24341
24342 2008-02-01 Kenichi Handa <handa@m17n.org>
24343
24344 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24345 Never return HANDLED_RECOMPUTE_PROPS.
24346
24347 2008-02-01 Kenichi Handa <handa@m17n.org>
24348
24349 * font.c (font_gstring_produce): Delete it.
24350
24351 * composite.h (COMPOSITION_METHOD):
24352 Handle COMPOSITION_WITH_GLYPH_STRING.
24353
24354 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24355
24356 * xfont.c (Qx): Delete.
24357 (syms_of_xfont): Don't initialize Qx.
24358
24359 * composite.h (enum composition_method):
24360 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24361
24362 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24363
24364 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24365 (choose_face_font): Accept new form of font-spec.
24366
24367 * frame.h (font_driver_list): Declare it unconditionally.
24368 (struct frame): Define members font_driver_list and font_data_list
24369 unconditionally.
24370
24371 * fontset.c: Include "font.h" unconditionally.
24372 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24373 (Fset_fontset_font): Accept a font-spec object.
24374
24375 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24376 PIXEL_SIZE part a wild card.
24377
24378 * dispextern.h (struct glyph_string): Define members clip and
24379 num_clips unconditionally.
24380 (struct face): Define members font_info and extra unconditionally.
24381
24382 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24383 ftfont_info only when HAVE_LIBOTF is defined.
24384
24385 2008-02-01 Andreas Schwab <schwab@suse.de>
24386
24387 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24388 and end.
24389
24390 2008-02-01 Jason Rumney <jasonr@gnu.org>
24391
24392 * w32font.c (w32font_driver): Add new fields.
24393
24394 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24395
24396 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24397 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24398 (LIBES): Add @M17N_FLT_CFLAGS@.
24399
24400 * composite.c (compose_text): Don't treat the new style
24401 composition specially.
24402
24403 * emacs.c (main): Call syms_of_font unconditionally.
24404
24405 * font.h (FONT_ENTITY_NOT_LOADABLE)
24406 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24407 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24408 (struct font_driver): New member shape.
24409 (font_registry_charsets): Extern it.
24410 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24411 (font_otf_capability, font_drive_otf): Delete their externs.
24412
24413 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24414 (font_charset_alist, font_registry_charsets): Move from xfont.c
24415 and rename.
24416 (font_prop_validate_otf): New function.
24417 (font_property_table): Register it for QCotf.
24418 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24419 (font_drive_otf): Delete.
24420 (font_prepare_composition): New arg F. Adjust for the change of
24421 lispy gstring.
24422 (font_find_for_lface): New arg C.
24423 (font_load_for_face): Adjust for the change of font_find_for_lface.
24424 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24425 lispy gstring.
24426 (Ffont_shape_text): New function.
24427 (Fopen_font): If the font size is not given, use 12-pixel.
24428 (Ffont_at): New arg STRING.
24429 (syms_of_font): Initialize font_charset_alist.
24430 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24431 conditionally.
24432
24433 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24434 fonts of the same font-spec. Change the format of RFONT-DEF.
24435 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24436 Adjust for the change of RFONT-DEF.
24437 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24438
24439 * ftfont.h: New file.
24440
24441 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24442 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24443 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24444 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24445 font_otf_capability and font_drive_otf, set ftfont_shape.
24446 (ftfont_list): Adjust for the change of :otf property value.
24447 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24448 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24449 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24450 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24451 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24452 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24453
24454 * w32term.c (x_draw_composite_glyph_string_foreground):
24455 Adjust for the change of lispy gstring.
24456
24457 * xdisp.c (handle_composition_prop): Adjust for the change of
24458 lispy gstring. Call a function for auto-composition with the
24459 third arg it->window.
24460 (fill_composite_glyph_string): Adjust for the change of lispy string.
24461 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24462
24463 * xfaces.c (set_font_frame_param): Adjust for the change of
24464 font_find_for_lface.
24465
24466 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24467 (xfont_registry_charsets): Likewise. Change caller.
24468 (syms_of_xfont): Don't handle x_font_charset_alist.
24469
24470 * xftfont.c: Include "ftfont.h".
24471 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24472 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24473 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24474 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24475 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24476 Set xftfont_driver.shape to xftfont_shape.
24477
24478 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24479 the change of lispy gstring.
24480
24481 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24482
24483 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24484
24485 2008-02-01 Jason Rumney <jasonr@gnu.org>
24486
24487 * w32font.c (w32font_draw): Fill background manually.
24488
24489 2008-02-01 Jason Rumney <jasonr@gnu.org>
24490
24491 * font.c (Qfontp): Remove unused symbol.
24492 (QCantialias): New symbol.
24493 (syms_of_font): Define it.
24494 (font_property_table): Set a validator for QCantialias.
24495
24496 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24497 Define if not already.
24498 (QCfamily): Share with xfaces.c.
24499 (Qstandard, Qsubpixel, Qnatural): New symbols.
24500 (syms_of_w32font): Define them. Don't define QCfamily here.
24501 (w32_antialias_type, lispy_antialias_type): New functions.
24502 (w32_enumfont_pattern_entity): New arg requested_font.
24503 Set antialias parameter if non-default was requested.
24504 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24505
24506 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24507
24508 * lread.c (read1): Undo the previous change.
24509
24510 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24511
24512 * frame.c (Fdelete_frame): Call font_update_drivers only when
24513 USE_FONT_BACKEND is defined.
24514
24515 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24516
24517 * font.h (struct font_bitmap): New member bits_per_pixel.
24518 (struct font_driver): New members start_for_frame and end_for_frame.
24519 (struct font_data_list): New struct.
24520 (font_put_frame_data, font_get_frame_data): Extern them.
24521
24522 * frame.h (struct frame): New member font_data_list.
24523
24524 * font.c (font_update_drivers): Call driver->start_for_frame and
24525 driver->end_for_frame at proper timings.
24526 (font_put_frame_data, font_get_frame_data): New functions.
24527 (Ffont_spec): Add usage in the docstring.
24528
24529 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24530 (Fdelete_frame): Call font_update_drivers.
24531
24532 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24533 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24534 (xftfont_get_xft_draw): New function.
24535 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24536 (xftfont_end_for_frame): New function.
24537 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24538
24539 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24540 Change argument. Cache GCs in the per-frame data.
24541 (struct ftxfont_frame_data): New struct.
24542 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24543 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24544 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24545 (ftxfont_end_for_frame): New function.
24546 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24547
24548 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24549
24550 2008-02-01 Kenichi Handa <handa@m17n.org>
24551
24552 * xselect.c (Vselection_coding_system)
24553 (Vnext_selection_coding_system): Delete them.
24554 (syms_of_xselect): Don't declare selection-coding-system and
24555 next-selection-coding-system. They are declared in select.el.
24556
24557 2008-02-01 Jason Rumney <jasonr@gnu.org>
24558
24559 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24560
24561 * w32fns.c: Include imm.h.
24562 (get_composition_string_fn, get_ime_context_fn): New optional
24563 system functions.
24564 (globals_of_w32fns): Load them from imm32.dll.
24565 (ignore_ime_char): New flag.
24566 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24567 WM_IME_ENDCOMPOSITION messages.
24568
24569 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24570 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24571
24572 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24573
24574 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24575 (READCHAR_REPORT_MULTIBYTE): New macro.
24576 (readchar): New 2nd arg MULTIBYTE.
24577 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24578 Make symbol's name multibyte according to the multibyteness of the
24579 source.
24580
24581 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24582
24583 * xfaces.c (face_for_overlay_string): Call lookup_face with
24584 correct arguments (fix of synching with the trunk).
24585
24586 2008-02-01 Kenichi Handa <handa@m17n.org>
24587
24588 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24589 (font_prop_validate_non_neg, font_prop_validate_spacing):
24590 Delete argument prop_index.
24591 (font_property_table): Change arguments to validater. Change Callers.
24592 (font_lispy_object): Delete.
24593 (font_at): Use font_find_object instead fo font_lispy_object.
24594
24595 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24596
24597 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24598 and file names.
24599
24600 2008-02-01 Jason Rumney <jasonr@gnu.org>
24601
24602 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24603 (font_matches_spec): Remove debug output.
24604 (add_font_entity_to_list): Avoid using substituted fonts.
24605
24606 2008-02-01 Jason Rumney <jasonr@gnu.org>
24607
24608 * doc.c (Fsnarf_documentation):
24609 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24610
24611 2008-02-01 Miles Bader <miles@gnu.org>
24612
24613 * dispextern.h (struct glyph_row): Only define "clip" field if
24614 HAVE_WINDOW_SYSTEM is defined.
24615
24616 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24617
24618 Fix up multi-tty merge.
24619
24620 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24621 and indentation.
24622
24623 * xfaces.c (free_realized_face, clear_face_gcs):
24624 Include font_done_for_face in the input_blocked section, just in case.
24625
24626 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24627 (get_char_face_and_encoding): Undo last change and remove the *other*
24628 duplicate definition (i.e. keep the one that's better scoped and that
24629 includes code for the font-backend).
24630
24631 * terminal.c (create_terminal): Default keyboard_coding to
24632 `no-conversion' and terminal_coding to `undecided'.
24633
24634 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24635
24636 * fontset.c (free_realized_fontsets): Check that the table entry does
24637 contain a fontset before trying to compare it to `base'.
24638
24639 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24640 syms_of_charset, and syms_of_coding earlier because init_window_once
24641 now needs Vcoding_system_hash_table to be setup.
24642
24643 * coding.h (default_buffer_file_coding): Remove.
24644
24645 * coding.c (default_buffer_file_coding): Remove.
24646 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24647 than ->symbol, and use the terminal-local coding system.
24648 (syms_of_coding): Don't setup the coding-systems that are not
24649 terminal-local.
24650 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24651
24652 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24653 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24654
24655 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24656 in chartab.c and were re-added here by mistake.
24657 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24658
24659 * doc.c (Fsnarf_documentation):
24660 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24661 src to etc.
24662
24663 * ChangeLog.10: Add mistakenly removed entry.
24664
24665 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24666
24667 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24668
24669 2008-02-01 Miles Bader <miles@gnu.org>
24670
24671 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24672 Add extra args to FACE_FOR_CHAR.
24673
24674 2008-02-01 Kenichi Handa <handa@m17n.org>
24675
24676 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24677 in sequence.
24678
24679 * chartab.c (map_sub_char_table, map_char_table): If the range
24680 contains just one character, call the function with that character
24681 even if the depth is not 3.
24682
24683 2008-02-01 Jason Rumney <jasonr@gnu.org>
24684
24685 * w32font.c (w32font_text_extents): Calculate metrics for the
24686 whole string.
24687
24688 2008-02-01 Jason Rumney <jasonr@gnu.org>
24689
24690 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24691
24692 2008-02-01 Jason Rumney <jasonr@gnu.org>
24693
24694 * w32term.c (x_set_glyph_string_clipping):
24695 Use get_glyph_string_clip_rects.
24696 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24697 Adjust for the change of struct glyph_string.
24698
24699 * w32font.c (w32font_draw): Do clipping here.
24700
24701 2008-02-01 Kenichi Handa <handa@m17n.org>
24702
24703 * xftfont.c (xftfont_draw): Adjust for the change of struct
24704 glyph_string.
24705
24706 * xterm.c (x_set_glyph_string_clipping):
24707 Use get_glyph_string_clip_rects.
24708 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24709 Adjust for the change of struct glyph_string.
24710
24711 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24712 the resulting clip(s}.
24713 (expose_overlaps): Add arg r. Change callers. Set it to
24714 row->clip temporarily.
24715 (expose_window): Redraw rows overlapping the exposed area.
24716
24717 * dispextern.h (struct glyph_row): New member clip.
24718 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24719 clip_height, new member clip, and num_clips.
24720
24721 2008-02-01 Kenichi Handa <handa@m17n.org>
24722
24723 * data.c (Fchar_or_string_p): Fix docstring.
24724
24725 2008-02-01 Kenichi Handa <handa@m17n.org>
24726
24727 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24728 create a temporary XftDraw object.
24729
24730 2008-02-01 Kenichi Handa <handa@m17n.org>
24731
24732 * font.c (Ffontp): Fix docstring.
24733
24734 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24735 strong evidence of ISO-2022.
24736
24737 2008-02-01 Kenichi Handa <handa@m17n.org>
24738
24739 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24740 SYNTAX_ENTRY_FOLLOW_PARENT.
24741
24742 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24743
24744 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24745 its type.
24746 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24747 Update to the new type of weak_hash_tables and next_weak.
24748
24749 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24750 a plain C pointer to Lisp_Hash_Table.
24751
24752 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24753 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24754 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24755 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24756 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24757 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24758 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24759 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24760 (GC_EQ): Remove since they've been identical to their non-GC_
24761 alter-egos ever since the markbit was eradicated.
24762
24763 * alloc.c:
24764 * buffer.c:
24765 * buffer.h:
24766 * data.c:
24767 * fileio.c:
24768 * filelock.c:
24769 * fns.c:
24770 * frame.h:
24771 * lisp.h:
24772 * macterm.c:
24773 * print.c:
24774 * process.c:
24775 * w32fns.c:
24776 * w32menu.c:
24777 * w32term.c:
24778 * xfns.c:
24779 * xmenu.c:
24780 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24781
24782 2008-02-01 Kenichi Handa <handa@m17n.org>
24783
24784 * chartab.c (map_sub_char_table): Make it work for the top-level
24785 char-table. Fix handling of parent char-table.
24786 (map_char_table): Adjust for the above change.
24787
24788 2008-02-01 Jason Rumney <jasonr@gnu.org>
24789
24790 * w32font.c (Qgdi): Rename from Qw32.
24791
24792 2008-02-01 Jason Rumney <jasonr@gnu.org>
24793
24794 * w32bdf.c (get_quoted_string): Make function static.
24795
24796 2008-02-01 Kenichi Handa <handa@m17n.org>
24797
24798 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24799 bigger ascent and descent than those of the font, use them as
24800 font's ascent and descent.
24801
24802 2008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * Makefile.in (${lispsource}international/charprop.el): Move this
24805 target within "#ifdef HAVE_UNIDATA" and "#endif".
24806
24807 2008-02-01 Kenichi Handa <handa@m17n.org>
24808
24809 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24810 (shortlisp): Add ../lisp/language/tai-viet.el.
24811
24812 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24813
24814 * Makefile.in (${lispsource}international/charprop.el): Depend on
24815 temacs${EXEEXT}.
24816
24817 2008-02-01 Jason Rumney <jasonr@gnu.org>
24818
24819 * w32font.c (w32font_close): Delete the GDI font object.
24820
24821 * w32menu.c: Include character.h.
24822
24823 * w32proc.c: Likewise.
24824
24825 * w32select.c: Likewise.
24826
24827 * makefile.w32-in (w32proc.o): Depend on character.h.
24828
24829 2008-02-01 Jason Rumney <jasonr@gnu.org>
24830
24831 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24832
24833 * w32menu.c (syms_of_w32menu): Likewise.
24834
24835 * w32proc.c (syms_of_ntproc): Likewise.
24836
24837 * w32select.c (syms_of_w32select): Likewise.
24838
24839 * w32term.c (syms_of_w32term): Likewise.
24840
24841 2008-02-01 Jason Rumney <jasonr@gnu.org>
24842
24843 * w32font.c (w32font_draw): Delete brush after using it.
24844
24845 2008-02-01 Jason Rumney <jasonr@gnu.org>
24846
24847 * w32font.c (w32font_open): Don't set font_idx.
24848 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24849 to font settings.
24850 (w32font_draw): Fill background explicitly.
24851
24852 2008-02-01 Jason Rumney <jasonr@gnu.org>
24853
24854 * w32term.c (w32_initialize): Don't call w32font_initialize.
24855
24856 * w32font.c (w32font_info): Remove subranges.
24857 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24858 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24859 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24860 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24861 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24862 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24863 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24864 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24865 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24866 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24867 New symbols.
24868 (font_callback_data): New struct.
24869 (w32font_list, w32font_match): Use it.
24870 (w32font_open): Don't populate subranges.
24871 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24872 (w32font_encode_char): Always return unicode code-point as-is.
24873 (w32font_text_extents): Supply a transformation matrix to
24874 GetGlyphOutline. Never look up by glyph index. Avoid looping
24875 twice. Use unicode version of GetTexExtentPoint32 instead of
24876 glyph index version.
24877 (set_fonts_frame): Remove.
24878 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24879 set frame parameter. Use backward compatible fake foundries.
24880 Save generic family in extra slot under QCfamily. Make width slot
24881 constant. Save QCspacing value. Save list of scripts instead of
24882 binary subranges.
24883 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24884 (add_font_entity_to_list): Use font_callback_data struct.
24885 Filter unwanted fonts.
24886 (add_one_font_entity_to_list): Use font_callback_data struct.
24887 (w32_registry): Default to iso10646_1.
24888 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24889 string font registries. Don't fill in font name if it is a generic
24890 family name, fill family instead. Use spacing, family and script
24891 extra info to fill pitch, family and charset fields.
24892 (list_all_matching_fonts): Use font_callback_data struct.
24893 (unicode_range_for_char): Remove.
24894 (font_supported_scripts): New function.
24895 (w32font_initialize): Remove.
24896 (syms_of_w32font): Update which symbols are defined.
24897
24898 2008-02-01 Jason Rumney <jasonr@gnu.org>
24899
24900 * font.c (font_pixel_size): Reverse assq_no_quit args.
24901
24902 * w32term.h (FONT_WIDTH): Report max width, not average.
24903 (FONT_MAX_WIDTH): Remove.
24904 (FONT_AVG_WIDTH): New macro.
24905
24906 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24907 redefinition of FONT_WIDTH.
24908
24909 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24910 (w32_cache_char_metrics): Use FONT_WIDTH.
24911
24912 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24913
24914 2008-02-01 Jason Rumney <jasonr@gnu.org>
24915
24916 * w32font.c (w32font_open): Make lfHeight negative.
24917
24918 * w32fns.c (x_default_font_parameter): Use new style font name.
24919 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24920
24921 2008-02-01 Jason Rumney <jasonr@gnu.org>
24922
24923 * w32font.c (QCsubranges): New symbol.
24924 (w32font_open, w32font_has_char): Get subranges from subproperty
24925 of extra.
24926 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24927 (syms_of_w32font): Define :subranges symbol.
24928
24929 * font.c (font_put_extra): Expose externally.
24930
24931 * font.h (font_put_extra): Move declaration from font.c.
24932
24933 * font.c (Ffont_get): Use font driver to determine otf capability.
24934 (adjust_anchor): Check if driver defines anchor_point before using.
24935
24936 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24937 (w32font_draw): Use options.
24938 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24939 Fix detection of truetype fonts.
24940 (registry_to_w32_charset): Handle charsets other than iso8859-1
24941 expressed as lisp symbols.
24942 (w32_registry): Express charset as lisp symbol.
24943 (fill_in_logfont): Reverse pixel and point height logic.
24944 Don't set width here. Set quality to default.
24945
24946 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24947 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24948
24949 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24950 Remove redundant loop and allocation.
24951
24952 * makefile.w32-in (font.o, w32font.o): New objects.
24953 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24954 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24955
24956 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24957 STORE_XCHARB a valid l-value.
24958
24959 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24960 calculations for non-Truetype fonts.
24961 (x_draw_glyph_string): Sync with xterm.c.
24962 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24963 Remove redundant code.
24964 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24965
24966 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24967 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24968
24969 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24970 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24971
24972 * w32font.c: New file for w32 font backend.
24973
24974 2008-02-01 Kenichi Handa <handa@m17n.org>
24975
24976 * term.c: Don't include "buffer.h" twice.
24977
24978 2008-02-01 Kenichi Handa <handa@m17n.org>
24979
24980 * character.c (Funibyte_string): New function.
24981 (syms_of_character): Defsubr it.
24982
24983 2008-02-01 Jason Rumney <jasonr@gnu.org>
24984
24985 * w32term.c [USE_FONT_BACKEND]:
24986 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24987 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24988 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24989 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24990 (x_free_frame_resources): Sync with xterm.c.
24991
24992 2008-02-01 Andreas Schwab <schwab@suse.de>
24993
24994 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24995 char-table size.
24996
24997 2008-02-01 Kenichi Handa <handa@m17n.org>
24998
24999 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
25000
25001 2008-02-01 Kenichi Handa <handa@m17n.org>
25002
25003 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
25004 font_otf_gpos, add font_drive_otf.
25005
25006 * fontset.c (fontset_find_font): Pay attention to font size
25007 specified for a font.
25008 (reorder_font_vector): Check contents of font_def.
25009
25010 * font.c (struct otf_list): Delete it.
25011 (otf_list): Make it a lisp variable.
25012 (otf_open): Use lispy otf_list.
25013 (generate_otf_features): Rename from parse_gsub_gpos_spec.
25014 (check_otf_features): New function.
25015 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
25016 New functions.
25017 (font_drive_otf): New function merging font_otf_gsub and
25018 font_otf_gpos.
25019 (font_open_for_lface): New arg spec. Change argument order.
25020 (font_load_for_face): Adjust for the change of font_open_for_lface.
25021 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
25022 Ffont_otf_gpos.
25023 (syms_of_font): Staticpro otf_list. Delete defsubr of
25024 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
25025
25026 * xfaces.c (set_font_frame_param): Adjust for the change of
25027 font_open_for_lface.
25028
25029 * font.h (font_open_for_lface): Adjust prototype.
25030 (struct font_driver): Delete members otf_gsub and otf_gpos, add
25031 member otf_drive.
25032 (font_otf_gsub, font_otf_gpos): Delete externs.
25033 (font_drive_otf): Extern it.
25034
25035 2008-02-01 Kenichi Handa <handa@m17n.org>
25036
25037 * font.c (font_at): If the window W is not on a window system,
25038 return Qnil.
25039
25040 * coding.c (produce_chars, encode_coding): Don't call
25041 insert_from_gap if no characters to produce.
25042
25043 2008-02-01 Kenichi Handa <handa@m17n.org>
25044
25045 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
25046 Fclear_face_cache.
25047
25048 * xfaces.c (face_for_font): Check also face->font==font->font.font.
25049
25050 2008-02-01 Miles Bader <miles@gnu.org>
25051
25052 * emacs.c (main): Change default value of `enable_font_backend' to 1.
25053 Parse "--disable-font-backend" option.
25054 (standard_args): Add "--disable-font-backend" option.
25055
25056 2008-02-01 Kenichi Handa <handa@m17n.org>
25057
25058 * fontset.c (fontset_find_font): New function.
25059 (fontset_font): Use fontset_find_font.
25060 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
25061 Register the specified font for all Latin characters.
25062 (new_fontset_from_font): Register the specified font for all Latin
25063 characters.
25064 (dump_fontset): For a realized fontset, include the base fontset
25065 name in the returned vector.
25066
25067 2008-02-01 Kenichi Handa <handa@m17n.org>
25068
25069 * character.h (CHAR_STRING): Cast C to unsigned on calling
25070 char_string.
25071
25072 * character.c (char_string): Type of arg C changed to unsigned.
25073 Signal an error if C is an invalid character code.
25074
25075 * editfns.c (general_insert_function, Fchar_to_string):
25076 Use CHARACTERP, not INTEGERP.
25077
25078 2008-02-01 Kenichi Handa <handa@m17n.org>
25079
25080 * character.h (MIN_MULTIBYTE_LEADING_CODE)
25081 (MAX_MULTIBYTE_LEADING_CODE): New macros.
25082
25083 * regex.c (analyse_first): Fix for multibyte characters in "case
25084 charset:" and "case categoryspec:".
25085
25086 2008-02-01 Andreas Schwab <schwab@suse.de>
25087
25088 * Makefile.in (LIBES): Move standard libraries to the end.
25089
25090 2008-02-01 Kenichi Handa <handa@m17n.org>
25091
25092 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
25093 nonzero, don't shrink the buffer nextb.
25094
25095 * buffer.h (struct buffer_text): New member inhibit_shrinking.
25096
25097 * coding.c (coding_alloc_by_making_gap): New arg offset.
25098 (alloc_destination): Call coding_alloc_by_making_gap with the arg
25099 offset.
25100 (decode_coding_iso_2022): Update coding->safe_charsets.
25101 (decode_coding_gap): Temporarily set
25102 current_buffer->text->inhibit_shrinking to 1.
25103
25104 2008-02-01 Kenichi Handa <handa@m17n.org>
25105
25106 * xterm.c (x_draw_composite_glyph_string_foreground):
25107 Fix indexing into elements of s->cmp and s->char2b.
25108
25109 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
25110
25111 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
25112
25113 2008-02-01 Kenichi Handa <handa@m17n.org>
25114
25115 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
25116 target_multibyte instead of multibyte.
25117 (re_match_2_internal): Call bcmp_translate with target_multibyte.
25118 (bcmp_translate): Change the argument name from multibyte to
25119 target_multibyte.
25120
25121 2008-02-01 Kenichi Handa <handa@m17n.org>
25122
25123 These changes are to compile a regexp into a pattern that can be
25124 used both for multibyte and unibyte targets.
25125
25126 * Makefile.in (search.o): Depend on charset.h.
25127
25128 * character.c (multibyte_char_to_unibyte_safe): New function.
25129
25130 * search.c: Include "charset.h".
25131 (compile_pattern_1): Delete argument multibyte. Don't set
25132 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
25133 (compile_pattern): Don't compare cp->buf.target_multibyte.
25134 Compare cp->buf.charset_unibyte.
25135 (compile_pattern): Set cp->buf.target_multibyte.
25136
25137 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
25138
25139 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
25140
25141 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
25142 multibyte. Change callers.
25143 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
25144 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
25145 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
25146 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
25147 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
25148 (regex_compile): Make the compiled pattern usable both for
25149 multibyte and unibyte targets.
25150 (analyse_first): Make the fastmap usable both for multibyte and
25151 unibyte targets.
25152 (TRANSLATE_VIA_MULTIBYTE): Delete.
25153 (re_match_2_internal): Pay attention to the case that the
25154 multibyteness of bufp and target may be different.
25155
25156 2008-02-01 Kenichi Handa <handa@m17n.org>
25157
25158 * xdisp.c (x_produce_glyphs): When a font is not found, make the
25159 empty box occupy at least one column width.
25160
25161 2008-02-01 Miles Bader <miles@gnu.org>
25162
25163 * Makefile.in: Remove redundant HAVE_XFT clause.
25164
25165 2008-02-01 Kenichi Handa <handa@m17n.org>
25166
25167 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
25168
25169 2008-02-01 Kenichi Handa <handa@m17n.org>
25170
25171 * fontset.c (Finternal_char_font): Fix for the case of POSITION
25172 being nil.
25173
25174 2008-02-01 Kenichi Handa <handa@m17n.org>
25175
25176 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
25177
25178 2008-02-01 Kenichi Handa <handa@m17n.org>
25179
25180 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
25181
25182 2008-02-01 Kenichi Handa <handa@m17n.org>
25183
25184 * search.c (simple_search): Fix previous change.
25185
25186 2008-02-01 Kenichi Handa <handa@m17n.org>
25187
25188 * xftfont.c (ftfont_font_format): Extern declaration.
25189
25190 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
25191
25192 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
25193 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
25194
25195 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
25196 (ftfont_font_format): Fix previous change.
25197
25198 * font.h (Ffont_xlfd_name): EXFUN it.
25199
25200 * font.c (font_parse_xlfd): Fix the array size of `f'.
25201 (register_font_driver): Use EQ to compare driver->type.
25202
25203 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
25204 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
25205 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
25206
25207 2008-02-01 Kenichi Handa <handa@m17n.org>
25208
25209 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
25210 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
25211
25212 2008-02-01 Kenichi Handa <handa@m17n.org>
25213
25214 * xfont.c (xfont_open): Set font->format.
25215
25216 * xftfont.c (xftfont_open): Set font->format.
25217
25218 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
25219 (ftfont_list): Include FC_FONTFORMAT in FcObject.
25220 (ftfont_open): Set font->format.
25221 (ftfont_font_format): New function.
25222
25223 * font.h (struct font): New member format.
25224
25225 * font.c (Qopentype): New variable.
25226 (syms_of_font): Defsym it.
25227 (Fquery_font): Change the format of the last element of the return
25228 value.
25229
25230 2008-02-01 Kenichi Handa <handa@m17n.org>
25231
25232 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25233 last resort.
25234
25235 2008-02-01 Kenichi Handa <handa@m17n.org>
25236
25237 * coding.c (detect_coding_charset): Fix detection of multi-byte
25238 charset.
25239
25240 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25241
25242 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25243
25244 2008-02-01 Kenichi Handa <handa@m17n.org>
25245
25246 * xdisp.c (get_next_display_element): Set it->face_id for the
25247 first component of a composition.
25248 (x_produce_glyphs): Check if the font is changed or not for composition.
25249
25250 2008-02-01 Kenichi Handa <handa@m17n.org>
25251
25252 * fontset.c (Qlatin): New variable.
25253 (syms_of_fontset): Define it as a lisp symbol.
25254 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25255
25256 2008-02-01 Kenichi Handa <handa@m17n.org>
25257
25258 * font.c (font_unparse_fcname): Pay attention to the case that
25259 some of font property is a null string.
25260
25261 2008-02-01 Kenichi Handa <handa@m17n.org>
25262
25263 * term.c: Include "composite.h".
25264 (encode_terminal_code): Output all components of composition.
25265 Check the size of encode_terminal_src.
25266 (produce_glyphs): For composition, call produce_composite_glyph.
25267 (append_composite_glyph, produce_composite_glyph): New functions.
25268
25269 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25270 is not found, get font_info from the current ascii face.
25271
25272 2008-02-01 Kenichi Handa <handa@m17n.org>
25273
25274 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25275 buffer-file-name to Qnil before calling insert_from_buffer.
25276
25277 * font.c (font_unparse_fcname): Pay attention to the case that
25278 foundry is a null string.
25279
25280 2008-02-01 Kenichi Handa <handa@m17n.org>
25281
25282 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25283
25284 * font.c (Qunicode_sip): New variable.
25285 (syms_of_font): Declare it as a Lisp symbol.
25286
25287 * font.h (Qunicode_sip): Extern it.
25288
25289 2008-02-01 Kenichi Handa <handa@m17n.org>
25290
25291 * composite.c (get_composition_id): Pay attention to TAB component.
25292
25293 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25294 TAB. Adjust for the change of s->char2b which always points to
25295 the first element of allocated memory.
25296
25297 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25298
25299 * xdisp.c (handle_composition_prop): Set it->c to the first
25300 non-TAB component.
25301 (fill_composite_glyph_string): Change argument.
25302 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25303 (x_produce_glyphs): Fix handling of left/right padding.
25304
25305 2008-02-01 Kenichi Handa <handa@m17n.org>
25306
25307 * coding.c (detect_coding_system): Fix for handling off
25308 inhibit_iso_escape_detection. Fix for the case that no coding
25309 system is defined for a specific coding category.
25310
25311 2008-02-01 Kenichi Handa <handa@m17n.org>
25312
25313 * font.c (font_matching_entity): Delete unused local var.
25314
25315 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25316 opening a font.
25317
25318 * fileio.c (Finsert_file_contents): On recovering a file, assume
25319 Unix-like eol.
25320 (choose_write_coding_system): On auto-saving a file, force
25321 Unix-like eol.
25322
25323 * coding.c (setup_coding_system): Fix setting of
25324 coding->common_flags based on eol_type.
25325 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25326 inherit from it.
25327
25328 2008-02-01 Kenichi Handa <handa@m17n.org>
25329
25330 * alloc.c (NSTATICS): Increas to 0x600.
25331
25332 2008-02-01 Kenichi Handa <handa@m17n.org>
25333
25334 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25335 (ftfont_list): Don't check :name property.
25336 (ftfont_match): New function.
25337 (ftfont_pattern_entity): If the pattern doesn't contain
25338 FC_SPACING, don't assume FC_MONO.
25339
25340 * font.h (struct font_driver): New member `match'.
25341 (font_update_drivers): Adjust prototype.
25342
25343 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25344 property of FONT.
25345 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25346 Define them unconditionally.
25347 (font_matching_entity): New function.
25348 (font_open_by_name): Try font_matching_entity if exact match is
25349 not found.
25350 (font_update_drivers): Delete the arg FONT. Return a list of
25351 actually used backends. Don't free faces, font caches here.
25352 Don't store data in frame parameters. Don't call x_set_font.
25353 (Ffont_spec): Store :name property as is.
25354 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25355 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25356 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25357 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25358 Call font->driver->otf_gsub instead of font_otf_gsub.
25359
25360 * frame.c (x_set_font_backend): Do more works that were done in
25361 font_update_drivers before.
25362
25363 * xfont.c (xfont_match): New function.
25364 (xfont_driver): Set xfont_driver.match to xfont_match.
25365 (xfont_draw): Set font in GC if necessary.
25366
25367 * ftxfont.c (ftxfont_match): New function.
25368 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25369
25370 * xftfont.c (xftfont_match): New function.
25371 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25372
25373 2008-02-01 Kenichi Handa <handa@m17n.org>
25374
25375 * font.h (struct font): New member scalable.
25376 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25377 (font_otf_gsub): Adjust prototype.
25378
25379 * font.c (font_otf_capability): Fix handling of the default langsys.
25380 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25381 Check the contents of SPEC.
25382 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25383 (check_gstring): New function.
25384 (REPLACEMENT_CHARACTER): New macro.
25385 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25386 glyph codes of GSTRING.
25387 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25388 (font_prepare_composition): Set cmp->glyph_len.
25389 (font_open_entity): Set font->scalable.
25390 (Ffont_get): Handle :otf property.
25391 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25392 New functions.
25393 (Fquery_font): Use font->font.full_name.
25394 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25395 Sfont_otf_alternates.
25396
25397 * ftfont.c (ftfont_open): Set font->font.full_name and
25398 font->font.name properly. Fix calculation of font->font.height
25399 and font->min_width.
25400
25401 * ftxfont.c (ftxfont_create_gcs): New function.
25402 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25403 (ftxfont_draw_backgrond): Fix filling region.
25404 (ftxfont_default_fid): New function.
25405 (ftxfont_open): Set xfont->fid to the return value of
25406 ftxfont_default_fid.
25407 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25408 (ftxfont_done_face): Free only GCs that are created by
25409 ftxfont_create_gcs.
25410 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25411
25412 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25413 Clip to src->width, etc (not src->clip_XXX).
25414
25415 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25416 FontBackend frame parameter.
25417
25418 2008-02-01 Kenichi Handa <handa@m17n.org>
25419
25420 * font.h (struct font_driver_list): New member `on'.
25421 (Fclear_font_cache): EXFUN it.
25422 (font_update_drivers): Extern it.
25423
25424 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25425 (font_list_entities): Check driver_list->on.
25426 (register_font_driver): Initialize `on' member to 0.
25427 (font_update_drivers): New function.
25428 (Fclear_font_cache): Check driver_list->on.
25429
25430 * frame.h (Qfont_backend): Extern it.
25431 (x_set_font_backend): Extern it.
25432
25433 * frame.c (Qfont_backend): New variable.
25434 (frame_parms): New element for font-backend.
25435 (x_set_font_backend): New function.
25436
25437 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25438 FontBackend frame parameter.
25439 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25440 x_set_font_backend.
25441
25442 * xfont.c (xfont_list): Don't try listing by :name property if the
25443 name is not for XLFD.
25444
25445 2008-02-01 Kenichi Handa <handa@m17n.org>
25446
25447 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25448 (LGLYPH_SET_TO): New macros.
25449 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25450 element of G is vector or not.
25451 (font_at): Extern it.
25452
25453 * font.c: Include window.h.
25454 (font_lispy_object): New function.
25455 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25456 end of valid glyph.
25457 (font_close_object): Fix getting (struct font *).
25458 (font_at): New function.
25459 (Ffont_get): If FONT is a font-object, get entity from it.
25460 (Ffont_make_gstring): Initialize elements of glyphs with nil.
25461 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25462 Fix range check.
25463 (Ffont_at): New function.
25464 (syms_of_font): Defsubr Sfont_at.
25465
25466 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25467 before the entry for Qcomposition.
25468 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25469 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25470 the font in gstring.
25471 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25472 LGLYPH_FORM (g) to detect the end of valid glyph.
25473 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25474 we are composing with gstring.
25475
25476 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25477 Check if adjustment is vector or not.
25478
25479 * Makefile.in (font.o): Make it depends on window.h.
25480
25481 2008-02-01 Kenichi Handa <handa@m17n.org>
25482
25483 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25484 adjustment is vector or not.
25485
25486 2008-02-01 Miles Bader <miles@gnu.org>
25487
25488 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25489
25490 2008-02-01 Kenichi Handa <handa@m17n.org>
25491
25492 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25493 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25494 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25495
25496 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25497 (DEVICE_DELTA): Fix typo.
25498 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25499 LGLYPH format.
25500
25501 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25502 the change of LGLYPH format.
25503
25504 2008-02-01 Kenichi Handa <handa@m17n.org>
25505
25506 * ftfont.c (ftfont_list): Fix typo.
25507 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25508
25509 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25510
25511 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25512
25513 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25514 xftface_info is non-NULL.
25515
25516 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25517
25518 * ftfont.c (ftfont_list): Move misplaced #endif.
25519
25520 2008-02-01 Kenichi Handa <handa@m17n.org>
25521
25522 * ftfont.c (ftfont_list): Pay attention to the case that
25523 FC_CAPABILITY is not defined.
25524
25525 2008-02-01 Kenichi Handa <handa@m17n.org>
25526
25527 * xftfont.c (xftfont_open): Set charset related members to -1.
25528
25529 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25530 QCname.
25531 (ftfont_open): Set charset related members to -1.
25532
25533 * fontset.c (Votf_script_alist): New variable.
25534 (syms_of_fontset): Initialize it.
25535 (fontset_font): Delete unused variable.
25536
25537 * fontset.h (Votf_script_alist): Extern it.
25538
25539 * font.c (font_find_for_lface): Optimize code.
25540
25541 * font.h (font_close_object, font_merge_old_spec): Extern them.
25542
25543 2008-02-01 Kenichi Handa <handa@m17n.org>
25544
25545 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25546 (syms_of_font): Initialize them.
25547 (font_pixel_size): Allow float value in dpi.
25548 (font_prop_validate_type): Delete.
25549 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25550 Change caller.
25551 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25552 (font_prop_validate_extra): Delete.
25553 (font_prop_validate_spacing): New function.
25554 (font_property_table): Add elements for all known properties.
25555 (get_font_prop_index): Rename from check_font_prop_name.
25556 New argument FROM. Change caller.
25557 (font_prop_validate): Validate all known properties.
25558 (font_put_extra): Delete argument force. Change caller.
25559 (font_expand_wildcards): Make it static. Fix the way of shrinking
25560 the possible range.
25561 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25562 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25563 Change caller.
25564 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25565 (font_parse_fcname): Delete argument merge. Fix parsing of point
25566 size. Don't validate properties values here. Change caller.
25567 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25568 (font_open_by_name): Delete unused variable.
25569 (Ffont_spec): Likewise. Validate property values.
25570 (Ffont_match_p): New function.
25571
25572 * font.h (QCscalable): Extern it.
25573 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25574
25575 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25576
25577 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25578 (xfont_list_pattern): New function.
25579 (xfont_list): Use xfont_list_pattern.
25580
25581 2008-02-01 Kenichi Handa <handa@m17n.org>
25582
25583 * font.h (Flist_fonts): EXFUN it.
25584
25585 2008-02-01 Jason Rumney <jasonr@gnu.org>
25586
25587 * w32term.c (w32_initialize): Add back smoothing_type and
25588 smoothing_enabled definitions.
25589
25590 2008-02-01 Kenichi Handa <handa@m17n.org>
25591
25592 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25593 s->face->font on determining underline position.
25594
25595 2008-02-01 Kenichi Handa <handa@m17n.org>
25596
25597 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25598 (font_has_char): Accept font-object too.
25599 (font_find_for_lface): Try at first with a size specified in face.
25600
25601 2008-02-01 Kenichi Handa <handa@m17n.org>
25602
25603 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25604 font_open_by_name.
25605
25606 2008-02-01 Kenichi Handa <handa@m17n.org>
25607
25608 * font.h (QCspacing, QCdpi): Extern them.
25609 (enum font_spacing): New enum.
25610 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25611
25612 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25613 (QCspacing, QCdpi): New variables.
25614 (syms_of_font): Initialize them.
25615 (font_pixel_size): New function.
25616 (font_put_extra): New function.
25617 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25618 in FONT_EXTRA.
25619 (font_parse_fcname): Handle enumerated values (e.g. bold).
25620 Fix handling font size. Add QCname property that contains only
25621 unknown properties.
25622 (font_score): Change argument. Change caller. Pay attention to
25623 FONT_PIXEL_SIZE_QUANTUM.
25624 (font_sort_entites, font_list_entities, font_find_for_lface)
25625 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25626 (Ffont_spec): Add QCname property that contains only unknown properties.
25627
25628 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25629 Don't include weight in listing pattern, instead check weight of each
25630 listed font. Don't include scalable in pattern. Pay attention to
25631 FONT_PIXEL_SIZE_QUANTUM.
25632
25633 2008-02-01 Kenichi Handa <handa@m17n.org>
25634
25635 * font.c (font_parse_fcname): Fix parsing of point-size.
25636 (font_unparse_fcname): Produce symbolic names for style properties.
25637 (font_list_entities): Handle float size correctly.
25638 (font_open_by_name): Prefer `normal' property values if the name
25639 doesn't specify them.
25640
25641 * fontset.c (Finternal_char_font): Use font_get_name, not
25642 Ffont_xlfd_name.
25643
25644 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25645 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25646 pattern. Don't force scalable.
25647
25648 * xftfont.c (xftfont_open): For generating a name, start from
25649 96-byte buffer.
25650
25651 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25652
25653 * frame.h (x_new_fontset2): Fix prototype.
25654
25655 2008-02-01 Kenichi Handa <handa@m17n.org>
25656
25657 * font.h (struct font_driver): Delete member parse_name.
25658 (font_match_p, font_get_spec, font_parse_fcname)
25659 (font_unparse_fcname): Extern them.
25660 (font_get_name): Adjust prototype.
25661
25662 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25663 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25664 (font_expand_wildcards): Fix handling ENCODING field.
25665 Avoid unnecessary checks for weight, slant, and swidth.
25666 (font_parse_fcname): New function.
25667 (font_unparse_fcname): New function.
25668 (font_parse_name): New function.
25669 (font_match_p): New function.
25670 (font_get_name): Change return value to Lisp string.
25671 (font_get_spec): New function.
25672 (Qunspecified, Qignore_defface): Don't extern them.
25673 (font_find_for_lface): Assume that LFACE is fully specified.
25674 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25675 object, use it for FACE.
25676 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25677 driver->parse_name.
25678 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25679
25680 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25681 prototype.
25682
25683 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25684 argument F. Don't call Fnew_fontset. Instead, directly call
25685 make_fontset.
25686
25687 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25688
25689 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25690 of x_new_fontset2.
25691
25692 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25693 (Qsans__serif): New variables.
25694 (ftfont_generic_family_list): New variable.
25695 (syms_of_ftfont): Initialize the above variables.
25696 (ftfont_pattern_entity): Delete argument NAME.
25697 (ftfont_list_generic_family): New function.
25698 (ftfont_parse_name): Delete this function.
25699 (ftfont_list): Try generic family only when FcFontList found no font.
25700 (ftfont_list_family): Fix args to FcObjectSetBuild.
25701
25702 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25703 object in attrs[LFACE_FONT_INDEX].
25704 (set_lface_from_font_name): Cancel all changes for font-backend.
25705 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25706 function.
25707 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25708 font object in QCfont attribute.
25709 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25710 (realize_default_face) [USE_FONT_BACKEND]: Call
25711 set_lface_from_font_and_fontset.
25712
25713 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25714 "fixed", and signal error here if no suitable font was found.
25715
25716 * xfont.c (xfont_parse_name): Delete this function.
25717
25718 * xftfont.c (xftfont_open): Change coding style of error
25719 handling. Generate fontconfig's fontname pattern.
25720
25721 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25722 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25723
25724 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25725 Both args FONTSET and FONT_OBJECT must be existing ones.
25726
25727 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25728
25729 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25730
25731 2008-02-01 Kenichi Handa <handa@m17n.org>
25732
25733 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25734
25735 * font.h (struct font): Fix typo.
25736
25737 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25738 XLFD_XXX_INDEX.
25739 (enum xlfd_field_mask): New enum.
25740 (intern_font_field): Change argument. Change caller. If digits
25741 are followed by non-digits, return a symbol.
25742 (font_expand_wildcards): New function.
25743 (font_parse_xlfd): Fix wildcard handling.
25744 (Ffont_spec): If :name is specified, reflect the info in the other
25745 properties.
25746
25747 * ftfont.c (ftfont_pattern_entity): Fix typo.
25748 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25749 locale.
25750
25751 2008-02-01 Kenichi Handa <handa@m17n.org>
25752
25753 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25754
25755 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25756 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25757 registry doesn't specify encoding part.
25758 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25759 (font_open_by_name): At first try parsing the name.
25760 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25761 as Lisp symbols.
25762
25763 * fontset.c (reorder_font_vector): Pay attention to the case that
25764 the 3rd element of font_def is nil.
25765 (fontset_font): For the default fontset, append one more fontset
25766 elements for a script-based font specification. Don't add script
25767 attribute on finding a font.
25768 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25769 font name.
25770 (fontset_ascii_font): If a font can't be opened, return nil.
25771
25772 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25773 (ftfont_pattern_entity): New function.
25774 (ftfont_get_cache): Assume that freetype_font_cache is already
25775 initialized.
25776 (ftfont_list): Handle the case that a file is specified in font
25777 name. Use ftfont_pattern_entity to generate entities.
25778 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25779 (syms_of_ftfont): Initialize freetype_font_cache.
25780
25781 * xftfont.c (xftfont_open): Make the font name fontconfig's
25782 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25783 (xftfont_close): Free font->font.name if not NULL.
25784
25785 * xfont.c (xfont_list): If script is specified for a font, return
25786 null_vector.
25787 (xfont_list_family): Declare argument type.
25788
25789 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25790 name, set LFACE_FONT (lface) to nil.
25791
25792 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25793 return Qnil.
25794
25795 2008-02-01 Kenichi Handa <handa@m17n.org>
25796
25797 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25798 (standard_args): Add "-enable-font-backend".
25799
25800 2008-02-01 Kenichi Handa <handa@m17n.org>
25801
25802 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25803 (struct xftdraw_list, xftdraw_list): Delete them.
25804 (register_xftdraw, check_xftdraw): Delete them.
25805 (xftfont_prepare_face): Don't call register_xftdraw.
25806 (xftfont_done_face): Don't call check_xftdraw.
25807 (xftfont_draw): Get background color only when with_background is
25808 nonzero.
25809
25810 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25811
25812 2008-02-01 Kenichi Handa <handa@m17n.org>
25813
25814 These changes are for the new font handling codes.
25815
25816 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25817 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25818 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25819 (FONTSRC, FONTOBJ): New variables.
25820 (obj): Add $(FONTOBJ).
25821 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25822 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25823 @LIBOTF_LIBS@.
25824 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25825 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25826
25827 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25828
25829 * character.h (Vscript_representative_chars): Extern it.
25830
25831 * character.c (Vscript_representative_chars): New variable.
25832 (syms_of_character): Declare it as a Lisp variable.
25833
25834 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25835 enable_font_backend is nonzero, accept the composition method
25836 COMPOSITION_WITH_GLYPH_STRING.
25837
25838 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25839 enumeration COMPOSITION_WITH_GLYPH_STRING.
25840
25841 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25842 members clip_x, clip_y, clip_width, and clip_height.
25843 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25844
25845 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25846 --enable-font-backend. Call syms_of_font.
25847
25848 * fns.c (assoc_no_quit): New function.
25849
25850 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25851 (face_for_font, new_fontset_from_font)
25852 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25853
25854 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25855 (fontset_font, fontset_ascii, face_for_char)
25856 (make_fontset_for_ascii_face, Ffont_info)
25857 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25858 is nonzero, use font-backend mechanism.
25859 (find_font_encoding): Make it non-static.
25860 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25861 New functions.
25862
25863 * frame.h (struct frame): New members resx and resy.
25864 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25865 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25866
25867 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25868 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25869
25870 * lisp.h (assoc_no_quit): Extern it.
25871
25872 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25873 Through out the file, use FONT_INFO_FROM_FACE instead of
25874 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25875 rif->per_char_metric.
25876 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25877 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25878 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25879 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25880 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25881 nonzero, use font-backend mechanism.
25882 (get_per_char_metric): New function.
25883
25884 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25885 (set_lface_from_font_name)
25886 (set_font_frame_param, free_realized_face)
25887 (prepare_face_for_display, clear_face_gcs)
25888 (Finternal_set_font_selection_order, realize_x_face)
25889 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25890 font-backend mechanism.
25891 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25892 (load_face_font) [USE_FONT_BACKEND]: Abort.
25893 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25894 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25895
25896 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25897 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25898 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25899 nonzero, register all available font drivers.
25900 Call x_default_font_parameter for deciding a font.
25901 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25902
25903 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25904 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25905 (x_set_glyph_string_clipping_exactly)
25906 (x_compute_glyph_string_overhangs)
25907 (x_draw_glyph_string_foreground)
25908 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25909 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25910 enable_font_backend is nonzero, use font-backend mechanism.
25911 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25912
25913 2008-02-01 Kenichi Handa <handa@m17n.org>
25914
25915 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25916 system_eol_type.
25917 (syms_of_coding): Initialize system_eol_type.
25918
25919 * process.c (Fset_process_coding_system): Inherit system's eol
25920 format if necessary.
25921
25922 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25923
25924 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25925
25926 2008-02-01 Kenichi Handa <handa@m17n.org>
25927
25928 * coding.c (decode_eol): Pay attention to buffer relocation in
25929 del_range_2.
25930 (decode_coding): Call decode_eol before restoring undo_list.
25931
25932 2008-02-01 Kenichi Handa <handa@m17n.org>
25933
25934 * charset.c (Fdefine_charset_internal): Fix setting of
25935 emacs_mule_bytes.
25936
25937 2008-02-01 Kenichi Handa <handa@m17n.org>
25938
25939 * keyboard.c (read_char): Check if C is a character or not before
25940 looking up Vkeyboard_translate_table.
25941
25942 2008-02-01 Kenichi Handa <handa@m17n.org>
25943
25944 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25945 Fix condition to terminate the loop.
25946
25947 2008-02-01 Kenichi Handa <handa@m17n.org>
25948
25949 * coding.c (produce_composition): Compare charbuf[i] instead of
25950 args[i] against 0.
25951 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25952
25953 2008-02-01 Kenichi Handa <handa@m17n.org>
25954
25955 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25956 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25957 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25958 detect_coding.
25959 (emacs_mule_char): Handle old style (Emacs 20) component character
25960 of a composition.
25961 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25962 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25963 composition rule.
25964 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25965
25966 2008-02-01 Kenichi Handa <handa@m17n.org>
25967
25968 * coding.c (encode_coding_ccl): Allocate destination dynamically
25969 when necessary.
25970
25971 2008-02-01 Kenichi Handa <handa@m17n.org>
25972
25973 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25974 the loop. When quitted, show a proper error message.
25975
25976 2008-02-01 Kenichi Handa <handa@m17n.org>
25977
25978 * xterm.c (x_set_glyph_string_clipping_exactly):
25979 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25980
25981 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25982 character sequence.
25983 (Fccl_execute_on_string): Use ASET, not XSET.
25984
25985 2008-02-01 Kenichi Handa <handa@m17n.org>
25986
25987 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25988
25989 2008-02-01 Kenichi Handa <handa@m17n.org>
25990
25991 * coding.c (decode_coding): Fix the condition of terminating the
25992 decoding loop.
25993
25994 2008-02-01 Kenichi Handa <handa@m17n.org>
25995
25996 * data.c (Faset): On setting a character bigger than 255 in a
25997 unibyte string, signal an error instead of make the string multibyte.
25998
25999 2008-02-01 Kenichi Handa <handa@m17n.org>
26000
26001 * charset.c (map_charset_chars): Fix for ascii-compatible charset
26002 made by a mapping table.
26003
26004 2008-02-01 Kenichi Handa <handa@m17n.org>
26005
26006 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
26007 not.
26008 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
26009 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
26010
26011 * xterm.c (x_draw_composite_glyph_string_foreground):
26012 Check s->face is NULL or not.
26013
26014 2008-02-01 Kenichi Handa <handa@m17n.org>
26015
26016 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
26017 (x_draw_glyph_string): Fix drawing of right_overhang and
26018 left_overhang around/on cursor.
26019
26020 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
26021
26022 2008-02-01 Kenichi Handa <handa@m17n.org>
26023
26024 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
26025
26026 2008-02-01 Kenichi Handa <handa@m17n.org>
26027
26028 * coding.c (Fdefine_coding_system_internal)
26029 (Fdefine_coding_system_alias): Avoid a duplicated element in
26030 Vcoding_system_alist.
26031
26032 2008-02-01 Kenichi Handa <handa@m17n.org>
26033
26034 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
26035
26036 * coding.c (Qcoding_system_define_form): New variable.
26037 (syms_of_coding): Intern and staticpro it.
26038 (Fcoding_system_p): Check Qcoding_system_define_form.
26039 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
26040
26041 * coding.h (CODING_SYSTEM_P): If ID is not available, call
26042 Fcoding_system_p.
26043 (CHECK_CODING_SYSTEM): If ID is not available, call
26044 Fcheck_coding_system.
26045 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
26046 Try also Fcheck_coding_system.
26047
26048 2008-02-01 Kenichi Handa <handa@m17n.org>
26049
26050 * coding.c (code_conversion_restore): GCPRO arg.
26051
26052 2008-02-01 Kenichi Handa <handa@m17n.org>
26053
26054 * character.c (lisp_string_width): Check multibyteness of STRING.
26055
26056 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26057
26058 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
26059 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
26060 (decode_mac_font_name): Use decode_coding_c_string instead of
26061 decode_coding.
26062 (x_load_font): Initialize fontp->fontset to -1.
26063 Set fontp->encoding_type.
26064
26065 2008-02-01 Kenichi Handa <handa@m17n.org>
26066
26067 * search.c (search_buffer): Give up BM search on case-fold-search
26068 if one of a target character has a case-equivalence of different
26069 byte length even if that target character is an ASCII.
26070 (simple_search): Fix calculation of byte length of matched text.
26071 (boyer_moore): Fix handling of case-equivalent multibyte characters.
26072
26073 2008-02-01 Kenichi Handa <handa@m17n.org>
26074
26075 * coding.c (decode_coding): Fix handling of invalid bytes.
26076
26077 2008-02-01 Kenichi Handa <handa@m17n.org>
26078
26079 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
26080 Unicode characters.
26081
26082 2008-02-01 Kenichi Handa <handa@m17n.org>
26083
26084 * coding.c (encode_coding_object): If a pre-write-conversion
26085 function makes a new buffer, kill it.
26086
26087 2008-02-01 Kenichi Handa <handa@m17n.org>
26088
26089 * coding.c (QCascii_compatible_p): New variable.
26090 (syms_of_coding): Initialize it.
26091 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
26092 calling string_char.
26093 (record_conversion_result): Add `default:' case.
26094 (coding_charset_list): Delete unused variable `coding_type'.
26095 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
26096 property in the plist of the coding system.
26097 (Fcoding_system_put): Check QCascii_compatible_p.
26098
26099 2008-02-01 Miles Bader <miles@gnu.org>
26100
26101 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
26102 removed calculation of frame `f', as it's now used.
26103
26104 2008-02-01 Kenichi Handa <handa@m17n.org>
26105
26106 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
26107 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
26108 (UNIDATA): New variable.
26109 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
26110 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
26111 Run $(RUN_TEMACS) unconditionally.
26112
26113 2008-02-01 Kenichi Handa <handa@m17n.org>
26114
26115 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
26116 (admindir): New variable.
26117 ($(lispsource)international/charprop.el): New target.
26118
26119 2008-02-01 Miles Bader <miles@gnu.org>
26120
26121 * character.c (chars-in-region): Remove obsolete function.
26122 (syms_of_character): Remove its initialization.
26123
26124 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
26125
26126 * w32select.c (validate_coding_system)
26127 (setup_windows_coding_system): New functions.
26128 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
26129 Use setup_windows_coding_system.
26130 (setup_config, Fw32_get_clipboard_data):
26131 Use validate_coding_system.
26132 (Fx_selection_exists): Move call to setup_config to a place
26133 where signals are allowed.
26134
26135 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
26136 (Fcheck_coding_system): Add declarations.
26137
26138 2008-02-01 Kenichi Handa <handa@m17n.org>
26139
26140 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
26141
26142 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26143
26144 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
26145 string as the second argument for x_new_fontset.
26146
26147 2008-02-01 Kenichi Handa <handa@m17n.org>
26148
26149 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
26150 (encode_coding_object): Use safe_call instead of call2.
26151
26152 2008-02-01 Kenichi Handa <handa@m17n.org>
26153
26154 * fontset.c (Fset_fontset_font): Check family element of a given vector.
26155
26156 * Makefile.in (lisp): Include charprop.el.
26157
26158 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26159
26160 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
26161 Not sure if it's unnecessary.
26162
26163 2008-02-01 Steven Tamm <steventamm@mac.com>
26164
26165 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
26166 some possibly unnecessary fontset checking code that crashed
26167 when creating a new frame.
26168
26169 2008-02-01 Kenichi Handa <handa@m17n.org>
26170
26171 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
26172 lookup_face.
26173
26174 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
26175
26176 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
26177
26178 2008-02-01 Kenichi Handa <handa@m17n.org>
26179
26180 * coding.c: Cancel the change done in HEAD on 2008-02-01.
26181 (coding_charset_list): New function.
26182
26183 * coding.h (coding_charset_list): Extern it.
26184
26185 2008-02-01 Kenichi Handa <handa@m17n.org>
26186
26187 * fontset.c (Fset_fontset_font): Call find_font_encoding with
26188 concatenation of family and registry.
26189
26190 2008-02-01 Kenichi Handa <handa@m17n.org>
26191
26192 * character.h (BYTE8_STRING): Fix typo.
26193
26194 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
26195 string to multibyte (sync to HEAD).
26196
26197 * casefiddle.c (casify_region): Handle changes in byte-length
26198 using replace_range_2 (sync to HEAD).
26199
26200 2008-02-01 Andreas Schwab <schwab@suse.de>
26201
26202 * chartab.c (map_char_table): GCPRO table and arg.
26203
26204 2008-02-01 Kenichi Handa <handa@m17n.org>
26205
26206 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
26207 already at limit.
26208
26209 2008-02-01 Kenichi Handa <handa@m17n.org>
26210
26211 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
26212 instead of fast_c_string_match_ignore_case.
26213 (find_font_encoding): Change argument to Lisp_Object.
26214 Use fast_string_match_ignore_case instead of
26215 fast_c_string_match_ignore_case. Change caller.
26216
26217 2008-02-01 Kenichi Handa <handa@m17n.org>
26218
26219 * xdisp.c (get_next_display_element): In unibyte case, decide to
26220 display in octal form by checking a character by
26221 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
26222
26223 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
26224
26225 * character.c (unibyte_has_multibyte_table): New variable.
26226
26227 * character.h (unibyte_has_multibyte_table): Extern it.
26228 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
26229
26230 2008-02-01 Kenichi Handa <handa@m17n.org>
26231
26232 * coding.c (encode_coding_iso_2022): Fix handling of charset
26233 annotation.
26234
26235 2008-02-01 Kenichi Handa <handa@m17n.org>
26236
26237 * coding.c (setup_coding_system): If coding_system is nil, use
26238 Qundecided.
26239 (Fterminal_coding_system): Return nil if terminal coding system is
26240 `undecided'.
26241 (syms_of_coding): Define coding-system `undecided' here.
26242 Setup terminal_coding as `undecided'.
26243
26244 2008-02-01 Kenichi Handa <handa@m17n.org>
26245
26246 * xdisp.c (message_dolog, set_message_1):
26247 Call unibyte_char_to_multibyte with arg type int.
26248
26249 * lread.c (read1): Fix reading of a char-table.
26250
26251 * print.c (print_object): Include sub char-table in circularities
26252 detection.
26253
26254 2008-02-01 Kenichi Handa <handa@m17n.org>
26255
26256 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26257 Append the found sequences in car of ARGS instead of prepending.
26258
26259 2008-02-01 Kenichi Handa <handa@m17n.org>
26260
26261 * fileio.c (report_file_error): Make a unibyte string from
26262 strerror (errorno).
26263 (Fsubstitute_in_file_name): Fix the arg to
26264 unibyte_char_to_multibyte. It is evaluated twice.
26265
26266 2008-02-01 Kenichi Handa <handa@m17n.org>
26267
26268 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26269
26270 2008-02-01 Kenichi Handa <handa@m17n.org>
26271
26272 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26273 BOM is not found.
26274 (detect_coding, detect_coding_system): Optimization for ISO-2022
26275 when no 8-bit data is found.
26276
26277 2008-02-01 Jason Rumney <jasonr@gnu.org>
26278
26279 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26280
26281 2008-02-01 Kenichi Handa <handa@m17n.org>
26282
26283 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26284 CHARS.
26285
26286 2008-02-01 Steven Tamm <steventamm@mac.com>
26287
26288 * macterm.c (mac_encode_char): Add charset argument and update
26289 to use encoding_type.
26290 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26291 switch to pure fontset.
26292 (decode_mac_font_name): Temporarily remove decoding.
26293 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26294 (x_load_font): Temporarily remove encoding.
26295
26296 2008-02-01 Kenichi Handa <handa@m17n.org>
26297
26298 * xfaces.c (Fface_font): If frame is not on a window system,
26299 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26300 refer to face->font.
26301 (split_font_name_into_vector, build_font_name_from_vector)
26302 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26303 when HAVE_WINDOW_SYSTEM is defined.
26304
26305 2008-02-01 Kenichi Handa <handa@m17n.org>
26306
26307 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26308 (x_produce_glyphs): Fix setting of members of cmp in case
26309 cmp->glyph_len is zero.
26310
26311 * fontset.c (Fset_fontset_font): Fix docstring.
26312 (Ffontset_info): Make it backward compatible. New arg ALL.
26313
26314 2008-02-01 Kim F. Storm <storm@cua.dk>
26315
26316 * process.c (read_process_output): Grow decoding_buf when needed;
26317 this could cause a crash in allocate_string and compact_small_strings.
26318
26319 2008-02-01 Kenichi Handa <handa@m17n.org>
26320
26321 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26322
26323 2008-02-01 Kenichi Handa <handa@m17n.org>
26324
26325 * coding.c (setup_coding_system): Set coding->common_flags
26326 correctly for raw-text.
26327 (consume_chars): On encoding unibyte text by raw-text, don't check
26328 multibyte form.
26329 (encode_coding): On encoding by raw-text, never use translation tables.
26330
26331 * fileio.c (e_write): Short cut for the case of no encoding.
26332
26333 2008-02-01 Kenichi Handa <handa@m17n.org>
26334
26335 * coding.c (detect_coding, detect_coding_system): Delete unused
26336 variables.
26337
26338 2008-02-01 Kenichi Handa <handa@m17n.org>
26339
26340 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26341 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26342
26343 2008-02-01 Kenichi Handa <handa@m17n.org>
26344
26345 * coding.c (Ffind_coding_systems_region_internal):
26346 Include raw-text and no-conversion in the result.
26347
26348 2008-02-01 Kenichi Handa <handa@m17n.org>
26349
26350 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26351 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26352 FONT_DEF.
26353 (font_def_arg, add_arg, from_arg, to_arg): New args.
26354 (set_fontset_font): Change argument.
26355 (Fset_fontset_font): Fix for the case that TARGET is a script
26356 name and charset name.
26357 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26358
26359 2008-02-01 Kenichi Handa <handa@m17n.org>
26360
26361 * fontset.c (fontset_font): Rename from fontset_face. Change return
26362 value.
26363 (face_suitable_for_char_p, face_for_char): Adjust for the change
26364 of fontset_font.
26365 (make_fontset_for_ascii_face): Fix setting of the fontset element
26366 for ASCII.
26367 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26368 to get a font name.
26369 (Ffontset_info): Adjust for the change of fontset_font.
26370
26371 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26372
26373 * character.h (LEADING_CODE_LATIN_1_MIN)
26374 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26375
26376 2008-02-01 Kenichi Handa <handa@m17n.org>
26377
26378 * editfns.c (check_translation): New function.
26379 (Ftranslate_region_internal): Handle M:N mapping.
26380
26381 2008-02-01 Kenichi Handa <handa@m17n.org>
26382
26383 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26384
26385 2008-02-01 Kenichi Handa <handa@m17n.org>
26386
26387 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26388 goto invalid_code.
26389 (decode_coding_iso_2022): Fix handling of invalid designation.
26390
26391 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26392 after calling code_conversion_save.
26393
26394 2008-02-01 Kenichi Handa <handa@m17n.org>
26395
26396 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26397
26398 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26399
26400 * fontset.c: Include "intervals.h".
26401 (fontset_face): Fix comparing of Lisp_Objects.
26402 (free_face_fontset, new_fontset_from_font_name):
26403 Fix Lisp_Object/int mixup.
26404
26405 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26406
26407 * coding.c: Add many prototypes for static functions.
26408 (get_translation_table): Allow max_lookup to be NULL.
26409 (decode_coding, Ffind_coding_systems_region_internal)
26410 (Funencodable_char_position, Fcheck_coding_systems_region):
26411 Call get_translation_table with max_lookup NULL.
26412
26413 2008-02-01 Kenichi Handa <handa@m17n.org>
26414
26415 * coding.c (get_translation_table): Declare it as Lisp_Object.
26416 (LOOKUP_TRANSLATION_TABLE): New macro.
26417 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26418 instead of CHAR_TABLE_REF.
26419
26420 2008-02-01 Kenichi Handa <handa@m17n.org>
26421
26422 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26423 annotation data format.
26424 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26425 Change arguments FROM and TO to single argument NCHARS. Change caller.
26426 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26427 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26428 (decode_coding_ccl, decode_coding_charset): Pay attention to
26429 coding->charbuf_used.
26430 (get_translation): New function.
26431 (produce_chars): New arguments translation_table and last_block.
26432 Translate characters here. Return number of carryover chars.
26433 Change caller.
26434 (produce_composition): New argument pos. Change caller.
26435 Adjust for the change of annotation data format.
26436 (produce_charset, produce_annotation): Likewise.
26437 (decode_coding, encode_coding): Don't call translate_chars.
26438 (consume_chars): New arg translation_table. Change caller.
26439 (translate_chars): Delete.
26440 (syms_of_coding): Make translation-table's number of extra slots 2.
26441
26442 2008-02-01 Kenichi Handa <handa@m17n.org>
26443
26444 * search.c (simple_search): Fix setting this_pos_byte in backward
26445 search.
26446
26447 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26448 byte sequence.
26449 (detect_coding_ccl): Fix setting of the variable valids.
26450
26451 2008-02-01 Kenichi Handa <handa@m17n.org>
26452
26453 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26454
26455 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26456
26457 * editfns.c (Ftranslate_region_internal): Rename from
26458 Ftranslate_region. Accept a char-table in TABLE.
26459 (syms_of_editfns): Defsubr Stranslate_region_internal.
26460
26461 * xfaces.c (set_lface_from_font_name): If a font is specified for
26462 a frame, generate a fontset from the font.
26463 (build_scalable_font_name): If the scalable font is requested for
26464 a specific size, don't change that size.
26465 (try_font_list): Try a scalable font also in the case that a
26466 pattern string is specified.
26467
26468 2008-02-01 Kenichi Handa <handa@m17n.org>
26469
26470 * xfaces.c (Fface_font): New optional arg CHARACTER.
26471
26472 2008-02-01 Kenichi Handa <handa@m17n.org>
26473
26474 * charset.h (CHARSET_OFFSET): New macro.
26475
26476 2008-02-01 Kenichi Handa <handa@m17n.org>
26477
26478 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26479
26480 * fontset.c (fontset_face): Handle the case that repertory is a
26481 char-table.
26482 (find_font_encoding): Return nil for unknown encoding.
26483 (Fset_fontset_font): Ignore a font of unknown encoding.
26484
26485 2008-02-01 Kenichi Handa <handa@m17n.org>
26486
26487 * keymap.c (describe_vector): Handle default value of a char table.
26488
26489 * fontset.c (fontset_face): Handle fallback fonts correctly.
26490 (Ffontset_info): Return infomation about fallback fonts.
26491
26492 2008-02-01 Kenichi Handa <handa@m17n.org>
26493
26494 * fontset.c (FONTSET_DEFAULT): New macro.
26495 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26496 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26497 the case that it is nil.
26498 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26499 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26500
26501 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26502 subset or superset.
26503
26504 2008-02-01 Kenichi Handa <handa@m17n.org>
26505
26506 * emacs.c (main): Call init_charset after syms_of_XXX.
26507
26508 * charset.c (Vcharset_map_directory): Delete.
26509 (Vcharset_map_path): New variable.
26510 (load_charset_map_from_file): Use Vcharset_map_path instead.
26511 (init_charset): Initialize Vcharset_map_path.
26512 (syms_of_charset): Delete declaration of "charset-map-directory",
26513 add declaration of "charset-map-path".
26514
26515 2008-02-01 Kenichi Handa <handa@m17n.org>
26516
26517 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26518 ASCII only string.
26519
26520 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26521
26522 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26523 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26524
26525 2008-02-01 Kenichi Handa <handa@m17n.org>
26526
26527 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26528
26529 * coding.c (QCmnemonic, QCdefalut_char)
26530 (QCdecode_translation_table, QCencode_translation_table)
26531 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26532 (get_translation_table): Return a list of translation tables if
26533 necessary.
26534 (decode_coding): Call get_translation_table with ENCODEP 0.
26535 (char_encodable_p): If translation_table is non-nil, always call
26536 translate_char.
26537 (Fdefine_coding_system_internal): Accept list of translation
26538 tables as :encode-translation-table and :decode-translation-table.
26539 (Fcoding_system_put): New function.
26540 (syms_of_coding): Declare new symbols.
26541 Defsubr Scoding_system_put.
26542 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26543 typically JISX0212.
26544
26545 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26546 when the charset is superset type.
26547
26548 * character.c (translate_char): Accept list of translation tables.
26549
26550 2008-02-01 Kenichi Handa <handa@m17n.org>
26551
26552 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26553 (CODING_ATTR_TRANS_TBL): New macro.
26554
26555 * coding.c (get_translation_table): New function.
26556 (translate_chars): Fix the bug of skipping annotation data.
26557 (decode_coding, encode_coding): Utilize get_translation_table.
26558 (char_encodable_p, Funencodable_char_position): Translate char if
26559 necessary.
26560 (Ffind_coding_systems_region_internal)
26561 (Fcheck_coding_systems_region): Setup translation table for encode
26562 in a coding system attribute vector in advance.
26563 (Fdefine_coding_system_internal): Allow a symbol as translation
26564 table. For shift-jis type coding system, allow 4th charset.
26565
26566 2008-02-01 Kenichi Handa <handa@m17n.org>
26567
26568 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26569
26570 * xdisp.c (get_next_display_element): Pass -1 as POS to
26571 FACE_FOR_CHAR if displaying a C-string.
26572
26573 2008-02-01 Kenichi Handa <handa@m17n.org>
26574
26575 * composite.c (get_composition_id): Handle xoff and yoff in a
26576 composition rule.
26577
26578 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26579 (struct composition): New member lbearing and rbearing.
26580
26581 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26582 (x_get_glyph_overhangs): Handle a composition glyph.
26583 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26584
26585 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26586 composition glyph.
26587
26588 2008-02-01 Kenichi Handa <handa@m17n.org>
26589
26590 * print.c: Include charset.h.
26591 (Vprint_charset_text_property): New variable.
26592 (Qdefault): Extern it.
26593 (PRINT_STRING_NON_CHARSET_FOUND)
26594 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26595 (print_check_string_result): New variable.
26596 (print_check_string_charset_prop): New function.
26597 (print_prune_charset_plist): New variable.
26598 (print_prune_string_charset): New function.
26599 (print_object): Call print_prune_string_charset if
26600 Vprint_charset_text_property is not t.
26601 (print_interval): Print nothing if interval->plist is nil.
26602 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26603 variable. Init and staticpro print_prune_charset_plist.
26604
26605 2008-02-01 Kenichi Handa <handa@m17n.org>
26606
26607 * fontset.c (new_fontset_from_font_name): Use the specified font
26608 for all characters in the new fontset.
26609
26610 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26611 OBJECT args.
26612
26613 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26614 OBJECT args for composition too.
26615
26616 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26617 OBJECT args.
26618
26619 2008-02-01 Kenichi Handa <handa@m17n.org>
26620
26621 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26622
26623 * fontset.c (reorder_font_vector): Adjust for the change of
26624 FONT_DEF format.
26625 (fontset_face): New arg id. Change caller.
26626 (face_for_char): New args pos and object.
26627 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26628 (fs_query_fontset): Check NAME by Fassoc too.
26629 (Fset_fontset_font): Allow non-XLFD font name.
26630 (Ffontset_info): Adjust for the change of FONT_DEF format.
26631
26632 * fontset.h (face_for_char): Adjust prototype.
26633
26634 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26635 (append_space, extend_face_to_end_of_line)
26636 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26637 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26638
26639 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26640 POS and OBJECT args.
26641
26642 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26643 POS and OBJECT args.
26644
26645 2008-02-01 Jason Rumney <jasonr@gnu.org>
26646
26647 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26648 of GlobalAlloc'ed memory.
26649
26650 2008-02-01 Kenichi Handa <handa@m17n.org>
26651
26652 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26653
26654 * charset.h (charset_table_used): Delete extern.
26655
26656 * charset.c (charset_table_used): Make it static.
26657 (map_charset_chars): Fix args to c_function with.
26658
26659 * chartab.c (map_sub_char_table_for_charset): Fix args to
26660 c_function with.
26661
26662 * coding.h (enum coding_result_code):
26663 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26664
26665 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26666 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26667 (Vlast_code_conversion_error): New variables.
26668 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26669 (ONE_MORE_BYTE): Record error if any instead of signaling an
26670 error. If non-ASCII multibyte char is found, return the negative
26671 value of the code. All callers changed to check it.
26672 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26673 (record_conversion_result): New function. Change all codes setting
26674 coding->result to call this function.
26675 (detect_coding_utf_8, decode_coding_utf_8)
26676 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26677 Don't use the local variable incomplete.
26678 (emacs_mule_char): Change the second arg to `const'.
26679 (decode_coding): Fix of flushing out unprocessed data.
26680 (make_conversion_work_buffer): Fix making of a work buffer.
26681 (decode_coding_object): Return coding->dst_object.
26682
26683 * fontset.c (set_fontset_font): Fix args.
26684
26685 * lisp.h (CHARACTERBITS): Define as 22.
26686
26687 * process.c (send_process): Be sure to set coding->src_multibyte.
26688
26689 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26690
26691 2008-02-01 Kenichi Handa <handa@m17n.org>
26692
26693 * xdisp.c (handle_auto_composed_prop): Give limit to
26694 Fnext_single_char_property_change.
26695
26696 2008-02-01 Kenichi Handa <handa@m17n.org>
26697
26698 * composite.c (syms_of_composite): Don't make the composition hash
26699 table weak.
26700
26701 * fontset.c (Fset_fontset_font): Fix docstring.
26702
26703 * lisp.h (detect_coding_system): Adjust prototype.
26704
26705 * fileio.c (kill_workbuf_unwind): Delete this function.
26706 (Finsert_file_contents): Adjust the call of detect_coding_system.
26707 Get conversion_buffer by code_conversion_save. Use the macro
26708 CODING_MAY_REQUIRE_DECODING. After decoding, update
26709 coding_system.
26710
26711 * coding.h (make_conversion_work_buffer): Delete extern.
26712 (code_conversion_save): Extern it.
26713
26714 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26715 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26716 (decode_coding_utf_8): Don't do eol converion.
26717 (detect_coding_utf_16): Check coding->src_chars, not
26718 coding->src_bytes. Add heuristics for those that have no signature.
26719 (decode_coding_emacs_mule, decode_coding_iso_2022)
26720 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26721 Don't do eol converion.
26722 (adjust_coding_eol_type): Return a new coding system.
26723 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26724 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26725 each change.
26726 (decode_coding): Pay attention to undo_list. Do eol conversion for
26727 all types of coding-systems (if necessary).
26728 (Vcode_conversion_work_buf_list): Delete it.
26729 (Vcode_conversion_reused_workbuf): Rename from
26730 Vcode_conversion_reused_work_buf.
26731 (Vcode_conversion_workbuf_name): New variable.
26732 (reused_workbuf_in_use): New variable.
26733 (make_conversion_work_buffer): Delete the arg DEPTH.
26734 (code_conversion_restore): Change argument to cons.
26735 (code_conversion_save): Delete the argument BUFFER. Change callers.
26736 (detect_coding_system): New argument src_chars. Change callers.
26737 Fix for utf-16 detection.
26738 (init_coding_once): Don't use ISO_carriage_return.
26739 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26740 reused_workbuf_in_use.
26741
26742 2008-02-01 Kenichi Handa <handa@m17n.org>
26743
26744 * keymap.c (store_in_keymap): Pay attention to the case that idx
26745 is a cons specifying a character range.
26746
26747 2008-02-01 Kenichi Handa <handa@m17n.org>
26748
26749 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26750 HANDLED_RECOMPUTE_PROPS.
26751
26752 * coding.c (Fdefine_coding_system_internal): Fix checking of
26753 ascii compatibility.
26754
26755 2008-02-01 Kenichi Handa <handa@m17n.org>
26756
26757 * charset.c (find_charsets_in_text): Delete unused locale variable.
26758 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26759
26760 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26761 Resync charset_list to Vemacs_mule_charset_list.
26762
26763 * keymap.c (store_in_keymap): Pay attention to the case that idx
26764 is a cons specifying a character range.
26765
26766 2008-02-01 Kenichi Handa <handa@m17n.org>
26767
26768 * composite.c (update_compositions): Bind inhibit-read-only, etc
26769 to t before calling remove-list-of-text-properties.
26770
26771 * print.c (print_object): Always print ASCII chars as is.
26772
26773 2008-02-01 Kenichi Handa <handa@m17n.org>
26774
26775 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26776
26777 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26778 is a char table.
26779
26780 2008-02-01 Kenichi Handa <handa@m17n.org>
26781
26782 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26783
26784 2008-02-01 Kenichi Handa <handa@m17n.org>
26785
26786 * xfaces.c (set_lface_from_font_name): Fix for the case that
26787 FONTNAME is not fontset name.
26788
26789 2008-02-01 Kenichi Handa <handa@m17n.org>
26790
26791 * fns.c (base64_encode_1): Fix previous change.
26792
26793 2008-02-01 Kenichi Handa <handa@m17n.org>
26794
26795 * fontset.c (set_fontset_font): New function.
26796 (Fset_fontset_font): If a font is specified for a charset, use
26797 map_charset_chars to store the font spec in a fontset.
26798
26799 2008-02-01 Kenichi Handa <handa@m17n.org>
26800
26801 * fontset.c (fontset_face): Create a fallback fontset on demand.
26802 (make_fontset): Don't create a fallback fontset here.
26803 (free_face_fontset): Free a fallback fontset (if any) too.
26804 (n_auto_fontsets): Delete this variable.
26805 (auto_fontset_alist): New variable.
26806 (new_fontset_from_font_name): Check auto_fontset_alist.
26807 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26808 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26809 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26810 Defsubr Sfontset_list_all.
26811
26812 2008-02-01 Kenichi Handa <handa@m17n.org>
26813
26814 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26815
26816 2008-02-01 Kenichi Handa <handa@m17n.org>
26817
26818 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26819
26820 2008-02-01 Kenichi Handa <handa@m17n.org>
26821
26822 * editfns.c (Fgoto_char): Fix docstring.
26823
26824 2008-02-01 Kenichi Handa <handa@m17n.org>
26825
26826 * insdel.c (insert_from_gap): Adjust intervals correctly.
26827
26828 2008-02-01 Jason Rumney <jasonr@gnu.org>
26829
26830 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26831 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26832 (w32_initialize): Try to load it.
26833 (x_get_font_repertory): Use it if available.
26834 (w32_encode_char): Add shortcut for unicode output.
26835
26836 * w32fns.c (w32_load_system_font): Default charset to -1.
26837 (x_to_w32_charset): Match all fonts for unicode.
26838 (w32_to_x_charset): New parameter matching. Don't return partial
26839 or wildcard charsets.
26840 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26841 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26842 (w32_to_x_font): Match charset to real charset.
26843 (enum_font_cb2): Always list unicode versions.
26844
26845 * makefile.w32-in (temacs): Increase EMHEAP.
26846
26847 2008-02-01 Jason Rumney <jasonr@gnu.org>
26848
26849 * w32term.c (w32_encode_char): New charset parameter.
26850 font_info.encoding becomes encoding_type.
26851 (x_get_font_repertory): New function. Warning: stub only!
26852 (x_new_font): Return quickly if font already set.
26853 (x_new_fontset): fontsetname parameter is Lisp_Object.
26854 Use new fs_query_fontset. Try new_fontset_from_font_name.
26855 Use fontset_name for return value.
26856
26857 * w32term.h: Declare x_get_font_repertory.
26858
26859 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26860 place of find_charset_in_text. Use encode_coding_object in place
26861 of encode_coding.
26862 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26863 decode_coding.
26864
26865 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26866 of x_new_fontset.
26867 (w32_load_system_font): Initialize charset as unicode.
26868 font_info.encoding becomes encoding_type.
26869 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26870 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26871 (syms_of_w32fns): Set get_font_repertory_func.
26872
26873 * w32console.c: Include character.h. Use terminal_encode_buffer
26874 from term.c.
26875 (write_glyphs): Use new version of encode_terminal_code.
26876 Use encode_coding_object in place of encode_coding.
26877
26878 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26879 encoding becomes encoding_type.
26880
26881 * term.c (terminal_encode_buffer): Make externally visible.
26882
26883 * makefile.w32-in: Add character.h dependancies.
26884 (character.o, chartab.o): New targets.
26885
26886 2008-02-01 Kenichi Handa <handa@m17n.org>
26887
26888 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26889 CODING_ID_EOL_TYPE.
26890
26891 2008-02-01 Andreas Schwab <schwab@suse.de>
26892
26893 * coding.c (produce_chars): Revert last change.
26894
26895 2008-02-01 Kenichi Handa <handa@m17n.org>
26896
26897 * charset.h (charset_unicode): Extern it.
26898
26899 * charset.c (string_xstring_p): Check by (C >= 0x100).
26900 (find_charsets_in_text): Change format of the arc CHARSETS.
26901 New arg MULTIBYTE.
26902 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26903 change of find_charsets_in_text.
26904 (Fsplit_char): Fix doc. Never return unknown.
26905
26906 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26907
26908 * coding.c (Fdefine_coding_system_alias):
26909 Update Vcoding_system_list.
26910
26911 * fontset.c (load_font_get_repertory): Pay attention to the case
26912 that ENCODING of a font is specified by a char-table.
26913
26914 * xterm.c (x_get_font_repertory): Handle the case that the
26915 encoding of font is other than Unicode.
26916
26917 2008-02-01 Kenichi Handa <handa@m17n.org>
26918
26919 * term.c (encode_terminal_code): Don't handle glyph-table.
26920 Check if a character is encodable by the terminal coding system.
26921 If not, produces proper number of `?'s. Update
26922 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26923 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26924
26925 2008-02-01 Kenichi Handa <handa@m17n.org>
26926
26927 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26928 New variables.
26929 (encode_terminal_code): Change argument. Encode multiple
26930 characters at once. Store the result of encoding in
26931 terminal_encode_buffer.
26932 (write_glyphs, insert_glyphs): Adjust for the change of
26933 encode_terminal_code.
26934 (term_init): Initialize terminal_encode_buffer and
26935 terminal_encode_buf_size.
26936
26937 * coding.c (consume_chars): If coding->src_object is nil, don't
26938 check annotation.
26939
26940 2008-02-01 Kenichi Handa <handa@m17n.org>
26941
26942 * character.c (char_string): Use ASCII_CHAR_P instead of
26943 SINGLE_BYTE_CHAR_P.
26944
26945 2008-02-01 Kenichi Handa <handa@m17n.org>
26946
26947 * xdisp.c (handle_auto_composed_prop): Check if the last
26948 characters of auto-composed region is newly composed with the
26949 following characters.
26950 (handle_composition_prop): Fix checking of point being inside
26951 composition.
26952
26953 2008-02-01 Kenichi Handa <handa@m17n.org>
26954
26955 * fns.c (concat): Don't change multibyteness of the result by
26956 concatenating an 8-bit character.
26957
26958 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26959 multibyteness of the result when newelt is an 8-bit character.
26960
26961 2008-02-01 Dave Love <fx@gnu.org>
26962
26963 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26964 EMACS_INT.
26965
26966 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26967
26968 * xfaces.c (face_numeric_value): Declare dim size_t.
26969 (Finternal_lisp_face_equal_p): Remove unused f.
26970
26971 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26972 (MATRIX_ROW): Remove unused vars.
26973 (draw_glyphs, x_insert_glyphs, fast_find_position)
26974 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26975 byte/char counts.
26976
26977 * regex.c (regex_compile): Remove unused var.
26978
26979 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26980
26981 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26982 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26983
26984 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26985
26986 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26987
26988 * fileio.c (Fwrite_region): Remove unused var.
26989
26990 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26991 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26992
26993 * composite.c (Fremove_list_of_text_properties): Declare.
26994
26995 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26996 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26997 (coding_inherit_eol_type): Remove unused attrs.
26998 (detect_coding): Cast arg of detect_eol.
26999
27000 * charset.c (syms_of_charset): Remove unused var p.
27001 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
27002 byte/char counts.
27003
27004 * casetab.c (set_case_table): Remove unused var.
27005
27006 * window.c (Fdisplay_buffer, Fframe_selected_window):
27007 Remove unused vars.
27008
27009 2008-02-01 Dave Love <fx@gnu.org>
27010
27011 * xterm.c (x_bitmap_mask): Declare.
27012
27013 2008-02-01 Dave Love <fx@gnu.org>
27014
27015 * xterm.c (x_term_init): Fix type error.
27016
27017 * lisp.h: Add Funibyte_char_to_multibyte.
27018
27019 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
27020 (Fset_coding_system_priority): Doc fix.
27021
27022 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
27023
27024 * indent.c (check_composition): Make start and end EMACS_INT.
27025
27026 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
27027
27028 * xdisp.c (handle_composition_prop, check_point_in_composition):
27029 Make buffer positions EMACS_INT.
27030
27031 * composite.c (find_composition, run_composition_function)
27032 (update_compositions, Ffind_composition_internal): Make buffer
27033 positions EMACS_INT.
27034
27035 * composite.h (find_composition, update_compositions):
27036 Make position args EMACS_INT.
27037
27038 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
27039
27040 * intervals.c (get_property_and_range):
27041 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
27042
27043 * unexalpha.c: Don't include varargs.h.
27044
27045 2008-02-01 Dave Love <fx@gnu.org>
27046
27047 * coding.h (ENCODE_UTF_8): New.
27048
27049 * Makefile.in (gtkutil.o): Depend on coding.h.
27050
27051 * coding.c (Fset_coding_system_priority): Doc fix.
27052
27053 2008-02-01 Kenichi Handa <handa@m17n.org>
27054
27055 * fileio.c (Finsert_file_contents): Call setup_coding_system in
27056 the case of auto saving.
27057
27058 2008-02-01 Andreas Schwab <schwab@suse.de>
27059
27060 * chartab.c (map_char_table, map_char_table_for_charset):
27061 Protect `range' from GC.
27062
27063 2008-02-01 Kenichi Handa <handa@m17n.org>
27064
27065 * coding.c (decode_coding_sjis): Check bytes more rigidly.
27066
27067 2008-02-01 Kenichi Handa <handa@m17n.org>
27068
27069 * fileio.c (choose_write_coding_system): Return a decided coding system.
27070 (Fwrite_region): Set Vlast_coding_system_used to the return value
27071 of choose_write_coding_system.
27072
27073 2008-02-01 Kenichi Handa <handa@m17n.org>
27074
27075 * charset.c (Fset_charset_priority): Pay attention to duplicated
27076 arguments.
27077
27078 * coding.c (QCcategory): New variable.
27079 (syms_of_coding): Defsym it. Set all elements of
27080 Vcoding_category_table and their symbol values.
27081 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
27082 coding-category-XXX, and coding-category-list.
27083 (Fdefine_coding_system_internal): Add category in the plist.
27084
27085 2008-02-01 Kenichi Handa <handa@m17n.org>
27086
27087 * callproc.c (Fcall_process): Handle carryover correctly.
27088
27089 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
27090 (raw_text_coding_system): Check NILP (coding_system).
27091 (coding_inherit_eol_type): Check NILP (coding_system) and
27092 NILP (parent).
27093 (consume_chars): Fix for the case of raw-text.
27094
27095 * process.c (read_process_output): Handle carryover correctly.
27096
27097 2008-02-01 Dave Love <fx@gnu.org>
27098
27099 * regex.c (re_search_2): Fix last change.
27100
27101 2008-02-01 Kenichi Handa <handa@m17n.org>
27102
27103 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
27104 target_multibyte. Even in a unibyte case, return a converted
27105 multibyte char.
27106 (GET_CHAR_AFTER): New macro.
27107 (PATFETCH): Translate via multibyte char.
27108 (HANDLE_UNIBYTE_RANGE): Delete this macro.
27109 (SETUP_MULTIBYTE_RANGE): New macro.
27110 (regex_compile): Setup compiled code so that its multibyteness
27111 matches that of a target. Fix the handling of "[X-YZ]" using
27112 SETUP_MULTIBYTE_RANGE.
27113 (analyse_first) <charset>: For filling fastmap for all multibyte
27114 characters, don't check by BASE_LEADING_CODE_P.
27115 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
27116 the same as RE_MULTIBYTE_P (bufp) now.
27117 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
27118 (TARGET_CHAR_AND_LENGTH): Delete this macro.
27119 (TRANSLATE_VIA_MULTIBYTE): New macro.
27120 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
27121 It is the same as RE_MULTIBYTE_P (bufp) now.
27122 <exactn>: Translate via multibyte.
27123 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
27124 Don't translate it.
27125 <charset, charset_not>: Fetch a character by
27126 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
27127 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
27128 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
27129 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
27130 by GET_CHAR_AFTER.
27131 (bcmp_translate): Likewise.
27132
27133 * search.c (compile_pattern): Check the member target_multibyte,
27134 not the member multibyte of buf.
27135
27136 * lread.c (read1): While reading a string, set force_singlebyte
27137 and force_multibyte correctly.
27138
27139 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
27140 up of unibyte_to_multibyte_table.
27141
27142 2008-02-01 Kenichi Handa <handa@m17n.org>
27143
27144 * coding.c (setup_coding_system): If coding has
27145 post-read-conversion or pre-write-conversion, set
27146 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
27147 respectively.
27148 (decode_coding_gap): Run post-read-conversion if any.
27149
27150 * fileio.c (Finsert_file_contents): Even if we read into a
27151 unibyte buffer, check if we must decode the result or not.
27152
27153 2008-02-01 Kenichi Handa <handa@m17n.org>
27154
27155 * coding.c (make_conversion_work_buffer): Change the work buffer
27156 name to the same one as that of Emacs 21.
27157
27158 2008-02-01 Kenichi Handa <handa@m17n.org>
27159
27160 * coding.h (make_conversion_work_buffer): Adjust prototype.
27161 (code_conversion_restore): Don't extern it.
27162
27163 * coding.c (detected_mask): Delete unused variable.
27164 (decode_coding_iso_2022): Pay attention to the byte sequence of
27165 CTEXT extended segment, and retain those bytes as is.
27166 (decode_coding_ccl): Delete unused variable `valids'.
27167 (setup_coding_system): Delete unused variable `category'.
27168 (consume_chars): Delete unused variable `category'. Make it work
27169 for non-multibyte case.
27170 (make_conversion_work_buffer): Change argument.
27171 (saved_coding): Delete unused variable.
27172 (code_conversion_restore): Don't check saved_coding->destination.
27173 (code_conversion_save): New function.
27174 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
27175 instead of record_unwind_protect.
27176 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
27177 (detect_coding_system): Delete unused variable `mask'.
27178 (Fdefine_coding_system_internal): Delete unused variable id.
27179
27180 * fileio.c (kill_workbuf_unwind): New function.
27181 (Finsert_file_contents): On replacing, call
27182 make_conversion_work_buffer with correct args, and call
27183 record_unwind_protect with the first arg kill_workbuf_unwind.
27184
27185 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
27186
27187 2008-02-01 Kenichi Handa <handa@m17n.org>
27188
27189 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
27190 (fontset_add): Fix for the case that TO is less than TO1.
27191 (Ffontset_info): Don't use fallback fontset on checking the
27192 default fontset.
27193 (dump_fontset): New function for debugging.
27194
27195 * coding.c (Fdefine_coding_system_internal): Fix for the case that
27196 coding_type is Qcharset.
27197
27198 2008-02-01 Kenichi Handa <handa@m17n.org>
27199
27200 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
27201 (map_char_table): Don't inherit the value from the parent on
27202 initializing VAL. Adjust for the above change.
27203
27204 2008-02-01 Kenichi Handa <handa@m17n.org>
27205
27206 * coding.c (Qsignature, Qendian): Delete these variables.
27207 (syms_of_coding): Don't initialize them.
27208 (CATEGORY_MASK_UTF_16_AUTO): New macro.
27209 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
27210 detect_info->found.
27211 (decode_coding_utf_16): Don't detect BOM here.
27212 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
27213 is NOT utf_16_without_bom.
27214 (setup_coding_system): For a coding system of type utf-16, check
27215 if the attribute :endian is Qbig or not (not nil or not), and set
27216 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
27217 (detect_coding): If coding type is utf-16 and BOM detection is
27218 required, detect it.
27219 (Fdefine_coding_system_internal): For a coding system of type
27220 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
27221
27222 2008-02-01 Kenichi Handa <handa@m17n.org>
27223
27224 * coding.c (coding_set_source): Fix for the case that the current
27225 buffer is different from coding->src_object.
27226 (decode_coding_object): Don't use the conversion work buffer if
27227 DST_OBJECT is a buffer.
27228
27229 2008-02-01 Dave Love <fx@gnu.org>
27230
27231 * lread.c (read_emacs_mule_char) [len==2]: Index
27232 emacs_mule_charset correctly.
27233
27234 2008-02-01 Dave Love <fx@gnu.org>
27235
27236 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27237 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27238 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27239 treated specially.)
27240 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27241 (detected_mask): Remove Big5 bits.
27242
27243 2008-02-01 Kenichi Handa <handa@m17n.org>
27244
27245 The following changes are to make the font rescaling facility
27246 compatible with Emacs 21.
27247
27248 * xfaces.c (Vface_font_rescale_alist): Rename from
27249 Vface_resizing_fonts.
27250 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27251 (font_rescale_ratio): Rename from font_resizing_ratio.
27252 (split_font_name): Set font->rescale_ratio.
27253 (better_font_p): Pay attention to font->rescale_ratio.
27254 (build_scalable_font_name): Likewise. Change RESX, and RESY
27255 fields.
27256 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27257
27258 2008-02-01 Kenichi Handa <handa@m17n.org>
27259
27260 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27261 (Qutf_16_le): Remove these variables.
27262 (syms_of_coding): Don't DEFSYM them.
27263 (decode_coding_utf_16): Fix handling of BOM.
27264 (encode_coding_utf_16): Fix handling of BOM.
27265
27266 2008-02-01 Kenichi Handa <handa@m17n.org>
27267
27268 * fileio.c (Finsert_file_contents): On replacing, before decoding
27269 the file into the work buffer, set point of the work buffer to the end.
27270
27271 2008-02-01 Dave Love <fx@gnu.org>
27272
27273 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27274
27275 2008-02-01 Dave Love <fx@gnu.org>
27276
27277 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27278 and fix C types.
27279
27280 2008-02-01 Kenichi Handa <handa@m17n.org>
27281
27282 * xdisp.c (SKIP_GLYPHS): New macro.
27283 (set_cursor_from_row): Pay attention to string display properties.
27284
27285 * category.c (copy_category_entry): Fix for the case that RANGE
27286 is an integer.
27287
27288 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27289
27290 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27291
27292 2008-02-01 Kenichi Handa <handa@m17n.org>
27293
27294 * charset.c (Fcharset_id_internal): New function.
27295 (syms_of_charset): Defsubr it.
27296
27297 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27298 with the last arg charset_list acquired from coding.
27299 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27300 the attribute coding_attr_ccl_valids.
27301
27302 * coding.h (enum define_coding_ccl_arg_index): Set the first
27303 member coding_arg_ccl_decoder to coding_arg_max.
27304
27305 * ccl.h (ccl_driver): Adjust prototype.
27306
27307 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27308 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
27309 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
27310 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27311 last arg Qnil.
27312
27313 2008-02-01 Kenichi Handa <handa@m17n.org>
27314
27315 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27316 call encode_char.
27317
27318 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27319
27320 2008-02-01 Dave Love <fx@gnu.org>
27321
27322 * composite.c (syms_of_composite): Make composition_hash_table weak.
27323
27324 2008-02-01 Kenichi Handa <handa@m17n.org>
27325
27326 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27327 (font_name_registry): Don't extern them.
27328 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27329
27330 * fontset.h (Qfontset): Don't extern it.
27331 (new_fontset_from_font_name): Extern it.
27332
27333 * fontset.c: Give 8 extra slots to fontset objects.
27334 (Qfontset_info): New variable.
27335 (syms_of_fontset): Defsym it.
27336 (FONTSET_FALLBACK): New macro.
27337 (fontset_face): Try also the default fontset.
27338 (make_fontset): Realize a fallback fontset from the default fontset.
27339 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27340 using split_font_name_into_vector and build_font_name_from_vector.
27341 (Fset_fontset_font): Access the elements of font_spec by enum
27342 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27343 name by using split_font_name_into_vector.
27344 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
27345 generate a proper font name from the fontset name.
27346 Update Vfontset_alias_alist.
27347 (n_auto_fontsets): New variable.
27348 (new_fontset_from_font_name): New function.
27349 (Ffont_info): Store the information about fonts generated from the
27350 default fontset in the first extra slot of the returned char-table.
27351
27352 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27353 (font_name_registry): Delete function.
27354 (split_font_name_into_vector): New function.
27355 (build_font_name_from_vector): New function.
27356 (font_list): The argument REGISTRY is now a list of registry names.
27357 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27358 specifies an explicit font name, return the name as is. Make a
27359 list of registy names.
27360
27361 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27362 of x_new_fontset.
27363 (Fx_create_frame): Don't call x_new_fontset here. Just use
27364 x_list_fonts to check the existence of fonts.
27365
27366 * xterm.h (x_new_fontset): Adjust prototype.
27367
27368 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27369 string. Use new_fontset_from_font_name to create a fontset from a
27370 font name.
27371
27372 2008-02-01 Kenichi Handa <handa@m17n.org>
27373
27374 * syntax.c (Vfind_word_boundary_function_table): New name for
27375 Vnext_word_boundary_function_table.
27376 (find-word-boundary-function-table): New name for
27377 next-word-boundary-function-table.
27378
27379 2008-02-01 Dave Love <fx@gnu.org>
27380
27381 * Makefile.in: Fix some dependencies.
27382
27383 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27384 set it to nil before returning.
27385
27386 * composite.c (update_compositions): Fix type error.
27387
27388 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27389
27390 2008-02-01 Kenichi Handa <handa@m17n.org>
27391
27392 * xterm.c (x_new_font): Optimize for the case that the font is
27393 already set for the frame.
27394
27395 2008-02-01 Kenichi Handa <handa@m17n.org>
27396
27397 * chartab.c (char_table_ascii): Check if the char table contents
27398 is sub-char-table or not.
27399 (char_table_set, char_table_set_range): Fix argument to
27400 char_table_ascii.
27401
27402 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27403 (detect_coding_utf_8, detect_coding_utf_16)
27404 (detect_coding_emacs_mule, detect_coding_iso_2022)
27405 (detect_coding_sjis, detect_coding_big5)
27406 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27407 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27408 sequence is valid in this coding system. Change callers.
27409 (MAX_ANNOTATION_LENGTH): New macro.
27410 (ADD_ANNOTATION_DATA): New macro.
27411 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27412 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
27413 (ADD_CHARSET_DATA): New macro.
27414 (emacs_mule_char): New argument ID. Change callers.
27415 (decode_coding_emacs_mule, decode_coding_iso_2022)
27416 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27417 Produce charset annotation data in coding->charbuf.
27418 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27419 to charset annotation data in coding->charbuf.
27420 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27421 coding->common_flags if the coding system is iso-2022 based and
27422 uses designation.
27423 (produce_composition): Adjust for the new annotation data format.
27424 (produce_charset): New function.
27425 (produce_annotation): Handle charset annotation.
27426 (handle_composition_annotation, handle_charset_annotation):
27427 New functions.
27428 (consume_chars): Handle charset annotation. Utilize the above two
27429 functions.
27430 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27431 buffer, get the deleted text as a string and set
27432 coding->src_object to that string.
27433 (detect_coding, detect_coding_system): Use the new struct
27434 coding_detection_info.
27435
27436 * coding.h (struct coding_detection_info): New structure.
27437 (struct coding_system): Adjust prototype of the member `detector'.
27438 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27439
27440 2008-02-01 Kenichi Handa <handa@m17n.org>
27441
27442 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27443
27444 2008-02-01 Dave Love <fx@gnu.org>
27445
27446 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27447 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27448 to new local and nullify apropos_accumulate before returning.
27449 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27450
27451 2008-02-01 Kenichi Handa <handa@m17n.org>
27452
27453 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27454 correctly.
27455
27456 2008-02-01 Dave Love <fx@gnu.org>
27457
27458 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27459
27460 2008-02-01 Kenichi Handa <handa@m17n.org>
27461
27462 The following changes are to make character composition happen
27463 automatically on displaying.
27464
27465 * Makefile.in (lisp, shortlisp): Add composite.elc.
27466
27467 * composite.h (Qauto_composed, Vauto_composition_function)
27468 (Qauto_composition_function): Extern them.
27469
27470 * composite.c (Vcomposition_function_table)
27471 (Qcomposition_function_table): Delete variables.
27472 (Qauto_composed, Vauto_composition_function)
27473 (Qauto_composition_function): New variables.
27474 (run_composition_function): Don't call
27475 compose-chars-after-function.
27476 (update_compositions): Clear `auto-composed' text property.
27477 (compose_chars_in_text): Delete this function.
27478 (syms_of_composite): Staticpro Qauto_composed and
27479 Qauto_composition_function. Declare Vauto_composition_function as
27480 a Lisp variable.
27481
27482 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27483
27484 * xdisp.c (it_props): Add an entry for Qauto_composed.
27485 (handle_auto_composed_prop): New function.
27486
27487 * xselect.c (selection_data_to_lisp_data): Don't call
27488 compose_chars_in_text.
27489
27490 2008-02-01 Dave Love <fx@gnu.org>
27491
27492 * keyboard.c (read_char): Modify checking around use of
27493 Vkeyboard_translate_table.
27494
27495 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27496 and fix C types.
27497
27498 2008-02-01 Kenichi Handa <handa@m17n.org>
27499
27500 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27501 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27502 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27503 the case that the last byte is '\r' correctly.
27504 (decode_coding): Flush out the unprocessed data correctly.
27505 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27506
27507 2008-02-01 Dave Love <fx@gnu.org>
27508
27509 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27510 Add XK_ISO... case.
27511 (xaw_scroll_callback): Revert last change.
27512
27513 2008-02-01 Kenichi Handa <handa@m17n.org>
27514
27515 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27516
27517 2008-02-01 Kenichi Handa <handa@m17n.org>
27518
27519 * xfaces.c (Vface_resizing_fonts): New variable.
27520 (struct font_name): New member `resizing_ratio'.
27521 (font_resizing_ratio): New function.
27522 (split_font_name): Set font->resizing_ratio.
27523 (better_font_p): Pay attention to font->resizing_ratio.
27524 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27525 RESX, and RESY fields.
27526 (try_alternative_families): Try scalable fonts if
27527 Vscalable_fonts_allowed is not Qt.
27528 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27529
27530 2008-02-01 Dave Love <fx@gnu.org>
27531
27532 * xterm.c (xaw_scroll_callback): Cast correctly.
27533
27534 2008-02-01 Dave Love <fx@gnu.org>
27535
27536 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27537 (lispy_kana_keys): Comment out.
27538 (make_lispy_event) [XK_kana_A]: Comment out.
27539
27540 * xterm.c (xaw_scroll_callback): Cast call_data.
27541 (XTread_socket): Deal with ASCII keysyms.
27542 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27543
27544 2008-02-01 Dave Love <fx@gnu.org>
27545
27546 * xterm.c (Vx_keysym_table): New.
27547 (syms_of_xterm): Initialize it.
27548 (XTread_socket): Use it.
27549 From head: Eliminate incorrect optimization that tried to avoid
27550 decoding the output of X*LookupString.
27551 (x_get_font_repertory): Delete charset declaration.
27552
27553 2008-02-01 Kenichi Handa <handa@m17n.org>
27554
27555 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27556 return 0.
27557 (Fdefine_coding_system_internal):
27558 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27559
27560 2008-02-01 Dave Love <fx@gnu.org>
27561
27562 * coding.c (Fcheck_coding_system): Doc fix.
27563
27564 * editfns.c (Finsert_byte): Return a proper value.
27565
27566 2008-02-01 Kenichi Handa <handa@m17n.org>
27567
27568 * coding.c (decode_coding): Fix args to translate_chars.
27569 Pay attention to Vstandard_translation_table_for_decode.
27570 (encode_coding): Fix args to translate_chars. Pay attention to
27571 Vstandard_translation_table_for_encode.
27572
27573 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27574 SINGLE_BYTE_CHAR_P.
27575
27576 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27577 not by SINGLE_BYTE_CHAR_P.
27578
27579 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27580 SINGLE_BYTE_CHAR_P.
27581
27582 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27583 SINGLE_BYTE_CHAR_P.
27584
27585 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27586 by SINGLE_BYTE_CHAR_P.
27587
27588 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27589 SINGLE_BYTE_CHAR_P.
27590
27591 2008-02-01 Dave Love <fx@gnu.org>
27592
27593 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27594
27595 2008-02-01 Dave Love <fx@gnu.org>
27596
27597 * fns.c (Flanginfo): Fix typo.
27598
27599 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27600
27601 2008-02-01 Kenichi Handa <handa@m17n.org>
27602
27603 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27604 (detect_coding_emacs_mule, detect_coding_iso_2022)
27605 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27606 incomplete byte sequence. Don't update *mask when correctly detected.
27607 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27608 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27609 (detect_coding, detect_coding_system): Adjust for the changes above.
27610
27611 2008-02-01 Kenichi Handa <handa@m17n.org>
27612
27613 * character.c (char_string): Rename from
27614 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27615 (string_char): Rename from string_char.
27616
27617 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27618 if C is greater than MAX_3_BYTE_CHAR.
27619 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27620 Call string_char instead of string_char_with_unification.
27621
27622 2008-02-01 Dave Love <fx@gnu.org>
27623
27624 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27625
27626 2008-02-01 Kenichi Handa <handa@m17n.org>
27627
27628 * keymap.c (push_key_description): Pay attention to force_multibyte.
27629
27630 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27631
27632 2008-02-01 Dave Love <fx@gnu.org>
27633
27634 * charset.c (define_charset_internal): Rename `supprementary'.
27635
27636 * Makefile.in (lisp, shortlisp): Remove latin-N.
27637
27638 2008-02-01 Dave Love <fx@gnu.org>
27639
27640 * xfns.c (x_window, x_window): Use use_xim.
27641
27642 * xterm.c (use_xim): Initialize.
27643 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27644 (x_term_init): Maybe set use_xim.
27645
27646 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27647
27648 2008-02-01 Kenichi Handa <handa@m17n.org>
27649
27650 * search.c (search_buffer): Fix case-fold-search of multibyte
27651 characters.
27652 (boyer_moore): Rename the last argument to char_high_bits.
27653
27654 2008-02-01 Kenichi Handa <handa@m17n.org>
27655
27656 * xdisp.c (display_string): Fix for the case of zero width glyph.
27657
27658 * xfns.c (x_set_font): Change the error message of the case that
27659 x_new_fontset returns Qt.
27660
27661 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27662 (Finternal_set_lisp_face_attribute): Use signal_error for the
27663 error of invalid fontset.
27664
27665 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27666 fontset, return Qt.
27667
27668 2008-02-01 Dave Love <fx@gnu.org>
27669
27670 * unexelf.c (unexec): Make .got handling not SGI-specific.
27671
27672 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27673
27674 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27675
27676 * keyboard.c (read_key_sequence): Fix type error.
27677
27678 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27679 Fix type error.
27680
27681 * fontset.c (fontset_add): Return Lisp_Object.
27682
27683 2008-02-01 Dave Love <fx@gnu.org>
27684
27685 * charset.h (charset_ordered_list_tick): Declare extern.
27686
27687 2008-02-01 Kenichi Handa <handa@m17n.org>
27688
27689 The following changes (and some of 2008-02-01 changes of mine) are
27690 for handling syntax, category, and case conversion for unibyte
27691 characters by converting them to multibyte on the fly. With these
27692 changes, we don't have to setup syntax and case tables for unibyte
27693 characters in each language environment.
27694
27695 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27696 multibyte if necessary.
27697
27698 * bytecode.c (Fbyte_code): Likewise.
27699
27700 * character.h (LEADING_CODE_LATIN_1_MIN)
27701 (LEADING_CODE_LATIN_1_MAX): New macros.
27702 (unibyte_to_multibyte_table): Extern it.
27703 (unibyte_char_to_multibyte): New macro.
27704 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27705 (CHAR_LEADING_CODE): New macro.
27706 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27707
27708 * character.c (unibyte_to_multibyte_table): New variable.
27709 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27710 (multibyte_char_to_unibyte): If C is an eight-bit character,
27711 convert it to the corresponding byte value.
27712
27713 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27714 not 1, signals an error. Update the elements of
27715 unibyte_to_multibyte_table.
27716 (init_charset_once): Initialize unibyte_to_multibyte_table.
27717 (syms_of_charset): Define the charset `iso-8859-1'.
27718
27719 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27720 as is without converting it to unibyte. In a unibyte buffer,
27721 convert C to multibyte before checking the syntax.
27722
27723 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27724
27725 * minibuf.c (Fminibuffer_complete_word): Use the macro
27726 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27727
27728 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27729
27730 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27731 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27732 If that is zero, convert an eight-bit char to multibyte.
27733 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27734 non-emacs case.
27735 (PATFETCH): Convert an eight-bit char to multibyte.
27736 (HANDLE_UNIBYTE_RANGE): New macro.
27737 (regex_compile): Setup the compiled pattern for multibyte chars
27738 even if the given regex string is unibyte. Use PATFETCH_RAW
27739 instead of PATFETCH in many places. To handle `charset'
27740 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27741 only for ASCII chars.
27742 (analyse_first) <exactn>: Simplify because the compiled pattern
27743 is multibyte.
27744 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27745 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27746 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27747 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27748 multibyte always 1.
27749 (re_search_2): In emacs, set the locale variable multibyte to 1,
27750 otherwise to 0. New local variable target_multibyte. Check it
27751 to decide the multibyteness of STR1 and STR2.
27752 If target_multibyte is zero, convert unibyte chars to multibyte
27753 before translating and checking fastmap.
27754 (TARGET_CHAR_AND_LENGTH): New macro.
27755 (re_match_2_internal): In emacs, set the locale variable multibyte
27756 to 1, otherwise to 0. New local variable target_multibyte.
27757 Check it to decide the multibyteness of STR1 and STR2.
27758 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27759 <charset, charset_not>: If multibyte is nonzero, check fastmap
27760 only for ASCII chars. Call bcmp_translate with
27761 target_multibyte, not with multibyte.
27762 <begline>: Declare the local variable C as `unsigned'.
27763 (bcmp_translate): Change the last arg name to target_multibyte.
27764
27765 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27766 the regexp pattern and the matching target. Set cp->buf.multibyte
27767 to the multibyteness of the regexp pattern. Set
27768 cp->but.target_multibyte to the multibyteness of the matching target.
27769 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27770 FETCH_STRING_CHAR_ADVANCE.
27771 (Freplace_match): Convert unibyte chars to multibyte.
27772
27773 * syntax.c (char_quoted, back_comment, scan_words)
27774 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27775 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27776 unibyte chars to multibyte.
27777 (skip_chars): Delete the arg syntaxp, and move the code for
27778 handling syntaxes to skip_syntaxes. Change callers.
27779 Fix the case that the multibyteness of STRING and the current
27780 buffer doesn't match.
27781 (skip_syntaxes): New function.
27782 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27783 SINGLE_BYTE_CHAR_P.
27784
27785 2008-02-01 Kenichi Handa <handa@m17n.org>
27786
27787 * xfaces.c (QCfontset): New variable.
27788 (LFACE_FONTSET): New macro.
27789 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27790 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27791 (Finternal_set_lisp_face_attribute)
27792 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27793 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27794 check also LFACE_FONTSET_INDEX.
27795 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27796 attrs[LFACE_FONT_INDEX].
27797 (syms_of_xfaces): Intern and staticpro QCfontset.
27798
27799 * dispextern.h (enum lface_attribute_index): New member
27800 LFACE_FONTSET_INDEX.
27801
27802 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27803
27804 2008-02-01 Kenichi Handa <handa@m17n.org>
27805
27806 * coding.c (coding_set_destination): Fix coding->destination for
27807 the case converting a region.
27808 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27809 (encode_coding_object): Fix coding->dst_pos and
27810 coding->dst_pos_byte for the case converting a region.
27811
27812 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27813
27814 * character.h (BYTE8_STRING): New macro.
27815
27816 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27817
27818 2008-02-01 Kenichi Handa <handa@m17n.org>
27819
27820 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27821 characters by octal form.
27822
27823 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27824
27825 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27826 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27827 _fetch_multibyte_char_len.
27828 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27829
27830 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27831
27832 * casefiddle.c (casify_object): Simplify. Handle the case that
27833 the case conversion change the byte length.
27834 (casify_region): Likewise.
27835
27836 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27837
27838 * character.c (_fetch_multibyte_char_len): Delete this variable.
27839 (syms_of_character): Setup Vprintable_chars.
27840
27841 * editfns.c (Fchar_equal): Fix for the unibyte case.
27842 (Finsert_byte): New function.
27843 (syms_of_editfns): Defsubr it.
27844
27845 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27846 of direct code 0x3ffff.
27847
27848 * search.c (Freplace_match): Fix for the unibyte case.
27849
27850 2008-02-01 Kenichi Handa <handa@m17n.org>
27851
27852 * lread.c (safe_to_load_p): Fix the logic.
27853
27854 * syntax.c (scan_words): Don't treat characters belonging to
27855 different scripts as constituting a word.
27856
27857 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27858
27859 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27860
27861 * emacs.c (main): In the case of --unibyte, instead of aborting on
27862 finding non-empty buffer, make it unibyte.
27863
27864 2008-02-01 Kenichi Handa <handa@m17n.org>
27865
27866 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27867 to create a fontset.
27868
27869 2008-02-01 Dave Love <fx@gnu.org>
27870
27871 * character.c (Funibyte_char_to_multibyte): Doc fix.
27872
27873 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27874
27875 2008-02-01 Kenichi Handa <handa@m17n.org>
27876
27877 * fontset.c (fontset_add): Make the type `int'.
27878 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27879
27880 * character.c (unibyte_char_to_multibyte)
27881 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27882 charset_unibyte, not charset_primary.
27883
27884 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27885
27886 * charset.c (charset_unibyte): Rename from charset_primary.
27887 (Funibyte_charset): Rename from Fprimary_charset.
27888 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27889 (syms_of_charset): Adjust for the above changes.
27890
27891 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27892 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27893 it->multibyte_p is zero.
27894
27895 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27896 Delete extern.
27897
27898 2008-02-01 Kenichi Handa <handa@m17n.org>
27899
27900 * coding.c (Fdefine_coding_system_internal): Fix category setting
27901 for a coding system of type iso-2022.
27902
27903 2008-02-01 Kenichi Handa <handa@m17n.org>
27904
27905 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27906
27907 2008-02-01 Kenichi Handa <handa@m17n.org>
27908
27909 * syntax.c (Vnext_word_boundary_function_table): New variable.
27910 (next-word-boundary-function-table): Declare it as a Lisp variable
27911 in syms_of_syntax.
27912 (scan_words): Call functions in Vnext_word_boundary_function_table
27913 if any.
27914
27915 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27916
27917 * fontset.c (fs_load_font): If fontp->charset is not negative,
27918 return fontp without setting its members.
27919
27920 2008-02-01 Dave Love <fx@gnu.org>
27921
27922 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27923
27924 * m/sparc.h (HAVE_ALLOCA): Delete.
27925
27926 * s/irix6-5.h: Don't include strings.h.
27927 (bcopy, bzero, bcmp): Don't undef.
27928
27929 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27930
27931 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27932 (TIOCSIGSEND): Don't test IRIX6.
27933 (bcopy, bzero, bcmp): Define conditionally.
27934
27935 2008-02-01 Kenichi Handa <handa@m17n.org>
27936
27937 * buffer.c (Qas, Qmake, Qto): New variables.
27938 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27939 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27940
27941 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27942 we are inserting a process output into a multibyte buffer.
27943
27944 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27945 multibyte_char_to_unibyte.
27946
27947 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27948 by the primary charset, make it eight-bit char.
27949 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27950
27951 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27952 (charset_8_bit__control, charset_8_bit_graphic)
27953 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27954 (define_charset_internal): New function.
27955 (syms_of_charset): Call define_charset_internal for pre-defined
27956 charsets.
27957
27958 * charset.h (charset_8_bit): Extern it.
27959
27960 * coding.c (make_conversion_work_buffer): Adjust for the change
27961 of Fset_buffer_multibyte.
27962 (encode_coding_raw_text): Increment p0 in the loop.
27963
27964 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27965
27966 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27967 Adjust for the change of Fset_buffer_multibyte.
27968
27969 * fns.c (Fstring_to_multibyte): New function.
27970 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27971
27972 2008-02-01 Dave Love <fx@gnu.org>
27973
27974 * xfns.c (x_put_x_image): Declare args.
27975
27976 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27977 (try_font_list): Declare an arg.
27978
27979 * xdisp.c (message2_nolog, set_message): Declare an arg.
27980
27981 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27982
27983 * syntax.c (scan_sexps_forward): Declare an arg.
27984
27985 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27986 Declare an arg.
27987
27988 * lisp.h (Fnew_fontset): Declare.
27989
27990 * keymap.c (push_key_description): Call CHARACTERP correctly.
27991
27992 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27993 (face_for_char): Delete unused vars.
27994 (Fset_fontset_font): Doc fix. Delete unused vars.
27995
27996 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27997
27998 * composite.c (update_compositions): Declare arg.
27999
28000 * cm.c (calccost, cmgoto): Declare args.
28001
28002 * charset.c: Remove `emacs' conditional. Doc fixes.
28003 (map_char_table_for_charset): Declare.
28004
28005 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
28006
28007 * ccl.c: Remove `emacs' conditional.
28008
28009 2008-02-01 Kenichi Handa <handa@m17n.org>
28010
28011 The following changes are to allow specifying multiple font
28012 patterns for a character range (specified by script or charset).
28013
28014 * Makefile.in (abbrev.o): Depend on syntax.h.
28015 (xfaces.o): Depend on charset.h.
28016
28017 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
28018 SINGLE_BYTE_CHAR_P.
28019
28020 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
28021
28022 * character.h (Vchar_script_table): Extern it.
28023
28024 * character.c (Vscript_alist): Delete.
28025 (Vchar_script_table, Qchar_script_table): New variable.
28026 (syms_of_character): Declare Vchar_script_table as a lisp variable
28027 and initialize it.
28028
28029 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
28030 have property char-table-extra-slots, make no extra slot.
28031
28032 * dispextern.h (struct face): Delete member `charset'.
28033 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
28034 SINGLE_BYTE_CHAR_P.
28035 (choose_face_font, lookup_non_ascii_face, font_name_registry):
28036 Add prototypes.
28037 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
28038 (generate_ascii_font_name): Rename from generate_ascii_font.
28039
28040 * fontset.h (get_font_repertory_func): New prototype.
28041 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
28042 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
28043
28044 * fontset.c (Qprepend, Qappend): New variables.
28045 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
28046 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
28047 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
28048 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
28049 (fontset_ref_and_range, fontset_add, reorder_font_vector)
28050 (load_font_get_repertory): New functions.
28051 (fontset_set): Delete.
28052 (fontset_face): New arg FACE. Return face ID, not face.
28053 Complete re-write to handle new fontset structure. Change caller.
28054 (free_face_fontset): Use ASET istead of AREF (X) = Y.
28055 (face_for_char): Don't call lookup_face.
28056 (make_fontset_for_ascii_face): New arg FACE.
28057 (fs_load_font): New arg CHARSET_ID. Don't check
28058 Vfont_encoding_alist here.
28059 (find_font_encoding): New function.
28060 (list_fontsets): Use STRINGP, not ! NILP.
28061 (accumulate_script_ranges): New function.
28062 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
28063 Completely re-written to handle new fontset structure.
28064 (Ffontset_font): Return a copy of element.
28065 (syms_of_fontset): Define symbols Qprepend and Qappend.
28066 Fix docstring of font-encoding-alist.
28067
28068 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
28069 (Fset_fotset_font): Fix arguments to 5.
28070
28071 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
28072
28073 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
28074 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28075 (highlight_trailing_whitespace): Adjust for the change of
28076 lookup_named_face.
28077
28078 * xfaces.c: Include charset.h.
28079 (load_face_font): Delete argument C. Change caller.
28080 (generate_ascii_font_name): Rename from generate_ascii_font.
28081 (font_name_registry): New function.
28082 (cache_face): Store ascii faces before non-ascii faces in buckets.
28083 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
28084 Lookup only ascii faces.
28085 (lookup_non_ascii_face): New function.
28086 (lookup_named_face): Delete argument C. Change caller.
28087 (lookup_derived_face): Delete argument C. Change caller.
28088 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
28089 a string, just call font_list with it.
28090 (choose_face_font): Delete arguments FACE and C. New arg
28091 FONT_SPEC. Change caller.
28092 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
28093 Change caller.
28094 (realize_non_ascii_face): New function.
28095 (realize_x_face): Call load_face_font here.
28096 (realize_tty_face): Delete argument C. Change caller.
28097 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
28098 get a face ID.
28099 (dump_realized_face): Don't print charset of FACE.
28100
28101 * xfns.c (x_set_font): Always call x_new_fontset and
28102 store_frame_parameter.
28103 (Fx_create_frame): Call x_new_fontset, not x_new_font.
28104 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
28105
28106 * xterm.h (x_get_font_repertory): Extern it.
28107
28108 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
28109 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
28110 it->multibyte_p is zero.
28111 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28112 (x_new_fontset): If FONTSETNAME doesn't match any existing
28113 fontsets, create a new one.
28114 (x_get_font_repertory): New function.
28115
28116 2008-02-01 Kenichi Handa <handa@m17n.org>
28117
28118 * coding.c (Ffind_coding_systems_region_internal): Detect an
28119 ASCII only string correctly.
28120
28121 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
28122 version is 0.
28123
28124 2008-02-01 Kenichi Handa <handa@m17n.org>
28125
28126 * lread.c: Include "coding.h".
28127 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
28128 (load_each_byte, unread_char): New variables.
28129 (readchar_backlog): Delete.
28130 (readchar): Return a character unless load_each_byte is nonzero.
28131 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
28132 cons. If unread_char is not -1, simply return it.
28133 (unreadchar): Handle the case that readcharfun is
28134 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
28135 (read_multibyte): Delete.
28136 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
28137 (read_emacs_mule_char): New functions.
28138 (Fload): Even if the file doesn't have the extension ".elc", if
28139 safe_to_load_p returns a positive version number, assume that the
28140 file contains bytecompiled code. If the version is less than 22,
28141 load the file while decoding multibyte sequences by emacs-mule.
28142 (readevalloop): Don't use readchar_backlog.
28143 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
28144 (Fread_from_string): Pay attention to the case that STREAM is a cons.
28145 (read_escape): Delete the arg BYTEREP.
28146 (read1): Set load_each_byte to 1 temporarily while handling
28147 #@NUMBER. Don't call read_multibyte.
28148 (read_vector): Call Fread with a cons. If readcharfun is
28149 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
28150 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
28151 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
28152 and Qload_force_doc_strings.
28153
28154 2008-02-01 Kenichi Handa <handa@m17n.org>
28155
28156 * xdisp.c (face_before_or_after_it_pos):
28157 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
28158
28159 2008-02-01 Kenichi Handa <handa@m17n.org>
28160
28161 * character.h (TRAILING_CODE_P): New macro.
28162 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
28163 (string_char_with_unification): Fix prototype.
28164 (Vscript_alist): Extern it.
28165
28166 * character.c (Vscript_alist): New variable.
28167 (string_char_with_unification, str_as_unibyte)
28168 (string_escape_byte8): Add `const' to local variables.
28169 (syms_of_character): Declare script-alist as a Lisp variable.
28170
28171 * charset.h (Vcharset_ordered_list): Extern it.
28172 (charset_ordered_list_tick): Extern it.
28173 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
28174 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
28175 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
28176 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
28177 (Funify_charset): Adjust for the change of Funify_charset.
28178
28179 * charset.c (charset_ordered_list_tick): New variable.
28180 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
28181 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
28182 deunify instead of unify a charset.
28183 (string_xstring_p): Add `const' to local variables.
28184 (find_charsets_in_text): Add `const' to arguments and local variables.
28185 (encode_char): Adjust for the change of Funify_charset.
28186 Fix detecting of invalid code.
28187 (Fset_charset_priority): Increment charset_ordered_list_tick.
28188 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
28189 and TO_CODE.
28190
28191 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
28192 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
28193 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
28194 (decode_coding_ccl, consume_chars)
28195 (Ffind_coding_systems_region_internal)
28196 (Fcheck_coding_systems_region): Add `const' to local variables.
28197
28198 * print.c (print_object): Use octal form for printing the
28199 contents of a bool vector.
28200
28201 2008-02-01 Dave Love <fx@gnu.org>
28202
28203 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
28204 <version == 20>: Refuse to load.
28205
28206 2008-02-01 Dave Love <fx@gnu.org>
28207
28208 * fns.c: Move coding.h.
28209 (Qcodeset, Qdays, Qmonths): New.
28210 (concat): Use CHARACTERP instead of INTEGERP.
28211 (Flocale_codeset): Delete.
28212 (Flanginfo): New function.
28213 (syms_of_fns): Change accordingly.
28214
28215 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
28216
28217 2008-02-01 Dave Love <fx@gnu.org>
28218
28219 * casetab.c (init_casetab_once, init_casetab_once):
28220 Fix CHAR_TABLE_SET call.
28221
28222 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
28223
28224 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
28225
28226 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
28227 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
28228 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
28229
28230 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28231
28232 * coding.c (ENCODE_DESIGNATION, decode_eol)
28233 (make_conversion_work_buffer, code_conversion_restore)
28234 (Fdefine_coding_system_internal): Convert Lisp types.
28235 (code_conversion_restore): Use EQ, not ==.
28236 (Fencode_coding_string): Fix code_convert_string call.
28237
28238 * coding.h (code_convert_region): Fix prototype.
28239
28240 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28241
28242 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28243 (Ffontset_info): Convert Lisp types.
28244
28245 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28246
28247 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28248
28249 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28250
28251 * chartab.c: Include "...h", not <...h> in some cases.
28252
28253 * callproc.c (Fcall_process): Remove unused variables.
28254
28255 2008-02-01 Dave Love <fx@gnu.org>
28256
28257 * coding.c (Fset_coding_system_priority): Allow null arg list.
28258
28259 2008-02-01 Dave Love <fx@gnu.org>
28260
28261 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28262 (Fself_insert_and_exit): Use CHARACTERP.
28263
28264 * callproc.c (Fcall_process): Remove unused vars.
28265
28266 * xterm.c (XTread_socket): Add extra dead keysyms.
28267
28268 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28269
28270 * dispextern.h: Remove prototypes for redraw_frame,
28271 redraw_garbaged_frames.
28272
28273 * cmds.c (Fself_insert_command): Use CHARACTERP.
28274
28275 * chartab.c (make_sub_char_table): Remove unused var.
28276 (Fset_char_table_default, Fmap_char_table): Doc fix.
28277
28278 * keymap.c (access_keymap): Remove generic char code.
28279 (push_key_description): Use CHARACTERP.
28280
28281 2008-02-01 Dave Love <fx@gnu.org>
28282
28283 * charset.c: Doc fixes.
28284 (Funify_charset): Extra checking.
28285
28286 2008-02-01 Dave Love <fx@gnu.org>
28287
28288 * lread.c: Remove some unused variables.
28289 (safe_to_load_p): If safe, return the magic number version byte.
28290 (Fload): Maybe use load-with-code-conversion.
28291
28292 2008-02-01 Kenichi Handa <handa@m17n.org>
28293
28294 * category.c (Fmodify_category_entry): Don't modify the contents
28295 of category_set for characters out of the range.
28296 Avoid unnecessary modification.
28297
28298 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28299 Vchar_unify_table. The default value of the table is now nil.
28300
28301 * character.c (syms_of_character): Setup Vchar_width_table for
28302 eight-bit-control and raw-byte chars.
28303
28304 * charset.h (enum define_charset_arg_index):
28305 Delete charset_arg_parents and add charset_arg_subset and
28306 charset_arg_superset.
28307 (enum charset_attr_index): Delete charset_parents and add
28308 charset_subset and charset_superset.
28309 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28310 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28311 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28312 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28313 (CHARSET_SUPERSET): New macros.
28314 (charset_work): Extern it.
28315 (ENCODE_CHAR): Use charset_work.
28316 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28317 (map_charset_chars): Extern it.
28318
28319 * charset.c (load_charset_map): Set the default value of encoder
28320 and deunifier char-tables to nil.
28321 (map_charset_chars): Change argument. Change callers.
28322 Use map_char_table_for_charset instead of map_char_table.
28323 (Fmap_charset_chars): New optional args from_code and to_code.
28324 (Fdefine_charset_internal): Adjust for the change of
28325 `define-charset' (:parents -> :subset or :superset).
28326 (charset_work): New variable.
28327 (encode_char, syms_of_charset): Adjust for the change of
28328 Fdefine_charset_internal.
28329 (Ffind_charset_string): Setup the vector `charsets' correctly.
28330
28331 * chartab.c (sub_char_table_ref_and_range): New arg default.
28332 Fix the previous change.
28333 (char_table_ref_and_range): Adjust for the above change.
28334 (map_sub_char_table_for_charset): New function.
28335 (map_char_table_for_charset): New function.
28336
28337 * keymap.c (describe_vector): Handle a char-table directly here.
28338 (describe_char_table): Delete.
28339
28340 * lisp.h (map_charset_chars): Delete.
28341
28342 2008-02-01 Dave Love <fx@gnu.org>
28343
28344 * fns.c (count_combining): Comment out (unused).
28345 (Flocale_codeset): New.
28346 (syms_of_fns): Defsubr it.
28347
28348 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28349 (size_t): Remove.
28350
28351 2008-02-01 Dave Love <fx@gnu.org>
28352
28353 * Makefile.in (chartab.o): Depend on charset.h.
28354
28355 2008-02-01 Kenichi Handa <handa@m17n.org>
28356
28357 * character.c (syms_of_character): Set the default value of
28358 Vprintable_chars to Qnil.
28359
28360 2008-02-01 Dave Love <fx@gnu.org>
28361
28362 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28363
28364 2008-02-01 Kenichi Handa <handa@m17n.org>
28365
28366 * charset.c (load_charset_map): Handle the case that from < to
28367 correctly.
28368
28369 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28370 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28371 Pay attention to raw-8-bit chars.
28372
28373 2008-02-01 Kenichi Handa <handa@m17n.org>
28374
28375 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28376 It is not bytecompiled now.
28377
28378 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28379 (charset_jisx0208): New variables.
28380 (Fdefine_charset_internal): Setup them if appropriate.
28381 (init_charset_once): Initialize them to -1.
28382
28383 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28384 (charset_jisx0208): Extern them.
28385
28386 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28387 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28388 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28389 (setup_iso_safe_charsets): Fix arguments to Fassq.
28390 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28391 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28392 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28393 (encode_coding_iso_2022): Change the 1st arg to
28394 ENCODE_ISO_CHARACTER to a variable.
28395
28396 2008-02-01 Kenichi Handa <handa@m17n.org>
28397
28398 * charset.h (enum define_charset_arg_index): New enums
28399 charset_arg_min_code and charset_arg_max_code.
28400 (struct charset): New member char_index_offset.
28401
28402 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28403 Take charset->char_index_offset into account.
28404 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28405 args[charset_arg_max_code]. Setup charset.char_index_offset.
28406 (syms_of_charset): Fix args to Fdefine_charset_internal.
28407
28408 2008-02-01 Dave Love <fx@gnu.org>
28409
28410 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28411
28412 2008-02-01 Dave Love <fx@gnu.org>
28413
28414 * coding.c: Doc fixes.
28415 (Fcoding_system_aliases): Fix return value.
28416 (Qmac): Remove (duplicated) definition.
28417
28418 2008-02-01 Dave Love <fx@gnu.org>
28419
28420 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28421 New functions.
28422
28423 * character.c (Fstring): Doc fix.
28424
28425 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28426
28427 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
28428 (font-encoding-alist): Doc fix.
28429
28430 2008-02-01 Dave Love <fx@gnu.org>
28431
28432 * term.c (costs_set): Declare static, non-initialized for pcc.
28433 (encode_terminal_code): Remove unused var.
28434
28435 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28436 for K&R.
28437
28438 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28439
28440 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28441 (suffixes): Move out of make_subsidiaries for K&R.
28442
28443 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28444
28445 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28446
28447 2008-02-01 Dave Love <fx@gnu.org>
28448
28449 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28450
28451 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28452
28453 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28454
28455 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28456
28457 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28458
28459 2008-02-01 Kenichi Handa <handa@m17n.org>
28460
28461 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28462 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28463
28464 2008-02-01 Kenichi Handa <handa@m17n.org>
28465
28466 * coding.c (decode_coding_charset): Adjust for the change of
28467 Fdefine_coding_system_internal.
28468 (Fdefine_coding_system_internal): For a coding system of
28469 `charset' type, store a list of charset IDs in
28470 `charset_attr_charset_valids' element of coding attributes.
28471
28472 2008-02-01 Kenichi Handa <handa@m17n.org>
28473
28474 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28475 (emacs_mule_char): New arg src. Delete arg `composition'.
28476 Change caller. Handle 2-byte and 3-byte charsets correctly.
28477 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28478 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28479 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28480 (DECODE_EMACS_MULE_21_COMPOSITION):
28481 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
28482 sequence.
28483 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28484 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28485 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28486 and alt&rule composition.
28487 (decode_coding_iso_2022): Handle composition correctly.
28488 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28489
28490 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28491 re-defining a charset. If the charset has :emacs-mule-id, setup
28492 emacs_mule_bytes.
28493 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28494
28495 2008-02-01 Kenichi Handa <handa@m17n.org>
28496
28497 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28498 (encode_coding_big5, encode_coding_charset): If coding requires safe
28499 encoding, produce a character specified by
28500 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28501
28502 2008-02-01 Dave Love <fx@gnu.org>
28503
28504 * xterm.c (XSetIMValues): Declare.
28505
28506 * process.c: Conditionally include sys/wait.h, pty.h.
28507
28508 * print.c (print_object): Fix print format for 64-bit systems.
28509
28510 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28511
28512 * buffer.c (emacs_strerror): Declare.
28513
28514 * fontset.c (Fclear_face_cache): Declare.
28515 (accumulate_font_info): Comment-out (unused).
28516 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28517 variables.
28518
28519 * character.h (string_escape_byte8): Declare.
28520
28521 * charset.c (load_charset_map, load_charset_map_from_file):
28522 Remove unused vars.
28523 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28524 (Fmap_charset_chars): Doc fix.
28525
28526 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28527 (Fset_coding_system_priority, Fset_coding_system_priority)
28528 (Fdefine_coding_system_internal): Doc fix.
28529
28530 2008-02-01 Dave Love <fx@gnu.org>
28531
28532 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28533
28534 2008-02-01 Kenichi Handa <handa@m17n.org>
28535
28536 * character.c (string_escape_byte8): Make multibyte string with
28537 correct size.
28538
28539 * charset.c (Fmake_char): Delete unnecessary code.
28540
28541 2008-02-01 Kenichi Handa <handa@m17n.org>
28542
28543 * xfns.c (x_encode_text): Allocate coding.destination here, and
28544 call encode_coding_object with dst_object Qnil.
28545
28546 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28547 multibyte form correctly.
28548
28549 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28550 against Vfont_encoding_alist.
28551
28552 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28553 handling of charset list.
28554 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28555 (decode_coding_object): Move point to coding->dst_pos before
28556 calling post-read-conversion function.
28557 (encode_coding_object): Give correct arguments to
28558 pre-write-conversion. Ignore the return value of
28559 pre-write-conversion function. Pay attention to the case that
28560 pre-write-conversion changes the current buffer. If dst_object is
28561 Qt, even if coding->src_bytes is zero, allocate at least one byte
28562 to coding->destination.
28563
28564 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28565
28566 * charset.c (Fmake_char): Make it more backward compatible.
28567 (Fmap_charset_chars): Fix docstring.
28568
28569 2008-02-01 Dave Love <fx@gnu.org>
28570
28571 * coding.c: Doc fixes.
28572 (Fdefine_coding_system_alias): Use names, not symbols, in
28573 coding-system-alist.
28574
28575 2008-02-01 Kenichi Handa <handa@m17n.org>
28576
28577 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28578 of calling free_realized_face.
28579
28580 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28581
28582 * charset.c (read_hex): Don't treat SPC as a comment starter.
28583 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28584 (Fdecode_char): Fix typo.
28585
28586 2008-02-01 Kenichi Handa <handa@m17n.org>
28587
28588 * charset.h (struct charset): New member `code_space_mask'.
28589
28590 * coding.c (coding_set_source): Delete the local variable beg_byte.
28591 (encode_coding_charset, Fdefine_coding_system_internal):
28592 Delete the local variable charset.
28593 (Fdefine_coding_system_internal):
28594 Setup attrs[coding_attr_charset_valids] correctly.
28595
28596 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28597 member to check if CODE is valid or not.
28598 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28599 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28600 is within the range of charset->min_code and carset->max_code.
28601
28602 2008-02-01 Dave Love <fx@gnu.org>
28603
28604 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28605
28606 * dispextern.h (generate_ascii_font): Fix return type.
28607
28608 * xfaces.c (generate_ascii_font): Fix arg declaration.
28609
28610 * coding.c (coding_inherit_eol_type)
28611 (Fset_terminal_coding_system_internal)
28612 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28613
28614 2008-02-01 Kenichi Handa <handa@m17n.org>
28615
28616 * coding.c (decode_coding_charset, encode_coding_charset):
28617 Handle multiple charsets correctly.
28618
28619 2008-02-01 Kenichi Handa <handa@m17n.org>
28620
28621 * search.c (boyer_moore): Fix handling of multibyte character
28622 translation.
28623
28624 * xdisp.c (display_mode_element): When the variable `elt' is
28625 changed, update `this' and `lisp_string'.
28626
28627 2008-02-01 Kenichi Handa <handa@m17n.org>
28628
28629 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28630
28631 * callproc.c (Fcall_process): Be sure to give the current buffer
28632 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28633
28634 * charset.c (struct charset_map_entries): New struct.
28635 (load_charset_map): Rename from parse_charset_map. New args
28636 entries and n_entries. Change caller.
28637 (load_charset_map_from_file): Rename from load_charset_map.
28638 Change caller. New arg control_flag. Call load_charset_map at
28639 the tail.
28640 (load_charset_map_from_vector): New function.
28641 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28642 (encode_char): If the charset is compact, change a character index
28643 to a code point.
28644
28645 * coding.c (coding_alloc_by_making_gap): Check the case that the
28646 source and destination are the same correctly.
28647 (decode_coding_raw_text): Set coding->consumed_char and
28648 coding->consumed to 0.
28649 (produce_chars): If coding->chars_at_source is nonzero, update
28650 coding->consumed_char and coding->consumed before calling
28651 alloc_destination.
28652 (Fdefine_coding_system_alias): Register ALIAS in
28653 Vcoding_system_alist.
28654 (syms_of_coding): Define `no-conversion' coding system at the tail.
28655
28656 * fileio.c (Finsert_file_contents): Set coding_system instead of
28657 val. If the current buffer is multibyte, always call
28658 decode_coding_gap.
28659
28660 * xfaces.c (try_font_list): Give higher priority to fontset's
28661 family than face's family.
28662
28663 2008-02-01 Kenichi Handa <handa@m17n.org>
28664
28665 * callproc.c (Fcall_process): Be sure to give the current buffer
28666 to decode_coding_c_string.
28667
28668 * xfaces.c (try_font_list): Give a family specified in a fontset
28669 higher priority than a family specified in a face.
28670
28671 2008-02-01 Kenichi Handa <handa@m17n.org>
28672
28673 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28674 Fix arguments to insert_from_buffer.
28675
28676 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28677
28678 2008-02-01 Kenichi Handa <handa@m17n.org>
28679
28680 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28681 (decode_coding_gap): Set coding->dst_multibyte correctly.
28682
28683 2008-02-01 Kenichi Handa <handa@m17n.org>
28684
28685 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28686 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28687 (encode_coding_utf_16): Substitute coding->default_char for
28688 non-Unicode characters.
28689 (decode_coding): Don't call record_insert here.
28690 (setup_coding_system): Initialize `surrogate' of
28691 coding->spec.utf_16 to 0.
28692 (EMIT_ONE_BYTE): Fix for multibyte case.
28693
28694 * insdel.c (insert_from_gap): Call record_insert.
28695
28696 2008-02-01 Kenichi Handa <handa@m17n.org>
28697
28698 * casefiddle.c (casify_region): Fix multibyte case.
28699
28700 * character.c (c_string_width): Add return type `int'.
28701 (char_string_with_unification): Delete arg ADVANCED.
28702
28703 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28704 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28705 (CHAR_STRING_ADVANCE): Make it do-while statement.
28706
28707 * chartab.c (sub_char_table_set_range): Optimize for the case
28708 DEPTH == 3. Add workaround code for a GCC optimization bug.
28709
28710 * charset.c (parse_charset_map): Remove an unused variable.
28711
28712 * coding.c: Delete unused variables.
28713
28714 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28715 earlier. If inserted is zero and the coding system doesn't
28716 require flushing, don't call decode_coding_gap.
28717
28718 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28719
28720 2008-02-01 Kenichi Handa <handa@m17n.org>
28721
28722 The following changes are for using Unicode as an internal
28723 character model, and use UTF-8 format for buffer/string
28724 representation.
28725
28726 * .gdbinit (xchartable): Adjust for the change of char table structure.
28727 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28728
28729 * Makefile.in (obj): Add character.o and chartab.o.
28730 (lisp, shortlisp): Remove utf-8.elc.
28731 (*.o): For many files, change dependency on charset.h to
28732 character.h, and add dependency on character.h.
28733 (character.o, chartab.o): New targets.
28734
28735 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28736 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28737 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28738 of "charset.h".
28739
28740 * dired.c, filelock.c: Include "character.h".
28741
28742 * alloc.c: Include "character.h" instead of "charset.h".
28743 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28744 (syms_of_alloc): Remove defsubr for Smake_char_table.
28745
28746 * buffer.c: Include "character.h" instead of "charset.h", don't
28747 include "coding.h".
28748 (Fset_buffer_multibyte): Adjust for UTF-8.
28749
28750 * buffer.h: EXFUN Fbuffer_live_p.
28751
28752 * callproc.c: Include "character.h" instead of "charset.h".
28753 (Fcall_process): Big change for the new code-conversion APIs.
28754
28755 * casetab.c: Include "character.h" instead of "charset.h".
28756 (set_canon, set_identity, shuffle): Adjust for the new
28757 map_char_table spec.
28758 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28759 accessing the char table structure.
28760
28761 * chartab.c: New file that implements char table.
28762
28763 * category.c: Include "character.h".
28764 (copy_category_entry): New function.
28765 (copy_category_table): Call map_char_table and copy_category_entry.
28766 (Fmake_category_table): Initialize all top-level slots.
28767 (char_category_set): New function.
28768 (modify_lower_category_set): Delete.
28769 (Fmodify_category_entry): Call char_table_ref_and_range.
28770
28771 * category.h (CATEGORY_SET): Just call char_category_set.
28772
28773 * ccl.c: Include "character.h".
28774 (Qccl, Qcclp): New variables.
28775 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28776 it's less than 256.
28777 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28778 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28779 and DST type.
28780 (ccl_driver): Change types of argument, adjust code accordingly.
28781 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28782 ccl_driver.
28783 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28784
28785 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28786 New members src_multibyte, dst_multibyte, consumed, and produced.
28787 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28788 (CODING_SPEC_CCL_PROGRAM): New macro.
28789 (ccl_driver): Update prototype.
28790 (Qccl, Qcclp, Fccl_program_p): Extern them.
28791 (CHECK_CCL_PROGRAM): New macro.
28792
28793 * character.c, character.h, chartab.c: New files.
28794
28795 * charset.c: Mostly re-written. Move character and multibyte sequence
28796 handling codes to character.c.
28797
28798 * charset.h: Mostly re-written. Move character and multibyte sequence
28799 handling codes to character.h.
28800
28801 * coding.c, coding.h: Mostly re-written.
28802
28803 * composite.c: Include "character.h" instead of "charset.h".
28804 (CHAR_WIDTH): Move to character.h.
28805 (HASH_KEY, HASH_VALUE): Delete.
28806
28807 * composite.h (enum composition_method): Change order of enumeration
28808 symbols.
28809
28810 * data.c: Include "character.h" instead of "charset.h".
28811 (Faref): Call CHAR_TABLE_REF for a char table.
28812 (Faset): Call CHAR_TABLE_SET for a char table.
28813
28814 * dispextern.h (free_realized_face, check_face_attribytes)
28815 (generate_ascii_font): Extern them.
28816 (free_realized_multibyte_face): Delete extern.
28817
28818 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28819 table structure.
28820
28821 * editfns.c: Include "character.h" instead of "charset.h".
28822 (Fchar_to_string): Always call CHAR_STRING.
28823
28824 * emacs.c (main): Call init_charset_once, init_charset,
28825 syms_of_chartab, and syms_of_character.
28826
28827 * fileio.c: Include "character.h" instead of "charset.h".
28828 (Finsert_file_contents): Big change for the new code-conversion API.
28829 (choose_write_coding_system, Fwrite_region): Likewise.
28830 (build_annotations_2): Delete.
28831 (e_write): Big change for the new code-conversion API.
28832
28833 * fns.c: Include "character.h" instead of "charset.h".
28834 (copy_sub_char_table): Move to chartab.c.
28835 (Fcopy_sequence): Call copy_char_table for a char table.
28836 (concat): Delete codes calling count_multibyte.
28837 (string_char_to_byte, string_byte_to_char): Adjust for the new
28838 multibyte form.
28839 (internal_equal): Adjust for the change of char table structure.
28840 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28841 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28842 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28843 (char_table_translate, optimize_sub_char_table)
28844 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28845 chartab.c.
28846 (char_table_ref_and_index): Delete.
28847 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28848 (Fmd5): Call preferred_coding_system instead of accessing
28849 Vcoding_category_list. Adjust for the new code-conversion API.
28850 (syms_of_fns): Move defsubr for char table related functions to
28851 chartab.c.
28852
28853 * fontset.c: Mostly re-written.
28854
28855 * fontset.h (struct font_info): Change type of the member encoding_type.
28856 (enum FONT_SPEC_INDEX): New enum.
28857 (fontset_font_pattern, fs_load_font): Update prototype.
28858 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28859
28860 * indent.c: Include "character.h" instead of "charset.h".
28861 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28862
28863 * insdel.c: Include "character.h" instead of "charset.h".
28864 (copy_text): Don't refer to Vnonascii_translation_table.
28865 (insert_from_gap): New function.
28866
28867 * keyboard.c: Include "character.h" instead of "charset.h".
28868 (command_loop_1): Never call direct_output_forward_char before
28869 a non-ASCII character.
28870 (read_char): If Vkeyboard_translate_table is a char table, always
28871 translate a character.
28872
28873 * keymap.c: Include "character.h".
28874 (store_in_keymap): Handle the case that IDX is a cons.
28875 (Fdefine_key): Handle the case that KEY is a cons and the car part
28876 is also a cons (range).
28877 (push_key_description): Adjust for the new character code.
28878 (describe_vector): Call describe_char_table for a char table.
28879 (describe_char_table): New function.
28880
28881 * keymap.h (describe_char_table): Extern it.
28882
28883 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28884 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28885 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28886 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28887 Delete.
28888 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28889 structure.
28890 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28891 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28892 (CHARTAB_SIZE_BITS_3): New macros.
28893 (chartab_size): Extern it.
28894 (struct Lisp_Char_Table): Re-design.
28895 (struct Lisp_Sub_Char_Table): New structure.
28896 (HASH_KEY, HASH_VALUE): Move from fns.c.
28897 (CHARACTERBITS): Define as 22.
28898 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28899 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28900 (GC_SUB_CHAR_TABLE_P): New macro.
28901 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28902 (code_convert_string_norecord): Delete extern.
28903 (init_character_once, syms_of_character, init_charset)
28904 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28905
28906 * lread.c: Include "character.h".
28907 (read_multibyte): New arg NBYTES.
28908 (read_escape): Change the meaning of returned *BYTEREP.
28909 (to_multibyte): Delete.
28910 (read1): Adjust the handling of char table and string.
28911
28912 * print.c: Include "character.h" instead of "charset.h".
28913 (print_string): Convert 8-bit raw bytes to octal form by
28914 string_escape_byte8.
28915 (print_object): Adjust for the new multibyte form. Print 8-bit
28916 raw bytes always in octal form. Handle sub char table correctly.
28917
28918 * process.c: Include "character.h" instead of "charset.h".
28919 (read_process_output, send_process): Adjust for the new
28920 code-conversion API.
28921
28922 * puresize.h (BASE_PURESIZE): Increase.
28923
28924 * regex.c: Include "character.h" instead of "charset.h".
28925 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28926 (regex_compile): Accept a range whose starting and ending
28927 character have different leading bytes.
28928 (analyse_first): Adjust for the above change.
28929
28930 * search.c: Include "character.h" instead of "charset.h".
28931 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28932 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28933
28934 * syntax.c: Include "character.h" instead of "charset.h".
28935 (syntax_parent_lookup): Delete.
28936 (Fmodify_syntax_entry): Accept a cons as CHAR.
28937 (skip_chars): Adjust for the new multibyte form.
28938 (init_syntax_once): Call char_table_set_range instead of directly
28939 accessing the structure of a char table.
28940
28941 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28942 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28943 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28944 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28945
28946 * term.c: Include "buffer.h" and "character.h".
28947 (encode_terminal_code, write_glyphs): Adjust for the new
28948 code-conversion API.
28949 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28950
28951 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28952
28953 * xdisp.c: Include "character.h".
28954 (get_next_display_element): Adjust for the new multibyte form.
28955 (disp_char_vector): Adjust for the new char table structure.
28956 (decode_mode_spec_coding): Adjust for the new structure of
28957 coding system.
28958 (decode_mode_spec): Adjust for the new code-conversion API.
28959
28960 * xfaces.c: Include "character.h" instead of "charset.h".
28961 (load_face_font): Adjust for the change of choose_face_font and
28962 FS_LOAD_FONT.
28963 (generate_ascii_font): New function.
28964 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28965 (set_font_frame_param): Adjust for the change of choose_face_font.
28966 (free_realized_face): Make it public.
28967 (free_realized_faces_for_fontset): Rename from
28968 free_realized_multibyte_face. Free also faces realized for ASCII.
28969 (choose_face_font): Change arguments. Adjust for the change of
28970 fontset_font_pattern and FS_LOAD_FONT.
28971
28972 * xfns.c: Include "character.h".
28973 (x_encode_text): Adjust for the new code-conversion API.
28974
28975 * xselect.c: Don't include "charset.h".
28976 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28977
28978 * xterm.c: Include "character.h".
28979 (x_encode_char): New argument CHARSET. Change caller.
28980 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28981 Call ENCODE_CHAR instead of SPLIT_CHAR.
28982 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28983 CHAR_WIDTH instead of CHARSET_WIDTH.
28984 (XTread_socket): Adjust for the new code-conversion API.
28985 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28986 (x_load_font): Adjust for the change of struct font.
28987
28988 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28989
28990 * xfaces.c (face_at_buffer_position): Remove unused vars.
28991
28992 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28993
28994 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28995 Fix overflow checking.
28996
28997 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28998
28999 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
29000 Cancel previous change.
29001
29002 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29003
29004 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
29005 ccl->eight_bit_control. Fix check for buffer overflow.
29006 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
29007 (ccl_driver): Initialize extra_bytes to 0.
29008
29009 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29010
29011 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
29012 return it ORed with ctrl_modifier.
29013
29014 2008-01-29 Miles Bader <miles@gnu.org>
29015
29016 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
29017
29018 2008-01-28 Jason Rumney <jasonr@gnu.org>
29019
29020 * w32.c (stat): Don't double check for networked drive.
29021
29022 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
29023
29024 * window.c (run_window_configuration_change_hook): New function.
29025 Code extracted from set_window_buffer. Set the selected frame.
29026 (set_window_buffer): Use it.
29027 * window.h (run_window_configuration_change_hook): Declare.
29028 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
29029
29030 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
29031
29032 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
29033
29034 * Makefile.in: Remove references to unused macros.
29035
29036 2008-01-26 Eli Zaretskii <eliz@gnu.org>
29037
29038 * w32.c (g_b_init_get_sid_sub_authority)
29039 (g_b_init_get_sid_sub_authority_count): New static variables.
29040 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
29041 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
29042 (init_user_info): Use them to retrieve uid and gid.
29043 Use 500/513, the Windows defaults, as Administrator's uid/gid.
29044 (fstat): Use pw_uid and pw_gid from the_passwd structure for
29045 st_uid and st_gid of the file.
29046
29047 2008-01-26 Jason Rumney <jasonr@gnu.org>
29048
29049 * w32.c (logon_network_drive): New function.
29050 (stat): Use it.
29051
29052 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
29053
29054 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
29055 invisible text covered with an ellipsis.
29056
29057 2008-01-25 Richard Stallman <rms@gnu.org>
29058
29059 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
29060 jump back to beginning. Move some other initializations after that.
29061 (Qwindow_text_change_functions, Vwindow_text_change_functions):
29062 New variables.
29063 (syms_of_xdisp): Init them.
29064
29065 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
29066
29067 * buffer.c (reset_buffer_local_variables):
29068 Implement `permanent-local-hook'.
29069 (Qpermanent_local_hook): New variable.
29070 (syms_of_buffer): Init and staticpro it.
29071
29072 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
29073
29074 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
29075
29076 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
29077
29078 * fns.c (Fclrhash): Return TABLE.
29079
29080 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29081
29082 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
29083 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
29084 is set even without positional changes.
29085 (x_scroll_bar_clear): Set bar->redraw_needed_p.
29086
29087 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
29088
29089 2008-01-23 Jason Rumney <jasonr@gnu.org>
29090
29091 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
29092
29093 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
29094 the unicode range available in MULE by locale-coding-system.
29095 Improve dbcs lead byte detection. Set event timestamp and modifiers
29096 earlier.
29097
29098 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29099
29100 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
29101 [MAC_OSX] (init_mac_osx_environment): Initialize it.
29102 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
29103 when used on child processes.
29104
29105 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
29106
29107 * dbusbind.c (Fdbus_method_return_internal): Rename from
29108 Fdbus_method_return.
29109 (Fdbus_unregister_object): Move to dbus.el.
29110 (Fdbus_call_method, Fdbus_method_return_internal)
29111 (Fdbus_send_signal): Improve debug messages.
29112
29113 2008-01-20 Martin Rudalics <rudalics@gmx.at>
29114
29115 * undo.c (undo_inhibit_record_point): New variable.
29116 (syms_of_undo): Initialize it.
29117 (record_point): Don't record point when undo_inhibit_record_point
29118 is set.
29119
29120 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
29121
29122 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
29123
29124 * xdisp.c (Qauto_hscroll_mode): New var.
29125 (syms_of_xdisp): Initialize it.
29126 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
29127 window's buffer.
29128 (hscroll_windows): Don't check automatic_hscrolling_p here.
29129
29130 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
29131 vscroll if we're setting window-buffer to the value it already has.
29132
29133 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
29134
29135 * m/intel386.h: Remove references to XENIX.
29136
29137 2008-01-17 Andreas Schwab <schwab@suse.de>
29138
29139 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
29140 instead of HAVE_X86_64_LIB64_DIR.
29141 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
29142
29143 2008-01-17 Glenn Morris <rgm@gnu.org>
29144
29145 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
29146 to HAVE_X86_64_LIB64_DIR.
29147
29148 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
29149
29150 * s/irix3-3.h:
29151 * s/irix4-0.h:
29152 * s/386-ix.h:
29153 * s/domain.h:
29154 * s/hpux9-x11r4.h:
29155 * s/hpux9shxr4.h: Remove files for systems no longer supported.
29156
29157 * sysdep.c: Remove code containing references to symbols defined
29158 by unsupported systems.
29159
29160 2008-01-16 Glenn Morris <rgm@gnu.org>
29161
29162 * coding.c (select-safe-coding-system-function): Doc fix.
29163
29164 2008-01-15 Glenn Morris <rgm@gnu.org>
29165
29166 * config.in: Revert 2008-01-13 change: this is a generated file.
29167
29168 2008-01-13 Tom Tromey <tromey@redhat.com>
29169
29170 * lisp.h: Fix typo.
29171
29172 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29173
29174 * m/sequent-ptx.h:
29175 * m/sequent.h:
29176 * s/ptx.h:
29177 * s/ptx4-2.h:
29178 * s/ptx4.h: Remove files for systems no longer supported.
29179
29180 * callproc.c (Fcall_process): Fix previous change.
29181
29182 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29183
29184 * unexsunos4.c: Remove file, system not supported anymore.
29185
29186 * m/mips.h:
29187 * m/intel386.h:
29188 * callproc.c:
29189 * config.in:
29190 * ecrt0.c:
29191 * emacs.c:
29192 * fileio.c:
29193 * frame.c:
29194 * getpagesize.h:
29195 * keyboard.c:
29196 * lread.c:
29197 * process.c:
29198 * puresize.h:
29199 * sysdep.c:
29200 * systty.h:
29201 * syswait.h:
29202 * unexec.c:
29203 * xdisp.c:
29204 * alloc.c: Remove code containing references to symbols defined by
29205 unsupported systems.
29206
29207 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
29208
29209 * coding.c (detect_coding_mask): Fix previous change.
29210
29211 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
29212
29213 * coding.c (detect_coding_iso2022): New arg
29214 latin_extra_code_state. Allow Latin extra codes only
29215 when *latin_extra_code_state is nonzero.
29216 (detect_coding_mask): If there is a NULL byte, detect the encoding
29217 as UTF-16 or binary. If Latin extra codes exist, detect the
29218 encoding as ISO-2022 only when there's no other proper encoding is
29219 found.
29220
29221 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29222
29223 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
29224 #ifdef MAC_OS.
29225
29226 2008-01-08 Richard Stallman <rms@gnu.org>
29227
29228 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
29229
29230 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
29231
29232 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29233 menu bar in parentheses.
29234
29235 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29236
29237 * m/7300.h:
29238 * m/acorn.h:
29239 * m/alliant-2800.h:
29240 * m/alliant.h:
29241 * m/alliant1.h:
29242 * m/alliant4.h:
29243 * m/altos.h:
29244 * m/amdahl.h:
29245 * m/apollo.h:
29246 * m/att3b.h:
29247 * m/aviion-intel.h:
29248 * m/aviion.h:
29249 * m/celerity.h:
29250 * m/clipper.h:
29251 * m/cnvrgnt.h:
29252 * m/convex.h:
29253 * m/cydra5.h:
29254 * m/delta88k.h:
29255 * m/dpx2.h:
29256 * m/dual.h:
29257 * m/elxsi.h:
29258 * m/f301.h:
29259 * m/gould-np1.h:
29260 * m/gould.h:
29261 * m/i860.h:
29262 * m/ibmps2-aix.h:
29263 * m/ibmrt-aix.h:
29264 * m/ibmrt.h:
29265 * m/irist.h:
29266 * m/is386.h:
29267 * m/isi-ov.h:
29268 * m/mega68.h:
29269 * m/mg1.h:
29270 * m/news-r6.h:
29271 * m/news-risc.h:
29272 * m/news.h:
29273 * m/nh3000.h:
29274 * m/nh4000.h:
29275 * m/ns16000.h:
29276 * m/ns32000.h:
29277 * m/nu.h:
29278 * m/orion.h:
29279 * m/orion105.h:
29280 * m/paragon.h:
29281 * m/pfa50.h:
29282 * m/plexus.h:
29283 * m/pyramid.h:
29284 * m/pyrmips.h:
29285 * m/sh3el.h:
29286 * m/sps7.h:
29287 * m/sr2k.h:
29288 * m/stride.h:
29289 * m/sun1.h:
29290 * m/sun2.h:
29291 * m/sun3-68881.h:
29292 * m/sun3-fpa.h:
29293 * m/sun3-soft.h:
29294 * m/sun3.h:
29295 * m/sun386.h:
29296 * m/symmetry.h:
29297 * m/tad68k.h:
29298 * m/tahoe.h:
29299 * m/targon31.h:
29300 * m/tek4300.h:
29301 * m/tekxd88.h:
29302 * m/tower32.h:
29303 * m/tower32v3.h:
29304 * m/ustation.h:
29305 * m/wicat.h:
29306 * m/xps100.h:
29307 * s/cxux.h:
29308 * s/cxux7.h:
29309 * s/dgux.h:
29310 * s/dgux4.h:
29311 * s/dgux5-4-3.h:
29312 * s/dgux5-4r2.h:
29313 * s/esix.h:
29314 * s/esix5r4.h:
29315 * s/hiuxmpp.h:
29316 * s/hiuxwe2.h:
29317 * s/iris3-5.h:
29318 * s/iris3-6.h:
29319 * s/isc2-2.h:
29320 * s/isc3-0.h:
29321 * s/isc4-0.h:
29322 * s/isc4-1.h:
29323 * s/newsos5.h:
29324 * s/newsos6.h:
29325 * s/osf1.h:
29326 * s/osf5-0.h:
29327 * s/riscix1-1.h:
29328 * s/riscix12.h:
29329 * s/sco4.h:
29330 * s/sco5.h:
29331 * s/sunos4-0.h:
29332 * s/sunos4-1.h:
29333 * s/sunos413.h:
29334 * s/sunos4shr.h:
29335 * s/umax.h:
29336 * s/unipl5-2.h:
29337 * s/xenix.h:
29338 * cxux-crt0.s:
29339 * unexapollo.c:
29340 * unexconvex.c:
29341 * unexenix.c:
29342 * unexsni.c: Remove files for systems no longer supported.
29343
29344 * m/intel386.h: Remove references to unsupported systems.
29345
29346 * w32.c (get_emacs_configuration): Remove reference to i860.
29347
29348 * sysdep.c: Remove dead code.
29349
29350 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29351
29352 * s/rtu.h:
29353 * m/masscomp.h: Remove files. Platform is obsolete.
29354
29355 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
29356
29357 * dbusbind.c (Fdbus_method_return): New function.
29358 (xd_read_message): Add the serial number to the event.
29359 (Fdbus_register_method): Activate the function.
29360
29361 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29362
29363 * keyboard.c (read_key_sequence): Fix typo.
29364
29365 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
29366
29367 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29368 (xd_signature, xd_append_arg): Handle element type detection for
29369 empty arrays.
29370 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29371 SDATA () calls; this must be solved more general.
29372 (Fdbus_register_signal): Use SBYTES instead of strlen.
29373
29374 2008-01-03 Magnus Henoch <magnus@zemdatav>
29375
29376 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29377 unsigned int for byte values (necessary for big-endian platform).
29378 (Fdbus_call_method): Handle the case of no returned arguments.
29379
29380 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29381
29382 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29383
29384 2007-12-31 Magnus Henoch <mange@freemail.hu>
29385
29386 * dbusbind.c (xd_signature): Signature of variant is just "v".
29387
29388 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
29389
29390 * dbusbind.c: Fix several errors and compiler warnings.
29391 Reported by Tom Tromey <tromey@redhat.com>.
29392 (XD_ERROR, XD_DEBUG_MESSAGE)
29393 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29394 (xd_append_arg): Part for basic D-Bus types rewritten.
29395 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29396 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29397 appropriate.
29398 (xd_read_message): Return Qnil. Don't signal an error; it is not
29399 useful during event reading.
29400 (Fdbus_register_signal): Signal an error if the check for
29401 FUNCTIONP fails.
29402 (Fdbus_register_method): New function. The implementation is not
29403 complete, the call of the function signals an error therefore.
29404 (Fdbus_unregister_object): New function, renamed from
29405 Fdbus_unregister_signal. The initial check signals an error, if
29406 the object is not well formed.
29407
29408 2007-12-30 Richard Stallman <rms@gnu.org>
29409
29410 * textprop.c (get_char_property_and_overlay):
29411 Signal error if POSITION is out of range in a buffer.
29412
29413 2007-12-29 Martin Rudalics <rudalics@gmx.at>
29414
29415 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29416 because the original parameters are in pure storage now.
29417
29418 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29419
29420 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29421
29422 2007-12-22 Eli Zaretskii <eliz@gnu.org>
29423
29424 * callint.c (syms_of_callint) <command-history>: Add reference to
29425 history-length in the doc string.
29426
29427 2007-12-17 Jason Rumney <jasonr@gnu.org>
29428
29429 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29430 before passing as wParam.
29431
29432 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
29433
29434 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29435 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29436 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29437 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29438 as number.
29439 (Fdbus_call_method): Fix docstring.
29440
29441 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
29442
29443 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29444 New macros.
29445 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29446 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29447 Simplify.
29448 (xd_signature): New function.
29449 (xd_append_arg): Compute also signatures. Major rewrite.
29450 (xd_retrieve_arg): Make debug messages friendly.
29451 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29452 Check for signatures of arguments.
29453
29454 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
29455
29456 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29457 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29458 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29459 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29460 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29461 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29462 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29463 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29464 (xd_retrieve_value): Remove. Functionality included in ...
29465 (xd_append_arg): New function.
29466 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29467
29468 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
29469
29470 * dbusbind.c (top): Include <stdio.h>.
29471 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29472 dbus_message_new_method_call and dbus_message_new_signal.
29473 (Fdbus_register_signal): Rename unique_name to uname.
29474 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29475 non-existing unique name. Fix typos in matching rule. Return an
29476 object which is useful in Fdbus_unregister_signal.
29477 (Fdbus_unregister_signal): Reimplementation, in order to remove
29478 only the corresponding entry.
29479 (Vdbus_registered_functions_table): Change the order of entries.
29480 Apply these changes in xd_read_message and Fdbus_register_signal.
29481
29482 2007-12-16 Andreas Schwab <schwab@suse.de>
29483
29484 * fileio.c (Finsert_file_contents): Fix overflow check to not
29485 depend on undefined integer overflow.
29486
29487 2007-12-14 Jason Rumney <jasonr@gnu.org>
29488
29489 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29490 for characters above 127.
29491
29492 2007-12-13 Jason Rumney <jasonr@gnu.org>
29493
29494 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29495 before dereferencing array.
29496 (lookup_vk_code): Remove zero comparison.
29497
29498 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
29499
29500 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29501 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29502 Use `unsigned int' instead of `uint'.
29503 (xd_read_message, Fdbus_register_signal): Split expressions into
29504 multiple lines before operators "&&" and "||", according to the
29505 GNU Coding Standards.
29506
29507 2007-12-14 Eli Zaretskii <eliz@gnu.org>
29508
29509 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29510
29511 2007-12-12 Juri Linkov <juri@jurta.org>
29512
29513 * buffer.c (Frename_buffer): In interactive spec replace
29514 `read-buffer' with `read-string' that uses `buffer-name-history'
29515 as history, and the current buffer's name as default.
29516
29517 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29518
29519 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29520 manipulating the backtrace manually.
29521 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29522 (struct backtrace, backtrace_list): Remove.
29523 (command_loop_1): Remove dead var `no_direct'.
29524
29525 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29526 preserve non-built-in buffer-local variables.
29527 (Fkill_all_local_variables): Don't re-create&re-set permanent
29528 buffer-local variables.
29529
29530 2007-12-09 Juri Linkov <juri@jurta.org>
29531
29532 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29533 Lisp code that uses `read-buffer' with current buffer as default.
29534
29535 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
29536
29537 * dbusbind.c (xd_read_message): Generate an event for every
29538 registered handler. There might be several handlers registered
29539 for the same signal.
29540 (Fdbus_register_signal): Don't overwrite a registration for the
29541 same signal. Add a new registration if handlers are different.
29542 (Vdbus_registered_functions_table): Rework doc string.
29543
29544 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
29545
29546 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29547 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29548 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29549 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29550 Unify argument lists.
29551 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29552 arguments and hash table keys. Use unique name for service.
29553 (Fdbus_unregister_signal): Remove checks.
29554 (Vdbus_registered_functions_table): Fix doc string.
29555
29556 2007-12-05 Magnus Henoch <mange@freemail.hu>
29557
29558 * process.c (make_process): Initialize pty_flag to 0.
29559
29560 2007-12-05 Jason Rumney <jasonr@gnu.org>
29561
29562 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29563 specified XBMs.
29564
29565 2007-12-05 Richard Stallman <rms@gnu.org>
29566
29567 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29568
29569 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29570
29571 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29572 New variable.
29573 (mac_try_close_socket) [MAC_OSX]: New function.
29574 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29575 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29576
29577 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29578 Use mac_try_close_socket.
29579
29580 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29581
29582 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29583 reloc_base.
29584 (copy_dysymtab): Compute relocation base here.
29585 (rebase_reloc_address) [__ppc64__]: New function.
29586 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29587 changed.
29588
29589 2007-12-05 Jason Rumney <jasonr@gnu.org>
29590
29591 * w32proc.c (sys_spawnve): Quote args with wildcards.
29592
29593 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29594
29595 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29596 __objc_* sections.
29597 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29598
29599 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
29600
29601 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29602 Move check for Vdbus_registered_functions_table to
29603 xd_read_queued_messages.
29604 (xd_read_queued_messages): Protect xd_read_message calls by
29605 internal_condition_case_1.
29606
29607 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
29608
29609 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29610 Qdbus_system_bus and Qdbus_session_bus, respectively.
29611 (Vdbus_intern_symbols): Remove.
29612 (Vdbus_registered_functions_table): New hash table.
29613 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29614 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29615 Rewrite in order to manage registered functions by hash table
29616 Vdbus_registered_functions_table.
29617
29618 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29619
29620 * xterm.c: Update URL to Window Manager Specification in comment.
29621
29622 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29623
29624 * config.in (HAVE_DBUS): Add.
29625
29626 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29627 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29628 (obj): Add $(DBUS_OBJ).
29629 (LIBES): Add $(DBUS_LIBS).
29630 (dbusbind.o): New target.
29631
29632 * dbusbind.c: New file.
29633
29634 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29635
29636 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29637 (Qdbus_event): New Lisp symbol.
29638 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29639 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29640 (keys_of_keyboard): Define dbus-event.
29641
29642 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29643
29644 2007-12-01 Richard Stallman <rms@gnu.org>
29645
29646 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29647
29648 2007-11-30 Jason Rumney <jasonr@gnu.org>
29649
29650 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29651 (w32con_reset_terminal_modes): Clear screen buffer.
29652 (w32_face_attributes): Don't use color indexes that are out of range.
29653 Only reverse the default colors.
29654
29655 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29656 WINDOWSNT.
29657
29658 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29659
29660 2007-11-29 Jason Rumney <jasonr@gnu.org>
29661
29662 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29663 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29664 if the terminal colors are initialized.
29665 (unspecified_fg, unspecified_bg): Remove unused declarations.
29666
29667 2007-11-29 Andreas Schwab <schwab@suse.de>
29668
29669 * keyboard.c (apply_modifiers): Fix typo.
29670
29671 2007-11-29 Richard Stallman <rms@gnu.org>
29672
29673 * keymap.c (Fcurrent_local_map): Doc fix.
29674
29675 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29676
29677 * s/gnu-kfreebsd.h: New file.
29678
29679 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29680
29681 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29682 Don't cast redundantly.
29683
29684 * keyboard.c (KEY_TO_CHAR): New macro.
29685 (parse_modifiers, apply_modifiers): Accept integer arguments.
29686 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29687 for chars and symbol keys.
29688 After doing such remapping, apply function-key-map again.
29689
29690 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29691
29692 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29693 compiled anymore.
29694
29695 2007-11-26 Andreas Schwab <schwab@suse.de>
29696
29697 * process.c (list_processes_1): Fix indentation level of the
29698 command column.
29699
29700 2007-11-23 Andreas Schwab <schwab@suse.de>
29701
29702 * editfns.c (Fformat): Handle %c specially since it requires the
29703 argument to be of type int.
29704
29705 2007-11-23 Markus Triska <markus.triska@gmx.at>
29706
29707 * emacs.c (main): Call init_editfns before init_process, since
29708 init_process sets Vprocess_connection_type depending on OS release.
29709
29710 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29711
29712 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29713 (find_symbol_value): Use do_symval_forwarding.
29714
29715 * data.c (set_internal): Set the value in the `cons-cell' (for
29716 Buffer_Local_values) not only for frame-local variables.
29717
29718 2007-11-22 Andreas Schwab <schwab@suse.de>
29719
29720 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29721 values to sprintf.
29722 * keymap.c (Fsingle_key_description): Likewise.
29723 * print.c (print_object): Likewise.
29724
29725 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29726
29727 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29728 file for image is nil.
29729
29730 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29731
29732 * term.c: Include stdarg.h.
29733 (fatal): Implement using varargs.
29734 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29735
29736 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29737
29738 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29739 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29740 Update call to buffer_slot_type_mismatch.
29741 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29742 (buffer_slot_type_mismatch): Update.
29743 * buffer.c (buffer_local_types): Remove.
29744 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29745 (defvar_per_buffer): Set the type in the buffer_objfwd.
29746
29747 2007-11-21 Jason Rumney <jasonr@gnu.org>
29748
29749 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29750 CreateFileMapping returns NULL on failure.
29751
29752 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29753
29754 * search.c (Fset_match_data): Remove the `evaporate' feature.
29755 (unwind_set_match_data): Don't use the `evaporate' feature.
29756
29757 2007-11-21 Jason Rumney <jasonr@gnu.org>
29758
29759 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29760
29761 * w32console.c (w32con_write_glyphs): Remove unused variables.
29762
29763 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29764
29765 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29766
29767 * s/darwin.h (MULTI_KBOARD): Remove.
29768
29769 * macfns.c (x_create_tip_frame, Fx_create_frame)
29770 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29771
29772 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29773
29774 * buffer.c (Fbuffer_local_value): Remove redundant test.
29775 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29776 than in `current-buffer' to match the comment.
29777 Do the swap using swap_in_global_binding.
29778
29779 * data.c (store_symval_forwarding, set_internal):
29780 * eval.c (specbind): Remove dead code.
29781
29782 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29783 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29784 Since we do not want to see internal Lisp_*fwd objects here.
29785
29786 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29787
29788 * sysdep.c (init_system_name): Use getaddrinfo if available.
29789
29790 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29791 (x_scroll_bar_note_movement): start, end, with, height in struct
29792 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29793
29794 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29795
29796 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29797
29798 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29799
29800 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29801 This undoes Richard's change of 14-Oct-2002.
29802
29803 * alloc.c (allocate_other_vector):
29804 * lisp.h (allocate_other_vector): Remove.
29805
29806 * window.c (struct save_window_data): Move non-lisp data to the end
29807 and make it `int' rather than Lisp_Object.
29808 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29809 Done wrap/unwrap integer values.
29810 (Fset_window_configuration, compare_window_configurations):
29811 Update use of fields to their new types.
29812
29813 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29814 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29815 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29816 (SET_SCROLL_BAR_X_WINDOW): Remove.
29817 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29818 Access the new x_window field directly.
29819 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29820 Don't wrap/unwrap integers into Lisp_Objects.
29821 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29822 (x_scroll_bar_report_motion):
29823 Don't wrap/unwrap integers into Lisp_Objects.
29824 (x_term_init): Use SDATA.
29825 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29826 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29827 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29828 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29829 * xfns.c (x_set_background_color):
29830 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29831 Access the new x_window field directly.
29832
29833 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29834 (allocate_pseudovector): Make non-static.
29835
29836 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29837 (allocate_pseudovector): Declare.
29838 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29839
29840 2007-11-15 Andreas Schwab <schwab@suse.de>
29841
29842 * editfns.c (Fformat): Correctly format EMACS_INT values.
29843 Also take precision into account when formatting an integer.
29844
29845 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29846
29847 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29848
29849 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29850 (syms_of_keyboard): Defsubr it.
29851
29852 * data.c (swap_in_global_binding): Fix longstanding bug where
29853 store_symval_forwarding was not called with the right second argument,
29854 thus causing objfwd-ing from being dropped.
29855
29856 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29857
29858 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29859 (Fx_display_pixel_height, Fx_display_planes)
29860 (Fx_display_color_cells, Fx_server_max_request_size)
29861 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29862 (Fx_display_visual_class, Fx_display_save_under):
29863 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29864 (Fx_display_pixel_height, Fx_display_planes)
29865 (Fx_display_color_cells, Fx_server_max_request_size)
29866 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29867 (Fx_display_mm_height, Fx_display_mm_width)
29868 (Fx_display_backing_store, Fx_display_visual_class)
29869 (Fw32_select_font, Fx_display_save_under):
29870 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29871 (Fx_display_pixel_height, Fx_display_planes)
29872 (Fx_display_color_cells, Fx_server_max_request_size)
29873 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29874 (Fx_display_save_under): Fix typos in docstrings.
29875
29876 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29877
29878 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29879 corresponding to deleted entries; they are an implementation detail.
29880 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29881 Remove variables.
29882 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29883 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29884 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29885 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29886 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29887 (Fw32_define_rgb_color, Fw32_load_color_file)
29888 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29889 Fix typos in docstrings.
29890 (Fx_server_version): Reflow docstring.
29891 (Fw32_shell_execute): Doc fixes.
29892
29893 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29894
29895 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29896 if w32_parse_hot_key returned nil.
29897
29898 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29899
29900 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29901
29902 2007-11-09 Jason Rumney <jasonr@gnu.org>
29903
29904 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29905
29906 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29907
29908 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29909 Remove W32_SCROLL_BAR_CLICK_EVENT.
29910
29911 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29912 Add MULTIMEDIA_KEY_EVENT.
29913
29914 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29915 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29916 (make_lispy_event) [WINDOWSNT]: Use it to translate
29917 MULTIMEDIA_KEY_EVENT.
29918
29919 * w32term.h (WM_APPCOMMAND): Define if not already.
29920 (GET_APPCOMMAND_LPARAM): Likewise.
29921
29922 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29923 WM_APPCOMMAND.
29924
29925 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29926 (syms_of_w32fns): Export and initialize it.
29927 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29928
29929 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29930
29931 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29932 twice.
29933
29934 * xdisp.c (handle_face_prop): Fix last change.
29935
29936 2007-11-09 Richard Stallman <rms@gnu.org>
29937
29938 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29939 not just for after-strings and before-strings.
29940 Call face_for_overlay_string and pass the overlay to it.
29941 (handle_display_prop): Determine whether property came from an overlay.
29942 Pass OVERLAY arg to handle_single_display_spec.
29943 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29944 (load_overlay_strings): Fill in it->string_overlays.
29945 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29946
29947 * xfaces.c (face_for_overlay_string): Function renamed from
29948 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29949
29950 * dispextern.h (struct it): New elt string_overlays.
29951 New elt from_overlay, also in stack.
29952 Rearrange a few elements.
29953 (face_for_overlay_string): Decl renamed from
29954 face_at_buffer_position_no_overlays, and add argument.
29955
29956 2007-11-09 Richard Stallman <rms@gnu.org>
29957
29958 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29959 to get the base face for an overlay string.
29960
29961 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29962
29963 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29964
29965 * xdisp.c (handle_stop): Move some code out of loop.
29966
29967 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29968
29969 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29970 Fix conversion from Lisp object to ATSUFontID.
29971
29972 2007-11-09 Jason Rumney <jasonr@gnu.org>
29973
29974 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29975
29976 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29977
29978 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29979 Don't assume regions are aligned to page boundary.
29980 (print_load_command_name): Add LC_UUID if defined.
29981
29982 2007-11-09 Richard Stallman <rms@gnu.org>
29983
29984 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29985
29986 2007-11-07 Jason Rumney <jasonr@gnu.org>
29987
29988 * s/windows95.h: Remove.
29989
29990 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29991
29992 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29993 abort with a message on unhandled store_type values.
29994
29995 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29996
29997 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29998 Remove HAVE_X11R5 and HAVE_X11R4.
29999
30000 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30001
30002 * Makefile.in: Remove references to sunfns.c and sunfns.o.
30003
30004 2007-11-01 Johan Bockgård <bojohan@gnu.org>
30005
30006 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
30007 Don't set s->stippled_p here, since it has already been set by
30008 x_set_glyph_string_gc from x_draw_glyph_string.
30009
30010 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30011
30012 * sunfns.c: Remove file.
30013
30014 * m/sun386.h:
30015 * m/sun2.h:
30016 * m/sparc.h: Remove Sun windows code.
30017
30018 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
30019
30020 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
30021 (init_keyboard): Set current_kboard's window-system to nil.
30022 (tty_read_avail_input): Typo.
30023 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
30024
30025 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
30026
30027 * s/usg5-4.h:
30028 * s/usg5-3.h:
30029 * s/ptx.h:
30030 * m/is386.h:
30031 * m/ibmps2-aix.h:
30032 * Makefile.in: Remove all mentions of X10.
30033
30034 * dispnew.c (syms_of_display): Don't mention version 10.
30035
30036 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
30037
30038 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
30039 ($(BLD)/abbrev.$(O)): Remove.
30040
30041 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
30042
30043 Rewrite abbrev.c in Elisp.
30044 * image.c (Qcount): Don't declare as extern.
30045 (syms_of_image): Initialize and staticpro `Qcount'.
30046 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
30047 * emacs.c (main): Don't call syms_of_abbrev.
30048 * Makefile.in (obj): Remove abbrev.o.
30049 (abbrev.o): Remove.
30050 * abbrev.c: Remove.
30051
30052 2007-10-26 Martin Rudalics <rudalics@gmx.at>
30053
30054 * window.c (window_min_size_2): Don't count header-line.
30055
30056 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
30057
30058 * frame.h (struct frame): Move all bit fields after the first bit
30059 field to take advantage of the available space. Group all the
30060 chars together to reduce wasted space due to padding.
30061
30062 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
30063
30064 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
30065
30066 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
30067 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
30068 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
30069 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
30070 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
30071 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
30072 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
30073 (last_marked, mark_object_loop_halt): Make static.
30074
30075 * frame.c (syms_of_frame) <delete-frame-functions>:
30076 Fix typo in docstring.
30077
30078 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
30079
30080 * w32.c (init_environment): Fix tiny memory leak.
30081 (w32_get_resource): Remove unused variable `ok'.
30082
30083 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
30084
30085 Make `window-system' into a keyboard-local variable (rather than
30086 frame-local as done originally by multi-tty).
30087
30088 * keyboard.h (struct kboard): Add Vwindow_system.
30089 * keyboard.c (init_kboard): Set a default for Vwindow_system.
30090 (mark_kboards): Mark Vwindow_system.
30091
30092 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
30093 (init_display): Don't set the obsolete `window-system' frame-param.
30094
30095 * xterm.c (x_term_init):
30096 * w32term.c (w32_create_terminal):
30097 * term.c (init_tty): Set Vwindow_system.
30098 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
30099 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
30100
30101 * xfns.c (Fx_create_frame, x_create_tip_frame):
30102 * w32fns.c (Fx_create_frame, x_create_tip_frame):
30103 * macfns.c (Fx_create_frame):
30104 Don't set the obsolete `window-system' frame-param.
30105
30106 * frame.h (Qwindow_system): Remove.
30107 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
30108 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
30109
30110 2007-10-24 Richard Stallman <rms@gnu.org>
30111
30112 * frame.c (x_figure_window_size): For fullscreen case,
30113 set USPosition | PPosition without clobbering rest of window_prompting.
30114
30115 * keyboard.c (Fcurrent_idle_time): Doc fix.
30116
30117 * print.c (Fwith_output_to_temp_buffer): Doc fix.
30118
30119 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
30120
30121 * process.c (unwind_request_sigio): Only define if __ultrix__.
30122
30123 * callproc.c (child_setup): Remove spurious *.
30124
30125 * lisp.h (Fget_text_property): Declare.
30126 (have_menus_p): Declare it here rather than in sys-dep header files.
30127 * macterm.h (have_menus_p):
30128 * msdos.h (have_menus_p):
30129 * xterm.h (have_menus_p): Remove.
30130
30131 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
30132 (Fmake_variable_frame_local): Just check the variable's const-ness
30133 rather than checking nil or t.
30134
30135 2007-10-22 Jason Rumney <jasonr@gnu.org>
30136
30137 * w32fns.c: Include math.h.
30138 (w32_abort): Declaration moved to nt/config.nt.
30139
30140 * s/ms-w32.h (HAVE_STDLIB_H): Define.
30141 (abort): Redefinition moved to nt/config.nt.
30142
30143 * m/windowsnt.h: Remove.
30144
30145 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
30146
30147 * emacs.c (Fdump_emacs): Fix typo in message.
30148 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
30149 <installation-directory>: Reflow docstring.
30150
30151 2007-10-22 Juri Linkov <juri@jurta.org>
30152
30153 * minibuf.c: Allow minibuffer default to be a list of default values.
30154 With empty input use the first element of this list as returned default.
30155 (string_to_object)
30156 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
30157 (read_minibuf): If defalt is cons, set histstring to its car.
30158 (Fread_string): If default_value is cons, set val to its car.
30159 (Fread_buffer): If def is cons, use its car.
30160 (Fcompleting_read): If defalt is cons, set val to its car.
30161
30162 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
30163
30164 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
30165
30166 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
30167
30168 * doc.c (Fdocumentation): Check for advice in all cases.
30169
30170 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
30171
30172 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
30173
30174 2007-10-19 Richard Stallman <rms@gnu.org>
30175
30176 * doc.c (Fdocumentation): Check for and handle an advised function.
30177
30178 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
30179
30180 * process.c (Fset_process_filter): Doc fix.
30181
30182 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
30183
30184 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
30185 which caused key-translation-map to applied repeatedly (thus breaking
30186 double-mode).
30187
30188 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30189
30190 * xselect.c (x_own_selection, x_handle_selection_clear)
30191 (x_clear_frame_selections):
30192 * w32menu.c (list_of_panes, list_of_items):
30193 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
30194 * textprop.c (validate_plist, interval_has_all_properties)
30195 (interval_has_some_properties, interval_has_some_properties_list)
30196 (add_properties, text_property_list):
30197 * process.c (Fget_buffer_process, list_processes_1, status_notify):
30198 * minibuf.c (Fassoc_string):
30199 * macselect.c (x_own_selection, x_clear_frame_selections)
30200 (Fx_disown_selection_internal):
30201 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
30202 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
30203
30204 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
30205
30206 * process.c: Link to libs for calling res_init() if available.
30207 (Fmake_network_process): Call res_init() before getaddrinfo or
30208 gethostbyname, if possible.
30209
30210 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30211
30212 * lread.c (read1): Set pvectype for char_tables.
30213
30214 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
30215 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
30216 Add type checks.
30217 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
30218
30219 * alloc.c (free_misc): Use XMISCTYPE.
30220 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
30221
30222 2007-10-17 Glenn Morris <rgm@gnu.org>
30223
30224 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
30225 (syms_of_minibuf): Add Qcompletion_ignore_case.
30226 * dired.c (Qcompletion_ignore_case): Change to external.
30227 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
30228 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
30229 (Fread_file_name): Use it rather than intern'ing.
30230
30231 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30232 (Fread_coding_system): Ignore case of user input.
30233
30234 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30235
30236 * xdisp.c (handle_display_prop): Ignore display specs after
30237 replacing one when string text is being replaced.
30238 (handle_single_display_spec): Pretend as if characters with display
30239 property haven't been consumed only when buffer text is being replaced.
30240
30241 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30242
30243 * xfns.c (Fx_create_frame, Fx_display_list):
30244 * window.c (window_fixed_size_p, enlarge_window)
30245 (shrink_window_lowest_first):
30246 * macterm.c (init_font_name_table):
30247 * macfns.c (Fx_create_frame, Fx_display_list):
30248 * lread.c (close_load_descs):
30249 * keyboard.c (read_char_x_menu_prompt):
30250 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30251 * coding.c (code_convert_region_unwind): Test the type of an object
30252 rather than just !NILP before extracting data from it.
30253
30254 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30255
30256 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30257 (XMISCANY): New macro.
30258 (XMISCTYPE): Use it.
30259 (struct Lisp_Misc_Any): New type.
30260 (union Lisp_Misc): Use it.
30261 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30262 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30263 (find_symbol_value, set_internal, default_value, Fset_default)
30264 (Fmake_variable_buffer_local, Fmake_local_variable)
30265 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30266 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30267 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30268 * alloc.c (allocate_buffer): Set the size and tag.
30269 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30270 Use XMISCANY.
30271 (die): Follow the GNU convention for error messages.
30272 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30273 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30274 tag any more.
30275 (set_buffer_internal_1):
30276 * frame.c (store_frame_param):
30277 * eval.c (specbind):
30278 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30279
30280 * doc.c (Fsnarf_documentation): Simplify.
30281
30282 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30283
30284 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30285 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30286
30287 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30288
30289 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30290
30291 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30292
30293 * eval.c (do_autoload): Don't save autoloads.
30294
30295 * data.c (Ffset): Save autoload of the function being set.
30296
30297 2007-10-07 John Paul Wallington <jpw@pobox.com>
30298
30299 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30300 parameter before setting up faces.
30301
30302 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30303
30304 * ccl.c (Fregister_code_conversion_map):
30305 * keyboard.c (append_tool_bar_item): Reformat last change.
30306
30307 * lisp.h (eabs): Rename from `abs'. All callers changed.
30308
30309 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30310
30311 * buffer.c (add_overlay_mod_hooklist):
30312 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30313 * fontset.c (make_fontset):
30314 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30315 (append_tool_bar_item):
30316 * macmenu.c (grow_menu_items):
30317 * w32menu.c (grow_menu_items):
30318 * xmenu.c (grow_menu_items): Use larger_vector.
30319
30320 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30321
30322 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30323 selected frame'' on MSDOS).
30324
30325 2007-10-12 Martin Rudalics <rudalics@gmx.at>
30326
30327 * frame.c (Qexplicit_name): New variable.
30328 (x_report_frame_params): Report it in parameter alist.
30329 (syms_of_frame): Intern and staticpro it.
30330
30331 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30332
30333 * macfns.c (x_create_tip_frame): Set terminal for frame.
30334
30335 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30336
30337 * frame.c (Qenvironment): Remove.
30338 (syms_of_frame) <Qenvironment>: Don't initialize.
30339 (Fdelete_frame): Don't treat the `environment' param specially.
30340 * frame.h (Qenvironment): Don't declare.
30341 * callproc.c (set_initial_environment): Don't set unused frame param.
30342
30343 * frame.c (Fframe_with_environment): Remove.
30344 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30345
30346 * lisp.h (Fframe_with_environment): Don't declare.
30347
30348 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
30349
30350 * indent.c (indent_tabs_mode, last_known_column)
30351 (last_known_column_modified): Make static.
30352 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30353
30354 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30355
30356 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30357
30358 2007-10-09 Jason Rumney <jasonr@gnu.org>
30359
30360 * w32term.c (x_set_window_size): Disable code that attempts to tell
30361 Lisp code about a size change before it actually happens.
30362
30363 2007-10-09 Richard Stallman <rms@gnu.org>
30364
30365 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30366 return HANDLED_RETURN.
30367
30368 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30369
30370 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30371 when there's an unread command event.
30372
30373 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30374 window autoselection act appropriately when leaving selected frame.
30375 (syms_of_frame): Initialize focus_follows_mouse.
30376 * frame.h (focus_follows_mouse): Extern it.
30377 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30378 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30379 * msdos.c (dos_rawgetc): Likewise.
30380 * w32term.c (w32_read_socket): Likewise.
30381 * xterm.c (handle_one_xevent): Likewise.
30382 * xdisp.c (syms_of_xdisp): In doc-string of
30383 mouse-autoselect-window mention focus-follows-mouse.
30384
30385 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30386
30387 * macterm.c (mac_load_query_font): Fix missing return value.
30388 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30389 Add BLOCK_INPUT.
30390
30391 2007-10-08 Richard Stallman <rms@gnu.org>
30392
30393 * xdisp.c (get_window_cursor_type): Implement documented behavior
30394 for cursor-in-non-selected-windows = t.
30395
30396 2007-10-08 Jason Rumney <jasonr@gnu.org>
30397
30398 * w32.c (w32_get_resource): Always close registry keys.
30399
30400 2007-10-08 Jason Rumney <jasonr@gnu.org>
30401
30402 * makefile.w32-in (LIBS): Add COMCTL32.
30403
30404 * w32fns.c (globals_of_w32fns): Init common controls.
30405
30406 2007-10-08 Richard Stallman <rms@gnu.org>
30407
30408 * image.c (our_memory_buffer): Rename from omfib_buffer.
30409
30410 2007-10-08 Richard Stallman <rms@gnu.org>
30411
30412 * buffer.c (Foverlays_at): Doc fix.
30413
30414 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30415
30416 * fns.c (Fplist_put): Preserve uneven tail data.
30417
30418 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30419
30420 * termhooks.h (enum event_kind): Remove trailing comma.
30421
30422 * frame.h (enum): Remove trailing comma.
30423
30424 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30425
30426 * w32proc.c (delete_child): Don't terminate threads of zombies.
30427
30428 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30429
30430 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30431
30432 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30433 last-repeatable-command.
30434 (init_kboard): Initialize Vlast_repeatable_command.
30435 (command_loop_1): Set it to real_this_command unless that was
30436 bound to an input event.
30437 (mark_kboards): Mark it.
30438
30439 2007-10-08 Richard Stallman <rms@gnu.org>
30440
30441 * eval.c (condition-case): Doc fix.
30442
30443 2007-10-08 Masatake YAMATO <jet@gyve.org>
30444
30445 * xfaces.c (tty_supports_face_attributes_p): Fix code
30446 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30447 was copied and not edited.
30448
30449 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30450
30451 Add new `input-decode-map' keymap and use it for terminal
30452 escape sequences.
30453 * keyboard.h (struct kboard): Add Vinput_decode_map.
30454 Remove Vlocal_key_translation_map.
30455 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30456 (init_kboard): Init input-decode-map.
30457 Replace local-key-translation-map back with key-translation-map.
30458 (syms_of_keyboard): Declare input-decode-map.
30459 Remove local-key-translation-map. Update docstrings.
30460 (mark_kboards): Mark Vinput_decode_map.
30461 Don't mark Vlocal_key_translation_map.
30462 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30463 Replace local-key-translation-map back with key-translation-map.
30464 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30465 Bind in input-decode-map rather than function-key-map.
30466
30467 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30468 This was made redundant by the previous introduction of XSETPVECTYPE.
30469
30470 2007-10-09 Richard Stallman <rms@gnu.org>
30471
30472 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30473
30474 2007-09-29 Richard Stallman <rms@gnu.org>
30475
30476 * eval.c (internal_condition_case_2, internal_condition_case_1)
30477 (internal_condition_case): Reenable abort if x_catching_errors ()
30478 to see if that really happens and why.
30479
30480 2007-10-06 Andreas Schwab <schwab@suse.de>
30481
30482 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30483
30484 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
30485
30486 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30487
30488 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30489
30490 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30491
30492 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30493
30494 * window.h (struct window):
30495 * window.c (struct save_window_data, struct saved_window):
30496 * termhooks.h (struct terminal):
30497 * process.h (struct Lisp_Process):
30498 * frame.h (struct frame):
30499 * buffer.h (struct buffer):
30500 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30501 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30502 The size field of (pseudo)vectors is now unsigned.
30503 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30504
30505 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30506 Turn `count' into an integer.
30507
30508 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30509 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30510 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30511 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30512 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30513
30514 * alloc.c (allocate_pseudovector): New fun.
30515 (ALLOCATE_PSEUDOVECTOR): New macro.
30516 (allocate_window, allocate_terminal, allocate_frame)
30517 (allocate_process): Use it.
30518 (mark_vectorlike): New function.
30519 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30520 (mark_terminals): Use it.
30521 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30522 (Fmake_byte_code): Use XSETPVECTYPE.
30523
30524 * frame.c (Fframe_parameters): Minor simplification.
30525
30526 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30527
30528 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30529
30530 * buffer.c (Fget_buffer_create, init_buffer_once):
30531 * lread.c (defsubr):
30532 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30533
30534 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30535 defined differently in the m/*.h files.
30536 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30537 (XSETPVECTYPE): New macro.
30538 (XSETPSEUDOVECTOR): Use it.
30539
30540 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30541 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30542
30543 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30544 * lread.c (defvar_per_buffer):
30545 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30546
30547 * window.c (candidate_window_p): Only consider as visible frames that
30548 are on the same terminal.
30549
30550 * m/ibms390x.h (MARKBIT): Remove unused macro.
30551
30552 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
30553
30554 * lread.c (Fload): Fix typo in docstring.
30555
30556 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30557
30558 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30559 of a non-zero value can't yield zero.
30560
30561 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30562
30563 * term.c (term_clear_mouse_face, term_mouse_highlight)
30564 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30565
30566 * print.c (safe_debug_print): Use XHASH.
30567
30568 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30569 Lisp elements such as tags.
30570 (XHASH): New macro.
30571 (EQ): Use it.
30572 (SREF, SSET, STRING_COPYIN): Use SDATA.
30573 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30574
30575 * alloc.c (mark_terminal): Remove left-over declaration.
30576 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30577 (allocate_vectorlike): Remove type argument. Adjust callers.
30578 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30579 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30580
30581 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30582 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30583 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30584 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30585 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30586 Use them.
30587
30588 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30589 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30590 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30591
30592 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30593
30594 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30595 loaded by default.
30596
30597 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30598
30599 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30600 on this tty.
30601 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30602
30603 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30604 Update all users.
30605 (handle_one_term_event): Use Gpm_DrawPointer.
30606 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30607 Signal errors instead of returning nil. Always return nil.
30608 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30609 Make it a noop if gpm-mouse was not activated.
30610 (syms_of_term): Update names.
30611
30612 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30613
30614 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30615 (init_sys_modes): Check that gpm_tty is the current tty.
30616
30617 * alloc.c (allocate_terminal): Set the vector size to only count the
30618 lisp fields. Initialize those to nil.
30619 (mark_object): Don't treat terminals specially.
30620 (mark_terminal): Remove.
30621 (mark_terminals): Use mark_object instead.
30622
30623 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30624 the GC to the beginning.
30625
30626 * indent.h:
30627 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30628
30629 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30630
30631 2007-09-25 Jason Rumney <jasonr@gnu.org>
30632
30633 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30634
30635 * w32console.c (create_w32cons_output): Remove.
30636
30637 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30638
30639 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30640 (reset_sys_modes): Use reset_terminal_modes_hook.
30641
30642 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30643
30644 * eval.c (do_autoload): Don't output any message.
30645
30646 2007-09-24 Juri Linkov <juri@jurta.org>
30647
30648 * emacs.c (standard_args): Change priority of "--no-splash"
30649 from 40 to 3. Add "--no-desktop" with the same priority.
30650
30651 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30652
30653 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30654 and optimize the case where they are all 1.
30655
30656 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30657
30658 * lisp.h (abs): Define if not defined.
30659 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30660 Don't define `abs', since it's defined in lisp.h.
30661
30662 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30663
30664 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30665 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30666 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30667 (init_tty): Use DEV_TTY instead of "/dev/tty".
30668 [WINDOWSNT]: No need to protect from NAME arg being null.
30669
30670 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30671
30672 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30673 up the tty state.
30674
30675 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30676
30677 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30678 (gpm_tty): Change its type.
30679 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30680 (gpm_tty): Change its type and initialize it.
30681 (Fterm_open_connection): Check the frame is indeed a tty.
30682 Use the new gpm_tty.
30683 (Fterm_close_connection): Use the new gpm_tty.
30684 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30685 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30686
30687 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30688
30689 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30690 underline_color, to draw strike-through.
30691
30692 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30693
30694 * lisp.h (allocate_terminal): Declare.
30695
30696 * window.c (candidate_window_p): Consider frames that are being placed
30697 by the user as somewhere between visible and iconified.
30698 (window_loop): Prefer windows on the current frame.
30699 (Fselect_window): Move the use of select-frame to the beginning so we
30700 can just delegate all the work (it'll call us back anyway).
30701
30702 * frame.c (Qdisplay_environment_variable):
30703 * frame.h (Qdisplay_environment_variable): Delete.
30704
30705 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30706 of the first arg, since that value may be a union.
30707
30708 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30709 parameter rather than Qdisplay_environment_variable. If all else
30710 fails, look for DISPLAY in initial-environment.
30711
30712 2007-09-21 Glenn Morris <rgm@gnu.org>
30713
30714 * Makefile.in (emacstool): Remove target.
30715 (lisp, shortlisp): Remove termdev.elc.
30716
30717 2007-09-21 Markus Triska <markus.triska@gmx.at>
30718
30719 * xterm.c (x_delete_display): Compile session management conditionally.
30720
30721 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30722
30723 * callproc.c (getenv_internal_1): New function.
30724 (getenv_internal): Use it.
30725 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30726
30727 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30728 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30729 (Fset_terminal_parameter): Work with dead terminals as well.
30730 (Fmodify_terminal_parameters): Remove.
30731
30732 * terminal.c (get_terminal): Handle terminals.
30733 Make sure the terminal returned is live.
30734 (create_terminal): Use allocate_terminal.
30735 (mark_terminals): Move to alloc.c.
30736 (delete_terminal): Use terminal->name as liveness status.
30737 NULL out fields after freeing their contents.
30738 Don't deallocate the object.
30739 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30740 rather than an int.
30741 (Fterminal_live_p): Accept non-integer arguments.
30742 (Fterminal_list): Return terminal objects rather than an ints.
30743
30744 * alloc.c (enum mem_type): New member for `terminal' objects.
30745 (allocate_terminal): New function.
30746 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30747 Handle terminals.
30748 (mark_terminal): New fun.
30749 (mark_terminals): Move from terminal.c.
30750
30751 * term.c (get_tty_terminal): Don't treat output_initial specially.
30752 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30753 (delete_tty): Use terminal->name as liveness status.
30754
30755 * termhooks.h (struct terminal): Make it into a pseudovector.
30756 Remove `deleted' replaced by checking `name's nullness.
30757
30758 * print.c (print_object): Handle terminals.
30759
30760 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30761 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30762
30763 * frame.c (make_terminal_frame):
30764 * keyboard.c (tty_read_avail_input):
30765 * w32term.c (x_delete_terminal):
30766 * xfns.c (Fx_create_frame, x_create_tip_frame):
30767 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30768
30769 2007-09-20 Glenn Morris <rgm@gnu.org>
30770
30771 * process.c (Fmake_network_process): Doc fix.
30772
30773 2007-09-19 Jason Rumney <jasonr@gnu.org>
30774
30775 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30776
30777 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30778
30779 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30780 Fix a C warning regarding variable constness.
30781
30782 * xterm.c (handle_one_xevent): Fix a C warning.
30783
30784 2007-09-18 Jason Rumney <jasonr@gnu.org>
30785
30786 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30787
30788 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30789
30790 * gtkutil.c (gdpy_def): New variable.
30791 (xg_initialize): Initialize gdpy_def.
30792 (xg_display_close): If no other display exists, set gdpy_def to a
30793 new connection.
30794
30795 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30796
30797 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30798 when we have no file name for the icon.
30799 (xg_tool_bar_expose_callback): Remove.
30800 (xg_create_tool_bar): Don't connect expose signal to
30801 xg_tool_bar_expose_callback.
30802 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30803
30804 2007-09-16 Andreas Schwab <schwab@suse.de>
30805
30806 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30807 values instead of zapping them.
30808
30809 2007-09-14 Glenn Morris <rgm@gnu.org>
30810
30811 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30812 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30813 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30814 scope and rename to omfib_buffer for clarity.
30815 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30816
30817 2007-09-14 Kenichi Handa <handa@m17n.org>
30818
30819 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30820
30821 2007-09-13 Jason Rumney <jasonr@gnu.org>
30822
30823 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30824
30825 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30826
30827 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30828 (mac_term_init): Call here instead, passing rif.
30829
30830 2007-09-13 Glenn Morris <rgm@gnu.org>
30831
30832 * s/hpux.h: No longer define `static' as nothing.
30833
30834 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30835
30836 * callint.c (Fcall_interactively): Remove unused var `fun'.
30837
30838 2007-09-12 Romain Francoise <romain@orebokech.com>
30839
30840 * window.c (prefer_window_split_horizontally, display_buffer):
30841 Revert 2007-09-08 change.
30842
30843 2007-09-12 Glenn Morris <rgm@gnu.org>
30844
30845 * alloca.c: Remove file.
30846 * Makefile.in (alloca): Do not undef.
30847 (allocaobj, alloca.o): Remove.
30848 (otherobj): Remove allocaobj.
30849 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30850 * regex.c (C_ALLOCA): Remove all references and code that was only
30851 used when this was defined.
30852 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30853 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30854 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30855
30856 * Makefile.in (SOURCES, unlock, relock): Delete.
30857
30858 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30859 (menu_grab_callback): All uses changed.
30860
30861 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30862 (x_reply_selection_request): All uses changed.
30863
30864 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30865
30866 * lread.c (load_warn_old_style_backquotes): Change message to look
30867 better when it appears in the middle of byte-compiler messages.
30868
30869 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30870
30871 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30872
30873 * xterm.c (x_create_terminal): Add comment.
30874
30875 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30876
30877 2007-09-10 Richard Stallman <rms@gnu.org>
30878
30879 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30880
30881 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30882
30883 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30884 (DEFUN): Document `intspec', use it instead of `prompt'.
30885
30886 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30887
30888 * data.c (Finteractive_form): If the interactive specification starts
30889 with a `(', use it as a Lisp form.
30890
30891 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30892 name and file modes.
30893
30894 * callint.c (Fcall_interactively): Comment fixes.
30895
30896 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30897
30898 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30899 and compiled functions.
30900
30901 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30902
30903 * window.c (prefer_window_split_horizontally): New variable.
30904 (display_buffer): Consider splitting window horizontally depending
30905 on prefer_window_split_horizontally.
30906
30907 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30908
30909 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30910
30911 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30912
30913 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30914
30915 * frame.c (x_set_frame_parameters): Check number is positive before
30916 using XFASTINT.
30917
30918 * window.c (freeze_window_start): Don't presume selected_window holds
30919 a window object.
30920 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30921
30922 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30923
30924 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30925
30926 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30927
30928 * window.c (Vsplit_window_preferred_function): New var.
30929 (Fdisplay_buffer): Use it.
30930 (syms_of_window): Export, and initialize it.
30931
30932 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30933
30934 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30935
30936 2007-09-06 Glenn Morris <rgm@gnu.org>
30937
30938 * gtkutil.c (menu_grab_callback) <cnt>:
30939 * xselect.c (x_reply_selection_request) <cnt>: Move static
30940 variable to file scope.
30941
30942 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30943
30944 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30945 consistent values of selected_frame and selected_window.
30946
30947 2007-09-04 Jason Rumney <jasonr@gnu.org>
30948
30949 * w32console.c (initialize_w32_display): Zero unused hooks.
30950
30951 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30952
30953 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30954 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30955
30956 2007-09-04 Jason Rumney <jasonr@gnu.org>
30957
30958 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30959 in w32console.c. Set up input. Remove XXX comments that have been
30960 confirmed as correct.
30961
30962 * s/ms-w32.h (MULTI_KBOARD): Define.
30963
30964 * w32console.c (one_and_only_w32cons): Remove.
30965 (initialize_w32_display): Take terminal argument.
30966
30967 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30968 initialize_w32_display.
30969 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30970
30971 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30972
30973 * keyboard.c (discard_mouse_events): Discard it.
30974 (make_lispy_event): Translate it to a lisp event.
30975 (lispy_wheel_names): Add wheel-left and right events.
30976 (syms_of_keyboard): Enlarge wheel_syms.
30977
30978 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30979 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30980
30981 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30982
30983 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30984 from WM_MOUSEHWHEEL.
30985 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30986
30987 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30988 terminal.
30989
30990 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30991 keyboard for the terminal.
30992
30993 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30994
30995 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30996 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30997 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30998 and resume-tty-function to resume-tty-hook.
30999 (Fsuspend_tty, Fresume_tty): Use new names.
31000
31001 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
31002
31003 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
31004 if it starts with "n:".
31005
31006 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
31007
31008 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
31009
31010 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
31011
31012 * frame.h:
31013 * frame.c (Qterm_environment_variable): Remove.
31014 (syms_of_frame): Don't init and staticpro it.
31015
31016 * callproc.c (getenv_internal): Remove special case for $TERM.
31017
31018 * callproc.c (Vinitial_environment): New variable.
31019 (set_initial_environment): Initialize it.
31020 (syms_of_callproc): Declare it.
31021 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
31022 TERM under which a process runs is never related to the TERM in which
31023 Emacs is running.
31024
31025 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31026
31027 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
31028 * s/darwin.h: ... do it here.
31029
31030 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
31031
31032 * lisp.h (set_initial_environment): Rename from set_global_environment.
31033
31034 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
31035 removed by mistake on the multi-tty branch.
31036
31037 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
31038 (Fmodify_frame_parameters): Return a value.
31039
31040 * image.c (png_load): Comment-out var only used in commented-out code.
31041
31042 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
31043 before passing it to mark_object.
31044
31045 * xfaces.c (internal_resolve_face_name): Return a value.
31046 (internal_resolve_face_name, resolve_face_name_error): Comment out.
31047
31048 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
31049 (x_icon): Comment-out var only used in commented-out code.
31050
31051 2007-08-29 Romain Francoise <romain@orebokech.com>
31052
31053 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
31054 QUIT hasn't been provided.
31055
31056 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31057
31058 * callproc.c (child_setup, getenv_internal): Use the
31059 display-environment-variable and term-environment-variable frame params.
31060 (set_initial_environment): Initialise Vprocess_environment.
31061
31062 * config.in: Disable multi-keyboard support on a mac.
31063
31064 * frame.c (Qterm_environment_variable)
31065 (Qdisplay_environment_variable): New variables.
31066 (syms_of_frame): Intern and staticpro them.
31067 (Fmake_terminal_frame): Disable output method test.
31068
31069 * frame.h: Declare them here.
31070
31071 * macfns.c (x_set_mouse_color): Get rif from the frame.
31072 (x_set_tool_bar_lines): Don't use updating_frame.
31073 (mac_window): Add 2 new parameters for consistency with other systems.
31074 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
31075 frame parameters following what is done in X11 and w32. Don't use
31076 FRAME_MAC_DISPLAY_INFO.
31077 (Fx_open_connection, start_hourglass): Remove window-system check.
31078 (x_create_tip_frame): Get the keyboard from the terminal.
31079
31080 * macmenu.c: Reorder includes.
31081 (Fx_popup_menu): Use terminal specific mouse_position_hook.
31082
31083 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
31084 terminal parameter.
31085 (x_clear_frame): Add a frame parameter.
31086 (note_mouse_movement): Get rif from the frame.
31087 (mac_term_init): Initialize the terminal.
31088 (mac_initialize): Make static and move terminal initialization ...
31089 (mac_create_terminal): ... to this new function.
31090
31091 * macterm.h (struct mac_display_info): Add terminal.
31092 (mac_initialize): Delete declaration.
31093
31094 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
31095
31096 * sysdep.c: Comment out text after #endif.
31097
31098 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
31099 is defined. Better initialize ttys in windows. Use terminal
31100 specific mouse_position_hook.
31101
31102 * termhooks.h (union display_info): Add mac_display_info.
31103
31104 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
31105 Set the default minibuffer frame, window_system and the rest of the
31106 frame parameters following what is done in X11.
31107
31108 * w32term.c (w32_initialize): Make static.
31109
31110 * xselect.c (x_handle_selection_clear): Only access
31111 terminal->kboard when MULTI_KBOARD is defined.
31112
31113 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
31114 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
31115
31116 2007-08-29 Jason Rumney <jasonr@gnu.org>
31117
31118 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
31119 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
31120
31121 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
31122 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
31123
31124 * keyboard.c (restore_kboard_configuration): Only define when
31125 MULTI_KBOARD defined.
31126
31127 * makefile.w32-in: Update dependancies from Makefile.in.
31128 (OBJ1): Add terminal.$(O)
31129
31130 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
31131 Don't define function body.
31132 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
31133
31134 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
31135
31136 * w32.c (request_sigio, unrequest_sigio): Remove.
31137
31138 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
31139 (w32con_clear_frame, w32con_clear_end_of_line)
31140 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
31141 (w32con_delete_glyphs, w32con_set_terminal_window)
31142 (scroll_line, w32_sys_ring_bell): Add frame arg.
31143 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
31144 Add terminal arg.
31145 (PICK_FRAME): Remove.
31146 (w32con_write_glyphs): Use frame specific terminal coding.
31147 (one_and_only_w32cons): New global variable.
31148 (initialize_w32_display): Use it for storing hooks.
31149 (create_w32cons_output): New function.
31150
31151 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
31152 arg a frame.
31153
31154 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
31155 Set window_system.
31156 (x_set_tool_bar_lines): Don't use updating_frame.
31157 (Fx_create_frame): Set terminal and ref count.
31158 (Fx_open_connection): Remove window-system check.
31159
31160 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
31161
31162 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
31163 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
31164 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
31165 Add frame arg.
31166 (x_delete_terminal, w32_create_terminal): New functions.
31167 (w32_term_init): Create a terminal.
31168 (w32_initialize): Move terminal specific initialization to
31169 w32_create_terminal.
31170
31171 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
31172 (w32_clear_rect, w32_clear_area): Use background from frame.
31173 (w32_display_info): Add terminal.
31174 (w32_sys_ring_bell, x_delete_display): Declare here.
31175
31176 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
31177
31178 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
31179
31180 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
31181
31182 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
31183 Fix get_named_tty calls for the controlling tty.
31184
31185 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
31186
31187 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
31188
31189 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
31190
31191 * term.c (tty_insert_glyphs): Add missing first parameter.
31192
31193 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
31194
31195 * buffer.c (Fbuffer_list, Fbury_buffer):
31196 Take frame->buried_buffer_list into account.
31197
31198 * cm.c (current_tty): New variable, for cmputc().
31199 (cmputc): Use it.
31200 (cmcheckmagic): Add tty parameter, look up terminal streams there.
31201 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
31202 (cmgoto): Add tty parameter. Pass it on to calccost().
31203 Use emacs_tputs() instead of tputs().
31204
31205 * cm.h (emacs_tputs): New macro to set current_tty, and then call
31206 tputs().
31207 (current_tty): New variable, for cmputc().
31208 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
31209
31210 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
31211 (internal_condition_case, internal_condition_case_1)
31212 (internal_condition_case_2): Don't abort when x_catching_errors.
31213
31214 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
31215 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
31216 prevent crashes caused by bogus longjmps in read_char.
31217
31218 * keymap.h (Fset_keymap_parent): Add EXFUN.
31219
31220 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
31221 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31222 Remove redundant definition.
31223
31224 * macfns.c (x_set_mouse_color, x_make_gc):
31225 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31226
31227 * w32term.c (x_free_frame_resources):
31228 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31229 (w32_initialize): Use the accessor macros for terminal characteristics.
31230
31231 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31232 Use the accessor macros for terminal characteristics.
31233 * msdos.c (internal_terminal_init): Use the accessor macros for
31234 terminal characteristics.
31235 (ScreenVisualBell, internal_terminal_init):
31236 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31237
31238 * termopts.h (no_redraw_on_reenter): Declare.
31239
31240 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31241 (mark_terminals, mark_ttys): Declare.
31242 (Fgarbage_collect): Call them.
31243 (mark_object): Mark buried_buffer_list.
31244
31245 * prefix-args.c: Include stdlib.h for exit.
31246
31247 * syssignal.h: Add comment.
31248
31249 * indent.c: Include stdio.h.
31250
31251 * window.h (Vinitial_window_system): Declare.
31252 (Vwindow_system): Delete declaration.
31253
31254 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31255
31256 * image.c (lookup_image): Don't initialize `c' until the xasserts
31257 have been run.
31258
31259 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31260 FRAME_FOREGROUND_PIXEL.
31261
31262 * print.c (print_preprocess): Don't lose print_depth levels while
31263 iterating.
31264
31265 * widget.c (update_from_various_frame_slots):
31266 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31267
31268 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31269 frames.
31270 (window_internal_height): Remove bogus make_number call.
31271 (init_window_once): Call make_terminal_frame with two zero parameters.
31272
31273 * fileio.c (Fread_file_name): Update comment.
31274
31275 * callint.c (Fcall_interactively):
31276 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31277 Make sure it is correctly unwound.
31278
31279 * xsmfns.c (x_session_close): New function.
31280
31281 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31282 Delete declarations.
31283
31284 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31285 (x_output): Remove background_pixel and foreground_pixel fields.
31286 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31287 (x_delete_device, x_session_close): Declare.
31288
31289 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31290 (read_filtered_event): Call `read_char' with a local
31291 `wrong_kboard_jmpbuf'.
31292
31293 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31294 Don't call single_kboard_state. Use FRAME_RIF.
31295
31296 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31297 systems.
31298
31299 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31300 (Fframe_with_environment, Fset_input_meta_mode)
31301 (Fset_quit_char): EXFUN.
31302 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31303 (init_sys_modes, reset_sys_modes): Update prototypes.
31304 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31305
31306 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31307 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31308 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31309 Delete declarations.
31310 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31311 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31312 New declarations.
31313
31314 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31315 already does that during init_display(). Call syms_of_keymap
31316 before syms_of_keyboard. Call `syms_of_terminal'.
31317 Call set_initial_environment, not set_process_environment.
31318 (shut_down_emacs): Call reset_all_sys_modes() instead of
31319 reset_sys_modes().
31320
31321 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31322 (internal_resolve_face_name, resolve_face_name_error): New functions.
31323 (resolve_face_name): Protect against loops and errors thrown by Fget.
31324 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31325 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31326
31327 * scroll.c: Replace CURTTY() with local variables throughout the
31328 file (where applicable).
31329 (calculate_scrolling, calculate_direct_scrolling)
31330 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31331 characteristics.
31332
31333 * keymap.c (Vfunction_key_map): Remove.
31334 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31335 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31336 (Vkey_translation_map): Remove.
31337 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31338 (Fdescribe_buffer_bindings)
31339 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31340 Update for terminal-local key-translation-map.
31341
31342 * Makefile.in (callproc.o): Update dependencies.
31343 (lisp, shortlisp): Add termdev.elc.
31344 (obj): Add terminal.o.
31345 (terminal.o): Add dependencies.
31346 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31347 (data.o, fns.o): Add termhooks.h dependency.
31348 (SOME_MACHINE_LISP): Add dnd.elc.
31349 (minibuf.o): Fix typo.
31350 Update dependencies.
31351
31352 * data.c (do_symval_forwarding, store_symval_forwarding)
31353 (find_symbol_value): Use the selected frame's keyboard, not
31354 current_kboard.
31355
31356 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31357 Vwindow_system.
31358
31359 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31360 Fmenu_bar_open.
31361 (syms_of_xmenu): Update defsubr.
31362 (mouse_position_for_popup, Fx_popup_menu)
31363 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31364 (set_frame_menubar, free_frame_menubar)
31365 (create_and_show_popup_menu, xmenu_show)
31366 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31367 an X frame.
31368
31369 * xselect.c (x_own_selection): Abort if not an X frame.
31370 (some_frame_on_display): Check if it is an X frame.
31371 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31372
31373 * coding.c: Include frame.h and termhooks.h.
31374 (terminal_coding, keyboard_coding): Delete.
31375 (Fset_terminal_coding_system_internal)
31376 (Fset_keyboard_coding_system_internal)
31377 (Fkeyboard_coding_system)
31378 (Fterminal_coding_system): Add a terminal parameter.
31379 Get terminal_coding from the terminal.
31380 (init_coding_once): Don't call setup_coding_system here.
31381
31382 * dispextern.h (set_scroll_region, turn_off_insert)
31383 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31384 (tty_clear_end_of_line, tty_setup_colors)
31385 (delete_tty, updating_frame)
31386 (produce_special_glyphs, produce_glyphs, write_glyphs)
31387 (insert_glyphs): Remove.
31388 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31389 (tty_turn_off_highlight, get_tty_size): Add declaration.
31390 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31391
31392 * frame.h (enum output_method): Add output_initial.
31393 (struct x_output): Delete.
31394 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31395 Access foreground_pixel and background_pixel directly from the frame.
31396 (tty_display): Delete.
31397 (struct frame): Add buried_buffer_list, foreground_pixel,
31398 background_pixel and terminal. Delete kboard.
31399 (union output_data): Add tty.
31400 (FRAME_KBOARD): Get the kboard from the terminal.
31401 (FRAME_INITIAL_P): New macro.
31402 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31403 (Qterm_environment_variable, Qdisplay_environment_variable)
31404 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31405 New declarations.
31406
31407 * termchar.h (tty_output, tty_display_info): New structures.
31408 (tty_list): Declare.
31409 (FRAME_TTY, CURTTY): New macros.
31410 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31411 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31412 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31413 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31414
31415 * callproc.c: Include frame.h and termhooks.h, for terminal
31416 parameters.
31417 (add_env): New function.
31418 (child_setup): Use it.
31419 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31420 (getenv_internal): Fix get_terminal_param call.
31421 (Fgetenv_internal, egetenv): Update doc.
31422 (syms_of_callproc): Initialize Vprocess_environment to nil.
31423 Register and initialize them. Remove obsolete defvars. Update doc
31424 strings.
31425 (child_setup): Handle Vlocal_environment_variables.
31426 (getenv_internal): Add terminal parameter.
31427 Handle Vlocal_environment_variables.
31428 (Fgetenv_internal): Add terminal parameter.
31429 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31430 environment in a frame (not terminal) parameter. Update doc strings.
31431 (set_initial_environment): Rename from set_global_environment.
31432 Store Emacs environment in initial frame parameter.
31433
31434 * xdisp.c (redisplay_internal): Update references to
31435 `previous_terminal_frame'.
31436 (display_mode_line, Fformat_mode_line): Replace calls to
31437 `push_frame_kboard' with `push_kboard'.
31438 (get_glyph_string_clip_rects): Add extra parentheses and
31439 braces to prevent compiler warnings.
31440 (calc_pixel_width_or_height): Add xassert to check that the
31441 frame is alive. Don't call `lookup_image' on a termcap frame.
31442 (message2_nolog, message3_nolog, redisplay_internal)
31443 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31444 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31445 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31446 (Fx_display_pixel_width, Fx_display_pixel_height)
31447 (Fx_display_planes, Fx_display_color_cells)
31448 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31449 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31450 (Fx_display_backing_store, Fx_display_visual_class)
31451 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31452 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31453
31454 * xfns.c (x_set_foreground_color x_set_background_color)
31455 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31456 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31457 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31458 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31459 terminal that is being deleted.
31460 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31461 frame parameter, and make sure it overrides any user-supplied setting.
31462 (Fx_close_connection, Fx_synchronize): Unify argument names with
31463 the rest of the DEFUNs.
31464
31465 * dispnew.c (Fsend_string_to_terminal): Update call to
31466 `get_tty_terminal'.
31467 (Fredraw_frame, Fsend_string_to_terminal)
31468 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31469 FRAME_TERMCAP_P and FRAME_TTY.
31470 (window_change_signal): Don't believe width/height values that are
31471 impossibly small.
31472 (Vinitial_window_system): Rename from Vwindow_system.
31473 (termscript, Wcm, rif): Delete.
31474
31475 * termhooks.h (struct terminal): New struct containing the
31476 previously global text display hooks and new members NAME,
31477 DELETED and PARAM_ALIST.
31478 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31479 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31480 (FRAME_RIF): New macros.
31481 (get_terminal_param, get_device): New declarations.
31482 (termscript): Delete declaration.
31483
31484 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31485 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31486 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31487 FRAME_FOREGROUND_PIXEL.
31488 (x_fully_uncatch_errors): Disable definition.
31489 (x_scroll_bar_expose): Fix reference to foreground pixel.
31490 (XTread_socket): Disable loop on all X displays.
31491 (x_delete_terminal): Don't set terminal->deleted and let
31492 delete_terminal delete the frames on the terminal.
31493 (x_delete_display): Doc update to reflect changes in
31494 delete_terminal.
31495 (x_display_info) <terminal>: Move member earlier in the struct.
31496 (deleting_tty): Remove old variable.
31497 (Fsuspend_tty): Call clear_tty_hooks.
31498 (Fresume_tty, init_tty): Call set_tty_hooks.
31499 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31500 errors on X frames.
31501 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31502 (handle_one_xevent): Initialize `f' to NULL.
31503 (x_delete_terminal, x_create_terminal): New functions.
31504 (XTset_terminal_modes, XTreset_terminal_modes)
31505 (XTread_socket, x_connection_closed, x_term_init)
31506 (x_term_init, x_delete_display): Add terminal parameter.
31507 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31508 X connections.
31509
31510 * frame.c: Include termchar.h.
31511 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31512 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31513 (Qdisplay_environment_variable): New vars.
31514 (Fframep): Deal with output_initial.
31515 (Fframe-live-p): Doc fix.
31516 (Fwindow-system): New function.
31517 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31518 (make_terminal_frame): Don't create frames on a terminal that is
31519 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31520 (store_frame_param): Check for found_for_frame before calling XFRAME.
31521 (Fmake_terminal_frame): Handle NULL tty names correctly.
31522 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31523 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31524 frames to refer to a deleted frame in their 'environment parameter.
31525 (Fframe_with_environment): New function.
31526 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31527 (get_future_frame_param): New function.
31528 (Fmake_terminal_frame): Use it.
31529 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31530
31531 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31532 * sysdep.c (reset_sys_modes): Update for renames.
31533
31534 * keyboard.c (tty_read_avail_input): New function.
31535 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31536 (syms_of_keyboard): Defsubr them.
31537 (Fset_input_meta_mode, Fset_quit_char): New functions.
31538 (Fset_input_mode): Split to above functions.
31539 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31540 parameter. Use it in call to `read_char'.
31541 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31542 Set wrong_kboard_jmpbuf correctly in recursive calls.
31543 Use current_kboard to access Vkeyboard_translate_table.
31544 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31545 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31546 Update longjmp invocations. Remember the original current_kboard,
31547 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31548 changes it. Comment out unnecessary calls to
31549 `record_single_kboard_state' and `any_kboard_state'.
31550 Update recursive calls.
31551 (wrong_kboard_jmpbuf): Remove global variable.
31552 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31553 Handle deleted interrupted_kboards correctly; that is a legal
31554 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31555 and read_char calls. Abort if interrupted_kboard died in read_char.
31556 (any_kboard_state, single_kboard_state)
31557 (push_frame_kboard): Remove function.
31558 (pop_kboard): Switch out of single_kboard mode if the kboard has
31559 been deleted. Remove unused variable. Help debugging by not
31560 changing current_kboard unnecessarily. Set current_kboard to the
31561 kboard of the selected frame when the stored kboard object has
31562 been deleted before pop_kboard.
31563 (temporarily_switch_to_single_kboard): Change first parameter to a
31564 frame pointer. Throw an error when caller wants to change kboards
31565 while in single_kboard mode. Don't push_kboard if we weren't in
31566 single kboard state. Don't pop_kboard if we popped into any
31567 kboard state.
31568 (restore_kboard_configuration): Abort if pop_kboard changed the
31569 kboard in single_kboard mode. Call pop_kboard only after setting
31570 up single_kboard mode.
31571 (Frecursive_edit): Switch to single_kboard mode only in nested
31572 command loops.
31573 (cmd_error, command_loop, command_loop_1, timer_check):
31574 Comment out unnecessary call to `any_kboard_state' and
31575 `record_single_kboard_state'.
31576 (delete_kboard): Exit single_kboard mode if we have just deleted
31577 that kboard. Use FRAME_KBOARD.
31578 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31579 `fatal_error_signal'.
31580 (record_single_kboard_state): Don't push_kboard if we weren't in
31581 single kboard state. Don't pop_kboard if we popped into any
31582 kboard state.
31583 (push_frame_kboard): Rename to push_kboard.
31584 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31585 (read_avail_input): Read input from all terminals.
31586 (mark_kboards): Also mark Vkeyboard_translate_table.
31587 (kbd_buffer_store_event_hold): Simplify condition.
31588 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31589 (Vkeyboard_translate_table): Move to struct kboard.
31590 (init_kboard): Initialize Vkeyboard_translate_table.
31591 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31592 Vkeyboard_translate_table. Update doc strings. Update docs of
31593 local-function-key-map and function-key-map.
31594
31595 * terminal.c: New file.
31596
31597 * term.c: Include errno.h.
31598 (Vring_bell_function, device_list, initial_device)
31599 (next_device_id, ring_bell, update_begin, update_end)
31600 (set_terminal_window, cursor_to, raw_cursor_to)
31601 (clear_to_end, clear_frame, clear_end_of_line)
31602 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31603 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31604 (syms_of_term): Move their initialization to terminal.c.
31605 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31606 (Ftty_display_color_cells)
31607 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31608 (clear_tty_hooks, set_tty_hooks)
31609 (init_tty, maybe_fatal): New functions.
31610 (Ftty_type): Return nil if terminal is not on a tty instead of
31611 throwing an error. Doc update.
31612 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31613 Doc update. Initialize new subrs and variables.
31614 (delete_tty): Use terminal->deleted.
31615 (tty_set_terminal_modes): Rename from set_terminal_modes.
31616 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31617 (set_scroll_region): Rename to `tty_set_scroll_region'.
31618 (turn_on_insert): Rename to `tty_turn_on_insert'.
31619 (turn_off_insert): Rename to `tty_turn_off_insert'.
31620 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31621 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31622 (toggle_highligh): Rename to `tty_toggle_highlight'.
31623 (background_highlight): Rename to `tty_background_highlight'.
31624 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31625 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31626 (tty_set_scroll_region, tty_background_highlight)
31627 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31628 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31629 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31630 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31631 Add static modifier.
31632 (tty_reset_terminal_modes, tty_set_terminal_window)
31633 (tty_set_scroll_region, tty_background_highlight)
31634 (tty_highlight_if_desired, tty_cursor_to)
31635 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31636 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31637 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31638 renames.
31639
31640 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31641
31642 * keyboard.c: Qrtl is new.
31643 (parse_tool_bar_item): Handle :rtl keyword.
31644 (syms_of_keyboard): Intern :rtl keyword.
31645
31646 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31647
31648 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31649 so no Lisp code is executed.
31650 (file_for_image, find_rtl_image): New functions.
31651 (xg_get_image_for_pixmap): Use file_for_image.
31652 (update_frame_tool_bar): If direction is RTL, use RTL image if
31653 defined. Use Gtk stock images if defined.
31654
31655 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31656
31657 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31658 for nonexistent or zero-width glyph in composition glyph.
31659
31660 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31661
31662 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31663
31664 * xdisp.c (Finvisible_p): New function.
31665 (syms_of_xdisp): defsubr it.
31666
31667 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31668
31669 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31670 Doc fixes.
31671
31672 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31673
31674 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31675
31676 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31677
31678 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31679 whether decoding has modified buffer contents.
31680
31681 2007-08-24 Jason Rumney <jasonr@gnu.org>
31682
31683 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31684 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31685 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31686 (init_svg_functions) [HAVE_NTGUI]: New function.
31687 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31688 (svg_load_image): Use them.
31689 (svg_load_image) [HAVE_NTGUI]: Implement background.
31690
31691 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31692
31693 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31694 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31695 (LIBX): Remove @RSVG_LIBS@.
31696 (LIBES): Add $(RSVG_LIBS).
31697
31698 * image.c (svg_load_image): Blend with specified background if exists.
31699 Use IMAGE_BACKGROUND. Add Mac OS Support.
31700
31701 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31702 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31703 Remove macros.
31704 [MAC_OSX] (socket_callback): Do nothing.
31705 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31706 ReceiveNextEvent.
31707 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31708 socket_callback.
31709 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31710
31711 2007-08-22 Glenn Morris <rgm@gnu.org>
31712
31713 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31714
31715 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31716
31717 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31718
31719 * image.c: Add support for SVG images. Some additional comments
31720 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31721 (svg_image_p): New function to test for SVG image.
31722 (svg_load): New function to load SVG image.
31723 (svg_load_image): New function, helper for svg_load.
31724 (Qsvg): New Lisp_object.
31725 (svg_keyword_index): New enum.
31726 (svg_format): New static `image_keyword' struct.
31727 (svg_type): New static `image_type' struct.
31728 (librsvg/rsvg.h): Include it.
31729
31730 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31731
31732 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31733
31734 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31735
31736 * lread.c (Qold_style_backquotes): New var.
31737 (syms_of_lread): Init and staticpro it.
31738 (load_warn_old_style_backquotes): New fun.
31739 (Fload): Use them to warn about old style backquotes.
31740 (end_of_file_error, Fload): Remove unused vars.
31741
31742 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31743
31744 * lread.c (Vold_style_backquotes): New var.
31745 (syms_of_lread): Init and export it to Elisp.
31746 (read1): Set it when we find an old-style (back)quote.
31747
31748 2007-08-22 Jason Rumney <jasonr@gnu.org>
31749
31750 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31751
31752 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31753
31754 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31755
31756 2007-08-19 Richard Stallman <rms@gnu.org>
31757
31758 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31759
31760 2007-08-19 Andreas Schwab <schwab@suse.de>
31761
31762 * alloc.c (pure): Round PURESIZE up.
31763
31764 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31765
31766 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31767 active frame.
31768
31769 2007-08-16 Richard Stallman <rms@gnu.org>
31770
31771 * eval.c (Fcommandp): Add parens to clarify.
31772
31773 * minibuf.c (Fall_completions): Use enum for type of table.
31774
31775 * emacs.c (USAGE2): Improve text.
31776
31777 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31778
31779 * term.c (tty_default_color_capabilities): Declare static
31780 variables in file scope, to avoid HPUX compiler problem.
31781
31782 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31783
31784 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31785 to gtk_toolbar_insert.
31786
31787 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31788
31789 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31790
31791 * insdel.c (reset_var_on_error): New fun.
31792 (signal_before_change, signal_after_change):
31793 Use it to reset (after|before)-change-functions to nil in case of error.
31794 Bind inhibit-modification-hooks to t.
31795 Don't bind (after|before)-change-functions to nil while they run.
31796
31797 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31798
31799 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31800 filling pixmap with stippled background.
31801
31802 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31803
31804 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31805 Don't use invisible frame as parent window for repositioning.
31806
31807 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31808
31809 * print.c (new_backquote_output): Rename from old_backquote_output.
31810 (print): Inverse its logic (according to its name) so as to match the
31811 behavior of new_backquote_flag in lread.c.
31812
31813 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31814
31815 * gmalloc.c (posix_memalign): New function.
31816
31817 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31818 ActivateControl/DeactivateControl here.
31819 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31820 frame-notice-user-settings is non-nil.
31821 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31822 for kEventParamFMFontStyle.
31823 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31824 mac_pass_command_to_system and mac_pass_control_to_system here.
31825 (XTread_socket): Call ActivateControl/DeactivateControl here.
31826 (XTread_socket) [TARGET_API_MAC_CARBON]:
31827 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31828 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31829 for window repositioning.
31830
31831 2007-08-08 Glenn Morris <rgm@gnu.org>
31832
31833 * Replace `iff' in doc-strings and comments.
31834
31835 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31836
31837 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31838
31839 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31840
31841 * fileio.c (Finsert_file_contents): Run format-decode and
31842 after_insert_file_functions on entire buffer when REPLACE is
31843 non-nil and inhibit modification_hooks and point_motion_hooks.
31844 For consistency, run after_insert_file_functions iff something
31845 got inserted. Move signal_after_change and update_compositions
31846 after code running after_insert_file_functions. Make sure that
31847 undo_list doesn't record intermediate steps of the decoding process.
31848
31849 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31850
31851 * emacs.c (main)
31852 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31853 Call malloc_enable_thread on interactive startup.
31854
31855 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31856 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31857 [USE_PTHREAD]: Conditionalize with it.
31858 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31859 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31860 New functions.
31861
31862 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31863
31864 * xdisp.c (redisplay_window): When restoring original buffer
31865 position, make sure it is still valid.
31866
31867 * image.c (png_load): Ignore png-supplied background color.
31868
31869 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31870
31871 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31872 Use kCFAbsoluteTimeIntervalSince1970.
31873
31874 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31875 New variable.
31876 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31877 event loop should be quit.
31878 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31879 Quit dialog event loop if quit_dialog_event_loop is set.
31880
31881 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31882 (Selection): New typedef. Use instead of ScrapRef.
31883 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31884 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31885 (mac_clear_selection): Rename from clear_scrap.
31886 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31887 scrap_has_target_type. All uses changed.
31888 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31889 (mac_selection_has_target_p): New functions.
31890 (mac_put_selection_value): Rename from put_scrap_string.
31891 (mac_get_selection_value): Rename from get_scrap_string.
31892 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31893 (put_scrap_private_timestamp, scrap_has_target_type)
31894 (get_scrap_private_timestamp): Remove functions.
31895 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31896 (x_own_selection, x_get_local_selection):
31897 Use mac_valid_selection_value_p.
31898 (x_own_selection): Don't use put_scrap_private_timestamp.
31899 Record OWNERSHIP-INFO into Vselection_alist instead.
31900 (x_get_local_selection): Don't check type if request is local.
31901 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31902 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31903
31904 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31905
31906 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31907 add comment explaining why.
31908
31909 2007-08-03 Richard Stallman <rms@gnu.org>
31910
31911 * fileio.c (Fvisited_file_modtime): Use make_time.
31912
31913 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31914
31915 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31916 build.
31917
31918 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31919
31920 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31921
31922 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31923
31924 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31925
31926 2007-07-30 Richard Stallman <rms@gnu.org>
31927
31928 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31929
31930 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31931
31932 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31933
31934 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31935
31936 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31937 remote default-directory.
31938
31939 * buffer.c (mode-line-format): Update doc string.
31940
31941 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31942
31943 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31944 scroll bar gap.
31945 (x_scroll_bar_create): Set bar->fringe_extended_p.
31946 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31947 on frame edge. Check fringe background extension. Don't clear
31948 extended fringe background area.
31949
31950 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31951 (w32_fill_area): Enclose multiple statements with do ... while (0).
31952
31953 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31954 Extend fringe background to scroll bar gap.
31955 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31956 Set bar->fringe_extended_p.
31957 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31958 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31959 background extension. Don't clear extended fringe background area.
31960
31961 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31962 New member fringe_extended_p.
31963
31964 2007-07-25 Glenn Morris <rgm@gnu.org>
31965
31966 * Relicense all FSF files to GPLv3 or later.
31967
31968 * COPYING: Switch to GPLv3.
31969
31970 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31971
31972 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31973
31974 * data.c (Finteractive_form): Check for the presence of an
31975 `interactive-form' symbol property more thoroughly.
31976
31977 * data.c (Finteractive_form): Use an `interactive-form' property if
31978 present, analogous to the function-documentation property.
31979
31980 2007-07-24 Jason Rumney <jasonr@gnu.org>
31981
31982 * w32fns.c (x_real_positions): Get real position from OS instead of
31983 calculating it.
31984
31985 2007-07-23 Jason Rumney <jasonr@gnu.org>
31986
31987 * filelock.c (current_lock_owner): Allow for @ sign in username.
31988
31989 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
31990
31991 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31992 remote default-directory.
31993
31994 * buffer.c (mode-line-format): Describe above case in doc string.
31995
31996 2007-07-20 Eli Zaretskii <eliz@gnu.org>
31997
31998 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31999 Define if not defined.
32000
32001 2007-07-18 Jason Rumney <jasonr@gnu.org>
32002
32003 * w32proc.c (w32_executable_type): Handle 64 bit executables.
32004
32005 2007-07-18 Richard Stallman <rms@gnu.org>
32006
32007 * data.c (Fsetq_default): Doc fix.
32008
32009 * eval.c (Fsetq): Doc fix.
32010
32011 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
32012
32013 * coding.c (Ffind_operation_coding_system):
32014 * eval.c (For, Fand): Doc fixes.
32015 Reported by Johan Bockgård.
32016
32017 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
32018
32019 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
32020
32021 * xterm.h: Declare x_ewmh_activate_frame.
32022
32023 * xterm.c (x_ewmh_activate_frame): New function.
32024 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
32025
32026 2007-07-17 Martin Rudalics <rudalics@gmx.at>
32027
32028 * window.c (Fdisplay_buffer): If largest or LRU window is the
32029 only window, split it even if it is not eligible for splitting.
32030 This restores the original behavior broken by the 2007-07-15
32031 change.
32032
32033 2007-07-17 Glenn Morris <rgm@gnu.org>
32034
32035 * abbrev.c (abbrev_check_chars): New function.
32036 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
32037 Call abbrev_check_chars to check abbrev characters are word
32038 constituents. Doc fix.
32039
32040 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
32041
32042 * process.c (Fstart_process, Fmake_network_process)
32043 (read_process_output): Fix up last changes.
32044
32045 2007-07-16 Eli Zaretskii <eliz@gnu.org>
32046
32047 * makefile.w32-in (clean): Don't delete *~.
32048
32049 2007-07-16 Andreas Schwab <schwab@suse.de>
32050
32051 * window.c (Fdisplay_buffer): Use NILP.
32052 (Fset_window_scroll_bars): Likewise.
32053
32054 2007-07-15 Martin Rudalics <rudalics@gmx.at>
32055
32056 * window.c (window_min_size_2): New function.
32057 (window_min_size_1, size_window, Fdisplay_buffer)
32058 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
32059 windows without mode- or header-lines when window-min-height is
32060 too small.
32061 (size_window): Reset nodelete_p after testing it, following an
32062 earlier note by Kim F. Storm.
32063 (display_buffer): Do not set split_height_threshold to twice the
32064 value of window_min_height to avoid changing the value of a
32065 customizable variable. Rather explicitly check whether the
32066 height of the window that shall be splitted is at least as large
32067 as split_height_threshold.
32068 (Fwindow_full_width_p): New defun.
32069 (syms_of_window): Defsubr it.
32070
32071 * window.h: Add EXFUN for Fwindow_full_width_p.
32072
32073 2007-07-14 Jason Rumney <jasonr@gnu.org>
32074
32075 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
32076
32077 2007-07-14 Richard Stallman <rms@gnu.org>
32078
32079 * eval.c (maybe_call_debugger): New function.
32080 (find_handler_clause): Use maybe_call_debugger.
32081 Call it when the handler says `debug'.
32082 Eliminate DEBUGGER_VALUE_PTR.
32083 (Fsignal): Eliminate debugger_value.
32084 (Qdebug): New variable.
32085 (syms_of_eval): Initialize it.
32086
32087 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
32088
32089 * eval.c (Fprogn):
32090 * keyboard.c (Ftrack_mouse):
32091 * print.c (Fwith_output_to_temp_buffer):
32092 * window.c (Fsave_window_excursion): Doc fix.
32093
32094 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
32095
32096 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
32097
32098 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
32099
32100 * process.h (struct Lisp_Process): Turn slots infd, outfd,
32101 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
32102 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
32103 read_output_delay, and read_output_skip from Lisp_Objects to ints.
32104 Remove unused encoding_carryover.
32105 * process.c: Adjust all functions accordingly.
32106
32107 2007-07-12 Richard Stallman <rms@gnu.org>
32108
32109 * term.c: Include unistd.h only if HAVE_UNISTD_H.
32110
32111 2007-07-11 Jason Rumney <jasonr@gnu.org>
32112
32113 * makefile.w32-in (LIBS): Include OLE32.
32114
32115 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
32116 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
32117
32118 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
32119
32120 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
32121 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
32122 from a Lisp_Object into a bare pointer.
32123 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
32124 Adjust the code correspondingly.
32125
32126 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
32127
32128 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
32129 (term_show_mouse_face): Remove unused var `j'.
32130 (handle_one_term_event): Remove unused vars `i' and `j'.
32131 Don't cast return value of ttyname since it's not necessary.
32132
32133 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
32134
32135 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
32136 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
32137
32138 * fns.c (map_char_table): Use an array of int for `indices' rather than
32139 an array of Lisp_Objects (which are only ever integers anyway).
32140 (Fmap_char_table): Update caller.
32141 * lisp.h: Update prototype.
32142 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
32143 * fontset.c (Ffontset_info):
32144 * casetab.c (set_case_table): Update callers.
32145
32146 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
32147
32148 * keymap.c (struct accessible_keymaps_data)
32149 (struct where_is_internal_data): New structures.
32150 (accessible_keymaps_1, where_is_internal_1): Use them to change
32151 interface to adhere to the one used by map_keymap.
32152 (Faccessible_keymaps, where_is_internal): Use map_keymap.
32153 (accessible_keymaps_char_table, where_is_internal_2): Remove.
32154
32155 * keymap.h (map_keymap_function_t): More informative prototype.
32156
32157 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
32158
32159 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
32160 (looking_at_1): Don't change search_regs and last_thing_searched
32161 if `inhibit-changing-match-data' is non-nil.
32162 (string_match_1, search_buffer, set_search_regs): Likewise.
32163 (syms_of_search): Add Lisp level definition for
32164 `inhibit-changing-match-data' and set it to nil.
32165 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
32166 start and end of the match, instead of using values in search_regs.
32167
32168 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
32169
32170 * minibuf.c (Fcompleting_read): New value `confirm-only'
32171 for `require-match'.
32172
32173 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
32174
32175 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
32176 part of the 2007-06-27 change to syms_of_fileio.
32177
32178 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32179
32180 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
32181 Check WINDOWP before using XWINDOW. Consolidate return statements.
32182
32183 2007-06-27 Richard Stallman <rms@gnu.org>
32184
32185 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
32186
32187 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
32188
32189 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
32190
32191 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32192
32193 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
32194 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
32195 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
32196 (_free_internal, memalign): Use them.
32197 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
32198 Initialize to PTHREAD_MUTEX_INITIALIZER.
32199 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
32200 (morecore_nolock): Rename from morecore. All uses changed.
32201 Use only nolock versions of internal allocation functions.
32202 (_malloc_internal_nolock, _realloc_internal_nolock)
32203 (_free_internal_nolock): New functions created from
32204 _malloc_internal, _realloc_internal, and _free_internal.
32205 (_malloc_internal, _realloc_internal, _free_internal): Use them.
32206 Copy hook value to automatic variable before its use.
32207 (memalign): Copy hook value to automatic variable before its use.
32208
32209 2007-06-26 Kenichi Handa <handa@m17n.org>
32210
32211 * coding.c (Ffind_operation_coding_system): Docstring improved.
32212 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
32213
32214 2007-06-25 David Kastrup <dak@gnu.org>
32215
32216 * keymap.c (Fcurrent_active_maps): Add `position' argument.
32217 (Fwhere_is_internal): Adjust call to `current-active-maps' to
32218 cater for additional parameter.
32219
32220 * keymap.h: Adjust number of parameters to `current-active-maps'.
32221
32222 * doc.c (Fsubstitute_command_keys): Adjust call of
32223 `current-active-maps'.
32224
32225 2007-06-25 David Kastrup <dak@gnu.org>
32226
32227 * callint.c (Fcall_interactively): Make the parsing of interactive
32228 specs somewhat more readable.
32229
32230 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32231
32232 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32233 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32234 if extended background has already been filled.
32235
32236 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32237
32238 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32239 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32240
32241 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32242 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32243 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32244 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32245 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32246 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32247 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32248 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32249 Run timers during dialog popup.
32250 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32251
32252 2007-06-21 Jason Rumney <jasonr@gnu.org>
32253
32254 * image.c (convert_mono_to_color_image): Swap fore and background.
32255
32256 2007-06-20 Jason Rumney <jasonr@gnu.org>
32257
32258 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32259 (w32_free_bdf_font): Unmap memory not handle.
32260
32261 2007-06-20 Sam Steingold <sds@gnu.org>
32262
32263 * gmalloc.c (__morecore): Fix the declaration to comply with the
32264 definition.
32265
32266 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
32267
32268 * w32term.c (w32_delete_display): Remove leftover declaration.
32269 (w32_define_cursor, w32_initialize): Make static.
32270
32271 * w32.c (_wsa_errlist): Fix typo in error message.
32272 (init_environment): Ignore any environment variable from the
32273 registry having a null value.
32274
32275 2007-06-20 Glenn Morris <rgm@gnu.org>
32276
32277 * Makefile.in (LIBGIF): Default to -lgif.
32278
32279 2007-06-17 Jason Rumney <jasonr@gnu.org>
32280
32281 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32282 unicode strings.
32283
32284 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
32285
32286 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32287 Fix typo in docstring.
32288
32289 2007-06-16 Eli Zaretskii <eliz@gnu.org>
32290
32291 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32292 and their keybindings.
32293
32294 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
32295
32296 * composite.c (update_compositions): Fix last fix.
32297
32298 2007-06-14 Jason Rumney <jasonr@gnu.org>
32299
32300 * w32.c (get_process_times_fn): New function pointer.
32301 (globals_of_w32): Intialize it if present in kernel32.dll.
32302 (w32_get_internal_run_time): New function.
32303
32304 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32305
32306 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32307
32308 * composite.c (update_compositions): Check the validness of
32309 compositions.
32310
32311 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32312
32313 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32314 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32315
32316 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32317 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32318
32319 * macgui.h (USE_MAC_TOOLBAR): New define.
32320
32321 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32322 Return immediately unless popup is activated.
32323
32324 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32325 background to scroll bar gap.
32326 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32327 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32328 scroll bars on frame edge. Check fringe background extension.
32329 Don't clear extended fringe background area.
32330 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32331 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32332 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32333 [USE_MAC_TOOLBAR]: New macros.
32334 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32335 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32336 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32337 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32338 [USE_MAC_TOOLBAR]: New functions.
32339 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32340 manually if previous repositioning has failed.
32341 (mac_handle_keyboard_event): Use precomputed event kind.
32342 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32343 as tool bar item click. Handle mouse movement over tool bar items.
32344
32345 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32346 toolbar_win_gravity.
32347 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32348 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32349 Add externs.
32350
32351 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32352 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32353
32354 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
32355
32356 * image.c (search_image_cache): Remove unused variable.
32357
32358 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
32359
32360 * xfns.c, xmenu.c: Link to xaw3d if available.
32361
32362 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32363
32364 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32365 frame_foreground and frame_background.
32366
32367 * image.c (lookup_image): Save frame foreground and background colors.
32368 (search_image_cache): Check if saved and current frame colors match.
32369
32370 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32371
32372 * regex.c (regex_compile): Remove the `regnum' counter.
32373 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32374
32375 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32376
32377 * term.c: Include intervals.h to declare Fget_text_property.
32378
32379 2007-06-10 Jason Rumney <jasonr@gnu.org>
32380
32381 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32382
32383 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
32384
32385 * callint.c (Fcall_interactively):
32386 * editfns.c (Fdelete_and_extract_region):
32387 * fileio.c (Fread_file_name):
32388 * fns.c (Fmapconcat):
32389 * keyboard.c (cmd_error_internal):
32390 * keymap.c (Fkey_description):
32391 * lread.c (openp):
32392 * minibuf.c (read_minibuf):
32393 * search.c (wordify):
32394 * sunfns.c (sel_read):
32395 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32396 * xfns.c (x_default_scroll_bar_color_parameter):
32397 * xmenu.c (menu_help_callback):
32398 * xselect.c (Fx_get_atom_name):
32399 * xterm.c (x_term_init): Use empty_unibyte_string.
32400
32401 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32402
32403 * alloc.c (init_strings): Initialize canonical empty strings.
32404 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32405 canonical empty string when the requested size is 0.
32406
32407 * emacs.c (empty_unibyte_string): Rename from empty_string.
32408 (empty_multibyte_string): New canonical empty string.
32409 (syms_of_emacs): Don't initialize empty_string.
32410
32411 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32412 string, if appropriate.
32413 (empty_unibyte_string, empty_multibyte_string): New externs.
32414 (empty_string): Remove extern.
32415
32416 * lread.c (syms_of_lread): Use empty_unibyte_string.
32417
32418 2007-06-07 Jason Rumney <jasonr@gnu.org>
32419
32420 * s/ms-w32.h: Don't define HAVE_TZNAME.
32421
32422 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32423
32424 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32425
32426 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32427
32428 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32429 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32430
32431 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32432 Don't call next handler.
32433 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32434 Remove argument. Install handler to application.
32435 (set_frame_menubar): Don't change deep_p.
32436 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32437 FRAME_OUTER_TO_INNER_DIFF_Y.
32438 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32439 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32440 [HAVE_DIALOGS]: New macros.
32441 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32442 Use them.
32443 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32444
32445 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32446 init_service_handler. All callers changed. Return OSStatus value.
32447
32448 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32449 All callers changed so as not to call SetPortWindowPort.
32450 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32451 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32452 mac_draw_string_common.
32453 (mac_draw_image_string_qd): Likewise.
32454 (mac_draw_string_common): Use them. Add INLINE.
32455 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32456 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32457 GetGlobalMouse.
32458 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32459 and FRAME_OUTER_TO_INNER_DIFF_Y.
32460 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32461 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32462 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32463 repositioning window to mac_handle_window_event.
32464 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32465 saving window location to mac_handle_window_event
32466 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32467 (install_menu_target_item_handler): Remove argument in extern.
32468 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32469 Also accept command events.
32470 (do_keystroke): New function created from XTread_socket.
32471 (init_command_handler): Remove functions.
32472 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32473 and save window location by kEventWindowShowing and kEventWindowHiding
32474 handlers here. Don't call next handler for window state change and
32475 focus events.
32476 (mac_handle_application_event, mac_handle_keyboard_event)
32477 [TARGET_API_MAC_CARBON]: New functions.
32478 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32479 kEventWindowShowing and kEventWindowHiding events. Move installation
32480 of mouse, font, text input and menu target item handlers to
32481 install_application_handler.
32482 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32483 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32484 New function.
32485 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32486 Register it.
32487 (XTread_socket) [TARGET_API_MAC_CARBON]:
32488 Consolidate SendEventToEventTarget calls.
32489 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32490 Move application activation handler to mac_handle_application_event.
32491 Move keyboard handler to mac_handle_keyboard_event.
32492 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32493 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32494 init_command_handler. Call install_application_handler.
32495
32496 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32497 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32498
32499 2007-06-07 Glenn Morris <rgm@gnu.org>
32500
32501 * emacs.c (main): Use `emacs-copyright' in --version output.
32502
32503 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
32504
32505 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32506
32507 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32508
32509 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32510
32511 * macgui.h: Replace WindowPtr with WindowRef.
32512
32513 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32514 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32515 Replace ControlHandle with ControlRef.
32516 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32517
32518 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32519 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32520 Replace ControlHandle with ControlRef.
32521 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32522 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32523
32524 * macterm.h (struct scroll_bar): Rename member control_handle_low
32525 and control_handle_high to control_ref_low and control_ref_high.
32526 All uses changed.
32527 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32528 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32529 respectively. All uses changed.
32530 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32531 (install_window_handler, remove_window_handler): Replace WindowPtr
32532 with WindowRef in externs.
32533
32534 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
32535
32536 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32537
32538 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
32539
32540 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32541
32542 * frame.c (Fmouse_position, Fmouse_pixel_position):
32543 Condition on HAVE_GPM too.
32544
32545 * term.c (term_mouse_highlight): Remove unused variables.
32546 (Fterm_open_connection): Set gpm_zerobased to 1.
32547 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32548 Use zero based co-ordinates.
32549 (handle_one_term_event): Report a drag as mouse movement too.
32550
32551 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32552
32553 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
32554
32555 * image.c (search_image_cache): New function. Require background
32556 color match if background color is unspecified in the image spec.
32557 (uncache_image, lookup_image): Use it.
32558
32559 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
32560
32561 * window.c (Fshrink_window): Reflow docstring.
32562
32563 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
32564
32565 * Version 22.1 released.
32566
32567 2007-06-01 Richard Stallman <rms@gnu.org>
32568
32569 * xfns.c (x_encode_text): Add GCPRO.
32570
32571 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32572
32573 * xfns.c (x_set_name_internal): Save encoded name before
32574 x_encode_text in case string data is relocated.
32575
32576 2007-05-31 Richard Stallman <rms@gnu.org>
32577
32578 * buffer.c (syms_of_buffer): Doc fix.
32579
32580 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
32581
32582 * sysdep.c (init_sys_modes): Add rather than replace with
32583 O_NONBLOCK.
32584
32585 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32586 term_mouse_moveto.
32587
32588 * termhooks.h (term_mouse_moveto): New extern.
32589
32590 * term.c (mouse_face_window): Rename...
32591 (Qmouse_face_window): ...to this.
32592 (term_show_mouse_face, term_clear_mouse_face)
32593 (term_mouse_highlight): Use Qmouse_face_window.
32594 (term_mouse_moveto): New function.
32595 (term_mouse_position): Make it work.
32596 (syms_of_term): Uncomment assignment to mouse_position_hook.
32597 Staticpro Qmouse_face_window.
32598
32599 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32600
32601 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32602 around current_column call.
32603
32604 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32605
32606 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32607 * xdisp.c (next_element_from_buffer):
32608 * window.c (delete_window):
32609 * term.c (term_mouse_highlight):
32610 * msdos.c (getdefdir):
32611 * macterm.c (mac_create_bitmap_from_bitmap_data)
32612 (init_font_name_table):
32613 * fns.c (Fsxhash):
32614 * data.c (Fmake_local_variable):
32615 * ccl.c (ccl_driver): Likewise.
32616
32617 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32618
32619 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32620 Call mac_wakeup_from_rne on window size change.
32621
32622 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32623
32624 * image.c (uncache_image): Fix typo.
32625
32626 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32627
32628 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32629
32630 2007-05-22 Richard Stallman <rms@gnu.org>
32631
32632 * xterm.c (x_connection_closed): Remove NO_RETURN.
32633
32634 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32635
32636 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32637
32638 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32639
32640 * image.c (uncache_image): New function.
32641 (Fimage_refresh): New function.
32642
32643 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32644
32645 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32646
32647 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32648
32649 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32650 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32651
32652 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32653
32654 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32655 conditional on [HAVE_GPM_H].
32656
32657 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32658
32659 * syntax.c (skip_chars): Update syntax-table only after we checked that
32660 the new location is valid.
32661
32662 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32663
32664 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32665 mac_get_window_bounds.
32666
32667 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32668
32669 * Makefile.in (LIBGPM): Allow it to be set from configure.
32670 If set then link Emacs with it.
32671
32672 * config.in: Regenerate.
32673
32674 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32675 New externs.
32676
32677 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32678 Include gpm.h.
32679 (handle_one_term_event, term_gpm): New externs.
32680
32681 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32682 and allow it to be interrupted by SIGIO.
32683
32684 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32685 (wait_reading_process_output): Wait on gpm_fd too.
32686 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32687 (add_gpm_wait_descriptor_called_flag): New variable.
32688 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32689
32690 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32691 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32692 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32693 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32694 (make_lispy_event): Add case GPM_CLICK_EVENT.
32695 (read_avail_input): Handle mouse input.
32696
32697 * term.c (write_glyphs_with_face): New function.
32698 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32699 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32700 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32701 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32702 (last_mouse_x, last_mouse_y): New variables.
32703 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32704 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32705 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32706 (Fterm_close_connection): New functions.
32707 (term_init): Initialise mouse_face_window.
32708
32709 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32710
32711 * xdisp.c (redisplay_window): If first window line is a
32712 continuation line, recompute the new window start instead of
32713 recentering.
32714
32715 2007-05-18 Glenn Morris <rgm@gnu.org>
32716
32717 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32718 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32719
32720 2007-05-17 Glenn Morris <rgm@gnu.org>
32721
32722 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32723
32724 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32725
32726 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32727 dead key repeat and up events.
32728
32729 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32730
32731 * image.c (pbm_load): Check image size for monochrome pbm.
32732
32733 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32734
32735 * xterm.c (XTread_socket): Revert last change.
32736
32737 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32738
32739 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32740
32741 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32742
32743 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32744
32745 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32746 mixup (YAILOM).
32747
32748 2007-05-07 Andreas Schwab <schwab@suse.de>
32749
32750 * keymap.c (Flookup_key): Fix typo in last change.
32751
32752 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32753
32754 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32755 mapping for unibyte strings.
32756
32757 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32758
32759 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32760 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32761
32762 2007-04-29 Richard Stallman <rms@gnu.org>
32763
32764 * insdel.c (replace_range): For undo, record insertion first.
32765
32766 2007-04-29 Andreas Schwab <schwab@suse.de>
32767
32768 * lisp.h (VECSIZE): Use OFFSETOF.
32769
32770 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32771
32772 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32773 disabled lines.
32774
32775 2007-04-28 Richard Stallman <rms@gnu.org>
32776
32777 * lread.c (read_escape): In a string, \s is always space.
32778
32779 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32780
32781 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32782
32783 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32784 submenu for menu bar items.
32785
32786 See ChangeLog.10 for earlier changes.
32787
32788 ;; Local Variables:
32789 ;; coding: utf-8
32790 ;; End:
32791
32792 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32793
32794 This file is part of GNU Emacs.
32795
32796 GNU Emacs is free software: you can redistribute it and/or modify
32797 it under the terms of the GNU General Public License as published by
32798 the Free Software Foundation, either version 3 of the License, or
32799 (at your option) any later version.
32800
32801 GNU Emacs is distributed in the hope that it will be useful,
32802 but WITHOUT ANY WARRANTY; without even the implied warranty of
32803 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32804 GNU General Public License for more details.
32805
32806 You should have received a copy of the GNU General Public License
32807 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.