* composite.h (COMPOSITION_DECODE_REFS): New macro,
[bpt/emacs.git] / src / ChangeLog
1 2011-04-04 Paul Eggert <eggert@cs.ucla.edu>
2
3 * composite.h (COMPOSITION_DECODE_REFS): New macro,
4 breaking out part of COMPOSITION_DECODE_RULE.
5 (COMPOSITION_DECODE_RULE): Use it.
6 * composite.c (get_composition_id): Remove unused local vars,
7 by using the new macro.
8
9 * textprop.c (set_text_properties_1): Change while to do-while,
10 since the condition is always true at first.
11
12 * intervals.c (graft_intervals_into_buffer): Mark var as used.
13 (interval_deletion_adjustment): Return unsigned value.
14 All uses changed.
15
16 * process.c (list_processes_1, create_pty, read_process_output):
17 (exec_sentinel): Remove vars that were set but not used.
18 (create_pty): Remove unnecessary "volatile"s.
19 (Fnetwork_interface_info): Avoid possibility of int overflow.
20 (read_process_output): Do adaptive read buffering even if carryover.
21 (read_process_output): Simplify nbytes computation if buffered.
22
23 * bytecode.c (exec_byte_code): Rename local to avoid shadowing.
24
25 * syntax.c (scan_words): Remove var that was set but not used.
26 (update_syntax_table): Use unsigned instead of int.
27
28 * lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
29 (lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
30 (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
31
32 * print.c (print_error_message): Avoid int overflow.
33
34 * font.c (font_list_entities): Redo for clarity,
35 so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX.
36
37 2011-04-03 Paul Eggert <eggert@cs.ucla.edu>
38
39 * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
40 (font_score): Avoid potential overflow in diff calculation.
41
42 * fns.c (substring_both): Remove var that is set but not used.
43 (sxhash): Redo loop for clarity and to avoid wraparound warning.
44
45 * eval.c (funcall_lambda): Rename local to avoid shadowing.
46
47 * alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
48 Otherwise, GCC 4.6.0 optimizes the loop check away since the check
49 can always succeed if overflow has undefined behavior.
50
51 * search.c (boyer_moore, wordify): Remove vars set but not used.
52 (wordify): Omit three unnecessary tests.
53
54 * indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
55 All callers changed. This avoids the need for an unused var.
56
57 * casefiddle.c (casify_region): Remove var that is set but not used.
58
59 * dired.c (file_name_completion): Remove var that is set but not used.
60
61 * fileio.c (Finsert_file_contents): Make EOF condition clearer.
62
63 2011-04-02 Paul Eggert <eggert@cs.ucla.edu>
64
65 * fileio.c (Finsert_file_contents): Avoid signed integer overflow.
66 (Finsert_file_contents): Remove unnecessary code checking fd.
67
68 * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
69 Check for integer overflow on size calculations.
70
71 * buffer.c (Fprevious_overlay_change): Remove var that is set
72 but not used.
73
74 * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
75 Remove vars that are set but not used.
76 (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
77 (timer_check_2): Mark vars as initialized.
78
79 * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
80
81 * image.c (lookup_image): Remove var that is set but not used.
82 (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
83
84 * fontset.c (Finternal_char_font, Ffontset_info): Remove vars
85 that are set but not used.
86
87 * xfns.c (make_invisible_cursor): Don't return garbage
88 if XCreateBitmapFromData fails (Bug#8410).
89
90 * xselect.c (x_get_local_selection, x_handle_property_notify):
91 Remove vars that are set but not used.
92
93 2011-04-01 Paul Eggert <eggert@cs.ucla.edu>
94
95 * xfns.c (x_create_tip_frame): Remove var that is set but not used.
96 (make_invisible_cursor): Initialize a possibly-uninitialized variable.
97
98 * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]:
99 Remove var that is set but not used.
100 (scroll_bar_windows_size): Now size_t, not int.
101 (x_send_scroll_bar_event): Use size_t, not int, for sizes.
102 Check for overflow.
103
104 * xfaces.c (realize_named_face): Remove vars that are set but not used.
105 (map_tty_color) [!defined MSDOS]: Likewise.
106
107 * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning.
108
109 * coding.c: Remove vars that are set but not used.
110 (DECODE_COMPOSITION_RULE): Remove 2nd arg, which is unused.
111 All callers changed.
112 (decode_coding_utf_8, decode_coding_utf_16 decode_coding_emacs_mule):
113 (decode_coding_iso_2022, encode_coding_sjis, encode_coding_big5):
114 (decode_coding_charset): Remove vars that are set but not used.
115
116 * bytecode.c (Fbyte_code) [!defined BYTE_CODE_SAFE]: Remove var
117 that is set but not used.
118
119 * print.c (print_object): Remove var that is set but not used.
120
121 Replace 2 copies of readlink code with 1 gnulib version (Bug#8401).
122 The gnulib version avoids calling malloc in the usual case,
123 and on 64-bit hosts doesn't have some arbitrary 32-bit limits.
124 * fileio.c (Ffile_symlink_p): Use emacs_readlink.
125 * filelock.c (current_lock_owner): Likewise.
126 * lisp.h (READLINK_BUFSIZE, emacs_readlink): New function.
127 * sysdep.c: Include allocator.h, careadlinkat.h.
128 (emacs_no_realloc_allocator): New static constant.
129 (emacs_readlink): New function.
130 * deps.mk (sysdep.o): Depend on ../lib/allocator.h and on
131 ../lib/careadlinkat.h.
132
133 2011-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
134
135 Add lexical binding.
136
137 * window.c (Ftemp_output_buffer_show): New fun.
138 (Fsave_window_excursion):
139 * print.c (Fwith_output_to_temp_buffer): Move to subr.el.
140
141 * lread.c (lisp_file_lexically_bound_p): New function.
142 (Fload): Bind Qlexical_binding.
143 (readevalloop): Remove `evalfun' arg.
144 Bind Qinternal_interpreter_environment.
145 (Feval_buffer): Bind Qlexical_binding.
146 (defvar_int, defvar_bool, defvar_lisp_nopro, defvar_kboard):
147 Mark as dynamic.
148 (syms_of_lread): Declare `lexical-binding'.
149
150 * lisp.h (struct Lisp_Symbol): New field `declared_special'.
151
152 * keyboard.c (eval_dyn): New fun.
153 (menu_item_eval_property): Use it.
154
155 * image.c (parse_image_spec): Use Ffunctionp.
156
157 * fns.c (concat, mapcar1): Accept byte-code-functions.
158
159 * eval.c (Fsetq): Handle lexical vars.
160 (Fdefun, Fdefmacro, Ffunction): Make closures when needed.
161 (Fdefconst, Fdefvaralias, Fdefvar): Mark as dynamic.
162 (FletX, Flet): Obey lexical binding.
163 (Fcommandp): Handle closures.
164 (Feval): New `lexical' arg.
165 (eval_sub): New function extracted from Feval. Use it almost
166 everywhere where Feval was used. Look up vars in lexical env.
167 Handle closures.
168 (Ffunctionp): Move from subr.el.
169 (Ffuncall): Handle closures.
170 (apply_lambda): Remove `eval_flags'.
171 (funcall_lambda): Handle closures and new byte-code-functions.
172 (Fspecial_variable_p): New function.
173 (syms_of_eval): Initialize the Vinternal_interpreter_environment var,
174 but without exporting it to Lisp.
175
176 * doc.c (Fdocumentation, store_function_docstring):
177 * data.c (Finteractive_form): Handle closures.
178
179 * callint.c (Fcall_interactively): Preserve lexical-binding mode for
180 interactive spec.
181
182 * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN): New
183 byte-codes.
184 (exec_byte_code): New function extracted from Fbyte_code to handle new
185 calling convention for byte-code-functions. Add new byte-codes.
186
187 * buffer.c (defvar_per_buffer): Set new `declared_special' field.
188
189 * alloc.c (Fmake_symbol): Init new `declared_special' field.
190
191 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
192
193 * xdisp.c (redisplay_internal): Fix prototype.
194
195 2011-03-31 Eli Zaretskii <eliz@gnu.org>
196
197 * xdisp.c (SCROLL_LIMIT): New macro.
198 (try_scrolling): Use it when setting scroll_limit. Limit
199 scrolling to 100 screen lines.
200 (redisplay_window): Even when falling back on "recentering",
201 position point in the window according to scroll-conservatively,
202 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
203
204 (try_scrolling): When point is above the window, allow searching
205 as far as scroll_max, or one screenful, to compute vertical
206 distance from PT to the scroll margin position. This prevents
207 try_scrolling from unnecessarily failing when
208 scroll-conservatively is set to a value slightly larger than the
209 window height. Clean up the case of PT below the margin at bottom
210 of window: scroll_max can no longer be INT_MAX. When aggressive
211 scrolling is in use, don't let point enter the opposite scroll
212 margin as result of the scroll.
213 (syms_of_xdisp) <scroll-conservatively>: Document the
214 threshold of 100 lines for never-recentering scrolling.
215
216 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
217
218 * dispextern.h (move_it_by_lines):
219 * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
220 since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed.
221 (message_log_check_duplicate): Remove parameters `prev_bol' and
222 `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
223 (redisplay_internal): Remove parameter `preserve_echo_area',
224 unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed.
225
226 * indent.c (Fvertical_motion):
227 * window.c (window_scroll_pixel_based, Frecenter):
228 Don't pass `need_y_p' to `move_it_by_lines'.
229
230 2011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
233 steal a few bits to be more compact.
234 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
235 Remove unneeded casts.
236
237 * bytecode.c (Fbyte_code): CAR and CDR can GC.
238
239 2011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
240
241 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
242 binding" message (bug#7967).
243
244 2011-03-30 Paul Eggert <eggert@cs.ucla.edu>
245
246 Fix more problems found by GCC 4.6.0's static checks.
247
248 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
249 Remove unused local var.
250
251 * editfns.c (Fmessage_box): Remove unused local var.
252
253 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
254 (note_mode_line_or_margin_highlight, note_mouse_highlight):
255 Omit unused local vars.
256 * window.c (shrink_windows): Omit unused local var.
257 * menu.c (digest_single_submenu): Omit unused local var.
258 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
259 Omit unused local var.
260
261 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
262 Don't assume string length fits in int.
263 (keyremap_step, read_key_sequence): Use size_t for sizes.
264 (read_key_sequence): Don't check last_real_key_start redundantly.
265
266 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
267 instead of alloca (Bug#8344).
268
269 * eval.c (Fbacktrace): Don't assume nargs fits in int.
270 (Fbacktrace_frame): Don't assume nframes fits in int.
271
272 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
273
274 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
275 concerns.
276
277 * term.c (produce_glyphless_glyph): Remove unnecessary test.
278
279 * cm.c (calccost): Turn while-do into do-while, for clarity.
280
281 * keyboard.c (syms_of_keyboard): Use the same style as later
282 in this function when indexing through an array. This also
283 works around GCC bug 48267.
284
285 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
286
287 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
288
289 * chartab.c (sub_char_table_ref_and_range): Redo for slight
290 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
291
292 * keyboard.c, keyboard.h (num_input_events): Now size_t.
293 This avoids undefined behavior on integer overflow, and is a bit
294 more convenient anyway since it is compared to a size_t variable.
295
296 Variadic C functions now count arguments with size_t, not int.
297 This avoids an unnecessary limitation on 64-bit machines, which
298 caused (substring ...) to crash on large vectors (Bug#8344).
299 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
300 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
301 All variadic functions and their callers changed accordingly.
302 (struct gcpro.nvars): Now size_t, not int. All uses changed.
303 * data.c (arith_driver, float_arith_driver): Likewise.
304 * editfns.c (general_insert_function): Likewise.
305 * eval.c (struct backtrace.nargs, interactive_p)
306 (internal_condition_case_n, run_hook_with_args, apply_lambda)
307 (funcall_lambda, mark_backtrace): Likewise.
308 * fns.c (concat): Likewise.
309 * frame.c (x_set_frame_parameters): Likewise.
310 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
311 0 if not found, not -1. All callers changed.
312
313 * alloc.c (garbage_collect): Don't assume stack size fits in int.
314 (stack_copy_size): Now size_t, not int.
315 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
316
317 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
318
319 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
320 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
321 All callers changed.
322
323 * lisp.h (multibyte_char_to_unibyte):
324 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
325 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
326 * character.h (CHAR_TO_BYTE8):
327 * cmds.c (internal_self_insert):
328 * editfns.c (general_insert_function):
329 * keymap.c (push_key_description):
330 * search.c (Freplace_match):
331 * xdisp.c (message_dolog, set_message_1): All callers changed.
332
333 2011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
334
335 * keyboard.c (safe_run_hook_funcall): New function.
336 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
337 don't set the hook to nil, but remove the offending function instead.
338 (Qcommand_hook_internal): Remove, unused.
339 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
340 Vcommand_hook_internal.
341
342 * eval.c (enum run_hooks_condition): Remove.
343 (funcall_nil, funcall_not): New functions.
344 (run_hook_with_args): Call each function through a `funcall' argument.
345 Remove `cond' argument, now redundant.
346 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
347 (Frun_hook_with_args_until_failure): Adjust accordingly.
348 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
349
350 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
351
352 * dispextern.h (string_buffer_position): Remove declaration.
353
354 * print.c (strout): Remove parameter `multibyte', unused since
355 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
356
357 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
358 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
359 All callers changed.
360
361 * w32.c (_wsa_errlist): Use braces for struct initializers.
362
363 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
364 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
365 All callers changed.
366 (string_buffer_position): Likewise. Also, make static (it's never
367 used outside xdisp.c).
368 (cursor_row_p): Remove parameter `w', unused since
369 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
370 (decode_mode_spec): Remove parameter `precision', introduced during
371 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
372 All callers changed.
373
374 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
375
376 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
377
378 2011-03-27 Anders Lindgren <andlind@gmail.com>
379
380 * nsterm.m (ns_menu_bar_is_hidden): New variable.
381 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
382 (ns_update_auto_hide_menu_bar): New functions.
383 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
384 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
385 ns_constrain_all_frames.
386 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
387 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
388
389 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
390
391 * nsmenu.m (runDialogAt): Remove argument to timer_check.
392
393 2011-03-27 Glenn Morris <rgm@gnu.org>
394
395 * syssignal.h: Replace RETSIGTYPE with void.
396 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
397 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
398 Replace SIGTYPE with void everywhere.
399 * s/usg5-4-common.h (SIGTYPE): Remove definition.
400 * s/template.h (SIGTYPE): Remove commented out definition.
401
402 2011-03-26 Eli Zaretskii <eliz@gnu.org>
403
404 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
405 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
406
407 2011-03-26 Juanma Barranquero <lekktu@gmail.com>
408
409 * w32.c (read_unc_volume): Use parameter `henum', instead of
410 global variable `wget_enum_handle'.
411
412 * keymap.c (describe_vector): Remove parameters `indices' and
413 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
414 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
415
416 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
417
418 * keyboard.c (timer_check): Remove parameter `do_it_now',
419 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
420 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
421 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
422
423 * keyboard.c (read_char):
424 * w32menu.c (w32_menu_display_help):
425 * xmenu.c (show_help_event, menu_help_callback):
426 Adjust calls to `show_help_echo'.
427
428 * gtkutil.c (xg_maybe_add_timer):
429 * keyboard.c (readable_events):
430 * process.c (wait_reading_process_output):
431 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
432
433 * insdel.c (adjust_markers_gap_motion):
434 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
435 (gap_left, gap_right): Don't call it.
436
437 2011-03-25 Chong Yidong <cyd@stupidchicken.com>
438
439 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
440 incurred during fontification.
441
442 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
443
444 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
445 (DEFVAR_PER_BUFFER): Don't pass it.
446
447 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
448 (scrolling_window): Don't pass it.
449
450 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
451
452 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
453
454 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
455 and `suffix'.
456 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
457 of variables specific to SELinux and computation of `encoded_absname'.
458
459 * image.c (XPutPixel): Remove unused variable `height'.
460
461 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
462
463 * unexw32.c (get_section_info): Remove unused variable `section'.
464
465 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
466 (system_process_attributes): Remove unused variable `sess'.
467 (sys_read): Remove unused variable `err'.
468
469 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
470 (w32_wnd_proc): Remove unused variable `isdead'.
471 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
472 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
473 (x_create_tip_frame): Remove unused variable `tem'.
474
475 * w32inevt.c (w32_console_read_socket):
476 Remove unused variable `no_events'.
477
478 * w32term.c (x_draw_composite_glyph_string_foreground):
479 Remove unused variable `width'.
480
481 2011-03-24 Juanma Barranquero <lekktu@gmail.com>
482
483 * w32term.c (x_set_glyph_string_clipping):
484 Don't pass uninitialized region to CombineRgn.
485
486 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
487
488 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
489 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
490 (Fx_close_connection): Remove unused variable `i'.
491
492 * w32font.c (w32font_draw): Return number of glyphs.
493 (w32font_open_internal): Remove unused variable `i'.
494 (w32font_driver): Add missing initializer.
495
496 * w32menu.c (utf8to16): Remove unused variable `utf16'.
497 (fill_in_menu): Remove unused variable `items_added'.
498
499 * w32term.c (last_mouse_press_frame): Remove static global variable.
500 (w32_clip_to_row): Remove unused variable `f'.
501 (x_delete_terminal): Remove unused variable `i'.
502
503 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
504 (NOTHING): Remove unused static global variable.
505 (uniscribe_check_otf): Remove unused variable `table'.
506 (uniscribe_font_driver): Add missing initializers.
507
508 2011-03-23 Julien Danjou <julien@danjou.info>
509
510 * term.c (Fsuspend_tty, Fresume_tty):
511 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
512 * window.c (temp_output_buffer_show):
513 * insdel.c (signal_before_change):
514 * frame.c (Fhandle_switch_frame):
515 * fileio.c (Fdo_auto_save):
516 * emacs.c (Fkill_emacs):
517 * editfns.c (save_excursion_restore):
518 * cmds.c (internal_self_insert):
519 * callint.c (Fcall_interactively):
520 * buffer.c (Fkill_all_local_variables):
521 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
522 Use Frun_hooks.
523 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
524 unconditionnaly since it does the check itself.
525
526 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
527
528 Fix more problems found by GCC 4.5.2's static checks.
529
530 * coding.c (encode_coding_raw_text): Avoid unnecessary test
531 the first time through the loop, since we know p0 < p1 then.
532 This also avoids a gcc -Wstrict-overflow warning.
533
534 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
535 leading to a memory leak, possible in functions like
536 load_charset_map_from_file that can allocate an unbounded number
537 of objects (Bug#8318).
538
539 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
540 that could (at least in theory) be that large.
541
542 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
543 This is less likely to overflow, and avoids undefined behavior if
544 overflow does occur. All callers changed. Use strtoul to scan
545 for the unsigned long integer.
546 (pint2hrstr): Simplify and tune code slightly.
547 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
548
549 * scroll.c (do_scrolling): Work around GCC bug 48228.
550 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
551
552 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
553 This also avoids a warning with gcc -Wstrict-overflow.
554 (validate_x_resource_name): Simplify count usage.
555 This also avoids a warning with gcc -Wstrict-overflow.
556
557 * fileio.c (Fcopy_file): Report error if fchown or fchmod
558 fail (Bug#8306).
559
560 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
561
562 * process.c (Fmake_network_process): Use socklen_t, not int,
563 where POSIX says socklen_t is required in portable programs.
564 This fixes a porting bug on hosts like 64-bit HP-UX, where
565 socklen_t is wider than int (Bug#8277).
566 (Fmake_network_process, server_accept_connection):
567 (wait_reading_process_output, read_process_output):
568 Likewise.
569
570 * process.c: Rename or move locals to avoid shadowing.
571 (list_processes_1, Fmake_network_process):
572 (read_process_output_error_handler, exec_sentinel_error_handler):
573 Rename or move locals.
574 (Fmake_network_process): Define label "retry_connect" only if needed.
575 (Fnetwork_interface_info): Fix pointer signedness.
576 (process_send_signal): Add cast to avoid pointer signedness problem.
577 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
578 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
579
580 Make tparam.h and terminfo.c consistent.
581 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
582 Include tparam.h instead, since it declares them.
583 * cm.h (PC): Remove extern decl; tparam.h now does this.
584 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
585 * terminfo.c: Include tparam.h, to check interfaces.
586 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
587 (tparam): Adjust signature to match interface in tparam.h;
588 this removes some undefined behavior. Check that outstring and len
589 are zero, which they always are with Emacs.
590 * tparam.h (PC, BC, UP): New extern decls.
591
592 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
593 (xftfont_open): Rename locals to avoid shadowing.
594
595 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
596 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
597 (OTF_TAG_SYM): Omit macro if not needed.
598 (ftfont_list): Remove unused local.
599 (get_adstyle_property, ftfont_pattern_entity):
600 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
601 Rename locals to avoid shadowing.
602
603 * xfont.c (xfont_list_family): Mark var as initialized.
604
605 * xml.c (make_dom): Now static.
606
607 * composite.c (composition_compute_stop_pos): Rename local to
608 avoid shadowing.
609 (composition_reseat_it): Remove unused locals.
610 (find_automatic_composition, composition_adjust_point): Likewise.
611 (composition_update_it): Mark var as initialized.
612 (find_automatic_composition): Mark vars as initialized,
613 with a FIXME (Bug#8290).
614
615 character.h: Rename locals to avoid shadowing.
616 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
617 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
618 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
619 (BUF_DEC_POS): Be more systematic about renaming local temporaries
620 to avoid shadowing.
621
622 * textprop.c (property_change_between_p): Remove; unused.
623
624 * intervals.c (interval_start_pos): Now static.
625
626 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
627
628 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
629 Rename locals to avoid shadowing.
630
631 * sound.c (wav_play, au_play, Fplay_sound_internal):
632 Fix pointer signedness.
633 (alsa_choose_format): Remove unused local var.
634 (wav_play): Initialize a variable to 0, to prevent undefined
635 behavior (Bug#8278).
636
637 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
638
639 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
640
641 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
642 clobbering (Bug#8298).
643 * sysdep.c (sys_subshell): Likewise.
644 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
645
646 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
647 This should get cleaned up, so that child_setup has the
648 same signature on all platforms.
649
650 * callproc.c (call_process_cleanup): Now static.
651 (relocate_fd): Rename locals to avoid shadowing.
652
653 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
654
655 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
656 not to be necessary, and produces flickering.
657
658 2011-03-20 Glenn Morris <rgm@gnu.org>
659
660 * config.in: Remove file.
661
662 2011-03-20 Juanma Barranquero <lekktu@gmail.com>
663
664 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
665 are now in src/globals.h.
666 (syms_of_minibuf): Remove spurious & from previous change.
667
668 2011-03-20 Leo <sdl.web@gmail.com>
669
670 * minibuf.c (completing-read-function): New variable.
671 (completing-read-default): Rename from completing-read.
672 (completing-read): Call completing-read-function.
673
674 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
675
676 * xfaces.c (Fx_load_color_file):
677 Read color file from absolute filename (bug#8250).
678
679 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
680
681 * makefile.w32-in: Update dependencies.
682
683 2011-03-17 Eli Zaretskii <eliz@gnu.org>
684
685 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
686
687 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
688
689 Fix more problems found by GCC 4.5.2's static checks.
690
691 * process.c (make_serial_process_unwind, send_process_trap):
692 (sigchld_handler): Now static.
693
694 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
695 That way, the code declares only the vars that it needs.
696 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
697 * s/cygwin.h (PTY_ITERATION): Likewise.
698 * s/darwin.h (PTY_ITERATION): Likewise.
699 * s/gnu-linux.h (PTY_ITERATION): Likewise.
700
701 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
702 * process.c (allocate_pty): Don't declare stb unless it's needed.
703
704 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
705 (CONSTANTLIM): Remove; unused.
706 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
707 Define only if needed.
708
709 * unexelf.c (unexec): Name an expression,
710 to avoid gcc -Wbad-function-cast warning.
711 Use a different way to cause a compilation error if anyone uses
712 n rather than nn, a way that does not involve shadowing.
713 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
714
715 * deps.mk (unexalpha.o): Remove; unused.
716
717 New file unexec.h, the (simple) interface for unexec (Bug#8267).
718 * unexec.h: New file.
719 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
720 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
721 Depend on unexec.h.
722 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
723 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
724 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
725 Change as necessary to match prototype in unexec.h.
726
727 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
728 shadowing.
729 (back_comment, skip_chars): Mark vars as initialized.
730
731 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
732 Rename locals to avoid shadowing.
733
734 * lread.c (read1): Rewrite so as not to use empty "else".
735 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
736
737 * print.c (Fredirect_debugging_output): Fix pointer signedess.
738
739 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
740 warning when compiling print.c.
741
742 * font.c (font_unparse_fcname): Abort in an "impossible" situation
743 instead of using an uninitialized var.
744 (font_sort_entities): Mark var as initialized.
745
746 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
747
748 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
749 pointers to constants.
750 (font_parse_fcname): Remove unused vars.
751 (font_delete_unmatched): Now static.
752 (font_get_spec): Remove; unused.
753 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
754 (font_update_drivers, Ffont_get_glyphs, font_add_log):
755 Rename or move locals to avoid shadowing.
756
757 * fns.c (require_nesting_list, require_unwind): Now static.
758 (Ffillarray): Rename locals to avoid shadowing.
759
760 * floatfns.c (domain_error2): Define only if needed.
761 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
762
763 * alloc.c (mark_backtrace): Move decl from here ...
764 * lisp.h: ... to here, so that it can be checked.
765
766 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
767 (Fdefvar): Rewrite so as not to use empty "else".
768 (lisp_indirect_variable): Name an expression,
769 to avoid gcc -Wbad-function-cast warning.
770 (Fdefvar): Rename locals to avoid shadowing.
771
772 * callint.c (quotify_arg, quotify_args): Now static.
773 (Fcall_interactively): Rename locals to avoid shadowing.
774 Use const pointer when appropriate.
775
776 * lisp.h (get_system_name, get_operating_system_release):
777 Move decls here, to check interfaces.
778 * process.c (get_operating_system_release): Move decl to lisp.h.
779 * xrdb.c (get_system_name): Likewise.
780 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
781 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
782 some of which prompt warnings from gcc -Wbad-function-cast.
783 (Fformat_time_string, Fencode_time, Finsert_char):
784 (Ftranslate_region_internal, Fformat):
785 Rename or remove local vars to avoid shadowing.
786 (Ftranslate_region_internal): Mark var as initialized.
787
788 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
789 avoid shadowing.
790
791 * lisp.h (eassert): Check that the argument compiles, even if
792 ENABLE_CHECKING is not defined.
793
794 * data.c (Findirect_variable): Name an expression, to avoid
795 gcc -Wbad-function-cast warning.
796 (default_value, arithcompare, arith_driver, arith_error): Now static.
797 (store_symval_forwarding): Rename local to avoid shadowing.
798 (Fmake_variable_buffer_local, Fmake_local_variable):
799 Mark variables as initialized.
800 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
801
802 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
803 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
804 Rename locals to avoid shadowing.
805 (mark_stack): Move local variables into the #ifdef region where
806 they're used.
807 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
808 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
809 needed otherwise.
810 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
811 (GC_STRING_CHARS): Remove; not used.
812 (Fmemory_limit): Cast sbrk's returned value to char *.
813
814 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
815 avoids undefined behavior in theory.
816
817 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
818
819 Use functions, not macros, for up- and down-casing (Bug#8254).
820 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
821 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
822 to use the following functions instead of these macros.
823 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
824 EMACS_INT, since callers assume the returned value fits in int.
825 (upcase1): Likewise, for UPCASE_TABLE.
826 (uppercasep, lowercasep, upcase): New static inline functions.
827 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
828 the race-condition problem in the old DOWNCASE.
829
830 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
831 Rename locals to avoid shadowing.
832 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
833 (regex_compile, re_search_2, re_match_2_internal):
834 Remove unused local vars.
835 (FREE_VAR): Rewrite so as not to use empty "else",
836 which gcc can warn about.
837 (regex_compile, re_match_2_internal): Mark locals as initialized.
838 (RETALLOC_IF): Define only if needed.
839 (WORDCHAR_P): Likewise. This one is never needed, but is used
840 only in a comment talking about a compiler bug, so put inside
841 the #if 0 of that comment.
842 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
843 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
844 Remove; unused.
845
846 * search.c (boyer_moore): Rename locals to avoid shadowing.
847 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
848 (PREV_CHAR_BOUNDARY): Likewise.
849
850 * search.c (simple_search): Remove unused var.
851
852 * dired.c (compile_pattern): Move decl from here ...
853 * lisp.h: ... to here, so that it can be checked.
854 (struct re_registers): New forward decl.
855
856 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
857
858 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
859 All uses changed.
860 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
861 Rename locals to avoid shadowing.
862 (Fvertical_motion): Mark locals as initialized.
863
864 * casefiddle.c (casify_object, casify_region): Now static.
865 (casify_region): Mark local as initialized.
866
867 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
868
869 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
870 New macros, so that the caller can use some names other than
871 gcpro1, gcpro2, etc.
872 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
873 of the new macros.
874 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
875 argument, for consistency with GCPRO2_VAR, etc: it is now the
876 prefix of the variable, not the variable itself. All uses
877 changed.
878 * dired.c (directory_files_internal, file_name_completion):
879 Rename locals to avoid shadowing.
880
881 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
882 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
883 dired.c's scmp function, had undefined behavior.
884 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
885 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
886 * buffer.h: ... to here, because these macros use current_buffer,
887 and the new implementation with inline functions needs to have
888 current_buffer in scope now, rather than later when the macros
889 are used.
890 (downcase, upcase1): New static inline functions.
891 (DOWNCASE, UPCASE1): Reimplement using these functions.
892 This avoids undefined behavior in expressions like
893 DOWNCASE (x) == DOWNCASE (y), which previously suffered
894 from race conditions in accessing the global variables
895 case_temp1 and case_temp2.
896 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
897 * lisp.h (case_temp1, case_temp2): Remove their decls.
898 * character.h (ASCII_CHAR_P): Move from here ...
899 * lisp.h: ... to here, so that the inline functions mentioned
900 above can use them.
901
902 * dired.c (directory_files_internal_unwind): Now static.
903
904 * fileio.c (file_name_as_directory, directory_file_name):
905 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
906 Now static.
907 (file_name_as_directory): Use const pointers when appropriate.
908 (Fexpand_file_name): Likewise. In particular, newdir might
909 point at constant storage, so make it a const pointer.
910 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
911 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
912 signedness issues.
913 (Fset_file_times, Finsert_file_contents, auto_save_error):
914 Rename locals to avoid shadowing.
915
916 * minibuf.c (choose_minibuf_frame_1): Now static.
917 (Ftry_completion, Fall_completions): Rename or remove locals
918 to avoid shadowing.
919
920 * marker.c (bytepos_to_charpos): Remove; unused.
921
922 * lisp.h (verify_bytepos, count_markers): New decls,
923 so that gcc does not warn that these functions aren't declared.
924
925 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
926 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
927 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
928 (copy_text): Remove unused local var.
929
930 * filelock.c (within_one_second): Now static.
931 (lock_file_1): Rename local to avoid shadowing.
932
933 * buffer.c (fix_overlays_before): Mark locals as initialized.
934 (fix_start_end_in_overlays): Likewise. This function should be
935 simplified by using pointers-to-pointers, but that's a different
936 matter.
937 (switch_to_buffer_1): Now static.
938 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
939 (report_overlay_modification): Rename locals to avoid shadowing.
940
941 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
942 Fix pointer signedness issue.
943 (sys_subshell): Mark local as volatile if checking for lint,
944 to suppress a gcc -Wclobbered warning that does not seem to be right.
945 (MAXPATHLEN): Define only if needed.
946
947 * process.c (serial_open, serial_configure): Move decls from here ...
948 * systty.h: ... to here, so that they can be checked.
949
950 * fns.c (get_random, seed_random): Move extern decls from here ...
951 * lisp.h: ... to here, so that they can be checked.
952
953 * sysdep.c (reset_io): Now static.
954 (wait_for_termination_signal): Remove; unused.
955
956 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
957 (copy_keymap_item, append_key, push_text_char_description):
958 Now static.
959 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
960 (DENSE_TABLE_SIZE): Remove; unused.
961 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
962 (describe_map_tree):
963 Rename locals to avoid shadowing.
964
965 * keyboard.c: Declare functions static if they are not used elsewhere.
966 (echo_char, echo_dash, cmd_error, top_level_2):
967 (poll_for_input, handle_async_input): Now static.
968 (read_char, kbd_buffer_get_event, make_lispy_position):
969 (make_lispy_event, make_lispy_movement, apply_modifiers):
970 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
971 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
972 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
973 (read_key_sequence, read_char): Mark locals as initialized.
974 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
975
976 * keyboard.h (make_ctrl_char): New decl.
977 (mark_kboards): Move decl here ...
978 * alloc.c (mark_kboards): ... from here.
979
980 * lisp.h (force_auto_save_soon): New decl.
981
982 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
983 (DEFINE_DUMMY_FUNCTION): New macro.
984 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
985 Use it.
986 (main): Add casts to avoid warnings
987 if GCC considers string literals to be constants.
988
989 * lisp.h (fatal_error_signal): Add decl, since it's exported.
990
991 * dbusbind.c: Pointer signedness fixes.
992 (xd_signature, xd_append_arg, xd_initialize):
993 (Fdbus_call_method, Fdbus_call_method_asynchronously):
994 (Fdbus_method_return_internal, Fdbus_method_error_internal):
995 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
996 (Fdbus_register_signal): Use SSDATA when the context wants char *.
997
998 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
999 if GCC considers string literals to be constants.
1000 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
1001
1002 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
1003
1004 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
1005 (print_preprocess, print_object): New macro to fix last change.
1006
1007 * print.c (print_preprocess): Don't forget font objects.
1008
1009 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
1010
1011 * emacs.c (USAGE3): Doc fixes.
1012
1013 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
1014
1015 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
1016 structure.
1017
1018 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
1019
1020 * lisp.h (VWindow_system, Qfile_name_history):
1021 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
1022 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
1023 (w32_system_caret_x, w32_system_caret_y): Declare extern.
1024
1025 * w32select.c: Don't #include "keyboard.h".
1026 (run_protected): Add extern declaration for waiting_for_input.
1027
1028 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
1029 * w32console.c (detect_input_pending, read_input_pending)
1030 (encode_terminal_code):
1031 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
1032 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
1033 (w32_system_caret_y, Qfile_name_history):
1034 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
1035 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
1036 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
1037 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
1038 * w32proc.c (Qlocal, report_file_error):
1039 * w32term.c (Vwindow_system, updating_frame):
1040 * w32uniscribe.c (initialized, uniscribe_font_driver):
1041 Remove unneeded extern declarations.
1042
1043 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
1044
1045 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
1046
1047 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
1048
1049 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
1050 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
1051 These macros can no longer be used for assignment.
1052
1053 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
1054 Assign struct members directly, instead of using BUF_BEGV etc.
1055 (record_buffer_markers, fetch_buffer_markers): New functions for
1056 recording and fetching special buffer markers.
1057 (set_buffer_internal_1, set_buffer_temp): Use them.
1058
1059 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
1060
1061 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
1062
1063 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
1064 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
1065
1066 * xdisp.c (hscroll_window_tree):
1067 (reconsider_clip_changes): Use PT instead of BUF_PT.
1068
1069 2011-03-13 Eli Zaretskii <eliz@gnu.org>
1070
1071 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
1072 $(EMACS_ROOT)/lib/intprops.h.
1073
1074 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
1075
1076 Fix more problems found by GCC 4.5.2's static checks.
1077
1078 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
1079 to unsigned char * to avoid compiler diagnostic.
1080 (xg_free_frame_widgets): Make it clear that a local variable is
1081 needed only if USE_GTK_TOOLTIP.
1082 (gdk_window_get_screen): Make it clear that this macro is needed
1083 only if USE_GTK_TOOLTIP.
1084 (int_gtk_range_get_value): New function, which avoids a diagnostic
1085 from gcc -Wbad-function-cast.
1086 (xg_set_toolkit_scroll_bar_thumb): Use it.
1087 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
1088 diagnostic from gcc -Wbad-function-cast.
1089 (get_utf8_string, xg_get_file_with_chooser):
1090 Rename locals to avoid shadowing.
1091 (create_dialog): Move locals to avoid shadowing.
1092
1093 * xgselect.c (xg_select): Remove unused var.
1094
1095 * image.c (four_corners_best): Mark locals as initialized.
1096 (gif_load): Initialize transparent_p to zero (Bug#8238).
1097 Mark another local as initialized.
1098 (my_png_error, my_error_exit): Mark with NO_RETURN.
1099
1100 * image.c (clear_image_cache): Now static.
1101 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
1102 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
1103 (x_edge_detection): Remove unnecessary cast that
1104 gcc -Wbad-function-cast diagnoses.
1105 (gif_load): Fix pointer signedness.
1106 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
1107 (jpeg_load, gif_load): Rename locals to avoid shadowing.
1108
1109 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1110
1111 Improve quality of tests for time stamp overflow.
1112 For example, without this patch (encode-time 0 0 0 1 1
1113 1152921504606846976) returns the obviously-bogus value (-948597
1114 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
1115 reports time overflow. See
1116 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
1117 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
1118 * editfns.c: Include limits.h and intprops.h.
1119 (TIME_T_MIN, TIME_T_MAX): New macros.
1120 (time_overflow): Move earlier, to before first use.
1121 (hi_time, lo_time): New functions, for an accurate test for
1122 out-of-range times.
1123 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
1124 (Fget_internal_run_time): Don't assume time_t fits in int.
1125 (make_time): Use list2 instead of Fcons twice.
1126 (Fdecode_time): More accurate test for out-of-range times.
1127 (check_tm_member): New function.
1128 (Fencode_time): Use it, to test for out-of-range times.
1129 (lisp_time_argument): Don't rely on undefined left-shift and
1130 right-shift behavior when checking for time stamp overflow.
1131
1132 * editfns.c (time_overflow): New function, refactoring common code.
1133 (Fformat_time_string, Fdecode_time, Fencode_time):
1134 (Fcurrent_time_string): Use it.
1135
1136 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
1137 * dired.c (make_time): Move to ...
1138 * editfns.c (make_time): ... here.
1139 * systime.h: Note the move.
1140
1141 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1142
1143 * fringe.c (update_window_fringes): Remove unused variables.
1144
1145 * unexmacosx.c (copy_data_segment): Also copy __got section.
1146 (Bug#8223)
1147
1148 2011-03-12 Eli Zaretskii <eliz@gnu.org>
1149
1150 * termcap.c [MSDOS]: Include "msdos.h".
1151 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
1152 Constify `char *' arguments and their references according to
1153 prototypes in tparam.h.
1154
1155 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
1156
1157 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
1158 Adapt all references accordingly.
1159
1160 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
1161
1162 2011-03-11 Tom Tromey <tromey@redhat.com>
1163
1164 * buffer.c (syms_of_buffer): Remove obsolete comment.
1165
1166 2011-03-11 Eli Zaretskii <eliz@gnu.org>
1167
1168 * termhooks.h (encode_terminal_code): Declare prototype.
1169
1170 * msdos.c (encode_terminal_code): Don't declare prototype.
1171
1172 * term.c (encode_terminal_code): Now external again, used by
1173 w32console.c and msdos.c.
1174
1175 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
1176 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
1177
1178 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1179
1180 Fix some minor problems found by GCC 4.5.2's static checks.
1181
1182 * fringe.c (update_window_fringes): Mark locals as initialized
1183 (Bug#8227).
1184 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
1185
1186 * alloc.c (mark_fringe_data): Move decl from here ...
1187 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
1188 to check its interface.
1189 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
1190
1191 * fontset.c (free_realized_fontset): Now static.
1192 (Fset_fontset_font): Rename local to avoid shadowing.
1193 (fontset_font): Mark local as initialized.
1194 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
1195
1196 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
1197
1198 * xselect.c (x_disown_buffer_selections): Remove; not used.
1199 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
1200 (x_own_selection, Fx_disown_selection_internal): Rename locals
1201 to avoid shadowing.
1202 (x_handle_dnd_message): Remove local to avoid shadowing.
1203
1204 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
1205 so that the caller can use some name other than gcpro1.
1206 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
1207 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1208 (Fx_backspace_delete_keys_p):
1209 Use them to avoid shadowing, and rename vars to avoid shadowing.
1210 (x_decode_color, x_set_name, x_window): Now static.
1211 (Fx_create_frame): Add braces to silence GCC warning.
1212 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
1213 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
1214 Remove unused locals.
1215 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1216 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
1217 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
1218 macros.
1219
1220 * xterm.h (x_mouse_leave): New decl.
1221
1222 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
1223 Remove unused functions.
1224 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
1225 (x_calc_absolute_position): Now static.
1226 (XTread_socket): Don't define label "out" unless it's used.
1227 Don't declare local "event" unless it's used.
1228 (x_iconify_frame, x_free_frame_resources): Don't declare locals
1229 unless they are used.
1230 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
1231 (x_fatal_error_signal): Remove; not used.
1232 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
1233 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
1234 (x_error_catcher, x_connection_closed, x_error_handler):
1235 (x_error_quitter, xembed_send_message, x_iconify_frame):
1236 (my_log_handler): Rename locals to avoid shadowing.
1237 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
1238 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
1239
1240 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
1241 Rename or move locals to avoid shadowing.
1242 (tty_defined_color, merge_face_heights): Now static.
1243 (free_realized_faces_for_fontset): Remove; not used.
1244 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
1245 does not deduce is never used uninitialized.
1246 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
1247 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
1248
1249 * terminal.c (store_terminal_param): Now static.
1250
1251 * xmenu.c (menu_highlight_callback): Now static.
1252 (set_frame_menubar): Remove unused local.
1253 (xmenu_show): Rename parameter to avoid shadowing.
1254 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1255 since they might point to immutable storage.
1256 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1257 since it's unused otherwise.
1258
1259 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
1260 Add a FIXME, since the code still doesn't look right. (Bug#8215)
1261 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1262 avoids a gcc -Wuninitialized diagnostic.
1263 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
1264 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1265 does not deduce are never used uninitialized.
1266
1267 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1268
1269 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
1270 * window.c (window_loop, size_window):
1271 (run_window_configuration_change_hook, enlarge_window): Likewise.
1272
1273 * window.c (display_buffer): Now static.
1274 (size_window): Mark variables that gcc -Wuninitialized
1275 does not deduce are never used uninitialized.
1276 * window.h (check_all_windows): New decl, to forestall
1277 gcc -Wmissing-prototypes diagnostic.
1278 * dispextern.h (bidi_dump_cached_states): Likewise.
1279
1280 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1281 shadowing.
1282 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
1283 Include <limits.h>.
1284 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1285 and to avoid gcc -Wuninitialized warning.
1286 (load_charset_map): Mark variables that gcc -Wuninitialized
1287 does not deduce are never used uninitialized.
1288 (load_charset): Abort instead of using uninitialized var (Bug#8229).
1289
1290 * coding.c (coding_set_source, coding_set_destination):
1291 Use "else { /* comment */ }" rather than "else /* comment */;"
1292 for clarity, and to avoid gcc -Wempty-body warning.
1293 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1294 a block, when the outer 'i' will do.
1295 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1296 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1297 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1298 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1299 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1300 Rename locals to avoid shadowing.
1301 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
1302 * coding.c (emacs_mule_char, encode_invocation_designation):
1303 Now static, since they're not used elsewhere.
1304 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
1305 (decode_coding_object, encode_coding_object, detect_coding_system):
1306 (decode_coding_emacs_mule): Mark variables that gcc
1307 -Wuninitialized does not deduce are never used uninitialized.
1308 (detect_coding_iso_2022): Initialize a local variable that might
1309 be used uninitialized. Leave a FIXME because it's not clear that
1310 this initialization is needed. (Bug#8211)
1311 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1312 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1313 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1314 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1315 Remove unused macros.
1316
1317 * category.c (hash_get_category_set): Remove unused local var.
1318 (copy_category_table): Now static, since it's not used elsewhere.
1319 * character.c (string_count_byte8): Likewise.
1320
1321 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1322 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1323
1324 * chartab.c (copy_sub_char_table): Now static, since it's not used
1325 elsewhere.
1326 (sub_char_table_ref_and_range, char_table_ref_and_range):
1327 Rename locals to avoid shadowing.
1328 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
1329
1330 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
1331 (BIDI_BOB): Remove unused macro.
1332
1333 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1334 deduce are never used uninitialized.
1335 * term.c (encode_terminal_code): Likewise.
1336
1337 * term.c (encode_terminal_code): Now static. Remove unused local.
1338
1339 * tparam.h: New file.
1340 * term.c, tparam.h: Include it.
1341 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1342 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1343 Move these decls to tparam.h, and make them agree with what
1344 is actually in tparam.c. The previous trick of using incompatible
1345 decls in different modules does not conform to the C standard.
1346 All callers of tparam changed to use tparam's actual API.
1347 * tparam.c (tparam1, tparam, tgoto):
1348 Use const pointers where appropriate.
1349
1350 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1351 * cm.h (struct cm): Likewise.
1352 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1353 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1354 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1355 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1356 (turn_on_face, init_tty): Likewise.
1357 * termchar.h (struct tty_display_info): Likewise.
1358
1359 * term.c (term_mouse_position): Rename local to avoid shadowing.
1360
1361 * alloc.c (mark_ttys): Move decl from here ...
1362 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1363
1364 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1365
1366 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1367
1368 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
1369
1370 * search.c (compile_pattern_1): Remove argument regp, unused since
1371 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1372 (compile_pattern): Don't pass it.
1373
1374 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1377 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1378 for ! HAVE_GTK3.
1379 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1380
1381 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1382
1383 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1384 gdk_window_get_screen, gdk_window_get_geometry,
1385 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1386 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1387 (xg_get_pixbuf_from_pixmap): New function.
1388 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1389 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1390 Call xg_get_pixbuf_from_pixmap instead of
1391 gdk_pixbuf_get_from_drawable.
1392 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1393 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1394 (xg_check_special_colors): Use GtkStyleContext and its functions
1395 for HAVE_GTK3.
1396 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1397 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1398 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1399 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
1400 Call gtk_widget_get_preferred_size.
1401 (xg_frame_resized): gdk_window_get_geometry only takes 5
1402 parameters.
1403 (xg_win_to_widget, xg_event_is_for_menubar):
1404 Call gdk_x11_window_lookup_for_display.
1405 (xg_set_widget_bg): New function.
1406 (delete_cb): New function.
1407 (xg_create_frame_widgets): connect delete-event to delete_cb.
1408 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1409 (xg_set_background_color): Call xg_set_widget_bg.
1410 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1411 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1412 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1413 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1414 if ! HAVE_GTK3.
1415 (update_frame_tool_bar): Call gtk_widget_hide.
1416 (xg_initialize): Use GDK_KEY_g.
1417
1418 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1419 if ! HAVE_GTK3
1420 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1421
1422 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1423 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1424 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1425
1426 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
1427
1428 * w32xfns.c (select_palette): Check success of RealizePalette against
1429 GDI_ERROR, not zero.
1430
1431 2011-03-07 Ben Key <bkey76@gmail.com>
1432
1433 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1434 (file_dialog_callback): Fix locating the window handle of the File Name
1435 text field. After disabling it, set focus on the list control.
1436 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1437 Name text field to "Current Directory" if it does not already have
1438 another value. (Bug#8181)
1439
1440 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1441
1442 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1443 parameter for hbar cursors. Based on a patch by Ben Key
1444 <bkey76@gmail.com>.
1445
1446 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
1447
1448 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1449 change.
1450
1451 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1452
1453 current_column: Now returns EMACS_INT, fixing some iftc
1454 that was introduced in the 2002-06-02 change "temporarily"; see
1455 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1456 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1457 * cmds.c (internal_self_insert): Likewise.
1458 * indent.c (Fcurrent_column): Likewise.
1459 * keymap.c (describe_command): Likewise.
1460 * minibuf.c (read_minibuf): Likewise.
1461 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1462 to int.
1463 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1464 Likewise.
1465 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1466 not int or double, if they might contain a column number.
1467 * indent.c (current_column, Findent_to, indented_beyond_p):
1468 (compute_motion, vmotion): Likewise.
1469 * keymap.c (describe_command): Likewise.
1470 * xdisp.c (pint2str): Likewise.
1471 * indent.c (last_known_column): Now EMACS_INT, not int.
1472 * minibuf.c (minibuf_prompt_width): Likewise.
1473 * indent.c (current_column, current_column_1, position_indentation):
1474 Return EMACS_INT, not double.
1475 * lisp.h (current_column): Likewise.
1476 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1477 All callers changed.
1478 * lisp.h (indented_beyond_p): Likewise.
1479
1480 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1481 from xdisp.c, and make static, since these are used only here.
1482 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1483 Remove decls.
1484
1485 * cmds.c (internal_self_insert): Reindent to match Emacs style.
1486 * xdisp.c (redisplay_window): Likewise.
1487
1488 * xdisp.c: Rename or move local decls to avoid shadowing.
1489 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1490 (message_dolog, message_with_string, redisplay_internal):
1491 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1492 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1493 (display_line, display_string, rows_from_pos_range):
1494 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1495 Rename or move local decls.
1496 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1497 (produce_glyphless_glyph): Make a pointer "const"
1498 since it might point to immutable storage.
1499 (update_window_cursor): Now static, since it's not used elsewhere.
1500 (SKIP_GLYPHS): Remove unused macro.
1501
1502 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1503
1504 * window.c (Fnext_window): Doc fix. (Bug#5567)
1505
1506 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
1507
1508 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1509
1510 2011-03-02 Ken Brown <kbrown@cornell.edu>
1511
1512 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1513
1514 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1515
1516 Work around some portability problems with symlinks.
1517
1518 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1519 generate a special message for it. Suggested by Eli Zaretskii in
1520 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1521 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1522 Simplify the code by assuming that the readlink and symlink calls
1523 exist, even if they always fail on this host.
1524 (Ffile_readable_p): Likewise, for fifos.
1525 * config.in: Regenerate.
1526
1527 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
1528
1529 * frame.c (store_frame_param): Don't store value directly in
1530 buffer_list and buried_buffer_list; copy the list and remove dead
1531 buffers (Bug#7898).
1532
1533 2011-02-27 Eli Zaretskii <eliz@gnu.org>
1534
1535 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1536
1537 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1538
1539 * w32.c (symlink, readlink): New stub functions.
1540
1541 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1542
1543 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1544 This avoids a gcc warning in some configurations.
1545
1546 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1547
1548 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1549 (set_menu_bar_lines, x_get_resource_string): New decls.
1550 * msdos.c (set_menu_bar_lines): Omit decl.
1551
1552 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1553 It's always given int values and used as an int. This suppresses
1554 a gcc "comparison of unsigned expression >= 0" warning in some
1555 configurations.
1556
1557 * dispnew.c: Rename locals to avoid shadowing.
1558 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1559
1560 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1561
1562 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1563 (copy_glyph_row_contents): Remove; not used.
1564 (frame_row_to_window, check_current_matrix_flags):
1565 (window_change_signal): Now static, since they're not used elsewhere.
1566 (check_current_matrix_flags): Surround with "#if 0", since its
1567 only use is in a comment. Maybe both the comment and the "#if 0"
1568 stuff should be removed?
1569
1570 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1571 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1572 contexts that actually need it.
1573
1574 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1575
1576 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1577 (lstat): Define for DJGPP < 2.04.
1578
1579 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1580
1581 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1582 as per recent filemodestring API change. Reported by Jonas Öster in
1583 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1584
1585 2011-02-23 Ben Key <bkey76@gmail.com>
1586
1587 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1588 directly, for bar cursors.
1589
1590 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
1591
1592 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1593 into the frame's cursor_width.
1594
1595 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1596
1597 * print.c (print_object): Never print old-style backquotes.
1598 Obey escapeflag for hash tables as well.
1599
1600 2011-02-23 Kenichi Handa <handa@m17n.org>
1601
1602 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1603 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1604
1605 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1606
1607 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1608
1609 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1610
1611 * lread.c (openp): Correct Boolean typo in last commit.
1612
1613 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1614
1615 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1616 key to Emacs, treat as unmodified (go to input manager processing).
1617
1618 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1619
1620 Assume S_ISLNK etc. work, since gnulib supports this.
1621 * config.in: Regenerate.
1622 * dired.c (lstat): Remove.
1623 (file_name_completion): Assume S_ISDIR works.
1624 (file_name_completion_stat): Assume S_ISLNK works.
1625 Do not bother calling stat unless lstat says it's a symlink.
1626 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1627 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1628 (check_writable, Ffile_writable_p, Fset_file_times):
1629 Assume S_ISDIR works.
1630 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1631 fifos exist.
1632 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1633 * filelock.c (S_ISLNK): Remove.
1634 * lread.c (openp): Assume S_ISDIR works.
1635 * xrdb.c (S_ISDIR): Remove.
1636
1637 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1638
1639 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1640 lib/makefile.w32-in.
1641 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1642 (GLOBAL_SOURCES): Remove filemode.c.
1643 (OBJ1): Remove $(BLD)/filemode.$(O).
1644
1645 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1646
1647 Import filemode module from gnulib.
1648 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1649 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1650 (filemode.o): Remove; this is now in ../lib.
1651 * dired.c: Include <filemode.h>.
1652 (filemodestring): Remove now-redundant decl.
1653 * config.in: Regenerate.
1654
1655 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1656
1657 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1658 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1659
1660 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1661
1662 * makefile.w32-in: Remove md5.$(O).
1663 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1664 lib/makefile.w32-in.
1665
1666 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1667
1668 Import crypto/md5 and stdint modules from gnulib.
1669 * Makefile.in (base_obj): Remove md5.o, since this file
1670 is in lib now.
1671 * config.in: Regenerate.
1672 * md5.h, md5.h: Move to ../lib.
1673 * deps.mk (md5.o): Remove.
1674 (fns.o): Depend on ../lib/md5.h, not md5.h.
1675
1676 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1677
1678 * termcap.c (tputs): Don't declare baud_rate.
1679
1680 * s/msdos.h (strtold): Define to _strtold.
1681
1682 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 * process.c (Fstart_process, Fmake_serial_process)
1685 (Fmake_network_process, server_accept_connection):
1686 Use empty_unibyte_string.
1687
1688 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1689
1690 * lread.c (Qdir_ok): New constant.
1691 (syms_of_lread): Initialize it.
1692 (openp): Don't ignore directories if the predicate returns dir-ok.
1693
1694 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1695
1696 * xdisp.c (display_line): Fix the change made for bug#7939.
1697
1698 * terminal.c (create_terminal): Use default-keyboard-coding-system
1699 and default-terminal-coding-system to initialize coding systems of
1700 the new terminal. (Bug#7840)
1701
1702 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1703
1704 * lisp.h (BYTE_MARK_STACK): New macro.
1705 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1706
1707 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1708 (struct byte_stack): Only define `top' and `bottom' if used.
1709 (mark_byte_stack): Only define if used.
1710 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1711 is not set.
1712 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1713
1714 * term.c (OUTPUT_IF): Use OUTPUT.
1715
1716 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1717 redundantly scan byte-code stacks, catchlist, and handlerlist.
1718
1719 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1720
1721 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1722 (Fns_read_file_name): Replace B_ with BVAR.
1723
1724 * nsterm.m (ns_term_init): Use KVAR.
1725
1726 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1727
1728 * msdos.c (internal_terminal_init): Use KVAR.
1729
1730 * w32fns.c (Fx_create_frame): Use KVAR.
1731
1732 * w32term.c (w32_create_terminal): Use KVAR.
1733
1734 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1735 (getloadavg): Declare prototype which was removed from lisp.h.
1736
1737 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1738
1739 * fileio.c (Finsert_file_contents, Fwrite_region):
1740 Remove references to buffer_file_type.
1741 (syms_of_fileio): Don't intern and staticpro
1742 find-buffer-file-type.
1743
1744 * callproc.c (syms_of_callproc): Remove references to
1745 buffer_file_type.
1746
1747 * buffer.c (reset_buffer_local_variables): Don't set
1748 buffer_file_type.
1749 (init_buffer_once): Likewise.
1750 (syms_of_buffer): Don't define buffer-file-type.
1751
1752 * buffer.h (struct buffer): Remove buffer_file_type.
1753
1754 2011-02-16 Tom Tromey <tromey@parfait>
1755
1756 * callint.c (Fcall_interactively): Update for change to field names.
1757 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1758 * cmds.c (Fself_insert_command): Update for change to field names.
1759 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1760 (Fdescribe_buffer_bindings): Update for change to field names.
1761 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1762 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1763 Update for change to field names.
1764 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1765 (echo_length, echo_truncate, cmd_error, command_loop_1)
1766 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1767 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1768 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1769 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1770 Update for change to field names.
1771 * xfns.c (Fx_create_frame): Update for change to field names.
1772 * xterm.c (x_connection_closed, x_term_init): Update for change to
1773 field names.
1774 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1775 Update for change to field names.
1776 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1777 Update for change to field names.
1778 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1779 (delete_frame): Update for change to field names.
1780 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1781 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1782 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1783
1784 2011-02-16 Tom Tromey <tromey@redhat.com>
1785
1786 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1787
1788 2011-02-16 Tom Tromey <tromey@parfait>
1789
1790 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1791 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1792 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1793 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1794 (with_echo_area_buffer, setup_echo_area_for_printing)
1795 (set_message_1, update_menu_bar, update_tool_bar)
1796 (text_outside_line_unchanged_p, redisplay_internal)
1797 (try_scrolling, try_cursor_movement, redisplay_window)
1798 (try_window_reusing_current_matrix, row_containing_pos)
1799 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1800 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1801 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1802 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1803 BVAR.
1804 * window.c (window_display_table, unshow_buffer, window_loop)
1805 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1806 (select_window, Fforce_window_update, temp_output_buffer_show)
1807 (Fset_window_configuration, save_window_save): Replace B_ with
1808 BVAR.
1809 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1810 Replace B_ with BVAR.
1811 * undo.c (record_point, record_insert, record_delete)
1812 (record_marker_adjustment, record_first_change)
1813 (record_property_change, Fundo_boundary, truncate_undo_list)
1814 (Fprimitive_undo): Replace B_ with BVAR.
1815 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1816 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1817 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1818 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1819 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1820 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1821 (string_match_1, fast_looking_at, newline_cache_on_off)
1822 (search_command, search_buffer, simple_search, boyer_moore)
1823 (Freplace_match): Replace B_ with BVAR.
1824 * process.c (get_process, list_processes_1, Fstart_process)
1825 (Fmake_serial_process, Fmake_network_process)
1826 (read_process_output, send_process, exec_sentinel)
1827 (status_notify, setup_process_coding_systems): Replace B_ with
1828 BVAR.
1829 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1830 (strout, print_string, temp_output_buffer_setup, print_object):
1831 Replace B_ with BVAR.
1832 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1833 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1834 Replace B_ with BVAR.
1835 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1836 (set_marker_both, set_marker_restricted_both, unchain_marker):
1837 Replace B_ with BVAR.
1838 * lread.c (readchar, unreadchar, openp, readevalloop)
1839 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1840 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1841 * keymap.c (Flocal_key_binding, Fuse_local_map)
1842 (Fcurrent_local_map, push_key_description)
1843 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1844 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1845 (read_key_sequence): Replace B_ with BVAR.
1846 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1847 * intervals.c (set_point_both, get_local_map): Replace B_ with
1848 BVAR.
1849 * insdel.c (check_markers, insert_char, insert_1_both)
1850 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1851 (adjust_after_replace, replace_range, del_range_2)
1852 (modify_region, prepare_to_modify_buffer)
1853 (Fcombine_after_change_execute): Replace B_ with BVAR.
1854 * indent.c (buffer_display_table, recompute_width_table)
1855 (width_run_cache_on_off, current_column, scan_for_column)
1856 (Findent_to, position_indentation, compute_motion, vmotion):
1857 Replace B_ with BVAR.
1858 * fringe.c (get_logical_cursor_bitmap)
1859 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1860 with BVAR.
1861 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1862 * font.c (font_at): Replace B_ with BVAR.
1863 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1864 Replace B_ with BVAR.
1865 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1866 (unlock_buffer): Replace B_ with BVAR.
1867 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1868 (Ffile_regular_p, Ffile_selinux_context)
1869 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1870 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1871 (Finsert_file_contents, choose_write_coding_system)
1872 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1873 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1874 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1875 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1876 (save_excursion_restore, Fprevious_char, Fchar_before)
1877 (general_insert_function, Finsert_char, Finsert_byte)
1878 (make_buffer_string_both, Finsert_buffer_substring)
1879 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1880 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1881 (Ftranslate_region_internal, save_restriction_restore)
1882 (Fchar_equal): Replace B_ with BVAR.
1883 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1884 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1885 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1886 * dired.c (directory_files_internal): Replace B_ with BVAR.
1887 * data.c (swap_in_symval_forwarding, set_internal)
1888 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1889 Replace B_ with BVAR.
1890 * composite.c (fill_gstring_header)
1891 (composition_compute_stop_pos, composition_adjust_point)
1892 (Ffind_composition_internal): Replace B_ with BVAR.
1893 * coding.c (decode_coding, encode_coding)
1894 (make_conversion_work_buffer, decode_coding_gap)
1895 (decode_coding_object, encode_coding_object)
1896 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1897 (Funencodable_char_position, Fcheck_coding_systems_region):
1898 Replace B_ with BVAR.
1899 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1900 with BVAR.
1901 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1902 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1903 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1904 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1905 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1906 * category.c (check_category_table, Fcategory_table)
1907 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1908 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1909 BVAR.
1910 * casefiddle.c (casify_object, casify_region): Replace B_ with
1911 BVAR.
1912 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1913 with BVAR.
1914 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1915 BVAR.
1916 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1917 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1918 with BVAR.
1919 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1920 (get_truename_buffer, Fget_buffer_create)
1921 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1922 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1923 (Fbuffer_local_value, buffer_lisp_local_variables)
1924 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1925 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1926 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1927 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1928 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1929 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1930 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1931 (record_overlay_string, overlay_strings, init_buffer_once)
1932 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1933
1934 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1935
1936 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1937 window is changed inside calls to do_pending_window_change.
1938 (Bug#8020)
1939
1940 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1941
1942 Remove no-longer needed getloadavg symbols.
1943 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1944 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1945 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1946 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1947 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1948 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1949 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1950 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1951 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1952 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1953 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1954 (LDAV_SYMBOL): Remove.
1955 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1956 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1957
1958 Import getloadavg module from gnulib.
1959 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1960 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1961 now does this.
1962 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1963 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1964 * config.in: Regenerate.
1965
1966 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1967
1968 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1969
1970 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1971
1972 * print.c (float_to_string): Ensure that a decimal point is
1973 printed if using dtoastr (Bug#8033).
1974
1975 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1976
1977 * msdos.c (IT_frame_up_to_date):
1978 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1979
1980 * dired.c (directory_files_internal):
1981 * fileio.c (Finsert_file_contents):
1982 * insdel.c (prepare_to_modify_buffer):
1983 * xdisp.c (pos_visible_p):
1984 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1985 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1986 Use B_ for the MS-Windows build.
1987
1988 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1989
1990 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1991 resource that specifies helvetica for menus and dialogs.
1992
1993 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1994 (apply_systemfont_to_menu): Set resources *menubar*font and
1995 *popup*font. Remove defflt.
1996 (set_frame_menubar, create_and_show_popup_menu):
1997 Call apply_systemfont_to_menu before lw_create_widget.
1998
1999 2011-02-14 Tom Tromey <tromey@redhat.com>
2000
2001 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
2002
2003 * keyboard.h: Remove obsolete comment.
2004
2005 2011-02-14 Tom Tromey <tromey@parfait>
2006
2007 * composite.c (fill_gstring_header)
2008 (composition_compute_stop_pos, composition_adjust_point)
2009 (Ffind_composition_internal): Use B_.
2010 * intervals.c (set_point_both, get_local_map): Use B_.
2011 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
2012 * process.c (get_process, list_processes_1, Fstart_process)
2013 (Fmake_serial_process, Fmake_network_process)
2014 (read_process_output, send_process, exec_sentinel)
2015 (status_notify, setup_process_coding_systems): Use B_.
2016 * bytecode.c (Fbyte_code): Use B_.
2017 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
2018 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
2019 (skip_syntaxes, scan_lists): Use B_.
2020 * lread.c (readchar, unreadchar, openp, readevalloop)
2021 (Feval_buffer, Feval_region): Use B_.
2022 * print.c (printchar, strout, print_string, PRINTDECLARE)
2023 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
2024 (print_object): Use B_.
2025 * font.c (font_at): Use B_.
2026 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
2027 Use B_.
2028 * callint.c (check_mark, Fcall_interactively): Use B_.
2029 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
2030 (save_excursion_restore, Fprevious_char, Fchar_before)
2031 (general_insert_function, Finsert_char, Finsert_byte)
2032 (make_buffer_string_both, Finsert_buffer_substring)
2033 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
2034 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
2035 (Ftranslate_region_internal, save_restriction_restore)
2036 (Fchar_equal): Use B_.
2037 * data.c (swap_in_symval_forwarding, set_internal)
2038 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
2039 Use B_.
2040 * undo.c (record_point, record_insert, record_delete)
2041 (record_marker_adjustment, record_first_change)
2042 (record_property_change, Fundo_boundary, truncate_undo_list)
2043 (Fprimitive_undo): Use B_.
2044 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
2045 (string_match_1, fast_looking_at, newline_cache_on_off)
2046 (search_command, search_buffer, simple_search, boyer_moore)
2047 (Freplace_match): Use B_.
2048 * indent.c (buffer_display_table, recompute_width_table)
2049 (width_run_cache_on_off, current_column, scan_for_column)
2050 (Findent_to, position_indentation, compute_motion, vmotion):
2051 Use B_.
2052 * casefiddle.c (casify_object, casify_region): Use B_.
2053 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
2054 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
2055 * fileio.c (Fexpand_file_name, Ffile_directory_p)
2056 (Ffile_regular_p, Ffile_selinux_context)
2057 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
2058 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
2059 (Finsert_file_contents, choose_write_coding_system)
2060 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
2061 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
2062 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
2063 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
2064 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
2065 (set_marker_both, set_marker_restricted_both, unchain_marker):
2066 Use B_.
2067 * insdel.c (check_markers, insert_char, insert_1_both)
2068 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
2069 (adjust_after_replace, replace_range, del_range_2)
2070 (modify_region, prepare_to_modify_buffer)
2071 (Fcombine_after_change_execute): Use B_.
2072 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
2073 (unlock_buffer): Use B_.
2074 * keymap.c (Flocal_key_binding, Fuse_local_map)
2075 (Fcurrent_local_map, push_key_description)
2076 (Fdescribe_buffer_bindings): Use B_.
2077 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
2078 (read_key_sequence): Use B_.
2079 * fringe.c (get_logical_cursor_bitmap)
2080 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
2081 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
2082 * xfaces.c (compute_char_face): Use B_.
2083 * character.c (chars_in_text, Fget_byte): Use B_.
2084 * category.c (check_category_table, Fcategory_table)
2085 (Fset_category_table, char_category_set): Use B_.
2086 * coding.c (decode_coding, encode_coding)
2087 (make_conversion_work_buffer, decode_coding_gap)
2088 (decode_coding_object, encode_coding_object)
2089 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
2090 (Funencodable_char_position, Fcheck_coding_systems_region):
2091 Use B_.
2092 * charset.c (Ffind_charset_region): Use B_.
2093 * window.c (window_display_table, unshow_buffer, window_loop)
2094 (window_min_size_2, set_window_buffer, Fset_window_buffer)
2095 (select_window, Fforce_window_update, temp_output_buffer_show)
2096 (Fset_window_configuration, save_window_save): Use B_.
2097 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
2098 (message_dolog, update_echo_area, ensure_echo_area_buffers)
2099 (with_echo_area_buffer, setup_echo_area_for_printing)
2100 (set_message_1, update_menu_bar, update_tool_bar)
2101 (text_outside_line_unchanged_p, redisplay_internal)
2102 (try_scrolling, try_cursor_movement, redisplay_window)
2103 (try_window_reusing_current_matrix, row_containing_pos)
2104 (try_window_id, get_overlay_arrow_glyph_row, display_line)
2105 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
2106 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
2107 (get_window_cursor_type, note_mouse_highlight): Use B_.
2108 * frame.c (make_frame_visible_1): Use B_.
2109 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
2110 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
2111 (WINDOW_WANTS_MODELINE_P): Use B_.
2112 * syntax.h (Vstandard_syntax_table): Update.
2113 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
2114 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
2115 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
2116 * character.h (FETCH_CHAR_ADVANCE): Update.
2117 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
2118 * category.h (Vstandard_category_table): Update.
2119 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
2120 names.
2121 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
2122 * buffer.c (swapfield_): New macro.
2123 (Fbuffer_swap_text): Use swapfield_ where appropriate.
2124 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
2125 (Fget_buffer_create, clone_per_buffer_values)
2126 (Fmake_indirect_buffer, reset_buffer)
2127 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
2128 (Fbuffer_local_value, buffer_lisp_local_variables)
2129 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
2130 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
2131 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
2132 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
2133 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
2134 (Fbuffer_swap_text, Fset_buffer_multibyte)
2135 (swap_out_buffer_local_variables, record_overlay_string)
2136 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
2137 Use B_.
2138 * buffer.h (struct buffer): Rename all Lisp_Object fields.
2139 (BUFFER_INTERNAL_FIELD, B_): New macro.
2140 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
2141
2142 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2143
2144 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
2145 is null.
2146
2147 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
2148
2149 * callproc.c (Fcall_process):
2150 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
2151 comment.
2152
2153 2011-02-12 Martin Rudalics <rudalics@gmx.at>
2154
2155 * window.c (select_window): Check inhibit_point_swap argument when
2156 deciding whether to return immediately.
2157
2158 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
2159
2160 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
2161 zero (Bug#7348).
2162
2163 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
2164
2165 * config.in (TERMINFO): New definition.
2166
2167 * s/netbsd.h: Use it to choose between terminfo and termcap
2168 (Bug#7642).
2169
2170 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2171
2172 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
2173 The difference doesn't matter here, in practice, and sizeof is
2174 more portable to non-GCC compilers. Also, this makes the code
2175 match the already-existing comment.
2176
2177 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
2178
2179 * process.c (create_process): Reset SIGPIPE handler in the child.
2180 * callproc.c (Fcall_process): Likewise. (Bug#5238)
2181
2182 2011-02-12 Eli Zaretskii <eliz@gnu.org>
2183
2184 * xdisp.c <this_line_min_pos>: New variable.
2185 (move_it_in_display_line_to): Record in this_line_min_pos the
2186 smallest position iterated across.
2187 (display_line): Use this_line_min_pos to record the smallest
2188 position in the line even if it is not displayed due to
2189 hscrolling. (Bug#7939)
2190
2191 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2192
2193 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
2194 * md5.h (ATTRIBUTE_ALIGNED): New macro.
2195 (struct md5_ctx): Use it.
2196
2197 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
2198 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
2199 defined.
2200 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
2201 FC_HINT_STYLE is supported.
2202
2203 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
2204
2205 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
2206 Make sure we don't do x_catch_errors twice.
2207
2208 2011-02-10 Glenn Morris <rgm@gnu.org>
2209
2210 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
2211
2212 2011-02-09 Eli Zaretskii <eliz@gnu.org>
2213
2214 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
2215 New macros.
2216 (globals.h, gl-stamp): New targets.
2217 (clean): Clean gl-stamp and globals.h.
2218
2219 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2220
2221 * Makefile.in (gl-stamp): Create globals.h here.
2222 (globals.h): Don't do it here.
2223 (mostlyclean): Clean globals.h and gl-stamp.
2224
2225 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
2226
2227 * Makefile.in ($(otherobj)): Depend on globals.h.
2228 Otherwise 'make -j10' failed on my host, because the build lacked
2229 necessary dependencies, e.g., vm-limit.o depends on globals.h.
2230
2231 2011-02-08 Tom Tromey <tromey@redhat.com>
2232
2233 * Makefile.in (NS_OBJC_OBJ): New variable.
2234 (base_obj): Rename from 'obj'.
2235 (obj): New variable.
2236 (globals.h, gl-stamp, $(obj)): New targets.
2237 (GLOBAL_SOURCES): New variable.
2238 * globals.h: Remove.
2239 * nsselect.m (Vselection_alist): Define. Reverts part of
2240 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
2241 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
2242 variable.
2243 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
2244
2245 2011-02-08 Kenichi Handa <handa@m17n.org>
2246
2247 * font.c (Ffont_get): Do not cache :otf value.
2248
2249 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2250
2251 conform to C89 pointer rules
2252
2253 * dired.c (scmp, file_name_completion):
2254 Change types between char * and unsigned char *, to satisfy C89
2255 rules about pointer type compatibility.
2256 * casefiddle.c (casify_object, casify_region): Likewise.
2257 * search.c (Freplace_match, Fregexp_quote): Likewise.
2258 * alloc.c (make_string, make_specified_string, make_pure_string):
2259 Likewise.
2260 * data.c (Fstring_to_number): Likewise.
2261 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2262 (print_object): Likewise.
2263 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2264 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2265 (Fformat): Likewise.
2266 * callint.c (Fcall_interactively): Likewise.
2267 * fns.c (string_make_multibyte, string_to_multibyte):
2268 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2269 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2270 Likewise.
2271 * lread.c (read1, hash_string): Likewise.
2272 * process.c (read_process_output, send_process, Fprocess_send_region):
2273 Likewise.
2274 * callproc.c (Fcall_process): Likewise.
2275 * doprnt.c (doprnt): Likewise.
2276 * indent.c (compute_motion): Likewise.
2277 * xfont.c (xfont_decode_coding_xlfd): Likewise.
2278 * ralloc.c (resize_bloc): Likewise.
2279 * image.c (tiff_load): Likewise.
2280 * xml.c (make_dom, parse_region): Likewise.
2281 * character.c (strwidth): Make its argument const char *, not const
2282 unsigned char *, since more callers prefer it that way. All callers
2283 changed.
2284
2285 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2286
2287 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2288 Emacs assumes two's complement elsewhere, but the assumption is
2289 easy to remove here, and this suppresses a warning with Sun C 5.8.
2290
2291 conform to C89 pointer rules
2292
2293 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2294 (same_x_server, x_term_init):
2295 Change types between char * and unsigned char *, to satisfy C89
2296 rules about pointer type compatibility.
2297 * doc.c (get_doc_string, Fsnarf_documentation):
2298 (Fsubstitute_command_keys): Likewise.
2299 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2300 * bitmaps/gray.xbm (gray_bits): Likewise.
2301 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
2302 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2303 Likewise.
2304 * keymap.c (Ftext_char_description): Likewise.
2305 * minibuf.c (Fread_buffer): Likewise.
2306 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2307 (DRIVE_LETTER) [defined DOS_NT]:
2308 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2309 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2310 (search_embedded_absfilename, Fsubstitute_in_file_name):
2311 (barf_or_query_if_file_exists, Fmake_directory_internal):
2312 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2313 (Finsert_file_contents, Fwrite_region):
2314 Likewise.
2315 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2316 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2317 Likewise. This changes these functions' signatures, which is
2318 more convenient since most callers use char *. All remaining
2319 callers changed.
2320 * editfns.c (general_insert_function): Change signature to
2321 match changes to insert functions' signatures.
2322 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2323 Use explicit cast when converting between void * and function pointer
2324 types, as C89 requires this.
2325
2326 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2327
2328 don't ignore chdir failure
2329 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2330 failure and exit.
2331 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2332 remaining unchecked chdir calls in this function; some DOS/NT
2333 expert needs to fix them.
2334 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2335 in this function; some NextStep expert needs to fix them.
2336
2337 2011-02-05 Glenn Morris <rgm@gnu.org>
2338
2339 * xfaces.c (Finternal_set_lisp_face_attribute):
2340 Try to clarify some error messages. (Bug#2659)
2341
2342 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
2343
2344 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2345 current_column cache (bug#7946).
2346
2347 2011-02-05 Kenichi Handa <handa@m17n.org>
2348
2349 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2350
2351 * xftfont.c (xftfont_open): Likewise.
2352
2353 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
2354
2355 * window.c (Fselect_window): Add missing return value.
2356
2357 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2358
2359 xstrcasecmp: conform to C89 pointer rules
2360 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2361 to const char *, since they're usually low-level C strings, and
2362 this stays compatible with C89 pointer rules. All callers changed.
2363
2364 * charset.c: Conform to C89 pointer rules.
2365 (define_charset_internal): Switch between char * and unsigned char *.
2366
2367 * xmenu.c: Conform to C89 const rules.
2368 (xmenu_show, xdialog_show): Declare local var as char *, not
2369 const char *, to stay compatible with C89 const rules.
2370
2371 * xdisp.c: Conform to C89 pointer rules.
2372 (store_mode_line_noprop, display_string, reseat_to_string):
2373 (c_string_pos, number_of_chars, message_dolog):
2374 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2375 (display_mode_element, display_string):
2376 Switch between char * and unsigned char * to stay compatible wth
2377 C89 pointer rules.
2378
2379 * regex.c: Conform to C89 pointer rules.
2380 (re_wctype): Add cast, as C89 does not allow assigning between
2381 char * and unsigned char *.
2382 (regex_compile): Likewise.
2383
2384 sync from gnulib to remove HAVE_STDBOOL_H
2385 * config.in: Regenerate.
2386
2387 2011-02-04 Eli Zaretskii <eliz@gnu.org>
2388
2389 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2390 Replace all uses of lisp.h with $(LISP_H), and all uses of
2391 process.h with $(PROCESS_H).
2392 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2393 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2394
2395 * deps.mk: Update for recent changes: gnutls support, gnulib
2396 imports, addition of globals.h.
2397
2398 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2399 ../lib/ignore-value.h.
2400
2401 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2402
2403 allow C code to suppress warnings about ignored return values
2404
2405 We need to go through the code and for each such warning, either
2406 fix the code to pay attention to the returned value, or tell GCC
2407 that we really do want to ignore the returned value. Here is one
2408 example of how to do the latter.
2409 * sysdep.c: Include <ignore-value.h>.
2410 (sys_subshell): Suppress an undesirable warning about not checking
2411 the returned value of 'write', as there's nothing useful one can
2412 do with that returned value.
2413
2414 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2415
2416 * xterm.c (x_connection_closed): Remove all calls that calls
2417 XSync (Bug#7949).
2418
2419 2011-02-01 Eli Zaretskii <eliz@gnu.org>
2420
2421 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2422 TIFFClientOpen.
2423
2424 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2425
2426 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2427 (x_session_check_input): Change args and return type so it can be used
2428 as argument to add_read_fd. Make static. Remove call to select.
2429 Call kbd_buffer_store_event for emacs_event.
2430 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2431 (ice_conn_watch_CB): Call add_read_fd.
2432
2433 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2434 x_session_check_input.
2435 (x_session_initialized): Remove definition.
2436 (x_initialize): Remove setting of x_session_initialized.
2437
2438 * xterm.h (x_session_check_input): Remove declaration.
2439
2440 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2441
2442 format-time-string now supports subsecond time stamp resolution
2443 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2444 for consistency with its new argument and with gnulib nstrftime.
2445 All callers changed. New argument NS.
2446 (Fformat_time_string): Check that the time argument's microseconds
2447 component, if any, is in range; this avoids integer overflow and
2448 also nstrftime needs this. Document %N.
2449
2450 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
2451
2452 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2453 of int. All uses adjusted.
2454 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2455 (svg_load_image): Remove casts.
2456
2457 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
2458
2459 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2460 function definitions for compiling with libpng-1.5.
2461 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2462 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2463 (Bug#7908).
2464
2465 2011-01-31 Eli Zaretskii <eliz@gnu.org>
2466
2467 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2468
2469 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2470 ($(BLD)/strftime.$(O)): Remove prerequisites.
2471
2472 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2473
2474 src/emacs.c now gets version number from configure.in
2475 * emacs.c (emacs_version): Set to VERSION so that it
2476 is determined automatically from ../configure.in.
2477
2478 2011-01-31 Jim Meyering <meyering@redhat.com>
2479
2480 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2481 Use xmalloc rather than malloc.
2482
2483 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2484
2485 strftime: import from gnulib
2486 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2487 * deps.mk (strftime.o): Remove.
2488 * editfns.c: Include <strftime.h>, supplied by gnulib.
2489 (emacs_strftimeu): Remove decl.
2490 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2491 emacs_strftimeu.
2492 * config.in: Regenerate.
2493 * strftime.c: Remove; we now use strftime from gnulib.
2494
2495 Use SSDATA when the context wants char *.
2496 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2497 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2498 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2499 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2500 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2501 Use SSDATA (not SDATA) when the context of the expression wants
2502 char * (not unsigned char *).
2503
2504 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2505
2506 * .gdbinit: Read global lisp variables as globals.f_V*.
2507
2508 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2509
2510 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2511 All uses changed.
2512 (PROP_SAVE): Likewise.
2513
2514 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
2515
2516 * keyboard.c (make_lispy_position): Fix typo in last change
2517 (Bug#7935).
2518
2519 2011-01-29 Eli Zaretskii <eliz@gnu.org>
2520
2521 * s/ms-w32.h (HAVE_MKTIME): Remove.
2522
2523 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2524 (GNULIB): New variable.
2525 (LIBS): Add $(GNULIB).
2526 $(TEMACS): Depend on $(GNULIB).
2527 <top-level>: Fix font-lock disrupted by a lone `"'.
2528
2529 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2530
2531 * nsselect.m (ns_string_from_pasteboard): Get length of string
2532 and use make_string instead of build_string (Bug#7934).
2533 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2534 instead of stringWithUTF8String (Bug#7934).
2535
2536 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
2537
2538 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2539 descenders would not become one pixel too tall (Bug#7887).
2540
2541 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
2542
2543 * keyboard.c (make_lispy_position): For clicks on right fringe or
2544 margin, compute text position using the X coordinate relative to
2545 the left of the text area (Bug#7839).
2546
2547 2011-01-28 Kenichi Handa <handa@m17n.org>
2548
2549 * ftfont.c (ftfont_spec_pattern): Check each extra property
2550 value.
2551
2552 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2553
2554 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2555
2556 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2557
2558 * font.c (font_parse_fcname): Undefine a temporary macro.
2559
2560 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2561
2562 Let the debugger continue to the normal handler (bug#7825).
2563 * eval.c (maybe_call_debugger): Declare before new use.
2564 (find_handler_clause): Don't call debugger any more.
2565 Ignore Vstack_trace_on_error.
2566 Use XCAR/XCDR.
2567 (syms_of_eval): Remove Vstack_trace_on_error.
2568 (Fsignal): Only modify handlerlist when we know we need to do it.
2569 Call the debugger when necessary.
2570 * globals.h (Vstack_trace_on_error): Remove.
2571
2572 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
2573
2574 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2575
2576 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
2577
2578 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2579 the buffer's point-max (bug#7876).
2580
2581 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
2582
2583 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2584 Remove unused case (Bug#6811).
2585
2586 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2587
2588 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2589 setFrameTopLeftPoint is constrained.
2590
2591 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2592
2593 Check return values of some library calls.
2594 * emacs.c (main): Check dup result.
2595 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2596 (frame_name_fnn_p): Check strtol result.
2597
2598 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2599 when calling XpmCreatePixmapFromData.
2600
2601 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2602 * lisp.h (SSDATA): New macro.
2603 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2604 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2605 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2606 * xsmfns.c (SSDATA): Likewise.
2607
2608 2011-01-22 Martin Rudalics <rudalics@gmx.at>
2609
2610 * window.c (select_window): New function.
2611 (Fselect_window): Call it.
2612 (inhibit_point_swap): Variable deleted.
2613 (Fset_window_configuration): Call select_window directly.
2614
2615 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2616
2617 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2618
2619 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2620
2621 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2622 screen, not the window screen.
2623 (x_set_window_size): Remove constraints.
2624 Calculate origin.y only if zooming is 0 and without referring to a
2625 screen.
2626 (windowWillResize): Don't modify frameSize.
2627 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2628 (initFrameFromEmacs): Initialize ns_userRect.
2629 (windowShouldZoom): Set zooming to one. Remove all other code.
2630 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2631 Zero it after restore.
2632 (constrainFrameRect): New method for EmacsWindow.
2633 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2634 windowWillResize.
2635
2636 * nsterm.h (ns_output): Add dont_constrain and zooming.
2637 (EmacsView): Add ns_userRect.
2638
2639 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2640 if ns_alternate_modifier is none.
2641
2642 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2643
2644 * unexmacosx.c: Add comment about include order.
2645
2646 2011-01-20 Glenn Morris <rgm@gnu.org>
2647
2648 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2649 Give it a doc string.
2650 * globals.h: Add Vread_expression_history.
2651
2652 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2653 Give it a doc string.
2654 * globals.h: Add Vkbd_macro_termination_hook.
2655
2656 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2657
2658 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2659
2660 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2661
2662 Fix X11 compilation failure.
2663 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2664 * xselect.c (Vselection_alist): Remove declaration, moving its
2665 documentation to globals.h. This fixes a compilation failure
2666 induced by the earlier change to globals.h today.
2667
2668 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2669
2670 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2671
2672 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2673 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2674 (ns_input_spi_name, ns_input_spi_arg)
2675 (ns_alternate_modifier, ns_right_alternate_modifier)
2676 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2677 (ns_right_control_modifier, ns_function_modifier)
2678 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2679 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2680 (x_underline_at_descent_line): Remove declaration.
2681 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2682
2683 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2684 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2685 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2686
2687 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2688 Remove declaration.
2689
2690 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2691 globals.h.
2692 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2693
2694 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2695 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2696 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2697
2698 * globals.h (struct emacs_globals): Add f_ns_input_file,
2699 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2700 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2701 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2702 f_ns_right_alternate_modifier, f_ns_command_modifier,
2703 f_ns_right_command_modifier, f_ns_control_modifier,
2704 f_ns_right_control_modifier, f_ns_function_modifier,
2705 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2706 f_Vns_version_string, f_Vns_sent_selection_hooks,
2707 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2708 and corresponding defines.
2709
2710 2011-01-19 Sam Steingold <sds@gnu.org>
2711
2712 * w32.c (check_windows_init_file): Remove declarations of
2713 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2714 * w32fns.c: Fix an error introduced by the previous patch.
2715
2716 2011-01-19 Tom Tromey <tromey@redhat.com>
2717
2718 * window.c: Fix error introduced by previous patch.
2719
2720 2011-01-18 Tom Tromey <tromey@parfait>
2721
2722 * globals.h: New file.
2723 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2724 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2725 (Vwindow_system_version): Remove declaration.
2726 * w32term.h (Vw32_enable_palette)
2727 (Vx_pixel_size_width_font_regexp): Remove declaration.
2728 * w32menu.c (Voverriding_local_map)
2729 (Voverriding_local_map_menu_flag): Remove declaration.
2730 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2731 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2732 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2733 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2734 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2735 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2736 (w32_use_full_screen_buffer): Remove declaration.
2737 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2738 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2739 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2740 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2741 (no_redraw_on_reenter, visible_bell): Remove declaration.
2742 * sysdep.c (Vsystem_name): Remove declaration.
2743 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2744 * menu.h (Vmenu_updating_frame): Remove declaration.
2745 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2746 Remove declaration.
2747 * lisp.h (Vafter_init_time, Vafter_load_alist)
2748 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2749 (Vcompletion_regexp_list, Vcurrent_load_list)
2750 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2751 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2752 (Vexec_directory, Vexec_path, Vexec_suffixes)
2753 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2754 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2755 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2756 (Vinstallation_directory, Vinvocation_directory)
2757 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2758 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2759 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2760 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2761 (Vscalable_fonts_allowed, Vselect_active_regions)
2762 (Vshell_file_name, Vstandard_input, Vstandard_output)
2763 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2764 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2765 (Vuser_login_name, Vwindow_scroll_functions)
2766 (Vwindow_system_version, Vx_no_window_manager)
2767 (Vx_resource_class, Vx_resource_name, baud_rate)
2768 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2769 (history_delete_duplicates, inhibit_x_resources)
2770 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2771 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2772 (use_dialog_box, use_file_dialog): Remove declaration.
2773 Include globals.h.
2774 * keymap.h (Voverriding_local_map)
2775 (Voverriding_local_map_menu_flag, meta_prefix_char):
2776 Remove declaration.
2777 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2778 (Vinput_method_function, Vkey_translation_map)
2779 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2780 (do_mouse_tracking, extra_keyboard_modifiers)
2781 (num_nonmacro_input_events): Remove declaration.
2782 * intervals.h (Vchar_property_alias_alist)
2783 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2784 (Vtext_property_default_nonsticky): Remove declaration.
2785 * gtkutil.h (x_gtk_file_dialog_help_text)
2786 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2787 (x_gtk_whole_detached_tool_bar): Remove declaration.
2788 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2789 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2790 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2791 (focus_follows_mouse): Remove declaration.
2792 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2793 (Vignore_relative_composition, Votf_script_alist)
2794 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2795 Remove declaration.
2796 * font.h (Vfont_log): Remove declaration.
2797 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2798 (Vdos_windows_version, dos_codepage, dos_country_code)
2799 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2800 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2801 Remove declaration.
2802 * disptab.h (Vglyph_table, Vstandard_display_table):
2803 Remove declaration.
2804 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2805 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2806 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2807 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2808 (inverse_video, mode_line_in_non_selected_windows)
2809 (tool_bar_button_relief, tool_bar_max_label_size)
2810 (underline_minimum_offset)
2811 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2812 Remove declaration.
2813 * composite.h (Vauto_composition_function)
2814 (Vcomposition_function_table): Remove declaration.
2815 * commands.h (Vexecuting_kbd_macro)
2816 (Vminibuffer_local_completion_map)
2817 (Vminibuffer_local_filename_completion_map)
2818 (Vminibuffer_local_filename_must_match_map)
2819 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2820 (Vminibuffer_local_ns_map, Vthis_command)
2821 (Vunread_command_events, cursor_in_echo_area)
2822 (last_command_event, last_nonmenu_event, unread_command_char):
2823 Remove declaration.
2824 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2825 (Vdefault_file_name_coding_system)
2826 (Vdefault_process_coding_system, Vfile_name_coding_system)
2827 (Vlast_coding_system_used, Vlocale_coding_system)
2828 (Vselect_safe_coding_system_function)
2829 (Vtranslation_table_for_input, coding_system_require_warning)
2830 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2831 (eol_mnemonic_unix, inherit_process_coding_system):
2832 Remove declaration.
2833 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2834 Remove declaration.
2835 * character.h (Vauto_fill_chars, Vchar_direction_table)
2836 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2837 (Vscript_representative_chars, Vtranslation_table_vector)
2838 (Vunicode_category_table): Remove declaration.
2839 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2840 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2841 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2842 (inhibit_modification_hooks): Remove declaration.
2843 * xterm.c (syms_of_xterm): Update.
2844 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2845 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2846 (x_mouse_click_focus_ignore_position)
2847 (x_underline_at_descent_line)
2848 (x_use_underline_position_properties): Remove.
2849 * xsmfns.c (syms_of_xsmfns): Update.
2850 (Vx_session_id, Vx_session_previous_id): Remove.
2851 * xsettings.c (syms_of_xsettings): Update.
2852 (Vxft_settings, use_system_font): Remove.
2853 * xselect.c (syms_of_xselect): Update.
2854 (Vselection_converter_alist, Vx_lost_selection_functions)
2855 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2856 * xfns.c (syms_of_xfns): Update.
2857 (Vgtk_version_string, Vmotif_version_string)
2858 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2859 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2860 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2861 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2862 (Vx_sensitive_text_pointer_shape)
2863 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2864 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2865 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2866 Remove.
2867 * xfaces.c (syms_of_xfaces): Update.
2868 (Vface_default_stipple, Vface_font_rescale_alist)
2869 (Vface_ignored_fonts, Vface_new_frame_defaults)
2870 (Vface_remapping_alist, Vfont_list_limit)
2871 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2872 * xdisp.c (syms_of_xdisp): Update.
2873 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2874 (Vdisplay_pixels_per_inch, Vfontification_functions)
2875 (Vframe_title_format, Vglobal_mode_string)
2876 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2877 (Vicon_title_format, Vinhibit_redisplay)
2878 (Vline_number_display_limit, Vline_prefix)
2879 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2880 (Vmenu_updating_frame, Vmessage_log_max)
2881 (Vmouse_autoselect_window, Vnobreak_char_display)
2882 (Voverlay_arrow_position, Voverlay_arrow_string)
2883 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2884 (Vresize_mini_windows, Vshow_trailing_whitespace)
2885 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2886 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2887 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2888 (Vwindow_text_change_functions, Vwrap_prefix)
2889 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2890 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2891 (highlight_nonselected_windows, hscroll_margin)
2892 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2893 (inhibit_menubar_update, inhibit_try_cursor_movement)
2894 (inhibit_try_window_id, inhibit_try_window_reusing)
2895 (line_number_display_limit_width)
2896 (make_cursor_line_fully_visible_p, message_truncate_lines)
2897 (mode_line_inverse_video, multiple_frames, overline_margin)
2898 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2899 (tool_bar_max_label_size, underline_minimum_offset)
2900 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2901 Remove.
2902 * window.c (syms_of_window): Update.
2903 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2904 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2905 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2906 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2907 (mode_line_in_non_selected_windows, next_screen_context_lines)
2908 (window_min_height, window_min_width): Remove.
2909 (scroll_margin): Remove declaration.
2910 * w32term.c (syms_of_w32term): Update.
2911 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2912 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2913 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2914 (w32_use_visible_system_caret, x_underline_at_descent_line)
2915 (x_use_underline_position_properties): Remove.
2916 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2917 Remove declaration.
2918 * w32select.c (syms_of_w32select): Update.
2919 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2920 * w32proc.c (syms_of_ntproc): Update.
2921 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2922 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2923 (Vw32_start_process_inherit_error_mode)
2924 (Vw32_start_process_share_console)
2925 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2926 (Vsystem_name): Remove declaration.
2927 * w32font.c (syms_of_w32font): Update.
2928 (Vw32_charset_info_alist): Remove.
2929 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2930 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2931 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2932 (Vw32_enable_palette, Vw32_lwindow_modifier)
2933 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2934 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2935 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2936 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2937 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2938 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2939 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2940 (Vx_sensitive_text_pointer_shape)
2941 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2942 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2943 (w32_mouse_move_interval)
2944 (w32_pass_extra_mouse_buttons_to_system)
2945 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2946 (w32_strict_fontnames, w32_strict_painting): Remove.
2947 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2948 (Vw32_recognize_altgr, Vwindow_system_version)
2949 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2950 Remove declaration.
2951 * w32console.c (syms_of_ntterm): Update.
2952 (w32_use_full_screen_buffer): Remove.
2953 (Vtty_defined_color_alist): Remove declaration.
2954 * w16select.c (syms_of_win16select): Update.
2955 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2956 * undo.c (syms_of_undo): Update.
2957 (Vundo_outer_limit, Vundo_outer_limit_function)
2958 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2959 Remove.
2960 * textprop.c (syms_of_textprop): Update.
2961 (Vchar_property_alias_alist, Vdefault_text_properties)
2962 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2963 Remove.
2964 * terminal.c (syms_of_terminal): Update.
2965 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2966 * term.c (syms_of_term): Update.
2967 (Vresume_tty_functions, Vsuspend_tty_functions)
2968 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2969 Remove.
2970 * syntax.c (syms_of_syntax): Update.
2971 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2972 (open_paren_in_column_0_is_defun_start)
2973 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2974 (words_include_escapes): Remove.
2975 * search.c (syms_of_search): Update.
2976 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2977 * process.c (syms_of_process): Update.
2978 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2979 (delete_exited_processes): Remove.
2980 * print.c (syms_of_print): Update.
2981 (Vfloat_output_format, Vprint_charset_text_property)
2982 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2983 (Vprint_length, Vprint_level, Vprint_number_table)
2984 (Vstandard_output, print_escape_multibyte)
2985 (print_escape_newlines, print_escape_nonascii, print_quoted):
2986 Remove.
2987 * msdos.c (syms_of_msdos): Update.
2988 (Vdos_unsupported_char_glyph): Remove.
2989 (unibyte_display_via_language_environment): Remove declaration.
2990 * minibuf.c (syms_of_minibuf): Update.
2991 (Vcompletion_regexp_list, Vhistory_add_new_input)
2992 (Vhistory_length, Vminibuffer_completing_file_name)
2993 (Vminibuffer_completion_confirm)
2994 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2995 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2996 (Vminibuffer_history_position, Vminibuffer_history_variable)
2997 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2998 (Vread_buffer_function, Vread_expression_map)
2999 (completion_ignore_case, enable_recursive_minibuffers)
3000 (history_delete_duplicates, minibuffer_allow_text_properties)
3001 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
3002 Remove.
3003 * marker.c (syms_of_marker): Update.
3004 (byte_debug_flag): Remove.
3005 * macros.c (syms_of_macros): Update.
3006 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
3007 * lread.c (syms_of_lread): Update.
3008 (Vafter_load_alist, Vbyte_boolean_vars)
3009 (Vbytecomp_version_regexp, Vcurrent_load_list)
3010 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
3011 (Vload_history, Vload_path, Vload_read_function)
3012 (Vload_source_file_function, Vload_suffixes, Vobarray)
3013 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
3014 (Vread_symbol_positions_list, Vread_with_symbol_positions)
3015 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
3016 (force_load_messages, load_convert_to_unibyte)
3017 (load_dangerous_libraries, load_force_doc_strings)
3018 (load_in_progress): Remove.
3019 * keymap.c (syms_of_keymap): Update.
3020 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
3021 (Vminibuffer_local_completion_map)
3022 (Vminibuffer_local_filename_completion_map)
3023 (Vminibuffer_local_filename_must_match_map)
3024 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
3025 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
3026 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
3027 Remove.
3028 * keyboard.c (syms_of_keyboard): Update.
3029 (Vauto_save_timeout, Vcommand_error_function)
3030 (Vcommand_hook_internal, Vdeactivate_mark)
3031 (Vdeferred_action_function, Vdeferred_action_list)
3032 (Vdisable_point_adjustment, Vdouble_click_time)
3033 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
3034 (Vfunction_key_map, Vglobal_disable_point_adjustment)
3035 (Vhelp_char, Vhelp_event_list, Vhelp_form)
3036 (Vinput_method_function, Vinput_method_previous_message)
3037 (Vkey_translation_map, Vlast_event_frame)
3038 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
3039 (Vminibuffer_message_timeout, Voverriding_local_map)
3040 (Voverriding_local_map_menu_flag, Vpost_command_hook)
3041 (Vpre_command_hook, Vprefix_help_command)
3042 (Vsaved_region_selection, Vselect_active_regions)
3043 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
3044 (Vthis_command, Vthis_command_keys_shift_translated)
3045 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
3046 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
3047 (Vtty_erase_char, Vunread_command_events)
3048 (Vunread_input_method_events, Vunread_post_input_method_events)
3049 (auto_save_interval, cannot_suspend, do_mouse_tracking)
3050 (double_click_fuzz, extra_keyboard_modifiers)
3051 (inhibit_local_menu_bar_menus, last_command_event)
3052 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
3053 (menu_prompting, meta_prefix_char, num_input_keys)
3054 (num_nonmacro_input_events, polling_period, unread_command_char):
3055 Remove.
3056 * insdel.c (syms_of_insdel): Update.
3057 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
3058 * indent.c (syms_of_indent): Update.
3059 (indent_tabs_mode): Remove.
3060 * image.c (syms_of_image): Update.
3061 (Vimage_cache_eviction_delay, Vimage_types)
3062 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
3063 (cross_disabled_images): Remove.
3064 * fringe.c (syms_of_fringe): Update.
3065 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
3066 * frame.c (syms_of_frame): Update.
3067 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
3068 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
3069 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
3070 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
3071 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
3072 Remove.
3073 * fontset.c (syms_of_fontset): Update.
3074 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
3075 (Vfontset_alias_alist, Vignore_relative_composition)
3076 (Votf_script_alist, Vuse_default_ascent)
3077 (Vvertical_centering_font_regexp): Remove.
3078 * font.c (syms_of_font): Update.
3079 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
3080 (Vfont_weight_table, Vfont_width_table): Remove.
3081 * fns.c (syms_of_fns): Update.
3082 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
3083 * filelock.c (syms_of_filelock): Update.
3084 (Vtemporary_file_directory): Remove.
3085 * fileio.c (syms_of_fileio): Update.
3086 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
3087 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
3088 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
3089 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
3090 (Vinhibit_file_name_operation, Vset_auto_coding_function)
3091 (Vwrite_region_annotate_functions)
3092 (Vwrite_region_annotations_so_far)
3093 (Vwrite_region_post_annotation_function)
3094 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
3095 (Vw32_get_true_file_attributes): Remove declaration.
3096 * eval.c (syms_of_eval): Update.
3097 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
3098 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
3099 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
3100 (debug_on_next_call, debug_on_quit, debugger_may_continue)
3101 (max_lisp_eval_depth, max_specpdl_size): Remove.
3102 * emacs.c (syms_of_emacs): Update.
3103 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
3104 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
3105 (Vinstallation_directory, Vinvocation_directory)
3106 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
3107 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
3108 (Vsystem_configuration, Vsystem_configuration_options)
3109 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
3110 (inhibit_x_resources, noninteractive1): Remove.
3111 * editfns.c (syms_of_editfns): Update.
3112 (Vbuffer_access_fontified_property)
3113 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
3114 (Voperating_system_release, Vsystem_name, Vuser_full_name)
3115 (Vuser_login_name, Vuser_real_login_name): Remove.
3116 * dosfns.c (syms_of_dosfns): Update.
3117 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
3118 (dos_codepage, dos_country_code, dos_decimal_point)
3119 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
3120 (dos_super_key, dos_timezone_offset): Remove.
3121 * doc.c (syms_of_doc): Update.
3122 (Vbuild_files, Vdoc_file_name): Remove.
3123 * dispnew.c (syms_of_display): Update.
3124 (Vglyph_table, Vinitial_window_system)
3125 (Vredisplay_preemption_period, Vstandard_display_table)
3126 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
3127 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
3128 * dired.c (syms_of_dired): Update.
3129 (Vcompletion_ignored_extensions): Remove.
3130 (Vw32_get_true_file_attributes): Remove declaration.
3131 * dbusbind.c (syms_of_dbusbind): Update.
3132 (Vdbus_debug, Vdbus_registered_buses)
3133 (Vdbus_registered_objects_table): Remove.
3134 * data.c (syms_of_data): Update.
3135 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
3136 * composite.c (syms_of_composite): Update.
3137 (Vauto_composition_function, Vauto_composition_mode)
3138 (Vcompose_chars_after_function, Vcomposition_function_table):
3139 Remove.
3140 * coding.c (syms_of_coding): Update.
3141 (Vcharset_revision_table, Vcoding_category_list)
3142 (Vcoding_system_alist, Vcoding_system_for_read)
3143 (Vcoding_system_for_write, Vcoding_system_list)
3144 (Vdefault_process_coding_system, Venable_character_translation)
3145 (Vfile_coding_system_alist, Vlast_code_conversion_error)
3146 (Vlast_coding_system_used, Vlatin_extra_code_table)
3147 (Vlocale_coding_system, Vnetwork_coding_system_alist)
3148 (Vprocess_coding_system_alist)
3149 (Vselect_safe_coding_system_function)
3150 (Vstandard_translation_table_for_decode)
3151 (Vstandard_translation_table_for_encode)
3152 (Vtranslation_table_for_input, coding_system_require_warning)
3153 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
3154 (eol_mnemonic_unix, inherit_process_coding_system)
3155 (inhibit_eol_conversion, inhibit_iso_escape_detection)
3156 (inhibit_null_byte_detection): Remove.
3157 * cmds.c (syms_of_cmds): Update.
3158 (Vpost_self_insert_hook): Remove.
3159 * charset.c (syms_of_charset): Update.
3160 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
3161 (inhibit_load_charset_map): Remove.
3162 * character.c (syms_of_character): Update.
3163 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
3164 (Vchar_width_table, Vprintable_chars)
3165 (Vscript_representative_chars, Vtranslation_table_vector)
3166 (Vunicode_category_table): Remove.
3167 * ccl.c (syms_of_ccl): Update.
3168 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
3169 (Vtranslation_hash_table_vector): Remove.
3170 * category.c (syms_of_category): Update.
3171 (Vword_combining_categories, Vword_separating_categories): Remove.
3172 * callproc.c (syms_of_callproc): Update.
3173 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
3174 (Vexec_directory, Vexec_path, Vexec_suffixes)
3175 (Vinitial_environment, Vprocess_environment)
3176 (Vshared_game_score_directory, Vshell_file_name): Remove.
3177 * callint.c (syms_of_callint): Update.
3178 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
3179 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
3180 * bytecode.c (syms_of_bytecode): Update.
3181 (Vbyte_code_meter, byte_metering_on): Remove.
3182 * buffer.c (syms_of_buffer): Update.
3183 (Vafter_change_functions, Vbefore_change_functions)
3184 (Vchange_major_mode_hook, Vfirst_change_hook)
3185 (Vinhibit_read_only, Vkill_buffer_query_functions)
3186 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
3187 * alloc.c (syms_of_alloc): Update.
3188 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
3189 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
3190 (cons_cells_consed, floats_consed, garbage_collection_messages)
3191 (gc_cons_threshold, gcs_done, intervals_consed)
3192 (misc_objects_consed, pure_bytes_used, string_chars_consed)
3193 (strings_consed, symbols_consed, vector_cells_consed): Remove.
3194
3195 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3196 (DEFVAR_INT): Assume global is in `globals'.
3197 * alloc.c (globals): Define.
3198
3199 2011-01-18 Tom Tromey <tromey@redhat.com>
3200
3201 * image.c (Vimagemagick_render_type): Remove redundant
3202 definition.
3203
3204 2011-01-18 Tom Tromey <tromey@redhat.com>
3205
3206 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
3207 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
3208 (redisplay_window): Update.
3209 (syms_of_xdisp): Update.
3210
3211 2011-01-18 Tom Tromey <tromey@redhat.com>
3212
3213 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
3214 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
3215 Declare.
3216 * gtkutil.c (xg_uses_old_file_dialog):
3217 (xg_get_file_with_chooser):
3218 (xg_tool_bar_detach_callback): Don't redeclare globals.
3219
3220 2011-01-18 Tom Tromey <tromey@redhat.com>
3221
3222 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
3223 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
3224
3225 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
3226
3227 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
3228 defined __GNUC__. ../configure now checks for this GCC feature,
3229 which is now also supported by IBM and Oracle compilers.
3230 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
3231 since Solaris malloc returns mult-of-8.
3232
3233 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
3234
3235 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
3236
3237 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
3238
3239 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
3240 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
3241 * data.c (Fnumber_to_string): Use it.
3242 * print.c (float_to_string, print_object): Likewise.
3243
3244 Include <unistd.h> unilaterally.
3245 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
3246 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
3247 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
3248 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
3249 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3250 * xterm.c:
3251 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3252 unistd.h is always present now, possibly supplied by gnulib.
3253
3254 * mktime.c: Remove; moving to ../lib.
3255
3256 Use gnulib's mktime module.
3257 * deps.mk (mktime.o): Remove rule.
3258
3259 Use gnulib's ftoastr module.
3260 * print.c: Include ftoastr.h.
3261 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3262 Remove; no longer needed.
3263 (float_to_string): Use dtoastr rather than rolling our own code,
3264 which had an off-by-one bug on non-IEEE hosts.
3265
3266 Automate syncing from gnulib.
3267 * Makefile.in (lib): New macro.
3268 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3269 ($(lib)/libgnu.a): New rule.
3270 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3271
3272 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3273 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3274 so change the type of 'ign' to unsigned int from int.
3275
3276 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3277
3278 * xterm.h (struct x_display_info): Remove stray semicolon.
3279 The extra semicolon didn't conform to the C standard.
3280 Problem reported by Sun cc.
3281
3282 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3283 These changes make compilation easier to follow with Sun cc.
3284 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3285 EMACS_INT values without provoking overflow diagnostics.
3286 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3287 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3288 diagnostic with signed left shift.
3289
3290 * fileio.c (make_temp_name): Remove unreachable code.
3291
3292 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3293 Previously it was marked by preceding it with "return;", but
3294 Sun cc complains about this.
3295
3296 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3297 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3298 which fixed Bug#2370. Caught by Sun cc.
3299
3300 2011-01-15 Martin Rudalics <rudalics@gmx.at>
3301
3302 * window.c (inhibit_point_swap): New variable.
3303 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3304 point this time.
3305 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3306 of setting selected_window to nil (Bug#7728).
3307
3308 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3309
3310 * image.c (imagemagick_load_image, Finit_image_library):
3311 Free intermediate image after creating a MagickWand from it.
3312 Terminate MagickWand environment after image loading.
3313
3314 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
3315
3316 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3317 unexpected return values.
3318 (Fdbus_register_method): Remove connection initialization.
3319
3320 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
3321
3322 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3323 used by Fdbus_register_service.
3324 (QCdbus_request_name_replace_existing): Likewise.
3325 (QCdbus_request_name_do_not_queue): Likewise.
3326 (QCdbus_request_name_reply_primary_owner): Likewise.
3327 (QCdbus_request_name_reply_in_queue): Likewise.
3328 (QCdbus_request_name_reply_exists): Likewise.
3329 (QCdbus_request_name_reply_already_owner): Likewise.
3330 (Fdbus_register_service): New function.
3331 (Fdbus_register_method): Use Fdbus_register_service to do the name
3332 registration.
3333 (syms_of_dbusbind): Add symbols dbus-register-service,
3334 :allow-replacement, :replace-existing, :do-not-queue,
3335 :primary-owner, :existing, :in-queue and :already-owner.
3336
3337 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
3338
3339 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3340 when removing extra buttons.
3341
3342 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
3343
3344 * fns.c (Fyes_or_no_p): Doc fix.
3345
3346 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3347
3348 * fns.c (Fyes_or_no_p): Add usage.
3349
3350 2011-01-08 Glenn Morris <rgm@gnu.org>
3351
3352 * makefile.w32-in ($(EMACS)):
3353 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3354
3355 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3356 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3357
3358 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3359
3360 * image.c (imagemagick_load_image): Fix some resource leaks and
3361 error handling.
3362
3363 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
3364
3365 * fns.c (Fyes_or_no_p): Accept format string args.
3366
3367 2011-01-07 Glenn Morris <rgm@gnu.org>
3368
3369 * emacs.c (no_site_lisp): New int.
3370 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3371 (main): Set no_site_lisp.
3372 (standard_args): Add --no-site-lisp.
3373 * lisp.h (no_site_lisp): New int.
3374 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3375 directories to Vload_path.
3376
3377 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3378
3379 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3380
3381 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3382
3383 * dbusbind.c (Fdbus_register_method): Add optional parameter
3384 dont_register_service. Updated docstring accordingly.
3385
3386 2011-01-04 Glenn Morris <rgm@gnu.org>
3387
3388 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3389
3390 2011-01-03 Eli Zaretskii <eliz@gnu.org>
3391
3392 * image.c (png_jmpbuf): Remove definition.
3393 (my_png_error, png_load): Don't use png_jmpbuf.
3394
3395 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3396
3397 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3398
3399 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3400
3401 * image.c <Qlibpng_version>: New variable.
3402 (syms_of_image): Intern and staticpro it. Set its value to the
3403 version of PNG library we were compiled with.
3404 (my_png_error, png_load): Avoid GCC warnings about direct access
3405 to png_ptr->jmpbuf. (Bug#7716)
3406 (png_jmpbuf): New macro.
3407 (my_png_error, png_load): Use it instead of #ifdef'ing according
3408 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3409
3410 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3411
3412 * .gdbinit (xgetptr): Fix the union+lsb case.
3413 (xbacktrace): Fix the union case.
3414
3415 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3416
3417 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3418 different from selected-window's.
3419
3420 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3421
3422 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3423 equivalent of a menu item when the key sequence is given by the
3424 `:keys' attribute. (Bug#7662)
3425
3426 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3427 the basic faces are supported.
3428
3429 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
3430
3431 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3432
3433 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3434
3435 * xdisp.c (Fformat_mode_line): Fix last change.
3436
3437 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
3438
3439 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3440 faces (Bug#7587).
3441
3442 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3443
3444 * fileio.c (Fexpand_file_name): One more doc fix.
3445
3446 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
3447
3448 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3449 image or label in the container.
3450 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3451 (xg_show_toolbar_item): Function deleted.
3452 (xg_tool_item_stale_p): New function.
3453 (update_frame_tool_bar): Calculate tool-bar style once per call.
3454 Instead of hiding text labels, omit them. Don't use
3455 xg_show_toolbar_item; create new GtkToolItems from scratch if
3456 necessary, instead of trying to re-use them. This avoids an
3457 annoying animation when changing tool-bars.
3458
3459 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3460
3461 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3462 title and buffer filename only for RepresentedFilename.
3463 Handle bad UTF-8 in buffer name (Bug#7517).
3464
3465 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3466
3467 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3468
3469 * nsfns.m (ns_set_name_iconic): Remove.
3470 (ns_set_name_internal): New function (Bug#7517).
3471 (Vicon_title_format): Extern declare.
3472 (ns_set_name): Call ns_set_name_internal.
3473 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3474 (x_implicitly_set_name): Ditto.
3475 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3476 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3477
3478 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3479
3480 * window.c (syms_of_window): Add missing defsubr for
3481 window-use-time.
3482
3483 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3484
3485 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3486 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3487
3488 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3489
3490 * buffer.c: Remove unused declarations.
3491 * buffer.h: Likewise.
3492 * charset.h: Likewise.
3493 * composite.h: Likewise.
3494 * dispextern.h: Likewise.
3495 * dispnew.c: Likewise.
3496 * font.h: Likewise.
3497 * fontset.c: Likewise.
3498 * fontset.h: Likewise.
3499 * intervals.h: Likewise.
3500 * keymap.h: Likewise.
3501 * lisp.h: Likewise.
3502 * syntax.c: Likewise.
3503 * syntax.h: Likewise.
3504 * termhooks.h: Likewise.
3505 * window.h: Likewise.
3506 * xsettings.h: Likewise.
3507 * xterm.c: Likewise.
3508 * xterm.h: Likewise.
3509
3510 * chartab.c (sub_char_table_ref): Make static.
3511 * dispnew.c (line_hash_code, required_matrix_height)
3512 (required_matrix_width): Likewise.
3513 * eval.c (interactive_p, apply_lambda): Likewise.
3514 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3515 Likewise.
3516 * font.c (QCadstyle, QCregistry, font_make_spec)
3517 (font_parse_fcname, font_encode_char, font_at): Likewise.
3518 * frame.c (x_frame_get_arg): Likewise.
3519 * keymap.c (get_keyelt): Likewise.
3520 * lread.c (read_filtered_event): Likewise.
3521 * print.c (write_string_1): Likewise.
3522 * window.c (delete_window, window_height, window_width)
3523 (foreach_window): Likewise.
3524 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3525 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3526 (xembed_send_message): Likewise.
3527
3528 * eval.c (run_hook_list_with_args): Delete.
3529 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3530 * terminal.c (get_terminal_param): Likewise.
3531 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3532
3533 * scroll.c: Fix comment.
3534
3535 * dispnew.c (add_window_display_history)
3536 (add_frame_display_history, glyph_row_slice_p)
3537 (find_glyph_row_slice, flush_stdout)
3538 (check_matrix_pointer_lossage, matrix_row)
3539 (check_matrix_invariants, check_window_matrix_pointers)
3540 (check_matrix_pointers, window_to_frame_vpos)
3541 (window_to_frame_hpos): Prototize.
3542 * textprop.c (erase_properties): Likewise.
3543
3544 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3545
3546 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3547 (print_preprocess): Fix handling of uninterned symbols in last change.
3548
3549 * print.c (print, print_preprocess, print_object): Use a hash table
3550 rather than a linear table for Vprint_number_table.
3551
3552 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3553
3554 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3555
3556 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3557
3558 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3559 (parse_tool_bar_item): Use it to obtain image separators for
3560 displays not using native tool-bar separators.
3561
3562 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3563 specially, since this is now done in parse_tool_bar_item.
3564
3565 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3566
3567 Minor clean up to silence some gcc warnings.
3568 * window.c (Fset_window_buffer):
3569 * xterm.c (x_set_frame_alpha): Restructure code to silence
3570 compiler warning.
3571 (handle_one_xevent): Remove unused var `p'.
3572 (do_ewmh_fullscreen): Remove unused var `lval'.
3573 (xembed_set_info): Remove unused var `atom'.
3574 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3575 compiler warning.
3576 * fontset.c (fontset_id_valid_p, dump_fontset):
3577 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3578 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3579 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3580 label only when it's used.
3581 * image.c (x_create_bitmap_from_xpm_data):
3582 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3583 its callers.
3584 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3585 `consumed_chars'.
3586 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3587 (decode_coding_emacs_mule): Remove unused label `retry'.
3588 (detect_eol): Add parens to silence compiler warning.
3589 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3590 it's used to silence the compiler.
3591 (make_number): Modernize k&r declaration.
3592 (mark_char_table): Add parens to silence compiler warning.
3593
3594 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
3595
3596 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3597 tool-bar maps.
3598 (menu_separator_name_p): New function, from gtkutil.c.
3599 (separator_names): Move from gtkutil.c.
3600
3601 * keyboard.h (menu_separator_name_p): Add prototype.
3602
3603 * gtkutil.c (XG_BIN_CHILD): New macro.
3604 (xg_get_menu_item_label, xg_update_menubar)
3605 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3606 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3607 (separator_names, xg_separator_p): Move to keyboard.c.
3608 (create_menus, xg_update_submenu, update_frame_tool_bar):
3609 Use menu_separator_name_p.
3610
3611 * nsmenu.m (name_is_separator): Function deleted.
3612 (addItemWithWidgetValue): Use menu_separator_name_p.
3613
3614 * w32menu.c (name_is_separator): Function deleted.
3615 (add_menu_item): Use menu_separator_name_p.
3616
3617 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3618
3619 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3620 same as the background, use the face forground as cursor.
3621
3622 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3623
3624 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3625
3626 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3627
3628 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3629 (face_before_or_after_it_pos, next_element_from_string)
3630 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3631 calculations of maximum string length before calling
3632 string_char_and_length and STRING_CHAR_AND_LENGTH.
3633 (string_char_and_length): Update commentary: MAXLEN is no longer
3634 needed.
3635
3636 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3637
3638 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3639 as (Qsave_session arg).
3640
3641 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3642 (smc_die_CB): Make an event with arg Qt.
3643 (Fhandle_save_session): If event has Qt as argument,
3644 call Fkill_emacs (Bug#7552).
3645
3646 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3647
3648 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3649
3650 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3651
3652 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3653
3654 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3655
3656 * dispextern.h (struct it): New member overlay_strings_charpos.
3657
3658 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3659 charpos where we computed n_overlay_strings.
3660 (next_overlay_string): Load overlay strings at recorded position,
3661 which may not be the same as the iterator's charpos (Bug#7016).
3662
3663 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3664
3665 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3666 obscured due to a vscroll (Bug#7537).
3667
3668 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3669
3670 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3671
3672 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3673 Use FRAME_TOOLBAR_HEIGHT.
3674 (x_set_offset): Handle XNegative and YNegative in
3675 f->size_hint_flags (Bug#7510).
3676
3677 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3678
3679 * w32fns.c (Fx_show_tip): Call try_window with last argument
3680 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3681 solved. Round up the tip height to an integral multiple of the
3682 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3683 (Bug#7398)
3684
3685 2010-12-08 Glenn Morris <rgm@gnu.org>
3686
3687 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3688
3689 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3690
3691 * xml.c (parse_region): Ignore blank HTML nodes.
3692 (make_dom): Return CDATA sections (like <style>foo</style>) as
3693 text nodes.
3694
3695 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3696
3697 * lread.c (read1): Allow newstyle unquote outside of backquote.
3698 Disallow old-style backquotes inside new-style backquotes.
3699 Don't count unquotes to figure out when we're "syntactically inside
3700 but semantically outside of a backquote" any more.
3701 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3702 to all contexts.
3703
3704 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3705
3706 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3707
3708 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3709
3710 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3711 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3712 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3713
3714 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3715
3716 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3717 bit-field.
3718 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3719 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3720 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3721 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3722 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3723 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3724 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3725 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3726 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3727 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3728 * m/hp800.h: Remove file.
3729 * m/mips.h: Remove file.
3730
3731 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3732
3733 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3734 with cursor color and draw a rectangle around the image (Bug#7412).
3735
3736 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3737
3738 * frame.c (x_set_font): Remove unused variable.
3739
3740 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3741
3742 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3743
3744 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3745 drawing text under filled box cursor (Bug#7479).
3746
3747 2010-11-27 Kenichi Handa <handa@m17n.org>
3748
3749 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3750 i.e. integer.
3751 (Fdefine_charset_internal): Adjust for the above change.
3752 (init_charset_once): Likewise.
3753
3754 * charset.h (emacs_mule_charset): Adjust the prototype.
3755 Delete duplicated extern.
3756
3757 * coding.c (emacs_mule_char): Adjust for the change of
3758 emacs_mule_charset.
3759
3760 * lread.c (read_emacs_mule_char): Adjust for the change of
3761 emacs_mule_charset.
3762
3763 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3764
3765 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3766 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3767
3768 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3769
3770 * alloc.c (mark_terminals): Ensure that the image cache is marked
3771 even if the terminal object was marked earlier (Bug#6301).
3772
3773 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3774
3775 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3776
3777 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3778
3779 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3780 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3781 Use 23 as menubar height if 0. (Bug#7425).
3782
3783 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3784
3785 * xdisp.c (set_message_1): Force paragraph direction in echo area
3786 be left-to-right.
3787
3788 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3789 when the click is on the header or mode line.
3790
3791 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3792
3793 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3794 `cursor' property of the first character in overlay strings.
3795 (Bug#7474) (Bug#7481)
3796
3797 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3798
3799 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3800 (NSLeftAlternateKeyMask): New defines.
3801 (keyDown): Parse left and right keys separately (Bug#7458).
3802 Compare Left key masks exactly (Bug#7458).
3803
3804 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3805
3806 * intervals.c (temp_set_point_both): Define before calling, to
3807 avoid GCC warnings.
3808
3809 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3810
3811 * nsmenu.m: Use #include <config.h> instead of "config.h".
3812
3813 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3814 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3815 Move declarations ...
3816 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3817 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3818 ... here.
3819
3820 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3821 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3822 (gdb_pvec_type):
3823 * print.c (print_output_debug_flag):
3824 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3825 (safe_debug_print): New declaration.
3826
3827 * xterm.c:
3828 * systty.h:
3829 * sound.c: Include <sys/ioctl.h> unconditionally.
3830
3831 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3832
3833 * alloc.c (mark_maybe_object): Return early if given a Lisp
3834 integer (Bug#6301).
3835
3836 2010-11-21 Ken Brown <kbrown@cornell.edu>
3837
3838 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3839
3840 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3841
3842 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3843 Define (Bug#7458).
3844 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3845 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3846 NSRightControlKeyMask also (Bug#7458).
3847 (keyDown): Ditto (Bug#7458).
3848 (syms_of_nsterm): Defvar ns-right-command-modifier and
3849 ns-right-control-modifier (Bug#7458).
3850
3851 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3852
3853 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3854 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3855
3856 * intervals.h (temp_set_point, temp_set_point_both):
3857 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3858
3859 2010-11-20 Ken Brown <kbrown@cornell.edu>
3860
3861 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3862
3863 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3864
3865 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3866 \xNNNNNN for hex-code display of glyphless characters.
3867
3868 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3869
3870 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3871 Set important to ! vert_only.
3872 (xg_show_toolbar_item): Don't show label horizontally if
3873 tool item isn't important.
3874 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3875 xg_make_tool_item, or update important on existing tool item.
3876
3877 * keyboard.c (QCvert_only): New variable.
3878 (parse_tool_bar_item): Check for QCvert_only.
3879 (syms_of_keyboard): Initialize QCvert_only.
3880
3881 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3882
3883 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3884
3885 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3886 same in-line.
3887
3888 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3889
3890 * xfaces.c (lookup_face): Make static.
3891 * dispnew.c (copy_row_except_pointers): Likewise.
3892 * syntax.c (dec_bytepos): Likewise.
3893 (inc_bytepos): Remove.
3894 * dispextern.h (lookup_face): Remove declaration.
3895
3896 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3897
3898 * xdisp.c (set_cursor_from_row): Display cursor after all the
3899 glyphs that come from an overlay. Don't overstep the last glyph
3900 when skipping glyphs from an overlay. (Bug#6687)
3901
3902 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3903
3904 * alloc.c (refill_memory_reserve): Move declaration ...
3905 * lisp.h (refill_memory_reserve): ... here.
3906
3907 * strftime.c (_strftime_copytm): Add declaration.
3908
3909 * callproc.c (syms_of_callproc): Use intern_c_string.
3910
3911 Move declarations from .c files to .h files.
3912 * process.c (timers_run):
3913 * minibuf.c (quit_char):
3914 * lread.c (read_emacs_mule_char):
3915 * keyboard.c (minibuf_level, message_enable_multibyte)
3916 (pending_malloc_warning):
3917 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3918 (Qonly): Remove declarations.
3919 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3920 (Vselect_active_regions):
3921 * keyboard.h (timers_run): Add declarations.
3922
3923 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3924 (tm_diff): Convert definitions to standard C.
3925 (extra_args_spec_iso): Remove, unused.
3926
3927 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3928
3929 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3930
3931 * config.in (HAVE_G_TYPE_INIT): New symbol.
3932
3933 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3934
3935 * lread.c (Fload): Mention `load-in-progress' and
3936 `load-file-name'. (Bug#7346)
3937
3938 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3939 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3940 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3941 subprocesses. Use buffer_free only ifdef subprocesses.
3942
3943 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3944 the subprocesses version, not in the non-subprocesses one.
3945
3946 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3947
3948 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3949
3950 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3951 lines on text-mode terminals. (bug#7417)
3952
3953 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3954
3955 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3956 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3957
3958 2010-11-17 Kenichi Handa <handa@m17n.org>
3959
3960 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3961 change (set charset-ID list instead of charset-symbol list).
3962
3963 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3964
3965 * keyboard.c (make_lispy_position): For text area clicks, record Y
3966 pixel position relative to the text area, excluding header line.
3967 Also change X and Y to Lisp_Objects, not pointers; don't return
3968 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3969 buffer_posn_from_coords counting from the start of the text area.
3970 (Fposn_at_x_y, make_lispy_event): Callers changed.
3971
3972 * window.c (coordinates_in_window): Change X and Y to ints rather
3973 than pointers; don't return coordinates via pointers.
3974 (struct check_window_data): Change X and Y from pointers to ints.
3975 (window_from_coordinates): Remove args WX and WY; don't return
3976 coordinates via pointers.
3977 (Fcoordinates_in_window_p, window_from_coordinates):
3978 (check_window_containing, Fwindow_at): Callers changed.
3979 (window_relative_x_coord): New function.
3980
3981 * window.h (window_from_coordinates, window_relative_x_coord):
3982 Update prototypes.
3983
3984 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3985 the start of the text area.
3986
3987 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3988 call. Use window_relative_x_coord.
3989 (note_mouse_highlight): Change window_from_coordinates call.
3990
3991 * w32term.c (w32_read_socket):
3992 * msdos.c (dos_rawgetc):
3993 * xterm.c (handle_one_xevent): Likewise.
3994
3995 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3996
3997 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3998 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3999 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
4000 Convert definitions to standard C.
4001 * regex.c: Do not include <stdlib.h>, config.h does it.
4002 Include unistd.h.
4003 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
4004 (regerror, regfree): Convert definitions to standard C.
4005 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
4006 (__mktime_internal): Convert definitions to standard C.
4007
4008 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
4009
4010 * w32proc.c:
4011 * w32inevt.c:
4012 * w32heap.c:
4013 * w32.c: Remove config.h include guards.
4014
4015 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
4016 No code changes.
4017
4018 * process.c: Include <sys/ioctl.h> unconditionally,
4019 keyboard.c already does it.
4020
4021 * keyboard.c (pending_malloc_warning): Add const to match
4022 definition in alloc.c.
4023 (Fset_input_interrupt_mode): Simplify #ifdefs.
4024
4025 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
4026
4027 Clean up systty.h macros.
4028 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
4029 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
4030 definition in all uses.
4031 (EMACS_TTY_TABS_OK): Remove, it has a single user.
4032 * sysdep.c (discard_tty_input, child_setup_tty)
4033 (init_sys_modes, tabs_safe_p, reset_sys_modes):
4034 * emacs.c (shut_down_emacs):
4035 * callproc.c (child_setup):
4036 * term.c (dissociate_if_controlling_tty): Inline removed macros.
4037
4038 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
4039
4040 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4041
4042 * w32fns.c (Fx_create_frame):
4043 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
4044 resource here; it's now done at startup.
4045
4046 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
4047
4048 * xterm.c (set_wm_state): Add Qnil to final cons.
4049
4050 * xselect.c (x_send_client_event): Remove unused variables cons and
4051 size.
4052
4053 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4054
4055 * keyboard.c (modify_event_symbol): Add const to array elements of
4056 arg NAME_TABLE.
4057 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
4058 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
4059 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
4060 Add const to array elements.
4061 (scroll_bar_parts): Make static. Fix position of const.
4062
4063 * w32fns.c (lispy_function_keys): Add const to extern.
4064
4065 * w32inevt.c (lispy_function_keys): Likewise.
4066
4067 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4068
4069 * xfns.c (Fx_create_frame): Don't check for the cursorColor
4070 resource here; it's now done at startup.
4071
4072 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
4073
4074 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
4075
4076 Fix compilation on Solaris.
4077 * sysdep.c: Do not #include <term.h>.
4078 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
4079
4080 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
4081
4082 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
4083
4084 * xterm.c (set_wm_state): Don't put Atom in cons, call
4085 make_fixnum_or_float on them first.
4086 (x_term_init): Initialize Xatom_net_supporting_wm_check and
4087 Xatom_net_supported correctly.
4088
4089 * xselect.c (x_send_client_event): Move CHECK_STRING ...
4090 (Fx_send_client_event): to here.
4091
4092 2010-11-13 Martin Rudalics <rudalics@gmx.at>
4093
4094 * window.c (Fwindow_use_time): New function.
4095
4096 2010-11-13 Eli Zaretskii <eliz@gnu.org>
4097
4098 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
4099 zero-width characters.
4100
4101 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
4102
4103 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
4104 box before drawing the glyphs inside it.
4105
4106 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
4107
4108 * dispextern.h (enum glyphless_display_method):
4109 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
4110 All users changed.
4111
4112 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4113 Fix comments.
4114 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
4115 whitespace in "[]", to simulate a box. Don't use uninitialized
4116 variable `width'.
4117
4118 2010-11-11 Julien Danjou <julien@danjou.info>
4119
4120 * xsettings.c (init_xsettings): Use already fetch atoms.
4121
4122 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
4123 from dpyinfo.
4124
4125 * xselect.c (Fx_send_client_event): Split and create
4126 x_send_client_event.
4127
4128 * lisp.h: Do not EXFUN Fx_send_client_event.
4129
4130 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
4131 from dpyinfo.
4132 (wm_supports): Use atoms from dpyinfo.
4133 (do_ewmh_fullscreen): Use atoms from dpyinfo.
4134 (x_ewmh_activate_frame): Use atoms from dpyinfo.
4135 (xembed_set_info): Use atoms from dpyinfo.
4136 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
4137 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
4138 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
4139 Get all atoms in one round-trip.
4140 (set_wm_state): Use x_send_client_event rather than
4141 Fx_send_client_event, using Atom directly.
4142 (x_ewmh_activate_frame): Ditto.
4143 (x_set_sticky): Pass atoms to set_wm_state.
4144 (do_ewmh_fullscreen): Ditto.
4145
4146 * xterm.h (x_display_info): Add Xatom_net_supported,
4147 Xatom_net_supporting_wm_check, Xatom_net_active_window,
4148 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
4149
4150 * xfns.c (Fx_show_tip): Fix typo in docstring.
4151
4152 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
4153
4154 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
4155 it's not negative.
4156
4157 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4158
4159 * font.c (font_filter_properties): Add const to array elements of
4160 properties args.
4161
4162 * font.h (font_filter_properties): Likewise.
4163
4164 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
4165 elements.
4166
4167 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
4168
4169 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
4170
4171 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
4172 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
4173 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
4174 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
4175 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
4176
4177 2010-11-10 Glenn Morris <rgm@gnu.org>
4178
4179 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
4180
4181 2010-11-09 Eli Zaretskii <eliz@gnu.org>
4182
4183 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
4184
4185 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
4186
4187 * image.c (free_image): Don't garbage the frame here, since this
4188 function can be called while redisplaying (Bug#7210).
4189 (uncache_image): Garbage the frame here (Bug#6426).
4190
4191 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
4192
4193 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
4194 parent is the root window. Check this after traversing window tree.
4195
4196 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
4197
4198 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
4199
4200 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
4201 before traversing window tree (Bug#5721).
4202
4203 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
4204
4205 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
4206
4207 * xdisp.c (note_mode_line_or_margin_highlight):
4208 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
4209
4210 2010-11-06 Eli Zaretskii <eliz@gnu.org>
4211
4212 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
4213 adjust width of tool-tip frame to the width of text, excluding the
4214 stretch glyph at the beginning of R2L glyph rows.
4215
4216 * w32fns.c (Fx_show_tip): Likewise.
4217
4218 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
4219
4220 * nsfont.m: Include termchar for new mouse-highlight.
4221 (nsfont_draw): Use MOUSE_HL_INFO.
4222
4223 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4224
4225 Unify mouse-highlight code for all GUI and TTY sessions.
4226
4227 * term.c: Remove static mouse_face_* variables. All users
4228 changed.
4229 (term_show_mouse_face, term_clear_mouse_face)
4230 (fast_find_position, term_mouse_highlight): Functions deleted.
4231 (tty_draw_row_with_mouse_face): New function.
4232 (term_mouse_movement): Call note_mouse_highlight instead of
4233 term_mouse_highlight.
4234
4235 * nsterm.m (ns_update_window_begin, ns_update_window_end)
4236 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
4237 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4238 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
4239 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
4240 Replace Display_Info with Mouse_HLInfo everywhere where
4241 mouse_face_* members were accessed for mouse highlight purposes.
4242
4243 * xterm.c (x_update_window_begin, x_update_window_end)
4244 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
4245 (handle_one_xevent, x_free_frame_resources, x_term_init):
4246 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
4247 members were accessed for mouse highlight purposes.
4248
4249 * w32term.c (x_update_window_begin, x_update_window_end)
4250 (x_update_end, w32_read_socket, x_free_frame_resources)
4251 (w32_initialize_display_info): Replace Display_Info with
4252 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4253 for mouse highlight purposes.
4254
4255 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4256 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4257 unless the frame is on a window-system.
4258 (get_tool_bar_item, handle_tool_bar_click)
4259 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4260 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4261 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4262 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4263 Replace Display_Info with Mouse_HLInfo everywhere where
4264 mouse_face_* members were accessed for mouse highlight purposes.
4265 (coords_in_mouse_face_p): Move prototype out of the
4266 HAVE_WINDOW_SYSTEM conditional.
4267 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4268 HAVE_WINDOW_SYSTEM block.
4269 (try_window_id) [HAVE_GPM || MSDOS]:
4270 Call x_clear_window_mouse_face.
4271 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
4272 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4273 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4274 calling draw_glyphs directly.
4275 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4276 (cursor_in_mouse_face_p, rows_from_pos_range)
4277 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4278 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4279 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4280 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4281 fragments.
4282 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4283 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4284 integer.
4285 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
4286 (x_consider_frame_title, tool_bar_lines_needed):
4287 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
4288 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4289 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4290 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4291 part.
4292
4293 * dispnew.c (mirror_make_current): Set Y coordinate of the
4294 mode-line and header-line rows.
4295 (init_display): Setup initial frame's output_data for text
4296 terminal frames.
4297
4298 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4299 its own definition on msdos.c.
4300
4301 * msdos.c (show_mouse_face, clear_mouse_face)
4302 (fast_find_position, IT_note_mode_line_highlight)
4303 (IT_note_mouse_highlight): Functions deleted.
4304 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4305 instead of IT_note_mouse_highlight.
4306 (draw_row_with_mouse_face, popup_activated): New functions.
4307 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4308 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4309 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4310 where mouse_face_* members were accessed for mouse highlight
4311 purposes.
4312
4313 * msdos.h (initialize_msdos_display): Add prototype.
4314
4315 * frame.h (MOUSE_HL_INFO): New macro.
4316
4317 * lisp.h (Mouse_HLInfo): New data type.
4318
4319 * xterm.h (struct x_display_info):
4320 * w32term.h (struct w32_display_info):
4321 * nsterm.h (struct ns_display_info):
4322 * termchar.h (struct tty_display_info): Use it instead of
4323 mouse_face_* members.
4324
4325 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4326 1st argument.
4327 (frame_to_window_pixel_xy, note_mouse_highlight)
4328 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4329 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4330 HAVE_WINDOW_SYSTEM conditional.
4331 (draw_row_with_mouse_face): Declare prototype.
4332 (tty_draw_row_with_mouse_face): Declare prototype.
4333
4334 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4335
4336 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4337 Remove unused variables.
4338
4339 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4340
4341 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4342 logic pointed out by Eli Zaretskii.
4343
4344 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4345
4346 * coding.c (coding-category-list): Refer to set-coding-system-priority
4347 instead of the obsolete set-coding-priority in the doc string.
4348
4349 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4350
4351 * nsfont.m (nsfont_draw): Correct previous patch to return
4352 correct value.
4353 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4354 don't change the method signature, change the return.
4355
4356 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
4357
4358 * nsfont.m (nsfont_draw)
4359 * nsimage.m (EmacsImage-setXBMColor:)
4360 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
4361
4362 2010-11-03 Julien Danjou <julien@danjou.info>
4363
4364 * image.c (gif_load): Add support for transparency and specified
4365 :background.
4366
4367 2010-11-01 Kenichi Handa <handa@m17n.org>
4368
4369 * dispextern.h (lookup_glyphless_char_display): Extern it.
4370
4371 * termhooks.h (struct terminal): New member charset_list.
4372
4373 * coding.c (Fset_terminal_coding_system_internal): Set the
4374 `charset_list' member of struct terminal.
4375
4376 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
4377 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4378
4379 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4380 (lookup_glyphless_char_display): Set it->what at the end.
4381 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4382 (last_glyphless_glyph_merged_face_id): Make them non-static.
4383
4384 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4385 Fix the arg with_background for font->driver->draw.
4386
4387 2010-11-01 Kenichi Handa <handa@m17n.org>
4388
4389 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4390 Surround chp by parentheses.
4391
4392 2010-11-01 Kenichi Handa <handa@m17n.org>
4393
4394 Implement various display methods for glyphless characters.
4395
4396 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4397 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4398 (Qzero_width): New variables.
4399 (THIN_SPACE_WIDTH): New macro.
4400 (lookup_glyphless_char_display): New function.
4401 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4402 (last_glyphless_glyph_merged_face_id): New variables.
4403 (get_next_display_element): Check glyphless characters.
4404 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4405 last_glyphless_glyph_face_id.
4406 (fill_glyphless_glyph_string): New function.
4407 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4408 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4409 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4410 (x_produce_glyphs): If a suitable font is not found, produce a
4411 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4412 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4413 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4414 Qzero_width.
4415 (Vglyphless_char_display): Declare it as a Lisp variable.
4416
4417 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4418 (struct glyph): Change the size of the member "type" to 3.
4419 Add glyphless to the union slice and u.
4420 (enum display_element_type): Add IT_GLYPHLESS.
4421 (enum glyphless_display_method): New enum.
4422 (struct it): New member glyphless_method.
4423 (Vglyphless_char_display): Extern it.
4424
4425 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4426 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4427
4428 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4429 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4430
4431 * nsterm.m (ns_draw_glyph_string): Handle the case
4432 GLYPHLESS_GLYPH (the detail is not yet implemented).
4433
4434 2010-10-31 Glenn Morris <rgm@gnu.org>
4435
4436 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4437
4438 * frame.c (syms_of_frame) <tool-bar-mode>:
4439 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4440
4441 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
4442
4443 * xterm.c (x_connection_closed): Print informative error message
4444 when aborting on GTK. This requires using shut_down_emacs
4445 directly instead of Fkill_emacs.
4446
4447 2010-10-29 Eli Zaretskii <eliz@gnu.org>
4448
4449 * emacs.c (main): Call syms_of_filelock unconditionally.
4450
4451 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4452 clause, but keep part of it conditioned on CLASH_DETECTION.
4453
4454 2010-10-29 Glenn Morris <rgm@gnu.org>
4455
4456 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4457 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4458 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4459 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4460 Sync docs between X, W32, NS.
4461
4462 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4463 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4464
4465 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
4466
4467 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4468 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4469
4470 2010-10-26 Eli Zaretskii <eliz@gnu.org>
4471
4472 * cmds.c (internal_self_insert): Don't insert if argument N is
4473 zero or negative. (Bug#7281)
4474
4475 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4476
4477 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4478
4479 2010-10-25 Glenn Morris <rgm@gnu.org>
4480
4481 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4482
4483 2010-10-24 Glenn Morris <rgm@gnu.org>
4484
4485 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4486 (Fx_window_property, Fx_file_dialog):
4487 * xfns.c (Fx_synchronize, Fx_change_window_property)
4488 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4489
4490 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
4491
4492 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4493
4494 2010-10-24 Eli Zaretskii <eliz@gnu.org>
4495
4496 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4497
4498 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4499 Deprecate use as a boolean flag.
4500
4501 2010-10-24 Jim Meyering <jim@meyering.net>
4502
4503 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4504
4505 2010-10-24 Glenn Morris <rgm@gnu.org>
4506
4507 * w16select.c (syms_of_win16select) <selection-coding-system>:
4508 <next-selection-coding-system>:
4509 * w32select.c (syms_of_w32select) <selection-coding-system>:
4510 <next-selection-coding-system>:
4511 Sync docs with select.el.
4512
4513 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4514 Lisp version.
4515
4516 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4517 Sync doc with the xterm.c version.
4518
4519 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4520 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4521
4522 2010-10-23 Glenn Morris <rgm@gnu.org>
4523
4524 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4525 * frame.c (syms_of_frame) <menu-bar-mode>:
4526 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4527 <hourglass-delay>: Sync docs with Lisp.
4528
4529 2010-10-23 Eli Zaretskii <eliz@gnu.org>
4530
4531 Implement mouse highlight for bidi-reordered lines.
4532
4533 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4534 (mouse_face_from_string_pos): New function, replaces
4535 fast_find_string_pos.
4536 (note_mouse_highlight): Call it instead of fast_find_string_pos.
4537 (note_mode_line_or_margin_highlight): Support bidi-reordered
4538 strings and R2L glyph rows. Fix comments.
4539 (note_mouse_highlight): When bidi reordering is turned on in a
4540 buffer, call next-single-property-change and
4541 previous-single-property-change with last argument nil.
4542 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4543 glyph that stands for no text beyond the line end.
4544 (row_containing_pos): Don't return too early when CHARPOS is in a
4545 bidi-reordered continued line. Return immediately when the first
4546 hit is found in a line that is not continued, or when an exact
4547 match for CHARPOS is found.
4548 (rows_from_pos_range): New function.
4549 (mouse_face_from_buffer_pos): Use it instead of calling
4550 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4551 function to support mouse highlight in bidi-reordered lines and
4552 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4553 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4554 that the former is always above the latter or identical to it.
4555 (show_mouse_face): Support drawing highlighted R2L lines.
4556 (coords_in_mouse_face_p): New function, bidi-aware.
4557 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4558 Call it instead of comparing with mouse-face members of dpyinfo.
4559 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4560 usage of hpos and vpos.
4561
4562 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4563
4564 * xrdb.c: Include keyboard.h for MOTIF.
4565
4566 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4567 MOTIF (Bug#7263).
4568
4569 * xfns.c: Include Xm/TextF and Xm/List.
4570 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4571 Make ANSI prototypes.
4572
4573 2010-10-22 Glenn Morris <rgm@gnu.org>
4574
4575 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4576 Remove ccl and duplicate mouse.
4577
4578 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
4579
4580 * insdel.c (prepare_to_modify_buffer): Don't set
4581 saved-region-selection if modification hooks are disabled.
4582
4583 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
4584
4585 * cmds.c (Fdelete_char): Doc fix.
4586
4587 2010-10-19 Ken Brown <kbrown@cornell.edu>
4588
4589 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4590
4591 2010-10-19 Kenichi Handa <handa@m17n.org>
4592
4593 Fix incorrect font metrics when the same font is opened with
4594 different pixelsizes.
4595
4596 * xftfont.c: Include composite.h.
4597 (xftfont_shape): New function.
4598 (syms_of_xftfont): Set xftfont_driver.shape.
4599
4600 2010-10-18 Julien Danjou <julien@danjou.info>
4601
4602 * frame.c (Fframe_pointer_visible_p):
4603 Add `frame-pointer-visible-p' to get the pointer visibility.
4604
4605 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4606
4607 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4608 non-"EAGAIN"-like error to signal to Emacs that the socket should
4609 be closed.
4610
4611 2010-10-15 Eli Zaretskii <eliz@gnu.org>
4612
4613 * unexcoff.c (make_hdr): Fix prototype according to changes in
4614 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4615
4616 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4617
4618 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4619
4620 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4621 made building the X menu fail.
4622 (really-oldXMenu): Fix my previous fix.
4623
4624 2010-10-14 Damyan Pepper <damyanp@gmail.com>
4625
4626 Fix handling of font properties on Windows (bug#6303).
4627 * font.c (font_filter_properties): New function, refactored from
4628 ftfont_filter_properties.
4629 * font.h (font_filter_properties): Declare.
4630 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4631 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4632 (w32font_filter_properties): New function.
4633 (w32font_driver): Add w32font_filter_properties.
4634
4635 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4636
4637 * font.c (Ffont_variation_glyphs):
4638 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4639
4640 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4641
4642 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4643 * w32font.c (w32_generic_family):
4644 * w32inevt.c (key_event):
4645 * w32menu.c (fill_in_menu):
4646 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4647 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4648 * w32term.c (w32_read_socket): Make static.
4649
4650 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4651
4652 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4653 prototypes; all callers changed.
4654
4655 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4656
4657 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4658 (OBJ2): New macro.
4659 (WIN32OBJ, FONTOBJ): Remove.
4660 (OBJ1): Redistribute object files with OBJ2.
4661 (LIBS, $(TEMACS)): Use TLIB2.
4662 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4663 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4664
4665 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4666
4667 * emacs.c (Vdynamic_library_alist)
4668 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4669 Doc fix.
4670
4671 * lisp.h (Vdynamic_library_alist): Declare extern.
4672
4673 * image.c (Vimage_library_alist)
4674 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4675 (lookup_image_type): Use Vdynamic_library_alist.
4676 (Finit_image_library): Doc fix.
4677
4678 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4679
4680 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4681 (lispdir): Remove trailing /, update all uses.
4682
4683 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4684
4685 * nsterm.m (Qleft): Declare.
4686 (ns_right_alternate_modifier): New variable.
4687 (NSRightAlternateKeyMask): New define.
4688 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4689 ns_right_alternate_modifier isn't Qleft.
4690 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4691 as emacs modifier for NSRightAlternateKeyMask.
4692 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4693
4694 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4695
4696 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4697 gnutls is ready, return EAGAIN as the errno.
4698
4699 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4700
4701 * vm-limit.c:
4702 * unexhp9k800.c:
4703 * unexelf.c:
4704 * unexaix.c:
4705 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4706
4707 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4708 (PROFILING_LDFLAGS): Remove, not needed anymore.
4709
4710 * Makefile.in: Use $(...) everywhere instead of ${...}.
4711 (CRT_DIR): Move near potential user.
4712 (START_FILE): Move near CRT_DIR, it might use it.
4713
4714 * sysdep.c (LPASS8): Remove, unused.
4715 (emacs_ospeed): Change from being a global to a local in the only
4716 user: init_baud_rate.
4717
4718 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4719
4720 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4721 (emacs_gnutls_write): Remove the debuggin fsync call.
4722 (emacs_gnutls_read): Return -1 if we got an error from
4723 gnutls_read. This allows us to actually read lots of data from
4724 the GnuTLS stream.
4725 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4726 According to the documentation, this is correct, and it seems to
4727 make things work.
4728
4729 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4730
4731 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4732
4733 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4734
4735 * keyboard.c: Revert last change; it was not intended to be
4736 synchronized with the trunk.
4737
4738 2010-10-08 Kenichi Handa <handa@m17n.org>
4739
4740 * coding.c (complement_process_encoding_system): Fix previous change.
4741
4742 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4743
4744 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4745 (Fdbus_init_bus): ... here. (Bug#7113)
4746
4747 2010-10-08 Glenn Morris <rgm@gnu.org>
4748
4749 * buffer.c (before-change-functions, after-change-functions):
4750 Three-year overdue doc fix following 2007-08-13 change.
4751
4752 2010-10-08 Kenichi Handa <handa@m17n.org>
4753
4754 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4755 eol-format, inherit from the system's default.
4756 (complement_process_encoding_system): Make a new coding system
4757 inherit the original eol-format.
4758
4759 2010-10-08 Kenichi Handa <handa@m17n.org>
4760
4761 * coding.c (complement_process_encoding_system): New function.
4762
4763 * coding.h (complement_process_encoding_system): Extern it.
4764
4765 * callproc.c (Fcall_process): Complement the coding system for
4766 encoding arguments.
4767 (Fcall_process_region): Complement the coding system for encoding
4768 the input to the process.
4769
4770 * process.c (Fstart_process): Complement the coding system for
4771 encoding arguments.
4772 (send_process): Complement the coding system for encoding what
4773 sent to the process.
4774
4775 2010-10-08 Kenichi Handa <handa@m17n.org>
4776
4777 * xfont.c (xfont_open): Fix setting of font->average_width from
4778 :avgwidth property (Bug#7123).
4779
4780 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4781
4782 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4783 is more portable.
4784
4785 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4786 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4787 has not defined SIGIO.
4788
4789 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4790
4791 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4792 draw the outermost line using the black relief, for legibility.
4793 Omit drawing the four corner pixels.
4794
4795 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4796
4797 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4798 (read_key_sequence): Inline echo_prompt.
4799 (echo_dash): Add a dash only if key is continued (Bug#7137).
4800
4801 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4802
4803 Remove O_RDONLY, O_WRONLY definitions, not needed.
4804 * unexcoff.c:
4805 * lread.c:
4806 * fileio.c:
4807 * doc.c:
4808 * callproc.c:
4809 * alloc.c:
4810 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4811
4812 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4813
4814 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4815
4816 * gnutls.c: Add property list symbol holders.
4817 (emacs_gnutls_handshake): Clarify how sockets are passed to
4818 GnuTLS.
4819 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4820 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4821 and keyfiles to be a list of file names. Default to "NORMAL" for
4822 the priority string. Improve logging.
4823
4824 2010-10-03 Glenn Morris <rgm@gnu.org>
4825
4826 * fileio.c (Vdirectory_sep_char): Remove.
4827
4828 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4829
4830 * termhooks.h: Remove #ifdef CONSP.
4831
4832 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4833
4834 Include <fcntl.h> unconditionally.
4835 * termcap.c:
4836 * sysdep.c:
4837 * lread.c:
4838 * keyboard.c:
4839 * filelock.c:
4840 * fileio.c:
4841 * doc.c:
4842 * callproc.c:
4843 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4844 does it.
4845
4846 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4847
4848 * sysdep.c (flush_pending_output): Remove code, does not do
4849 anything on any platform.
4850
4851 Remove unused code.
4852 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4853 Remove select emulation, all systems support select.
4854 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4855 * process.c (create_process): Remove #if 0 code.
4856
4857 Remove unused arguments for unexec.
4858 The third one is never used, and the last two are always passed as zero.
4859 * emacs.c (unexec): Add declaration.
4860 (Fdump_emacs): Only pass the first two arguments to unexec.
4861 Simplify #ifdef.
4862 * unexw32.c (unexec):
4863 * unexsol.c (unexec):
4864 * unexhp9k800.c (unexec):
4865 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4866 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4867 (find_section): Use const.
4868 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4869 (unexec_error): Declare it NO_RETURN.
4870 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4871 it as an argument, remove data_start and entry_address arguments, unused.
4872 (unexec): Remove bss_start, data_start and
4873 entry_address arguments.
4874 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4875 it as an argument, remove data_start and entry_address arguments, unused.
4876 (unexec): Remove bss_start, data_start and
4877 entry_address arguments.
4878
4879 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4880
4881 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4882
4883 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4884 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4885 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4886 Fix typos in docstrings.
4887 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4888 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4889
4890 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4891
4892 * keyboard.c (command_loop_1): Make sure the mark is really alive
4893 before using it (Bug#7044).
4894
4895 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4896
4897 * makefile.w32-in (tags): Rename target to full-tags.
4898
4899 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4900
4901 * emacs.c (main): Remove !WINDOWSNT conditional.
4902 (Fkill_emacs): Don't mention exemption on MS-Windows.
4903
4904 2010-10-02 Glenn Morris <rgm@gnu.org>
4905
4906 * character.c (Fchar_bytes): Remove obsolete function.
4907 (syms_of_character): Remove Schar_bytes.
4908
4909 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4910 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4911 in batch-mode.
4912 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4913 (kill-emacs-hook): Doc fix.
4914
4915 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4916
4917 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4918 (parse_region): Rework to take regions instead of strings, and
4919 renamed to reflect that these are the libxml functions.
4920
4921 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4922
4923 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4924 screen dimensions in tty->Wcm.
4925
4926 * xdisp.c (set_cursor_from_row): When the row is truncated and
4927 point is outside the range of displayed characters, position the
4928 cursor inside the scroll margin. (Bug#6349)
4929
4930 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4931
4932 Do not include stdlib.h and string.h, config.h does it.
4933 * xfont.c:
4934 * w32term.c:
4935 * w32reg.c:
4936 * w32inevt.c:
4937 * w32heap.c:
4938 * w32console.c:
4939 * w16select.c:
4940 * unexsol.c:
4941 * term.c:
4942 * sound.c:
4943 * scroll.c (m):
4944 * gtkutil.c:
4945 * font.c:
4946 * filelock.c:
4947 * fileio.c:
4948 * dosfns.c:
4949 * dbusbind.c:
4950 * bidi.c:
4951 * callproc.c:
4952 * process.c:
4953 * msdos.c:
4954 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4955
4956 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4957 defines it.
4958
4959 * process.c: Move #include <pty.h> earlier.
4960 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4961 (pty_name): Move definition later.
4962
4963 * nsselect.m (syms_of_nsselect):
4964 * nsmenu.m (syms_of_nsmenu):
4965 * nsfns.m (syms_of_nsfns):
4966 * msdos.c (syms_of_msdos):
4967
4968 * image.c (syms_of_image):
4969 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4970
4971 * point.h: Remove, unused.
4972
4973 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4974
4975 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4976 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4977 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4978
4979 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4980
4981 * xml.c (parse_string): Use const.
4982
4983 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4984
4985 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4986 Also only override Vprint_level if it isn't already bound, and increase
4987 the level to 8 to produce more useful backtraces for bug reports.
4988
4989 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4990
4991 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4992
4993 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4994
4995 * w32console.c (vga_stdcolor_name): Remove unused function;
4996 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4997
4998 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4999
5000 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
5001 (Fgnutls_boot): Start the handshake.
5002 (emacs_gnutls_read): Perform the handshake from the reader loop.
5003 (Fgnutls_boot): Remove some debugging messages.
5004 Change indentation throughout to use the Emacs style.
5005 (emacs_gnutls_handshake): Cast the fds to something that's
5006 possibly the expected length.
5007 (emacs_gnutls_write): Return -1 if we try to write before handshake.
5008
5009 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
5010
5011 * process.c (make_process): Set the gnutls_p field to zero by
5012 default.
5013 (read_process_output): Always call the gnutls_read function if the
5014 stream is a gnutls stream.
5015 (send_process): Ditto for writes.
5016
5017 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
5018 or write anything until the state is GNUTLS_STAGE_READY.
5019 (Fgnutls_boot): Mark the stream as being a gnutls stream.
5020
5021 2010-09-29 Eli Zaretskii <eliz@gnu.org>
5022
5023 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
5024 NEUTRAL_DIR.
5025 (handle_invisible_prop, iterate_out_of_display_property)
5026 (next_element_from_buffer): If bidi_it.first_elt is set, call
5027 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
5028 (Bug#7128)
5029
5030 * print.c (print_object): Fix format string and argument types for
5031 printing a Lisp_Misc_Marker.
5032
5033 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
5034 (load_overlay_strings, get_overlay_strings_1)
5035 (get_overlay_strings, forward_to_next_line_start)
5036 (back_to_previous_visible_line_start, reseat, reseat_to_string)
5037 (get_next_display_element, next_element_from_string)
5038 (next_element_from_c_string, next_element_from_buffer)
5039 (move_it_vertically_backward, move_it_by_lines, add_to_log)
5040 (message_dolog, message_log_check_duplicate, message2_nolog)
5041 (message3, message3_nolog, vmessage, set_message, set_message_1)
5042 (hscroll_window_tree, text_outside_line_unchanged_p)
5043 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
5044 (find_last_unchanged_at_beg_row)
5045 (find_first_unchanged_at_end_row, row_containing_pos)
5046 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
5047 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
5048 Use EMACS_INT for buffer and string positions.
5049
5050 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
5051 (row_containing_pos): Adjust prototype.
5052
5053 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
5054 (message2_nolog, set_message): Adjust prototypes.
5055
5056 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5057
5058 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
5059 (Fgnutls_boot): Use SDATA.
5060 (Fgnutls_handshake): Remove unused var `max_log_level'.
5061
5062 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5063
5064 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
5065 (Bug#7113)
5066
5067 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
5068
5069 * xgselect.c (xg_select): Clear file descriptors not set from
5070 rfds and wfds.
5071
5072 * process.c (wait_reading_process_output): Add missing FD_CLR
5073 for write_mask (must mirror connect_wait_mask).
5074
5075 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
5076
5077 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
5078 prefix.
5079 (Fgnutls_boot): Use changed process members. Use log level with a
5080 function parameter to set it. Bring back Emacs-level debugging
5081 messages at log level 1 and 2.
5082
5083 * process.c (make_process): Initialize gnutls_log_level.
5084
5085 * process.h: Add gnutls_log_level and rename x509_cred and
5086 anon_cred to have the gnutls_ prefix for consistency.
5087
5088 * gnutls.h (GNUTLS_LOG): Add convenience macro.
5089
5090 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
5091
5092 * w32.c (g_b_init_get_sid_identifier_authority)
5093 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
5094 Remove, not used.
5095 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
5096 (init_winsock): Remove useless assignment.
5097 (open_process_token, get_token_information, lookup_account_sid)
5098 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
5099 (get_security_descriptor_owner, get_security_descriptor_group)
5100 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
5101 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
5102 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
5103 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
5104 (unc_volume_file_attributes, convert_from_time_t)
5105 (create_toolhelp32_snapshot, process32_first, process32_next)
5106 (open_thread_token, impersonate_self, revert_to_self)
5107 (get_process_memory_info, get_process_working_set_size)
5108 (global_memory_status, global_memory_status_ex, socket_to_fd)
5109 (shutdown_handler): Make static.
5110
5111 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5112
5113 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
5114 (xd_pending_messages): Functions removed.
5115 (xd_read_queued_messages): Add parameters fd, *data, for_read in
5116 order to be compatible with add_read_fd. Determine bus from data,
5117 and call xd_read_message just for this bus.
5118 (xd_add_watch): Use xd_read_queued_messages as callback function.
5119 Add data.
5120
5121 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
5122
5123 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
5124
5125 * gnutls.c (gnutls_log_function): Add more debugging.
5126 (emacs_gnutls_read): Don't infloop while reading.
5127
5128 2010-09-27 Kenichi Handa <handa@m17n.org>
5129
5130 These changes are to remove restriction on the number of glyphs in
5131 one composition.
5132
5133 * dispextern.h (struct glyph): Change the member "slice" to union.
5134 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
5135 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
5136
5137 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
5138 instead of glyph->slice.
5139 (marginal_area_string): Likewise.
5140
5141 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
5142 glyph->u.cmp.
5143 (append_composite_glyph): Likewise.
5144
5145 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
5146 glyph->u.cmp.
5147 (fill_gstring_glyph_string, x_get_glyph_overhangs)
5148 (append_composite_glyph): Likewise.
5149 (fill_image_glyph_string): Use glyph->slice.img instead of
5150 glyph->slice.
5151 (append_glyph, produce_image_glyph, append_stretch_glyph)
5152 (note_mouse_highlight): Likewise.
5153
5154 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
5155
5156 * process.c (add_keyboard_wait_descriptor)
5157 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
5158 (wait_reading_process_output): Don't pass write_mask to select
5159 if SELECT_CANT_DO_WRITE_MASK is defined.
5160 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
5161
5162 * process.h (add_read_fd, delete_read_fd, add_write_fd)
5163 (delete_write_fd): Declare.
5164
5165 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
5166 (write_mask): New variable.
5167 (max_input_desc): Rename from max_keyboard_desc.
5168 (fd_callback_info): New variable.
5169 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
5170 New functions.
5171 (Fmake_network_process): FD_SET write_mask.
5172 (deactivate_process): FD_CLR write_mask.
5173 (wait_reading_process_output): Connecting renamed to Writeok.
5174 check_connect removed. check_write is new. Remove references to gpm.
5175 Use Writeok/check_write unconditionally (i.e. no #ifdef
5176 NON_BLOCKING_CONNECT) instead of Connecting.
5177 Loop over file descriptors and call callbacks in fd_callback_info
5178 if file descriptor is ready for I/O.
5179 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
5180 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
5181 (keyboard_bit_set): Use max_input_desc.
5182 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
5183 Remove #ifdef subprocesses. Use max_input_desc.
5184 (init_process): Initialize write_mask and fd_callback_info.
5185
5186 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
5187
5188 * dbusbind.c: Include process.h.
5189 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
5190 (xd_read_message_1): New functions.
5191 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
5192 Handle watch for both read and write.
5193 (Fdbus_init_bus): Also register xd_toggle_watch.
5194 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5195 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
5196 to dbus_connection_flush.
5197 (xd_read_message): Move most of the code to xd_read_message_1.
5198 Call xd_read_message_1 until status is COMPLETE.
5199
5200 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
5201
5202 * term.c: Do not include sys/ioctl.h, not needed.
5203 (init_tty): Reorder code to reduce the number of #ifdefs.
5204 No code changes.
5205
5206 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
5207
5208 * process.h: Set up GnuTLS support.
5209
5210 * process.c (make_process, Fstart_process)
5211 (read_process_output, send_process): Set up GnuTLS support for
5212 process input/output file descriptors.
5213
5214 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
5215
5216 * gnutls.c: The source code for GnuTLS support in Emacs.
5217
5218 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
5219
5220 * config.in: Set up GnuTLS support.
5221
5222 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
5223 (obj, LIBES): Set up GnuTLS support.
5224
5225 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
5226
5227 * w32.c (get_emacs_configuration_options): Fix previous change.
5228
5229 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
5230
5231 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
5232 alive before using it (Bug#6977).
5233
5234 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
5235
5236 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
5237
5238 * dispextern.h: EMACS_INT/int fixup.
5239
5240 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
5241 fixup.
5242
5243 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
5244
5245 2010-09-25 Eli Zaretskii <eliz@gnu.org>
5246
5247 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
5248 (Fselect_window, window_scroll_pixel_based)
5249 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5250 Use EMACS_INT for buffer positions.
5251
5252 * textprop.c (validate_interval_range, interval_of)
5253 (property_change_between_p, Fadd_text_properties)
5254 (set_text_properties_1, Fremove_text_properties)
5255 (Fremove_list_of_text_properties, Ftext_property_any)
5256 (Ftext_property_not_all, copy_text_properties)
5257 (text_property_list, extend_property_ranges)
5258 (verify_interval_modification): Use EMACS_INT for buffer
5259 positions.
5260
5261 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5262 for buffer positions.
5263
5264 * process.c (read_process_output, send_process)
5265 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5266 and string positions and size.
5267
5268 * print.c (print_object, print_string, strout): Use EMACS_INT for
5269 string indices.
5270
5271 * minibuf.c (string_to_object): Use EMACS_INT for string position
5272 and size.
5273
5274 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5275
5276 * lread.c <read_from_string_index, read_from_string_index_byte>
5277 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5278 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5279 buffer positions and string length.
5280
5281 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5282 EMACS_INT.
5283 (echo_truncate, adjust_point_for_property, read_char)
5284 (gen_help_event, make_lispy_event, modify_event_symbol)
5285 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5286 for buffer positions and string length.
5287
5288 * keyboard.h (gen_help_event): Adjust prototype.
5289
5290 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5291
5292 * commands.h <last_point_position>: Declare EMACS_INT.
5293
5294 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5295 (truncate_echo_area): Accept EMACS_INT argument.
5296
5297 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5298
5299 * lisp.h (truncate_echo_area): Adjust prototype.
5300
5301 * composite.c (composition_adjust_point): Return EMACS_INT.
5302
5303 * composite.h (composition_adjust_point): Adjust prototype.
5304
5305 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
5306
5307 * process.c (Fmake_network_process): When arg :host is 'local,
5308 use address 127.0.0.1, not name "localhost". (Bug#6781)
5309
5310 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5311
5312 * indent.c (Fcurrent_indentation, indented_beyond_p)
5313 (compute_motion): Use EMACS_INT for buffer position variables.
5314
5315 * lisp.h (indented_beyond_p): Adjust prototype.
5316
5317 * buffer.c (overlay_strings): Return EMACS_INT.
5318
5319 * buffer.h (overlay_strings): Adjust prototype.
5320
5321 * region-cache.c (pp_cache): Adjust format to arguments.
5322
5323 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5324 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5325 (verror): Use EMACS_INT for size of allocated buffer.
5326
5327 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5328 positions.
5329
5330 * xdisp.c (redisplay_internal, try_window_id)
5331 (set_cursor_from_row, find_first_unchanged_at_end_row):
5332 Use EMACS_INT for buffer positions.
5333
5334 * dispextern.h (set_cursor_from_row): Adjust prototype.
5335
5336 * dispnew.c (increment_matrix_positions)
5337 (increment_row_positions, copy_glyph_row_contents)
5338 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5339 positions.
5340
5341 * dispextern.h (mode_line_string, marginal_area_string)
5342 (increment_matrix_positions, increment_row_positions):
5343 Adjust prototypes.
5344
5345 * data.c (Faref, Faset): Use EMACS_INT for string length and
5346 positions.
5347
5348 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5349 characters to insert.
5350
5351 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5352 position and size.
5353
5354 * syntax.c (scan_words, update_syntax_table)
5355 (prev_char_comend_first, back_comment, skip_chars)
5356 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5357 Use EMACS_INT for buffer and string positions.
5358
5359 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5360
5361 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5362 positions.
5363
5364 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5365
5366 * scroll.c (calculate_scrolling, line_ins_del)
5367 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5368 conversion.
5369
5370 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5371 (region_cache_backward, region_cache_forward)
5372 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5373 conversion.
5374
5375 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5376
5377 * eval.c (verror): Fix EMACS_INT/int conversion.
5378
5379 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
5380 (print_preprocess, print_check_string_charset_prop)
5381 (print_object): Fix EMACS_INT/int conversion.
5382
5383 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5384
5385 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5386
5387 * callproc.c (Fcall_process): Use EMACS_INT for count of
5388 characters read from the subprocess.
5389
5390 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5391 positions.
5392 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5393 positions.
5394
5395 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5396 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5397 length.
5398 (advance_to_char_boundary, Fset_buffer_multibyte)
5399 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5400 (overlay_touches_p, record_overlay_string, overlay_strings)
5401 (recenter_overlay_lists, fix_start_end_in_overlays)
5402 (modify_overlay, Fmove_overlay, report_overlay_modification)
5403 (evaporate_overlays): Use EMACS_INT for buffer positions.
5404
5405 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5406 Adjust prototypes.
5407
5408 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5409 positions.
5410
5411 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5412 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5413 (Fsubstring_no_properties, substring_both, Ffillarray)
5414 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5415 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5416 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5417 (Fmd5): Use EMACS_INT for buffer and string positions and length
5418 variables and arguments.
5419
5420 * lisp.h (substring_both): Adjust prototype.
5421
5422 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
5423
5424 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5425 * w32fns.c (clipboard_sequence_fn): Don't declare.
5426 (globals_of_w32fns): Don't initialize it.
5427
5428 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
5429
5430 * syntax.c (back_comment): Detect the case where a 1-char comment
5431 starter is also the 2nd char of a 2-char comment ender.
5432
5433 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
5434
5435 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5436
5437 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5438
5439 * eval.c (verror): EMACS_INT/int cleanup.
5440
5441 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5442 unwind_protect more than 2GB worth of functions.
5443
5444 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5445
5446 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5447 string and avoid compiler warnings.
5448 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5449 all users.
5450
5451 * lread.c (oblookup): EMACS_INT/int cleanup.
5452
5453 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5454
5455 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5456
5457 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5458
5459 * lisp.h (clip_to_bounds): Adjust prototype.
5460
5461 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5462
5463 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5464
5465 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5466
5467 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5468
5469 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5470 cleanup.
5471
5472 * lisp.h: Change the definition of all marker.c functions that
5473 take and return buffer stuff to be EMACS_INT instead of int.
5474
5475 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5476 (buf_charpos_to_bytepos, bytepos_to_charpos)
5477 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5478 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5479 for all buffer positions.
5480
5481 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
5482
5483 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5484 (split_interval_right, find_interval, next_interval)
5485 (delete_node, delete_interval, interval_deletion_adjustment)
5486 (adjust_intervals_for_deletion, merge_interval_right)
5487 (merge_interval_left, graft_intervals_into_buffer)
5488 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5489
5490 * intervals.h (traverse_intervals): Update prototype.
5491
5492 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5493
5494 * indent.c (compute_motion): Use EMACS_INT for arguments to
5495 region_cache_forward.
5496
5497 * region-cache.c (struct boundary, struct region_cache):
5498 Use EMACS_INT for positions.
5499 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5500 (delete_cache_boundaries, set_cache_region)
5501 (invalidate_region_cache, know_region_cache)
5502 (region_cache_forward, region_cache_backward, pp_cache):
5503 Use EMACS_INT for buffer positions.
5504
5505 * region-cache.h (know_region_cache, invalidate_region_cache)
5506 (region_cache_forward, region_cache_backward): Adjust prototypes.
5507
5508 * search.c (string_match_1, fast_c_string_match_ignore_case)
5509 (looking_at_1, scan_buffer, scan_newline)
5510 (find_next_newline_no_quit, find_before_next_newline)
5511 (search_command, trivial_regexp_p, search_buffer, simple_search)
5512 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5513 and string positions and length.
5514
5515 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5516 (find_before_next_newline): Adjust prototypes.
5517
5518 * editfns.c (transpose_markers, update_buffer_properties)
5519 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5520 (get_pos_property, Fconstrain_to_field)
5521 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5522 (Fchar_after, Fchar_before, Finsert_char)
5523 (Finsert_buffer_substring, Fcompare_buffer_substrings)
5524 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5525 Use EMACS_INT for buffer and string position variables.
5526 (Finsert_char): Protect against too large insertions.
5527
5528 * lisp.h (clip_to_bounds): Adjust prototype.
5529
5530 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5531 (balance_an_interval, split_interval_right, split_interval_left)
5532 (find_interval, next_interval, update_interval)
5533 (adjust_intervals_for_insertion, delete_node, delete_interval)
5534 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5535 (offset_intervals, merge_interval_right, merge_interval_left)
5536 (graft_intervals_into_buffer, adjust_for_invis_intang)
5537 (move_if_not_intangible, get_local_map, copy_intervals)
5538 (copy_intervals_to_string, compare_string_intervals)
5539 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5540 and for interval tree size.
5541
5542 * intervals.h (traverse_intervals, split_interval_right)
5543 (split_interval_left, find_interval, offset_intervals)
5544 (graft_intervals_into_buffer, copy_intervals)
5545 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5546 (update_interval): Adjust prototypes.
5547
5548 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5549 Use EMACS_INT for buffer position variables and arguments.
5550
5551 * composite.c (get_composition_id, find_composition)
5552 (run_composition_function, compose_text)
5553 (composition_gstring_width, autocmp_chars)
5554 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5555 for buffer positions and string length variables and arguments.
5556
5557 * composite.h (get_composition_id, find_composition, compose_text)
5558 (composition_gstring_width): Adjust prototypes.
5559
5560 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5561
5562 * xdisp.c (store_mode_line_noprop, display_mode_element):
5563 Use EMACS_INT for string positions.
5564
5565 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5566 position arguments.
5567
5568 * intervals.h (get_property_and_range): Adjust prototype.
5569
5570 * character.c (parse_str_as_multibyte, str_as_multibyte)
5571 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5572 (string_count_byte8, string_escape_byte8, c_string_width)
5573 (strwidth, lisp_string_width, multibyte_chars_in_text):
5574 Use EMACS_INT for string length variables and arguments.
5575
5576 * character.h (parse_str_as_multibyte, str_as_multibyte)
5577 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5578 (c_string_width, strwidth, lisp_string_width):
5579 Adjust prototypes.
5580
5581 * font.c (font_intern_prop): Use EMACS_INT for string length
5582 variables.
5583
5584 * font.c (font_intern_prop): Use EMACS_INT for string length
5585 variables.
5586
5587 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5588 variables.
5589
5590 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5591 (Fmake_string): Protect against too large strings.
5592 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5593 (live_misc_p): Use ptrdiff_t instead of int for pointer
5594 differences.
5595 (string_bytes, check_sblock, check_string_free_list)
5596 (allocate_string_data, compact_small_strings, Fmake_string)
5597 (Fmake_bool_vector, make_string, make_unibyte_string)
5598 (make_multibyte_string, make_string_from_bytes)
5599 (make_specified_string_string, Fmake_list, Fmake_vector):
5600 Use EMACS_INT for string length variables and arguments.
5601 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5602 (Fpurecopy): Use EMACS_INT for string size.
5603 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5604 for vector size.
5605
5606 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5607 (make_string_from_bytes, make_specified_string_string)
5608 (make_pure_string, string_bytes, check_point_in_composition):
5609 Adjust prototypes.
5610
5611 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5612
5613 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5614 (check_translation): Use EMACS_INT for buffer positions and
5615 length.
5616
5617 * undo.c (record_marker_adjustment, record_delete)
5618 (record_change, record_point, record_insert)
5619 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5620 buffer positions.
5621
5622 * lisp.h (record_marker_adjustment, record_delete)
5623 (record_change, record_point, record_insert)
5624 (record_property_change, Fprimitive_undo): Adjust prototypes.
5625
5626 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
5627 Eli Zaretskii <eliz@gnu.org>
5628
5629 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5630
5631 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5632
5633 * minibuf.c (Fminibuffer_contents)
5634 (Fminibuffer_contents_no_properties)
5635 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5636 positions.
5637
5638 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5639 mark.
5640
5641 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5642 (allocate_string_data): Accept EMACS_INT for string length.
5643
5644 * editfns.c (Ffield_string, Ffield_string_no_properties)
5645 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5646 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5647 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5648 (Ffield_end): Use EMACS_INT for buffer positions.
5649
5650 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5651 point with mark.
5652
5653 * lisp.h (allocate_string_data, make_uninit_string)
5654 (make_uninit_multibyte_string, make_buffer_string)
5655 (make_buffer_string_both): Adjust prototypes.
5656
5657 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5658
5659 * xml.c: Switch to GNU indentation.
5660 (make_dom): Change parse tree format to match xml.el.
5661 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5662 (Fxml_parse_string_internal): Rename from xml-parse-string.
5663
5664 2010-09-22 Kenichi Handa <handa@m17n.org>
5665
5666 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5667 only if we are not at a composition.
5668 (set_iterator_to_next): Give it->end_charpos to
5669 composition_compute_stop_pos.
5670 (set_iterator_to_next, next_element_from_buffer): Likewise.
5671
5672 * dispnew.c (buffer_posn_from_coords): Fix position when the
5673 current display element is a grapheme cluster in bidi-reordered
5674 region.
5675
5676 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5677
5678 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5679 the regions may overlap.
5680
5681 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5682
5683 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5684
5685 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5686
5687 * emacs.c: Do not include sys/ioctl.h, not needed.
5688
5689 * doprnt.c: Do not include stdlib.h, config.h does it.
5690 Move #include before macro definition.
5691
5692 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5693
5694 * Makefile.in (temacs): Link using $(CC) not $(LD).
5695 (LD_FIRSTFLAG): Define using autoconf.
5696 (LD): Remove.
5697
5698 Remove HAVE_TERMIOS definitions.
5699 * s/usg5-4-common.h (HAVE_TERMIOS):
5700 * s/template.h (HAVE_TERMIOS):
5701 * s/gnu-linux.h (HAVE_TERMIOS):
5702 * s/darwin.h (HAVE_TERMIOS):
5703 * s/cygwin.h (HAVE_TERMIOS):
5704 * s/bsd-common.h (HAVE_TERMIOS):
5705 * s/aix4-2.h (HAVE_TERMIOS):
5706 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5707 defined on all non-MS platforms.
5708 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5709
5710 * xterm.c (xt_action_hook): Use const.
5711
5712 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5713
5714 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5715 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5716 (gethostname) [!HAVE_SOCKETS]: Remove.
5717 (SOCK_REPLACE_HANDLE): Remove macro.
5718 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5719 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5720 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5721 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5722
5723 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5724
5725 * deps.mk (xml.o): Add dependencies.
5726
5727 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5728 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5729
5730 * bidi.c (bidi_paragraph_init): Accept an additional argument
5731 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5732 search back until a paragraph with a strong directional character
5733 is found, and use that to determine paragraph's base direction.
5734
5735 * dispextern.h (bidi_paragraph_init): Update prototype.
5736
5737 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5738
5739 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5740 of w32api >= 3.15. (Bug#6989)
5741
5742 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5743
5744 * process.c (wait_reading_process_output): Don't message about
5745 accept-process-output unless the time limit really is zero.
5746
5747 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5748
5749 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5750 int/Lisp_Object mixup).
5751
5752 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5753
5754 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5755 not HELP.
5756
5757 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5758
5759 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5760 bar's pixel width to Lisp (Bug#7048).
5761
5762 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5763
5764 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5765
5766 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5767
5768 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5769 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5770
5771 2010-09-17 Kenichi Handa <handa@m17n.org>
5772
5773 * ftfont.c (ftfont_check_otf): Fix previous change.
5774
5775 2010-09-14 Kenichi Handa <handa@m17n.org>
5776
5777 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5778 existence of GSUB or GPOS.
5779
5780 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5781
5782 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5783
5784 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5785
5786 * xml.c (parse_buffer): Rename to parse_string(), since that's
5787 what it does.
5788 (parse_string): Return nil when the document can't be parsed.
5789
5790 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5791
5792 * xterm.c (get_current_vm_state): New function.
5793 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5794 want_fullscreen so set_wm_state calls are few (Bug#7013).
5795 (x_handle_net_wm_state): Move code to get_current_vm_state and
5796 call that function.
5797
5798 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5799
5800 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5801
5802 2010-09-14 Kenichi Handa <handa@m17n.org>
5803
5804 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5805 we may use designation or locking-shift.
5806
5807 2010-09-14 Kenichi Handa <handa@m17n.org>
5808
5809 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5810 sequence when the source is multibyte.
5811
5812 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5813
5814 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5815 Don't make first argument optional. Doc fix.
5816
5817 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5818
5819 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5820 parameters for the doc string.
5821
5822 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5823
5824 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5825
5826 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5827
5828 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5829 (syms_of_fns): Don't defsubr Sy_or_n_p.
5830 * lisp.h: Don't declare Fy_or_n_p.
5831 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5832
5833 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5834
5835 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5836
5837 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5838
5839 * xml.c: New file.
5840 (Fhtml_parse_buffer): New function to interface to the libxml2
5841 html parsing function.
5842
5843 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5844
5845 * biditype.h: Regenerate.
5846
5847 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5848
5849 * nsimage.m (ns_load_image): Check argument types.
5850
5851 * image.c: Remove all uses of gcpro.
5852 (xpm_load): Check all lisp types.
5853 (pbm_load): Likewise.
5854 (png_load): Likewise.
5855 (jpeg_load): Likewise.
5856 (tiff_load): Likewise.
5857 (gif_load): Likewise.
5858 (imagemagick_load_image): Likewise.
5859 (imagemagick_load): Likewise.
5860 (svg_load): Likewise.
5861 (gs_load): Likewise.
5862
5863 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5864
5865 * w32uniscribe.c (uniscribe_shape): Update commentary.
5866 Don't try to reorder grapheme clusters, since LGSTRING should always
5867 hold them in the logical order.
5868 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5869 return glyph codes in the logical order.
5870
5871 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5872
5873 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5874 (imagemagick_load_image): Fix type mismatch.
5875 (Fimagemagick_types): Likewise. Doc fix.
5876
5877 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5878
5879 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5880
5881 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5882
5883 * xselect.c: Remove declaration of cut-buffer objects and functions.
5884 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5885 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5886 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5887 (Fx_rotate_cut_buffers_internal): Remove.
5888 (syms_of_xselect): Remove defsubr of above.
5889 Remove intern of QCUT_BUFFERn.
5890
5891 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5892
5893 * cmds.c (Vblink_paren_function): Remove.
5894 (internal_self_insert): Make it insert N chars at a time.
5895 Don't call blink-paren-function.
5896 (Fself_insert_command): Adjust accordingly.
5897 (syms_of_cmds): Don't declare blink-paren-function.
5898
5899 2010-08-31 Kenichi Handa <handa@m17n.org>
5900
5901 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5902 characters.
5903
5904 * term.c (encode_terminal_code): Fix the previous change.
5905 (produce_glyphs): Don't set it->char_to_display here.
5906 Don't handle unibyte-display-via-language-environment here.
5907 (produce_special_glyphs): Set temp_it.char_to_display before
5908 calling produce_glyphs.
5909
5910 * xdisp.c (get_next_display_element): Set it->char_to_display
5911 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5912 characters.
5913 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5914 calling PRODUCE_GLYPHS.
5915 (append_space_for_newline): Save and store it->char_to_display.
5916 Set it->char_to_display before calling PRODUCE_GLYPHS.
5917 (extend_face_to_end_of_line): Set it->char_to_display before
5918 calling PRODUCE_GLYPHS.
5919 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5920 character to its byte value.
5921 (get_char_glyph_code): New function.
5922 (produce_stretch_glyph): Set it2.char_to_display too before
5923 calling x_produce_glyphs.
5924 (x_produce_glyphs): Simplify by using the same code for ASCII and
5925 non-ASCII characters. Don't set it->char_to_display here.
5926 Don't handle unibyte-display-via-language-environment here. For a
5927 character of no glyph, use font->space_width instead of FONT_WIDTH.
5928
5929 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5930
5931 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5932
5933 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5934
5935 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5936
5937 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5938
5939 * marker.c (Fcopy_marker): Make the first arg optional.
5940
5941 2010-08-30 Kenichi Handa <handa@m17n.org>
5942
5943 * composite.c (composition_update_it): Fix computing of
5944 cmp_it->width.
5945
5946 2010-08-29 Kenichi Handa <handa@m17n.org>
5947
5948 * term.c (encode_terminal_code): Encode byte chars to the
5949 corresponding bytes.
5950
5951 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5952
5953 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5954
5955 2010-08-26 Kenichi Handa <handa@m17n.org>
5956
5957 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5958 on calling composition_compute_stop_pos.
5959
5960 2010-08-25 Kenichi Handa <handa@m17n.org>
5961
5962 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5963 :otf.
5964
5965 * composite.c (composition_compute_stop_pos): Don't break
5966 composition at PT.
5967 (composition_reseat_it): Likewise. Fix calculation of character
5968 position starting a composition.
5969 (Fcomposition_get_gstring): Don't limit the number of components
5970 for automatic composition.
5971
5972 2010-08-25 Kenichi Handa <handa@m17n.org>
5973
5974 * composite.c (composition_compute_stop_pos): In forward search,
5975 pay attention to the possibility that some character after ENDPOS
5976 will be composed with charactrs before ENDPOS.
5977
5978 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5979
5980 * keyboard.c (command_loop_1): Don't clobber primary selection
5981 during handle-switch-frame (Bug#6872).
5982
5983 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5984
5985 * dbusbind.c: Accept UNIX domain sockets as bus address.
5986 (Fdbus_close_bus): New function.
5987 (Vdbus_registered_buses): New variable.
5988 (xd_initialize): Implement string as bus address.
5989 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5990 (Fdbus_get_unique_name, Fdbus_call_method)
5991 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5992 (Fdbus_method_error_internal, Fdbus_send_signal)
5993 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5994 check. This is done in xd_initialize_bus. Adapt doc string, if
5995 necessary.
5996 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5997 Vdbus_registered_buses.
5998 (Vdbus_registered_objects_table): Create hash.
5999
6000 2010-08-22 Juri Linkov <juri@jurta.org>
6001
6002 * keyboard.c (Fexecute_extended_command): Move reading a command name
6003 with `completing-read' to a new Elisp function `read-extended-command'.
6004 Call it to read a command to `function' (bug#5364, bug#5214).
6005
6006 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
6007
6008 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
6009
6010 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
6011
6012 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
6013 instead of SAFE_ALLOCA.
6014
6015 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
6016
6017 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
6018 (Bug#6214).
6019
6020 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6021
6022 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
6023
6024 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6025
6026 * doc.c (Fsnarf_documentation): Initialize skip_file before
6027 build-files test.
6028
6029 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
6030
6031 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
6032 New definitions.
6033 (HAVE_TERMIO): Remove.
6034
6035 2010-08-22 Eli Zaretskii <eliz@gnu.org>
6036
6037 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
6038
6039 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
6040 for w32.
6041
6042 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
6043 it's done in nt/config.nt.
6044
6045 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
6046
6047 * unexcoff.c (report_error, make_hdr, write_segment)
6048 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
6049 Convert argument lists and prototypes to ANSI C.
6050 (make_hdr, write_segment): Remove unused variables.
6051 (unexec): Remove commented-out line. Initialize `new' to shut up
6052 compiler warnings.
6053
6054 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
6055
6056 Simplify termio code.
6057 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
6058 HAVE_TERMIO code is obsolete.
6059 Replace HAVE_TERMIOS conditionals with !DOS_NT.
6060 * systty.h: Do not define HAVE_TCATTR.
6061 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
6062 Do not define EMACS_HAVE_TTY_PGRP. Only define
6063 EMACS_GET_TTY_PGRP for !DOS_NT.
6064 * sysdep.c: Include sysselect.h unconditionally. Do not include
6065 sys/ioctl.h and termios.h, systty.h does it.
6066 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
6067 (init_baud_rate): Remove HAVE_TERMIO code.
6068 (child_setup_tty): Remove HAVE_TERMIO code.
6069 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
6070 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
6071 (new_ltchars, new_tchars): Remove, unused.
6072 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
6073 code. Remove special casing for __mips__, it was a no-op.
6074 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
6075 (init_sys_modes): Remove HPUX special case.
6076 * process.c: Include stdlib.h unconditionally. Do not include
6077 fcntl.h, systty.h does it. Remove conditional code for
6078 HAVE_SERIAL, it is always true.
6079 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
6080 always true when SIGNALS_VIA_CHARACTERS is true.
6081 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
6082 !WINDOWSNT means HAVE_TERMIOS.
6083 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
6084 conditional, which is true for all HAVE_TERMIOS systems.
6085 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
6086 instead of HAVE_TERMIOS.
6087 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
6088 EMACS_HAVE_TTY_PGRP.
6089 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
6090 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
6091 anyway.
6092
6093 2010-08-21 Eli Zaretskii <eliz@gnu.org>
6094
6095 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
6096 mirroring pixel positions.
6097
6098 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
6099
6100 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
6101 write only.
6102 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
6103 malloc_sbrk_used, nothing uses them.
6104
6105 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
6106 defined, unconditionally defined in lisp.h.
6107
6108 * term.c: Do not include <termios.h>, systty.h does it.
6109
6110 * s/unixware.h (HAVE_TCATTR):
6111 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
6112 systty.h defines it when HAVE_TERMIOS is defined.
6113
6114 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6115
6116 * dispnew.c (buffer_posn_from_coords): Fix last change for text
6117 terminals: add one-character offset for R2L lines.
6118
6119 * emacs.c <emacs_version>: Add a comment regarding
6120 msdos/mainmake.v2's dependency on the syntax of this declaration.
6121
6122 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6123
6124 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
6125 position for R2L lines by mirroring the pixel position wrt the
6126 text are box. Improve commentary.
6127
6128 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
6129
6130 * image.c (imagemagick_clear_image): Remove debugging output.
6131
6132 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6133
6134 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
6135 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
6136 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
6137 self-insert-face.
6138 (syms_of_cmds): Initialize the new vars.
6139
6140 2010-08-19 Jason Rumney <jasonr@gnu.org>
6141
6142 * w32menu.c (set_frame_menubar): Remove call to undefined function.
6143
6144 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
6145
6146 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
6147
6148 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
6149
6150 2010-08-18 Eli Zaretskii <eliz@gnu.org>
6151
6152 * xterm.c (x_draw_bar_cursor):
6153 * w32term.c (x_draw_bar_cursor): If the character under cursor is
6154 R2L, draw the bar cursor on its right rather than on its left.
6155
6156 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
6157
6158 * eval.c (Fdefmacro): Only obey one declaration.
6159
6160 * casefiddle.c (casify_region): Setup gl_state.
6161
6162 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6163
6164 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
6165
6166 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6167
6168 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
6169
6170 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
6171
6172 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
6173 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
6174 QPRIMARY => NXPrimaryPboard.
6175 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
6176 NXPrimaryPboard => QPRIMARY.
6177 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
6178 NXSecondaryPboard = SecondarySelection.
6179 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
6180
6181 2010-08-18 Joakim Verona <joakim@verona.se>
6182
6183 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
6184 defined:
6185 (imagemagick_image_p): New function to test for ImageMagic image.
6186 (imagemagick_load): New function to load ImageMagick image.
6187 (imagemagick_load_image): New function, helper for imagemagick_load.
6188 (imagemagick-types): New function.
6189 (Qimagemagick): New Lisp_object.
6190 (imagemagick-render-type): New variable, decides which renderer to use.
6191
6192 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
6193
6194 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
6195 is a string.
6196
6197 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
6198
6199 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
6200 x_set_tool_bar_position handler.
6201
6202 2010-08-17 Eli Zaretskii <eliz@gnu.org>
6203
6204 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
6205 x_set_tool_bar_position handler, needed to support changes from
6206 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
6207
6208 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
6209
6210 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
6211 declaration (Bug#6863).
6212 (syms_of_nsselect): Don't intern QPRIMARY.
6213
6214 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
6215
6216 * keyboard.h (QPRIMARY): Declare (Bug#6864).
6217
6218 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
6219
6220 * keyboard.c (command_loop_1): Avoid setting selection twice,
6221 since it's done in deactivate-mark as well.
6222 (Vselect_active_regions): Change default to t. Replace `lazy'
6223 with non-default value `only', meaning only set PRIMARY for
6224 temporarily active regions.
6225
6226 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
6227 select-active-regions.
6228
6229 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6230
6231 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
6232 isn't a string.
6233
6234 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
6235
6236 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
6237
6238 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6239
6240 * keyboard.c (parse_tool_bar_item): malloc buf.
6241 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
6242 new_lbl (Bug#6855).
6243
6244 2010-08-14 Eli Zaretskii <eliz@gnu.org>
6245
6246 * xterm.c (x_draw_stretch_glyph_string):
6247 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
6248 the cursor on the right edge of the stretch glyph.
6249
6250 * xdisp.c (window_box_right_offset, window_box_right):
6251 Fix commentary.
6252
6253 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6254 direction when point is inside a run of whitespace characters.
6255
6256 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6257
6258 2010-08-14 Jason Rumney <jasonr@gnu.org>
6259
6260 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6261
6262 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
6263
6264 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6265
6266 2010-08-13 Jason Rumney <jasonr@gnu.org>
6267
6268 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6269 (MessageBoxW_Proc): New function typedef.
6270 (unicode-message-box): New function pointer.
6271 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
6272
6273 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6274
6275 * frame.h (Qtool_bar_position): Declare.
6276
6277 * xfns.c (Fx_create_frame): Call x_default_parameter for
6278 Qtool_bar_position.
6279
6280 2010-08-13 Eli Zaretskii <eliz@gnu.org>
6281
6282 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6283 (report_error, report_error_1): Ditto.
6284 (write_segment): Remove "#if 0" unused code.
6285 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6286 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6287 (start_of_text): Remove unused function (was used only if NO_REMAP
6288 was NOT defined).
6289
6290 * msdos.c (IT_set_face): Fix format string to match argument
6291 types.
6292 (IT_write_glyphs, IT_note_mode_line_highlight)
6293 (IT_set_frame_parameters): Remove unused variables.
6294 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6295 (IT_set_terminal_modes): Disambiguate expression in if clause.
6296 (Fmsdos_remember_default_colors): Return Qnil.
6297 (IT_set_frame_parameters): Add parens to disambiguate boolean
6298 expression for logging the cursor type to termscript.
6299 (keyboard_layout_list, keypad_translate_map)
6300 (grey_key_translate_map): Add braces in inner initializers.
6301 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6302 (dos_rawgetc): Remove unused label.
6303 (XMenuActivate): Add braces to remove ambiguous `else'.
6304 (dos_ttraw): Always return a value.
6305 (spawnve): Declare.
6306 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6307
6308 * dosfns.h (x_set_title): Declare.
6309
6310 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6311 Remove unused variables.
6312
6313 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6314 variables.
6315 (init_dosfns): Declare get_lim_data.
6316 (system_process_attributes): Declare Fget_internal_run_time.
6317
6318 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6319 list to be consistent with menu.h.
6320
6321 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6322 warnings due to mixing of "char *" and "const char *".
6323
6324 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6325
6326 Introduce a new comment style "c" flag.
6327 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6328 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6329 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6330 (syntax_prefix_flag_p): New function.
6331 (Fstring_to_syntax): Understand new "c" flag.
6332 (Finternal_describe_syntax_value): Recognize new flag; use the
6333 SYNTAX_FLAGS_* macros.
6334 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6335 comment style to accomodate the new styles.
6336 (back_comment, forw_comment, Fforward_comment, scan_lists)
6337 (scan_sexps_forward): Update code to obey the new comment style flag.
6338
6339 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6340
6341 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6342
6343 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6344
6345 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6346 first.
6347 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
6348
6349 * gtkutil.h (xg_check_special_colors): Declare.
6350
6351 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6352 (xg_create_frame_widgets): Connect theme name changes to
6353 style_changed_cb.
6354
6355 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6356 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6357 (x_term_init): Use char[] display_opt and name_opt instead of
6358 string literal. file is const char*.
6359
6360 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6361 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6362 props. Free them at the end.
6363
6364 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6365
6366 * xrdb.c (get_system_app): Make path const and use char *p for
6367 non-const char.
6368
6369 * xmenu.c (Fx_popup_dialog): error_name is const char*.
6370 (xmenu_show): error parameter is const char **. pane_string is const
6371 char *.
6372 (button_names): Is const char *.
6373 (xdialog_show): error_name and pane_string is const.
6374
6375 * process.h (synch_process_death): Is const char*.
6376
6377 * w32menu.c (w32_menu_show):
6378 * nsmenu.m (ns_menu_show): error parameter is const char **.
6379
6380 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6381 is const char **.
6382
6383 * menu.c (Fx_popup_menu): error_name is const.
6384
6385 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6386 with unsigned char and XtPointer with void *.
6387
6388 * gtkutil.h: Replace widget_value with struct _widget_value.
6389 (enum button_type, struct _widget_value): Remove and use the one from
6390 keyboard.h.
6391
6392 * gtkutil.c (get_utf8_string): Always return an allocated string.
6393 Parameter is const.
6394 (create_dialog, xg_create_one_menuitem, create_menus)
6395 (xg_item_label_same_p, xg_update_menu_item): Free result from
6396 get_utf8_string.
6397 (xg_separator_p, xg_item_label_same_p): label is const.
6398
6399 * font.h (font_open_by_name): Make name const.
6400
6401 * font.c (font_open_by_name): Make name const.
6402
6403 * floatfns.c (matherr): Use a const char* variable for x->name.
6404
6405 * emacs.c (main): Pass char[] to putenv instead of literal.
6406
6407 * callproc.c (synch_process_death): Make const.
6408 (Fcall_process): Make signame const.
6409
6410 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6411 (addDisplayItemWithImage): Use const char*.
6412
6413 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6414 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6415
6416 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6417
6418 * keyboard.h (_widget_value): name, value and key are const char*.
6419
6420 * unexmacosx.c (unexec_error): Use const char *.
6421
6422 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6423
6424 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6425 (font_parse_name, font_open_by_name):
6426 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6427 (font_parse_name, font_open_by_name): Remove const.
6428
6429 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6430
6431 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6432 definition.
6433
6434 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6435 * m/amdx86-64.h: Likewise.
6436 * m/arm.h: Likewise.
6437 * m/hp800.h: Likewise.
6438 * m/ia64.h: Likewise.
6439 * m/ibmrs6000.h: Likewise.
6440 * m/ibms390.h: Likewise.
6441 * m/intel386.h: Likewise.
6442 * m/iris4d.h: Likewise.
6443 * m/m68k.h: Likewise.
6444 * m/macppc.h: Likewise.
6445 * m/mips.h: Likewise.
6446 * m/sh3.h: Likewise.
6447 * m/sparc.h: Likewise.
6448 * m/template.h: Likewise.
6449 * m/vax.h: Likewise.
6450 * m/xtensa.h: Likewise.
6451 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6452 WORDS_BIG_ENDIAN.
6453 * lisp.h: Likewise.
6454 * md5.c: Likewise.
6455 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6456
6457 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6458
6459 Use const char* instead of char*.
6460 Reduce the number of warnings with -Wwrite-strings.
6461 * xrdb.c (get_environ_db, get_system_name):
6462 * unexelf.c (find_section):
6463 * term.c (string_cost, string_cost_one_line, per_line_cost)
6464 (get_named_tty, init_tty):
6465 * sysdep.c (sys_subshell):
6466 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6467 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6468 * search.c (Freplace_match):
6469 * process.c (Fmake_network_process, send_process, init_process):
6470 * lread.c (Fload, init_lread):
6471 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6472 * keyboard.c (parse_tool_bar_item, struct event_head):
6473 * gtkutil.h (xg_get_font_name):
6474 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6475 (make_widget_for_menu_item, make_menu_item, create_menus)
6476 (xg_make_tool_item):
6477 * font.c (parse_matrix, font_parse_name):
6478 * floatfns.c (rounding_driver, float_error_fn_name):
6479 * filelock.c (get_boot_time_1, lock_file_1):
6480 * fileio.c (barf_or_query_if_file_exists, check_writable):
6481 * editfns.c (get_system_name, get_operating_system_release)
6482 (Fencode_time, Fset_time_zone_rule):
6483 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6484 * buffer.c (defvar_per_buffer): Use const.
6485
6486 2010-08-08 Kenichi Handa <handa@m17n.org>
6487
6488 * charset.c: Include <stdlib.h>.
6489 (struct charset_sort_data): New struct.
6490 (charset_compare): New function.
6491 (Fsort_charsets): New function.
6492 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6493
6494 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6495 number in CTEXT extended segment.
6496
6497 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6498
6499 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6500 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6501
6502 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6503
6504 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6505 (Fhash_table_size): Fix typos in docstrings.
6506 (Fmake_hash_table): Doc fix.
6507
6508 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6509
6510 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6511 Doc fix (bug#5625).
6512
6513 2010-08-08 Ken Brown <kbrown@cornell.edu>
6514
6515 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6516 the MSDOS definition.
6517
6518 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6519
6520 Use const char* instead of char*.
6521 * xterm.c (x_create_toolkit_scroll_bar):
6522 * xfont.c (xfont_list_pattern):
6523 * xfns.c (x_default_scroll_bar_color_parameter)
6524 (xic_create_fontsetname, x_default_font_parameter)
6525 (x_screen_planes):
6526 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6527 (store_mode_line_string, decode_mode_spec, display_string):
6528 * menu.c (digest_single_submenu):
6529 * keymap.h (initial_define_key, initial_define_lispy_key):
6530 * keymap.c (initial_define_key, initial_define_lispy_key):
6531 * image.c (image_error, image_keyword):
6532 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6533 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6534 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6535 (ftfont_list, ftfont_match):
6536 * frame.c (frame_parm_table):
6537 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6538 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6539 (font_add_log, font_deferred_log):
6540 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6541 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6542 (font_add_log, font_deferred_log):
6543 * emacs.c (argmatch):
6544 * dispextern.h (struct it):
6545 * coding.c (ENCODE_DESIGNATION):
6546 * charset.c (define_charset_internal): Use const.
6547
6548 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6549
6550 * xrdb.c: Remove include guard.
6551 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6552 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6553 realloc->xrealloc instead of using #defines.
6554
6555 2010-08-08 Eli Zaretskii <eliz@gnu.org>
6556
6557 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6558 * editfns.c (Fline_beginning_position, Fline_end_position):
6559 State in the doc strings that start and end of line are in the
6560 logical order.
6561
6562 * xdisp.c (display_line): Move the handling of overlay arrow after
6563 the call to find_row_edges. (Bug#6699)
6564
6565 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6566
6567 * keyboard.c (command_loop_1):
6568 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6569
6570 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6571
6572 * insdel.c (prepare_to_modify_buffer): Save active region text to
6573 Vsaved_region_selection.
6574
6575 * xselect.c (QPRIMARY): Move to keyboard.c.
6576
6577 * keyboard.c (Vselect_active_regions): Move from simple.el.
6578 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6579 (command_loop_1): Set window selection prior to deactivating the mark.
6580
6581 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
6582
6583 * alloc.c (lisp_malloc):
6584 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6585 * charset.h (emacs_mule_charset):
6586 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6587 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6588 (bitch_at_user):
6589 * lisp.h (Fcheck_coding_system, Fget_text_property)
6590 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6591 Remove duplicate declarations.
6592
6593 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6594
6595 * process.c: Simplify include logic.
6596
6597 * keyboard.h (quit_char): Add declaration.
6598 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6599 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6600 Add declarations.
6601 * sysdep.c:
6602 * w32.c: Remove the above declarations.
6603
6604 Remove extern declarations in .c files, .h files have them.
6605 * xterm.c:
6606 * xdisp.c:
6607 * msdos.c:
6608 * image.c:
6609 * gtkutil.c:
6610 * fileio.c:
6611 * eval.c: Remove declarations.
6612
6613 * frame.c (frame_params): Make const.
6614
6615 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6616
6617 * emacs.c (emacs_copyright, emacs_version): Make static.
6618 (Vinitial_window_system, Vauto_save_list_file_name)
6619 (Vinhibit_redisplay): Remove declarations.
6620 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6621 for AIX.
6622
6623 Use const for some arrays and functions.
6624 * xterm.h (xg_set_icon_from_xpm_data):
6625 * xfns.c (xg_set_icon_from_xpm_data):
6626 * term.c (fkeys):
6627 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6628 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6629 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6630 (frame.c frame_parms):
6631 * emacs-icon.h (gnu_xpm_bits):
6632 * callint.c (callint_argfuns): Use const.
6633
6634 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6635
6636 * sysdep.c: Move include term.h last of includes (Bug#6812).
6637
6638 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6639
6640 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6641
6642 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6643
6644 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6645
6646 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6647
6648 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6649
6650 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6651
6652 * xterm.h (x_get_focus_frame): Declare.
6653
6654 * keyboard.h (poll_for_input_1): Unconditionally declare.
6655
6656 * nsterm.h (x_set_menu_bar_lines): Declare.
6657
6658 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6659
6660 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6661
6662 * window.c: Include menu.h.
6663
6664 * unexmacosx.c (print_region_list, print_regions)
6665 (build_region_list, find_emacs_zone_regions)
6666 (unexec_regions_merge, read_load_commands, dump_it)
6667 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6668
6669 * term.c: Check HAVE_SYS_IOCTL_H.
6670
6671 * sysdep.c: Check HAVE_TERM_H.
6672
6673 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6674
6675 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6676 (ns_ring_bell, ns_defined_color, hide_hourglass)
6677 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6678 Convert to ANSI C prototypes.
6679 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6680 before code.
6681
6682 * nsterm.h : Include sysselect.h.
6683 (x_sync, x_get_focus_frame, x_set_mouse_position)
6684 (x_set_mouse_pixel_position, x_make_frame_visible)
6685 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6686 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6687 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6688 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6689 Declare.
6690
6691 * nsmenu.m (popup_activated, name_is_separator)
6692 (syms_of_nsmenu): Convert to ANSI C prototypes.
6693 (runMenuAt): Prototypes and move declarations before code.
6694
6695 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6696
6697 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6698 prototypes.
6699
6700 * nsfns.m (have_menus_p, ns_display_info_for_name)
6701 (x_set_cursor_type, ns_appkit_version_str)
6702 (ns_appkit_version_int, ns_do_applescript)
6703 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6704 (syms_of_nsfns): Convert to ANSI C prototypes.
6705
6706 * menu.h (x_set_menu_bar_line): Declare.
6707 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6708
6709 * lisp.h (fmod_float): Declare.
6710
6711 * image.c (xpm_scan, xpm_make_color_table_v)
6712 (xpm_put_color_table_v, xpm_get_color_table_v)
6713 (xpm_make_color_table_h, xpm_put_color_table_h)
6714 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6715 (xpm_load): Convert to ANSI C prototypes.
6716
6717 * emacs.c: Include nsterm.h if HAVE_NS.
6718
6719 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6720
6721 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6722
6723 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6724 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6725 (socket_options): Use const char* for name.
6726
6727 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6728
6729 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6730
6731 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6732 Don't declare xmalloc_widget_value and digest_single_submenu.
6733
6734 * w32font.c (Qlatin): Remove declaration.
6735
6736 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6737
6738 * dired.c (compile_pattern): Restore declaration.
6739
6740 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6741
6742 Remove extern declarations in .c files, .h files have them.
6743 * data.c:
6744 * dired.c:
6745 * editfns.c:
6746 * filelock.c:
6747 * fns.c:
6748 * font.c:
6749 * fontset.c:
6750 * frame.c:
6751 * fringe.c:
6752 * ftfont.c:
6753 * gtkutil.c:
6754 * indent.c:
6755 * keyboard.c:
6756 * keymap.c:
6757 * lread.c:
6758 * menu.c:
6759 * print.c:
6760 * search.c:
6761 * sound.c:
6762 * window.c:
6763 * xdisp.c:
6764 * xfaces.c:
6765 * xfns.c:
6766 * xfont.c:
6767 * xftfont.c:
6768 * xmenu.c:
6769 * xterm.c: Remove declarations.
6770
6771 Cleanup syssignal.h.
6772 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6773 (main_thread): Move down to remove #ifdef.
6774 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6775 Remove conditional definition following unconditional ones.
6776
6777 * lisp.h: Remove HAVE_SHM code, unused.
6778 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6779 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6780 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6781 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6782 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6783 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6784 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6785 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6786 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6787 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6788 (Qwindow_scroll_functions, Vafter_load_alist)
6789 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6790 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6791 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6792 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6793 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6794 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6795 (initial_argv, last_nonmenu_event, load_in_progress)
6796 (noninteractive_need_newline, scroll_margin): Add declarations.
6797
6798 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6799 Remove declarations, menu.h has them.
6800 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6801 (Vinput_method_function, Qinput_method_function)
6802 (Qevent_symbol_element_mask, last_event_timestamp):
6803 * dispextern.h (Voverflow_newline_into_fringe):
6804 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6805 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6806 (syms_of_w32font, syms_of_nsfont):
6807 * fontset.h (find_font_encoding, Qlatin):
6808 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6809 (Vtool_bar_mode, set_frame_menubar):
6810 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6811 * xterm.h (Qx_gtk_map_stock):
6812 * keymap.h (meta_prefix_char): Add declarations.
6813
6814 * term.c: Remove dead code.
6815
6816 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6817 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6818 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6819 which is what was there before BSD_PGRPS was removed.
6820
6821 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6822
6823 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6824
6825 * unexcoff.c: Renamed from unexec.c.
6826
6827 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6828
6829 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6830
6831 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6832
6833 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6834 (Bug#6744)
6835
6836 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6837
6838 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6839 to TRUE if depth of screen is < 16.
6840
6841 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6842 USE_GTK_TOOLTIP.
6843 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6844 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6845 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6846 USE_GTK_TOOLTIP.
6847 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6848
6849 * xterm.h (USE_GTK_TOOLTIP): New define.
6850 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6851
6852 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6853 to Control-D (Bug#6771).
6854
6855 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6856
6857 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6858 Wording by Drew Adams <drew.adams@oracle.com>.
6859
6860 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6861
6862 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6863 ttip_lbl.
6864
6865 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6866 calling gtk_widget_queue_draw.
6867 (x_free_frame_resources): Call xg_free_frame_widgets.
6868
6869 * xfns.c (x_gtk_use_system_tooltips): New variable.
6870 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6871 new gtkutil tooltip functions to show the tooltip.
6872 (Fx_hide_tip): Call xg_hide_tooltip.
6873 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6874
6875 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6876 (xg_show_tooltip, xg_hide_tooltip): Declare.
6877
6878 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6879 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6880 New functions.
6881 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6882 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6883 Remove code that is commented out.
6884
6885 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6886
6887 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6888
6889 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6890
6891 * xselect.c (x_own_selection): Use list4.
6892
6893 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6894
6895 * buffer.c (Qwindow): Do not define, already defined in data.c.
6896 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6897
6898 2010-07-29 Chad Brown <yandros@mit.edu>
6899
6900 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6901 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6902 * config.in: Undef HAVE_DIRENT_H.
6903 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6904 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6905
6906 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6907
6908 Rename s/usg5-4.h -> s/usg5-4-common.h.
6909 * s/usg5-4.h: Rename file to ...
6910 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6911 * s/unixware.h:
6912 * s/sol2-6.h:
6913 * s/irix6-5.h: Update includes accordingly.
6914
6915 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6916
6917 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6918
6919 * xterm.h (struct x_output): Add toolbar_top_height,
6920 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6921 Remove toolbar_height.
6922 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6923 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6924 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6925 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6926
6927 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6928
6929 * xfns.c (x_set_tool_bar_position): New function.
6930 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6931 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6932 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6933
6934 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6935 and FRAME_TOOLBAR_LEFT_WIDTH.
6936
6937 * gtkutil.h (xg_change_toolbar_position): Declare.
6938
6939 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6940 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6941 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6942 (xg_create_frame_widgets): Create a hobox for placing widgets
6943 vertically. Use gtk_box_pack_start.
6944 (xg_height_or_width_changed): Rename from xg_height_changed.
6945 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6946 (xg_update_frame_menubar, free_frame_menubar): Change to
6947 xg_height_or_width_changed.
6948 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6949 size correctly. Remove hardcoded 4, instead use handlebox size -
6950 toolbar size.
6951 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6952 size correctly. Use handlebox size + toolbar size as additional size.
6953 (xg_pack_tool_bar): POS is a new parameter.
6954 Set orientation of tool bar based on pos.
6955 Only make handlebox_widget if NULL.
6956 Check if tool bar goes to vbox or hbox depending on pos.
6957 (xg_update_tool_bar_sizes): New function.
6958 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6959 height, call xg_update_tool_bar_sizes instead.
6960 (free_frame_tool_bar): Remove from hbox or vbox depending on
6961 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6962 (xg_change_toolbar_position): New function.
6963
6964 * frame.h (struct frame): Add tool_bar_position.
6965 (Qbottom): Declare.
6966
6967 * frame.c (Qtool_bar_position): New variable.
6968 (make_frame): Set tool_bar_position to Qtop.
6969 (frame_parms): Add tool-bar-position.
6970 (x_report_frame_params): Store tool_bar_position.
6971 (x_set_fringe_width): Reset wm size hint after fringe changes.
6972
6973 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6974
6975 Make lisp_time_argument declaration work on all systems.
6976 * lisp.h (lisp_time_argument): Move declaration ...
6977 * systime.h (lisp_time_argument): ... here
6978 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6979
6980 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6981
6982 * vm-limit.c (POINTER): Add typedef for it.
6983 (start_of_data): Change return type from POINTER to char *.
6984
6985 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6986 HAVE_WINDOW_SYSTEM.
6987
6988 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6989
6990 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6991 Remove reference to __osf__, unused.
6992
6993 * mem-limits.h: Remove duplicated includes.
6994 (NULL): Remove definition, unused.
6995 (POINTER): Remove definition.
6996 (start_of_data): Use char* in prototype, as the function
6997 definition does.
6998
6999 Remove extern declarations from .c files, and them to .h files.
7000 * keyboard.h (Qhelp_echo, waiting_for_input)
7001 (input_available_clear_time, ignore_mouse_drag_p)
7002 (Vdouble_click_time, real_this_command, Vthis_original_command):
7003 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
7004 (Voverriding_local_map_menu_flag):
7005 * lisp.h (Qinteractive_form, use_file_dialog)
7006 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
7007 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
7008 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
7009 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
7010 (Qfunction, debug_on_next_call, Qfield)
7011 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
7012 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
7013 (Qfile_directory_p, Qinsert_file_contents)
7014 (Qcompletion_ignore_case, Qcompletion_ignore_case)
7015 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
7016 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
7017 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
7018 (Qminibuffer_prompt)
7019 (Vtemporary_file_directory,char_ins_del_vector, Qface):
7020 * xterm.h (gray_bitmap_width, gray_bitmap_height)
7021 (gray_bitmap_bits, xic_create_fontsetname):
7022 * coding.h (Vtranslation_table_for_input): Add extern declarations.
7023
7024 * xsmfns.c (Vuser_login_name):
7025 * xrdb.c (Vdouble_click_time):
7026 * xfaces.c (xic_create_fontsetname):
7027 * w32select.c (waiting_for_input):
7028 * print.c (minibuffer_auto_raise):
7029 * msdos.c (Qhelp_echo):
7030 * macros.c (real_this_command):
7031 * keymap.c (Voverriding_local_map):
7032 * xterm.c (poll_for_input_1, gray_bitmap_width)
7033 (gray_bitmap_height, gray_bitmap_bits;
7034 * xmenu.c ( Voverriding_local_map)
7035 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
7036 (use_file_dialog, Xt_app_con):
7037 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
7038 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
7039 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
7040 (Qtool_bar_lines, ignore_mouse_drag_p):
7041 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
7042 (Qrear_nonsticky, nconc2):
7043 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
7044 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
7045 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
7046 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
7047 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
7048 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
7049 (gc_in_progress):
7050 * doc.c (Voverriding_local_map, Qremap):
7051 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
7052 (Vcompletion_regexp_list):
7053 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
7054 (Qcompletion_ignore_case):
7055 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
7056 (Vhistory_length, Vthis_original_command, real_this_command)
7057 (Qface, Qminibuffer_prompt, history_delete_duplicates):
7058 * image.c (Qrisky_local_variable):
7059 * fontset.c (QCname):
7060 * fns.c (minibuffer_auto_raise, QCname):
7061 * dispnew.c (char_ins_del_cost):
7062 * composite.c (font_fill_lglyph_metrics):
7063 * cmds.c (Qface, Vtranslation_table_for_input):
7064 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
7065 * ccl.c (charset_unicode):
7066 * callproc.c (Vtemporary_file_directory):
7067 * buffer.c (emacs_strerror): Remove extern declarations.
7068
7069 * data.c (Qwindow): Make non-static, used from other files too.
7070 * frame.c (validate_x_resource_name): Remove shadow definition for i.
7071
7072 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
7073 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
7074 * s/usg5-4.h (COFF):
7075 * s/template.h:
7076 * s/msdos.h (COFF, NO_REMAP):
7077 * s/ms-w32.h (NO_REMAP):
7078 * s/hpux10-20.h (NO_REMAP):
7079 * m/sparc.h (SEGMENT_MASK):
7080 * m/m68k.h (NO_REMAP):
7081 * m/intel386.h (SEGMENT_MASK):
7082 * m/arm.h (NO_REMAP):
7083 * m/alpha.h (COFF):
7084 * m/template.h: Remove references to unused defines.
7085
7086 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
7087
7088 * xsettings.c (Ftool_bar_get_system_style): Also check for
7089 Qtext_image_horiz.
7090
7091 * xdisp.c (Qtext_image_horiz): Define.
7092 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
7093 to documentation of tool-bar-style.
7094
7095 * lisp.h (Qtext_image_horiz): Declare.
7096
7097 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
7098 style text_image_horiz.
7099
7100 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7101
7102 * emacs.c (Fkill_emacs): Remove return statement.
7103
7104 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
7105 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
7106 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
7107 Remove local extern declarations.
7108
7109 * xmenu.c: Do not included lwlib.h, not needed.
7110
7111 * m/iris4d.h (XUINT, XSET): Remove, not needed.
7112
7113 * process.c: Move definitions earlier to minimize #ifdefs.
7114
7115 * xterm.h (x_get_customization_string, x_load_resources)
7116 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
7117 (x_check_errors, x_property_data_to_lisp, defined_color)
7118 (xic_set_xfontset, x_defined_color): Use const.
7119
7120 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
7121 (x_text_icon, x_check_errors, x_connection_closed): Use const.
7122
7123 * xselect.c (selection_data_to_lisp_data)
7124 (x_property_data_to_lisp):
7125 * xrdb.c (x_get_string_resource, file_p)
7126 (x_get_customization_string, magic_file_p, search_magic_path)
7127 (get_system_app, get_user_app, x_load_resources, x_get_resource)
7128 (x_get_string_resource): Use const.
7129
7130 * xfns.c: Include xlwmenu.h when USE_LUCID.
7131 (x_defined_color, xic_set_xfontset): Use const.
7132 (Fx_hide_tip): Remove local extern declaration.
7133
7134 * xfaces.c (Qmouse_face): Remove declaration.
7135 (face_color_gray_p, tty_defined_color, defined_color)
7136 (face_color_gray_p, face_color_supported_p): Add const.
7137
7138 * xdisp.c (do_mouse_tracking): Remove declaration.
7139 (add_to_log): Use const.
7140
7141 * minibuf.c (Qmouse_face): Remove declaration.
7142
7143 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
7144
7145 * keyboard.h (do_mouse_tracking): Add declaration.
7146
7147 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
7148 (QCdata, QCtype, Qcenter): Remove declarations.
7149
7150 * frame.c (x_get_resource_string, x_get_string_resource)
7151 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7152 (x_default_parameter): Use const.
7153
7154 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
7155 (QCheight, QCsize, QCname): Remove declarations.
7156
7157 * emacs.c (main): Remove local extern declaration.
7158
7159 * editfns.c (region_limit, syms_of_editfns): Remove local extern
7160 declarations.
7161
7162 * dispnew.c: Remove duplicate #include <unistd.h>.
7163 (update_window, update_frame_1, init_display): Remove local extern
7164 declarations.
7165
7166 * dispextern.h (add_to_log): Remove declaration.
7167 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7168 (x_frame_get_and_record_arg, x_default_parameter): Add const.
7169
7170 * dired.c (scmp): Add const.
7171 (directory_files_internal): Remove local extern declaration.
7172
7173 * data.c (Finteractive_form): Use const.
7174
7175 * composite.c (syms_of_composite): Remove local extern declarations.
7176
7177 * charset.c (add_to_log): Remove declaration.
7178
7179 * character.c (strwidth, parse_str_to_multibyte): Add const.
7180
7181 * character.h (strwidth, parse_str_to_multibyte): Likewise.
7182
7183 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
7184
7185 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
7186 (Lisp_Subr): Make doc and intspec constant.
7187 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
7188 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
7189 (QCheight, QCsize, QCname, QCwidth, QCforeground)
7190 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
7191 (display_arg): Add declarations.
7192
7193 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
7194
7195 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
7196
7197 * window.c (Fwindow_height): Doc fix (bug#6518).
7198
7199 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
7200
7201 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
7202
7203 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
7204
7205 * keyboard.c (Ftop_level, Fexit_recursive_edit)
7206 (Fabort_recursive_edit): Remove return statements in NO_RETURN
7207 functions.
7208
7209 * frame.h (Qtty_color_mode): Add declaration.
7210
7211 * lisp.h (Ftop_level, Fexit_recursive_edit)
7212 (Fabort_recursive_edit): Mark as NO_RETURN.
7213
7214 2010-07-26 Kenichi Handa <handa@m17n.org>
7215
7216 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
7217 number of glyphs gets smaller than the original length. (Bug#6621)
7218
7219 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
7220
7221 * lread.c (unreadpure, mapatoms_1): Make static.
7222
7223 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7224
7225 * terminfo.c (tparam): Fix prototype of tparm.
7226
7227 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
7228
7229 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
7230 find start of text segment.
7231 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
7232 is defined.
7233
7234 * callproc.c (set_initial_environment): Avoid unbalanced braces.
7235
7236 2010-07-25 Ken Brown <kbrown@cornell.edu>
7237
7238 * vm-limit.c (check_memory_limits): Fix previous change;
7239 accidentally reverted an earlier change.
7240
7241 2010-07-25 Ken Brown <kbrown@cornell.edu>
7242
7243 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
7244 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
7245
7246 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7247
7248 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
7249 * dired.c (opendir, readdir): Fix prototypes.
7250 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7251 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7252 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7253 (telldir): Remove declaration.
7254 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7255 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7256 * syssignal.h (strsignal): Fix prototype.
7257 * term.c (tparam): Fix prototype.
7258 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7259 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7260 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7261 and __morecore.
7262 * w32gui.h (XParseGeometry): Fix prototype.
7263 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7264 * w32term.c (my_set_focus): Declare inside #if 0.
7265 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7266 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7267 (drain_message_queue, get_next_msg, post_msg, parse_button)
7268 (ClipboardSequence_Proc): Fix prototypes.
7269 (wait_for_sync): Remove declaration.
7270
7271 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
7272
7273 * w32fns.c (w32_to_x_color): Remove, unused.
7274
7275 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7276
7277 * lisp.h: Remove leftover P_.
7278
7279 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7280
7281 * ecrt0.c, unexalpha.c: Remove files, unused.
7282
7283 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7284
7285 * cmds.c (internal_self_insert): Make static.
7286 * lisp.h (internal_self_insert): Remove declaration.
7287
7288 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
7289
7290 * alloc.c (free_float):
7291 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7292 * frame.c (delete_frame_handler):
7293 * ralloc.c (reorder_bloc):
7294 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7295 Remove unused static functions.
7296
7297 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7298 it is called only from NS code.
7299
7300 * w32term.c (my_set_focus): #ifdef away; it is called only from
7301 "#ifdef 0" code.
7302
7303 * w32fns.c (x_edge_detection):
7304 * xfaces.c (may_use_scalable_font_p):
7305 Remove obsolete static declarations.
7306
7307 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
7308
7309 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7310 (emacs_blocked_realloc, uninterrupt_malloc):
7311 * fringe.c (w32_reset_fringes):
7312 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7313 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7314 * sound.c (be2hs, do_play_sound):
7315 * vm-limit.c (get_lim_data, ret_lim_data):
7316 * w32term.c (x_free_frame_resources):
7317 * xfaces.c (x_create_gc, x_free_gc):
7318 Convert definitions to standard C.
7319
7320 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7321
7322 * eval.c (Feval, Ffuncall): Use the new names.
7323
7324 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7325 (DEFUN): Add braces around the union initialisation and use ## to
7326 specify the right union alternative and avoid a cast.
7327
7328 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
7329
7330 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7331
7332 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
7333
7334 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7335
7336 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7337
7338 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7339 is related to the menu bar (Bug#6499).
7340 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
7341
7342 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7343
7344 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7345
7346 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7347
7348 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7349 i.e. don't put back ButtonRelease (Bug#6608).
7350
7351 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7352 instead of Window. Call xg_event_is_for_menubar when
7353 USE_GTK (Bug#6499).
7354
7355 * gtkutil.h (xg_event_is_for_menubar): Declare.
7356
7357 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7358
7359 2010-07-16 Eli Zaretskii <eliz@gnu.org>
7360
7361 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7362 when it's the same as the old foreground. (Bug#6609)
7363
7364 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7365
7366 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7367 widget is non-null (Bug#6645).
7368
7369 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7370
7371 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7372 Convert old-style definition.
7373
7374 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7375 timestamp argument.
7376
7377 2010-07-15 Eli Zaretskii <eliz@gnu.org>
7378
7379 * fringe.c (update_window_fringes): Restore mistakenly reverted
7380 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7381
7382 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7383
7384 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7385 (SET_SAVED_KEY_EVENT): Remove (not used).
7386 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7387 remove size parameter.
7388 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7389 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7390 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7391 ButtonRelease.
7392 (x_set_window_size_1): scroll_bar_actual_width is always
7393 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7394
7395 * xdisp.c (pending_menu_activation): Remove extern declaration.
7396 (prepare_menu_bars): Remove setting of pending_menu_activation.
7397
7398 * xmenu.c (pending_menu_activation): Remove.
7399 (x_activate_menubar): Set popup_activated_flag for Xt also.
7400 Remove setting of pending_menu_activation.
7401 (set_frame_menubar): Remove check of pending_menu_activation.
7402 Declare menubar_size before code. Correct spelling in comment.
7403
7404 2010-07-14 Kenichi Handa <handa@m17n.org>
7405
7406 * font.c (font_open_entity): Cancel previous change.
7407 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7408
7409 2010-07-13 Eli Zaretskii <eliz@gnu.org>
7410
7411 Remove subprocesses #ifdefs.
7412 * process.c <inhibit_sentinels>: Move to the common part.
7413 (Fwaiting_for_user_input_p): Move to the common part; return nil
7414 if async subprocesses aren't supported.
7415 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7416 MS-DOS. Remove "#ifdef subprocesses".
7417 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7418 (gettimeofday): Remove "#ifdef subprocesses".
7419 (wait_without_blocking): Remove function.
7420 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7421 Remove "#ifdef subprocesses".
7422 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7423 compiled on MS-DOS.
7424 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7425 wait_for_termination on MS-DOS.
7426 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7427 initialization of inhibit_sentinels.
7428 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7429 subprocesses" conditional.
7430 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7431 wait_for_termination, since `buffer' cannot be an integer when
7432 async subprocesses are not supported
7433 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7434 for ifdefing away the call to Fprocess_status.
7435
7436 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7437 away the entire body of the function.
7438
7439 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7440
7441 Remove subprocesses #ifdefs from term.c.
7442 * process.c (add_keyboard_wait_descriptor)
7443 (delete_keyboard_wait_descriptor): Move to common section, do
7444 nothing when subprocesses is not defined.
7445 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7446 Remove subprocesses #ifdefs.
7447
7448 Convert maybe_fatal to standard C.
7449 * lisp.h (verror): Declare.
7450 * eval.c (verror): New function containing the code from ...
7451 (error): ... this. Call verror.
7452 * term.c (vfatal): New function containing the code from ...
7453 (fatal): ... this. Call vfatal.
7454 (maybe_fatal): Convert to standard C, use variable number of
7455 arguments. Declare as non-return.
7456 (init_tty): Fix maybe_fatal call.
7457
7458 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7459
7460 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7461 (_scroll_bar_note_movement): Convert definitions to standard C.
7462 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7463 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7464
7465 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7466
7467 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7468 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7469 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7470 (xaw_jump_callback, xaw_scroll_callback)
7471 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7472 (x_wm_set_size_hint, x_activate_timeout_atimer):
7473 Convert definitions to standard C.
7474 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7475 (popup_activate_callback, popup_deactivate_callback)
7476 (menu_highlight_callback, menubar_selection_callback)
7477 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7478 (free_frame_menubar, popup_selection_callback, as)
7479 (create_and_show_popup_menu, dialog_selection_callback)
7480 (create_and_show_dialog):
7481 * xfns.c (hack_wm_protocols, x_window):
7482 * xfaces.c (x_update_menu_appearance):
7483 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7484 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7485 (set_frame_size, update_wm_hints, setup_frame_gcs)
7486 (update_various_frame_slots, update_from_various_frame_slots)
7487 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7488 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7489 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7490
7491 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7492
7493 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7494
7495 2010-07-12 Eli Zaretskii <eliz@gnu.org>
7496
7497 * process.c (setup_process_coding_systems): Move to the part
7498 shared by non-subprocesses systems, and make its body empty when
7499 subprocesses is not defined.
7500 (close_process_descs): Move to the part shared by non-subprocesses
7501 systems.
7502 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7503 ANSI C.
7504
7505 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7506
7507 * editfns.c (transpose_markers): Convert old-style definition.
7508 * emacs.c (abort, shut_down_emacs, fixup_locale)
7509 (synchronize_system_time_locale)
7510 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7511 * floatfns.c (extract_float, matherr, init_floatfns)
7512 (syms_of_floatfns): Likewise.
7513 * fns.c (make_hash_table): Likewise.
7514 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7515 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7516 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7517 (ftfont_variation_glyphs): Likewise.
7518 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7519 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7520 * lread.c (read_filtered_event): Likewise.
7521 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7522 * process.c (wait_reading_process_output): Likewise.
7523 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7524 * search.c (search_buffer, boyer_moore): Likewise.
7525 * syntax.c (scan_sexps_forward): Likewise.
7526 * xdisp.c (try_scrolling): Likewise.
7527 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7528 (face_at_string_position): Likewise.
7529 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7530 * xselect.c (x_get_window_property, receive_incremental_selection)
7531 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7532 Likewise.
7533 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7534
7535 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7536
7537 * callproc.c (child_setup): Remove subprocesses conditional.
7538 Remove code dealing with SET_EMACS_PRIORITY, unused.
7539
7540 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7541 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7542
7543 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7544 (__do_global_dtors, __main): Use void in definition.
7545 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7546 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7547 the only users from ...
7548 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7549 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7550 (HAVE_VOLATILE): Remove, unused.
7551
7552 Convert more function definitions to standard C.
7553 * xdisp.c (window_box_edges, handle_single_display_spec)
7554 (display_string): Convert definition to standard C.
7555 * scroll.c (do_direct_scrolling, scrolling_1):
7556 * dispnew.c (allocate_matrices_for_frame_redisplay)
7557 (mirrored_line_dance):
7558 * coding.c (code_convert_string):
7559 * charset.c (map_charset_chars):
7560 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7561 (Fregister_ccl_program, Fregister_code_conversion_map):
7562 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7563 (head_table): Make static and const.
7564
7565 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7566
7567 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7568 (PROFILING_LDFLAGS): Set from substitution.
7569 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7570 CFLAGS last.
7571
7572 2010-07-12 Kenichi Handa <handa@m17n.org>
7573
7574 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7575 (shortlisp): Likewise.
7576
7577 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7578
7579 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7580 of FONT_ENTITY_INDEX.
7581 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7582 property, get the property value dynamically.
7583 (Ffont_put): Accept font-entity and font-object too.
7584 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
7585 return value changed.
7586 (syms_of_font): Adjust for the above change.
7587
7588 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7589
7590 * blockinput.h: Remove obsolete comment.
7591
7592 * lisp.h: Include <stddef.h>.
7593 (OFFSETOF): Don't define.
7594 (VECSIZE): Use offsetof instead of OFFSETOF.
7595 (PSEUDOVECSIZE): Likewise.
7596 * process.c (conv_sockaddr_to_lisp): Likewise.
7597 * alloc.c: Don't include <stddef.h>.
7598 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7599
7600 * process.c: Remove obsolete comment.
7601
7602 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
7603
7604 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7605
7606 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7607
7608 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7609 index, rindex.
7610 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7611 * editfns.c (Fuser_full_name, Fformat): Likewise.
7612 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7613 * fileio.c (Ffile_symlink_p): Likewise.
7614 * filelock.c (current_lock_owner): Likewise.
7615 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7616 * fontset.c (fontset_pattern_regexp): Likewise.
7617 * lread.c (read1): Likewise.
7618 * sysdep.c (init_system_name): Likewise.
7619 * xfns.c (select_visual): Likewise.
7620 * s/hpux10-20.h (index, rindex): Don't define.
7621 * s/ms-w32.h (index): Likewise.
7622 * s/usg5-4.h: Likewise.
7623
7624 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7625
7626 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7627 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7628 (egetenv): Likewise.
7629 * doprnt.c (doprnt): Likewise.
7630 * editfns.c (set_time_zone_rule, format2): Likewise.
7631 * emacs.c (decode_env_path): Likewise.
7632 * eval.c (signal_error, error): Likewise.
7633 * insdel.c (replace_range_2): Likewise.
7634 * keyboard.c (cmd_error_internal): Likewise.
7635 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7636 * print.c (write_string, write_string_1, print_error_message):
7637 Likewise.
7638 * vm-limit.c (warn_function, memory_warnings): Likewise.
7639 * xdisp.c (message1, message1_nolog, message_with_string)
7640 (vmessage, message, message_nolog): Likewise.
7641 * emacs.c: Remove duplicate declaration.
7642 * keyboard.h: Likewise.
7643 * lisp.h: Update prototypes.
7644
7645 * eval.c: Fix indentation problem.
7646
7647 * keyboard.c: Include "process.h".
7648
7649 * eval.c: Remove obsolete noinline declaration.
7650 * fns.c: Likewise.
7651
7652 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7653
7654 * doprnt.c (doprnt): Take a va_list argument instead of count and
7655 pointer.
7656 * eval.c (error): Change to a standard-C variadic function.
7657 * xdisp.c (vmessage): Rename from message, made static, and
7658 changed to take a va_list argument.
7659 (message): New variadic wrapper.
7660 (message_nolog): Now a variadic function, calling vmessage.
7661 * lisp.h: Include stdarg.h for va_list.
7662 (doprnt, error, message, message_nolog): Decls updated.
7663
7664 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7665
7666 * process.c (syms_of_process) <delete-exited-processes>: Define
7667 even if !subprocesses.
7668 (delete_exited_processes): Ditto.
7669
7670 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7671 (delete_exited_processes): Don't define.
7672
7673 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7674
7675 * frame.c (make_frame): Initialize menu_bar_lines and
7676 tool_bar_lines members.
7677 (make_initial_frame, make_terminal_frame):
7678 Initialize menu_bar_lines using value of menu-bar-mode.
7679
7680 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7681
7682 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7683
7684 * process.c: Reshuffle #include's. Condition some of the global
7685 and static variables on `subprocesses'.
7686 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7687 Leave only one implementation.
7688 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7689 (kill_buffer_processes, Flist_system_processes)
7690 (Fprocess_attributes, init_process, syms_of_process): Unify the
7691 implementations for with subprocesses and without them.
7692
7693 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7694
7695 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7696 correct size for Motif.
7697 (free_frame_menubar): Call x_set_window_size to update frame size.
7698
7699 * xfns.c (x_window): Set borderWidth to 0 for pane and
7700 EmacsFrame. Frame size calculation is wrong otherwise.
7701
7702 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7703
7704 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7705 allows to suppress errors when polling in Emacs' main loop.
7706 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7707 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7708 (Fdbus_method_error_internal, Fdbus_send_signal)
7709 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7710 (Fdbus_register_method): Use it. (Bug#6579)
7711
7712 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7713
7714 * alloc.c: Convert DEFUNs to standard C.
7715 * buffer.c:
7716 * bytecode.c:
7717 * callint.c:
7718 * callproc.c:
7719 * casefiddle.c:
7720 * casetab.c:
7721 * category.c:
7722 * character.c:
7723 * charset.c:
7724 * chartab.c:
7725 * cmds.c:
7726 * coding.c:
7727 * composite.c:
7728 * data.c:
7729 * dbusbind.c:
7730 * dired.c:
7731 * dispnew.c:
7732 * doc.c:
7733 * dosfns.c:
7734 * editfns.c:
7735 * emacs.c:
7736 * eval.c:
7737 * fileio.c:
7738 * filelock.c:
7739 * floatfns.c:
7740 * fns.c:
7741 * font.c:
7742 * fontset.c:
7743 * frame.c:
7744 * fringe.c:
7745 * image.c:
7746 * indent.c:
7747 * insdel.c:
7748 * keyboard.c:
7749 * keymap.c:
7750 * lread.c:
7751 * macros.c:
7752 * marker.c:
7753 * menu.c:
7754 * minibuf.c:
7755 * msdos.c:
7756 * nsfns.m:
7757 * nsmenu.m:
7758 * nsselect.m:
7759 * print.c:
7760 * process.c:
7761 * search.c:
7762 * sound.c:
7763 * syntax.c:
7764 * term.c:
7765 * terminal.c:
7766 * textprop.c:
7767 * undo.c:
7768 * w16select.c:
7769 * w32console.c:
7770 * w32fns.c:
7771 * w32font.c:
7772 * w32menu.c:
7773 * w32proc.c:
7774 * w32select.c:
7775 * window.c:
7776 * xdisp.c:
7777 * xfaces.c:
7778 * xfns.c:
7779 * xmenu.c:
7780 * xselect.c:
7781 * xsettings.c:
7782 * xsmfns.c: Likewise.
7783
7784 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7785
7786 * process.c (kbd_is_on_hold, hold_keyboard_input)
7787 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7788
7789 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7790
7791 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7792 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7793 unless USE_LUCID.
7794
7795 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7798 declaration.
7799
7800 Clean up include guards.
7801 * tparam.c: Remove include guards for config.h, string.h and code
7802 that assumes #ifndef emacs.
7803 * termcap.c:
7804 * unexalpha.c:
7805 * sysdep.c:
7806 * filemode.c:
7807 * filelock.c:
7808 * bidi.c: Likewise.
7809
7810 Remove prefix-args.c
7811 * prefix-args.c: Remove file.
7812 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7813 * Makefile.in (temacs${EXEEXT}): Remove references to
7814 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7815 (mostlyclean): Remove reference to prefix-args.
7816 (prefix-args): Remove.
7817
7818 Simplify cstart_of_data, start_of_code and related code.
7819 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7820 (start_of_data): Merge into start_of_data function.
7821 * sysdep.c (start_of_text): Remove. Move simplified versions of
7822 it in the only users: unexaix.c and unexec.c.
7823 (read_input_waiting): Remove local declaration of quit_char.
7824 (start, etext): Remove declarations.
7825 (start_of_data): Merge with the version in mem-limits.h and move
7826 to vm-limits.c.
7827 * vm-limit.c (start_of_data): Merged and simplified version of the
7828 code formerly in mem-limits.h and sysdep.c.
7829 * unexec.c (start): New declaration, moved from sysdep.c.
7830 (start_of_text): Simplified version of the code formerly in sysdep.c.
7831 * unexaix.c (start_of_text): Simplified version of the code
7832 formerly in sysdep.c.
7833 * m/alpha.h (HAVE_TEXT_START): Remove.
7834 (TEXT_START): Move ...
7835 * unexalpha.c (TEXT_START): ... here.
7836 * s/hpux10-20.h (TEXT_START): Remove.
7837 * s/darwin.h (TEXT_START):
7838 * m/mips.h (TEXT_START):
7839 * m/macppc.h (HAVE_TEXT_START):
7840 * m/m68k.h (TEXT_START):
7841 * m/iris4d.h (TEXT_START):
7842 * m/intel386.h (TEXT_START):
7843 * m/ibmrs6000.h (TEXT_START):
7844 * m/ia64.h (HAVE_TEXT_START):
7845 * s/msdos.h (TEXT_START): Likewise.
7846
7847 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7848
7849 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7850 (overrun_check_free, xstrdup, allocate_string)
7851 (allocate_string_data, compact_small_strings, Fmake_string)
7852 (make_unibyte_string, make_multibyte_string)
7853 (make_string_from_bytes, make_specified_string, make_float)
7854 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7855 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7856 memcpy, memmove, memset, memcmp.
7857 * atimer.c (start_atimer, set_alarm): Likewise.
7858 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7859 (mmap_realloc, init_buffer_once): Likewise.
7860 * callint.c (Fcall_interactively): Likewise.
7861 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7862 (getenv_internal_1): Likewise.
7863 * casefiddle.c (casify_object): Likewise.
7864 * ccl.c (ccl_driver): Likewise.
7865 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7866 * charset.c (load_charset_map_from_file)
7867 (load_charset_map_from_file, load_charset_map_from_vector)
7868 (Fdefine_charset_internal): Likewise.
7869 * cm.c (Wcm_clear): Likewise.
7870 * coding.c (decode_eol, decode_coding_object)
7871 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7872 * data.c (Faset): Likewise.
7873 * dired.c (directory_files_internal, file_name_completion_stat):
7874 Likewise.
7875 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7876 (clear_glyph_row, copy_row_except_pointers)
7877 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7878 (save_current_matrix, restore_current_matrix)
7879 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7880 (mirror_line_dance, scrolling_window): Likewise.
7881 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7882 Likewise.
7883 * doprnt.c (doprnt): Likewise.
7884 * editfns.c (Fuser_full_name, make_buffer_string_both)
7885 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7886 * emacs.c (sort_args): Likewise.
7887 * eval.c (Fapply, Ffuncall): Likewise.
7888 * fileio.c (Ffile_name_directory, make_temp_name)
7889 (Fexpand_file_name, search_embedded_absfilename)
7890 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7891 (auto_save_error): Likewise.
7892 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7893 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7894 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7895 (Fmake_hash_table): Likewise.
7896 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7897 * ftfont.c (ftfont_text_extents): Likewise.
7898 * getloadavg.c (getloadavg): Likewise.
7899 * image.c (define_image_type, make_image, make_image_cache)
7900 (x_create_x_image_and_pixmap, xbm_image_p)
7901 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7902 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7903 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7904 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7905 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7906 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7907 Likewise.
7908 * indent.c (scan_for_column, compute_motion): Likewise.
7909 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7910 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7911 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7912 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7913 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7914 (store_user_signal_events, menu_bar_items, tool_bar_items)
7915 (process_tool_bar_item, append_tool_bar_item)
7916 (read_char_minibuf_menu_prompt, read_key_sequence)
7917 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7918 Likewise.
7919 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7920 Likewise.
7921 * lisp.h (STRING_COPYIN): Likewise.
7922 * lread.c (Fload, read1, oblookup): Likewise.
7923 * msdos.c (Frecent_doskeys): Likewise.
7924 * nsfns.m (Fx_create_frame): Likewise.
7925 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7926 Likewise.
7927 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7928 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7929 Likewise.
7930 * nsmenu.m (ns_update_menubar): Likewise.
7931 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7932 * print.c (print_unwind, printchar, strout, print_string)
7933 (print_error_message): Likewise.
7934 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7935 (Fmake_network_process, Fnetwork_interface_list)
7936 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7937 (init_process): Likewise.
7938 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7939 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7940 Likewise.
7941 * scroll.c (do_scrolling, do_direct_scrolling)
7942 (scrolling_max_lines_saved): Likewise.
7943 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7944 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7945 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7946 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7947 (emacs_set_tty): Likewise.
7948 * term.c (encode_terminal_code, calculate_costs)
7949 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7950 Likewise.
7951 * termcap.c (tgetst1, gobble_line): Likewise.
7952 * termhooks.h (EVENT_INIT): Likewise.
7953 * tparam.c (tparam1): Likewise.
7954 * unexalpha.c (unexec): Likewise.
7955 * unexec.c (write_segment): Likewise.
7956 * unexmacosx.c (unexec_write_zero): Likewise.
7957 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7958 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7959 * w32font.c (w32font_list_family, w32font_text_extents)
7960 (w32font_list_internal, w32font_match_internal)
7961 (w32font_open_internal, compute_metrics, Fx_select_font):
7962 Likewise.
7963 * w32menu.c (set_frame_menubar, add_menu_item)
7964 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7965 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7966 * w32uniscribe.c (uniscribe_list_family): Likewise.
7967 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7968 * window.c (make_window, replace_window, set_window_buffer)
7969 (Fsplit_window): Likewise.
7970 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7971 (add_to_log, message3, x_consider_frame_title)
7972 (append_space_for_newline, extend_face_to_end_of_line)
7973 (decode_mode_spec_coding, init_glyph_string): Likewise.
7974 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7975 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7976 (face_attr_equal_p, make_realized_face, make_face_cache)
7977 (free_realized_faces, lookup_named_face, smaller_face)
7978 (face_with_height, lookup_derived_face)
7979 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7980 (Finternal_set_font_selection_order, realize_default_face)
7981 (compute_char_face, face_at_buffer_position)
7982 (face_for_overlay_string, face_at_string_position, merge_faces):
7983 Likewise.
7984 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7985 (Fx_window_property, x_create_tip_frame)
7986 (Fx_backspace_delete_keys_p): Likewise.
7987 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7988 (xfont_text_extents): Likewise.
7989 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7990 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7991 * xselect.c (x_queue_event, x_get_window_property)
7992 (receive_incremental_selection): Likewise.
7993 * xsmfns.c (x_session_check_input): Likewise.
7994 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7995 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7996 Likewise.
7997 * character.h (BCOPY_SHORT): Remove.
7998 * config.in: Regenerate.
7999 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
8000 * emacs.c (main) [PROFILING]: Don't declare
8001 dump_opcode_frequencies.
8002 * lisp.h (safe_bcopy): Remove declaration.
8003 (memset) [!HAVE_MEMSET]: Declare.
8004 (memcpy) [!HAVE_MEMCPY]: Likewise.
8005 (memmove) [!HAVE_MEMMOVE]: Likewise.
8006 (memcmp) [!HAVE_MEMCMP]: Likewise.
8007 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
8008 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
8009 Don't define.
8010 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
8011 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
8012 (BCOPY_DOWNWARD_SAFE): Don't define.
8013 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
8014 (memcpy) [!HAVE_MEMCPY]: Define.
8015 (memmove) [!HAVE_MEMMOVE]: Define.
8016 (memcmp) [!HAVE_MEMCMP]: Define.
8017
8018 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
8019
8020 * process.c (kbd_is_on_hold): New variable.
8021 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
8022 New functions.
8023 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
8024 select on empty input mask.
8025 (init_process): Initialize kbd_is_on_hold to 0.
8026
8027 * process.h (hold_keyboard_input, unhold_keyboard_input)
8028 (kbd_on_hold_p): Declare.
8029
8030 * keyboard.c (input_available_signal): Declare.
8031 (kbd_buffer_nr_stored): New function.
8032 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
8033 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
8034 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
8035 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
8036 (tty_read_avail_input): If input is on hold, return.
8037 Don't read more that free slots in kbd_buffer (Bug#6571).
8038
8039 2010-07-07 Eli Zaretskii <eliz@gnu.org>
8040
8041 * msdos.h:
8042 * msdos.c:
8043 * dosfns.c:
8044 * w16select.c: Convert function definitions to ANSI C.
8045
8046 * msdos.h (ctrl_break_func, install_ctrl_break_check):
8047 Remove unused prototypes.
8048
8049 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8050
8051 * coding.c, sysdep.c: Convert some more functions to standard C.
8052
8053 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8054
8055 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
8056 (encode_coding_object): Use SPECPDL_INDEX.
8057 (syms_of_coding): Use DOS_NT.
8058
8059 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
8060
8061 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
8062
8063 Make the function member of Lisp_Subr use standard C prototypes.
8064 * lisp.h (struct Lisp_Subr): Use a union for the function member.
8065 (DECL_ALIGN): Add a cast for the function.
8066 * eval.c (Feval, Ffuncall): Use the proper type for each type
8067 function call.
8068
8069 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
8070
8071 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
8072 fringe face id, so face-remapping-alist works (Bug#6091).
8073
8074 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
8075
8076 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
8077 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
8078 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
8079
8080 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
8081
8082 * xterm.c (x_get_keysym_name): Change type of parameter to int.
8083 * lisp.h: Declare x_get_keysym_name.
8084 * keyboard.c (modify_event_symbol): Don't declare
8085 x_get_keysym_name here.
8086
8087 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
8088
8089 * ecrt0.c: Revert conversion to standard C.
8090
8091 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8092
8093 * vm-limit.c (memory_warnings):
8094 * keyboard.c (modify_event_symbol):
8095 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
8096 (round2, emacs_rint):
8097 * process.c (send_process, old_sigpipe): Convert function
8098 definitions and declarations to standard C.
8099
8100 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
8101
8102 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
8103 * xdisp.c: Convert function definitions to standard C.
8104
8105 * cm.c (cmputc): Arg C is now int, not char.
8106 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
8107
8108 2010-07-05 James Cloos <cloos@jhcloos.com>
8109
8110 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
8111
8112 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
8113 _NET_WM_ICON_NAME atoms.
8114
8115 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
8116 and _NET_WM_ICON_NAME properties, too, matching what is
8117 done in the Gtk+ case.
8118
8119 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
8120
8121 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
8122
8123 * xsmfns.c (SSDATA): New macro.
8124 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
8125 passed to strlen/strcpy/strcat.
8126 (create_client_leader_window): Surround with #ifndef USE_GTK.
8127 Cast 7:th arg to XChangeProperty to (unsigned char *).
8128
8129 * xsettings.c (something_changedCB, parse_settings)
8130 (apply_xft_settings): Reformat prototype.
8131 (something_changedCB, init_gconf): Remove unused variable i.
8132 (read_settings): Remove unused variable long_len.
8133
8134 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
8135 (xg_get_image_for_pixmap, create_dialog)
8136 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
8137 (menuitem_highlight_callback, make_menu_item)
8138 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
8139 (xg_create_scroll_bar, xg_update_scrollbar_pos)
8140 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
8141 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
8142 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
8143 (xg_tool_bar_item_expose_callback): Reformat prototype.
8144 (xg_update_menubar): GList *group => GSList *group.
8145 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
8146 before use.
8147 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
8148 to GTK_IMAGE (wimage).
8149
8150 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8151
8152 * atimer.c: Use "" instead of <> for local includes for
8153 consistency with the rest of the code.
8154
8155 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
8156 * xrdb.c (get_system_name):
8157 * window.c (shrink_windows):
8158 * syntax.c (forw_comment):
8159 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
8160 (ins_del_costs):
8161 * mem-limits.h (start_of_data):
8162 * lread.c (readevalloop):
8163 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
8164 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
8165 * frame.c (x_get_focus_frame):
8166 * floatfns.c (fmod_float):
8167 * fileio.c (choose_write_coding_system):
8168 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
8169 (malloc_initialize_hook, sort_args, synchronize_locale):
8170 * doprnt.c (doprnt):
8171 * dired.c (compile_pattern):
8172 * data.c (fmod_float):
8173 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
8174 (map_char_table_for_charset):
8175 * charset.c (define_charset_internal):
8176 * alloc.c (Fgarbage_collect): Convert declarations or definitions
8177 to standard C.
8178
8179 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
8180 Stefan Monnier <monnier@iro.umontreal.ca>
8181
8182 * lread.c (read1): Fix up last change to not mess up `c'.
8183
8184 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8185
8186 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
8187
8188 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8189
8190 Fix prototypes.
8191
8192 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
8193 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
8194 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
8195 arg, as required by internal_condition_case_1.
8196 * print.c (strout): Use const char* for arg PTR.
8197 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
8198 (analyse_first): Fix "const const".
8199 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
8200 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
8201 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
8202
8203 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
8204
8205 * alloc.c: Convert function definitions to standard C.
8206 * atimer.c:
8207 * bidi.c:
8208 * bytecode.c:
8209 * callint.c:
8210 * callproc.c:
8211 * casefiddle.c:
8212 * casetab.c:
8213 * category.c:
8214 * ccl.c:
8215 * character.c:
8216 * charset.c:
8217 * chartab.c:
8218 * cmds.c:
8219 * coding.c:
8220 * composite.c:
8221 * data.c:
8222 * dbusbind.c:
8223 * dired.c:
8224 * dispnew.c:
8225 * doc.c:
8226 * doprnt.c:
8227 * ecrt0.c:
8228 * editfns.c:
8229 * fileio.c:
8230 * filelock.c:
8231 * filemode.c:
8232 * fns.c:
8233 * font.c:
8234 * fontset.c:
8235 * frame.c:
8236 * fringe.c:
8237 * ftfont.c:
8238 * ftxfont.c:
8239 * gtkutil.c:
8240 * indent.c:
8241 * insdel.c:
8242 * intervals.c:
8243 * keymap.c:
8244 * lread.c:
8245 * macros.c:
8246 * marker.c:
8247 * md5.c:
8248 * menu.c:
8249 * minibuf.c:
8250 * prefix-args.c:
8251 * print.c:
8252 * ralloc.c:
8253 * regex.c:
8254 * region-cache.c:
8255 * scroll.c:
8256 * search.c:
8257 * sound.c:
8258 * strftime.c:
8259 * syntax.c:
8260 * sysdep.c:
8261 * termcap.c:
8262 * terminal.c:
8263 * terminfo.c:
8264 * textprop.c:
8265 * tparam.c:
8266 * undo.c:
8267 * unexelf.c:
8268 * window.c:
8269 * xfaces.c:
8270 * xfns.c:
8271 * xfont.c:
8272 * xftfont.c:
8273 * xgselect.c:
8274 * xmenu.c:
8275 * xrdb.c:
8276 * xselect.c:
8277 * xsettings.c:
8278 * xsmfns.c:
8279 * xterm.c: Likewise.
8280
8281 2010-07-03 Eli Zaretskii <eliz@gnu.org>
8282
8283 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8284 frames other than the initial one. Fix reversal of colors when
8285 `reverse' is specified in the frame parameters.
8286 Call update_face_from_frame_parameter instead of
8287 internal-set-lisp-face-attribute. Initialize screen colors from
8288 initial_screen_colors[] when f->default_face_done_p is zero,
8289 instead of depending on being called with default-frame-alist as
8290 the alist argument.
8291
8292 * xfaces.c (update_face_from_frame_parameter): Move out of
8293 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8294 with HAVE_WINDOW_SYSTEM.
8295
8296 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8297 to menu-bar-mode, if not set in the frame parameters or in
8298 default-frame-alist.
8299
8300 * w32console.c (sys_tputs): Adjust argument list to prototype in
8301 term.c.
8302
8303 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
8304
8305 * lisp.h (memory_warnings): Fix prototype.
8306
8307 * cm.h (evalcost): Fix prototype.
8308
8309 * cm.c (evalcost): Fix arg type.
8310
8311 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8312
8313 * term.c (term_clear_mouse_face, Fidentity):
8314 * syssignal.h (signal_handler_t):
8315 * lisp.h (memory_warnings):
8316 * coding.h (preferred_coding_system):
8317 * cm.h (evalcost):
8318 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8319
8320 2010-07-02 Eli Zaretskii <eliz@gnu.org>
8321
8322 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8323 from prototypes.
8324
8325 * msdos.h (load_pixmap): Don't define away.
8326
8327 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8328
8329 * lisp.h:
8330 * atimer.h: Remove define for P_.
8331
8332 * alloc.c: Remove __P and P_ from .c and .m files.
8333 * atimer.c:
8334 * buffer.c:
8335 * callint.c:
8336 * category.c:
8337 * charset.c:
8338 * chartab.c:
8339 * cm.c:
8340 * coding.c:
8341 * composite.c:
8342 * data.c:
8343 * dired.c:
8344 * dispnew.c:
8345 * doc.c:
8346 * editfns.c:
8347 * emacs.c:
8348 * eval.c:
8349 * fileio.c:
8350 * filelock.c:
8351 * fns.c:
8352 * font.c:
8353 * fontset.c:
8354 * frame.c:
8355 * ftfont.c:
8356 * ftxfont.c:
8357 * gmalloc.c:
8358 * gtkutil.c:
8359 * image.c:
8360 * indent.c:
8361 * intervals.c:
8362 * keyboard.c:
8363 * keymap.c:
8364 * lread.c:
8365 * marker.c:
8366 * menu.c:
8367 * minibuf.c:
8368 * print.c:
8369 * process.c:
8370 * scroll.c:
8371 * search.c:
8372 * sound.c:
8373 * strftime.c:
8374 * syntax.c:
8375 * sysdep.c:
8376 * term.c:
8377 * terminal.c:
8378 * textprop.c:
8379 * unexalpha.c:
8380 * w32console.c:
8381 * w32fns.c:
8382 * w32font.c:
8383 * w32menu.c:
8384 * w32term.c:
8385 * w32uniscribe.c:
8386 * window.c:
8387 * xdisp.c:
8388 * xfaces.c:
8389 * xfns.c:
8390 * xfont.c:
8391 * xftfont.c:
8392 * xmenu.c:
8393 * xselect.c:
8394 * xterm.c: Likewise.
8395
8396 Remove P_ and __P macros.
8397 * atimer.h: Remove P_ and __P macros.
8398 * buffer.h:
8399 * category.h:
8400 * ccl.h:
8401 * character.h:
8402 * charset.h:
8403 * cm.h:
8404 * coding.h:
8405 * composite.h:
8406 * dispextern.h:
8407 * disptab.h:
8408 * dosfns.h:
8409 * font.h:
8410 * fontset.h:
8411 * frame.h:
8412 * gtkutil.h:
8413 * indent.h:
8414 * intervals.h:
8415 * keyboard.h:
8416 * keymap.h:
8417 * lisp.h:
8418 * macros.h:
8419 * md5.h:
8420 * menu.h:
8421 * msdos.h:
8422 * nsterm.h:
8423 * puresize.h:
8424 * region-cache.h:
8425 * syntax.h:
8426 * syssignal.h:
8427 * systime.h:
8428 * termhooks.h:
8429 * w32font.h:
8430 * w32term.h:
8431 * widget.h:
8432 * window.h:
8433 * xgselect.h:
8434 * xsettings.h:
8435 * xterm.h: Likewise.
8436
8437 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8438
8439 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8440
8441 Cleanup old code.
8442 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8443 * syssignal.h: Remove code for Lynx, not supported anymore.
8444 * vm-limit.c: Remove unused code the depends on emacs not being
8445 defined and NO_LIM_DATA being defined.
8446 * mem-limits.h: Remove dead code.
8447
8448 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8449
8450 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8451
8452 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8453 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8454
8455 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8456 parameters, they are already absolute.
8457
8458 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8459 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8460
8461 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8462
8463 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8464 Update FRAME_TOOLBAR_HEIGHT.
8465
8466 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8467 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8468
8469 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
8470
8471 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8472 Don't check default-frame-alist.
8473
8474 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8475
8476 * process.c (create_process): Avoid using invalid file descriptors.
8477
8478 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8479
8480 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8481
8482 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8483 Improve documentation. Return font regardless of use_system_font.
8484 (syms_of_xsettings): Improve documentation for font-use-system-font.
8485
8486 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
8487
8488 * xfaces.c (realize_face): Garbage the frame if a face is removed
8489 (Bug#6593).
8490
8491 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8492
8493 * keyboard.c: Remove duplicate <setjmp.h>.
8494 (read_key_sequence): Remove volatile qualifiers.
8495
8496 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8497
8498 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8499 (struct glyph_row): New members left_fringe_offset and
8500 right_fringe_offset.
8501
8502 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8503 specially.
8504 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8505 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8506
8507 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8508 Take account of bitmap offset.
8509 (draw_window_fringes): Take account of window vscroll.
8510 (update_window_fringes): Likewise. Extend top-aligned top indicator
8511 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8512 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8513 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8514
8515 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8516
8517 * w32fns.c (Qtooltip): Declare.
8518 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8519
8520 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8521
8522 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8523 grab on just Press (Bug#6499).
8524
8525 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
8526
8527 * frame.c (Qtooltip): New var.
8528 (delete_frame): Use it. Fix faulty if statement. Don't update
8529 mode line for tooltip frames. Suggested by Martin Rudalics.
8530
8531 * xfns.c (x_create_tip_frame):
8532 * w32fns.c (x_create_tip_frame): Use it.
8533
8534 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8535
8536 * xftfont.c (xftfont_open): Check font width one by one also when
8537 spacing is dual.
8538
8539 * ftfont.c (ftfont_open): Ditto.
8540
8541 2010-06-30 Glenn Morris <rgm@gnu.org>
8542
8543 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8544
8545 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8546
8547 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8548 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8549 * s/darwin.h (SYSTEM_MALLOC):
8550 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8551
8552 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8553
8554 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8555 (ns_get_screen): Don't assign integer to f.
8556 (Fx_display_color_cells): Declarations before statements.
8557
8558 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8559
8560 * xfns.c (x_default_font_parameter): Remove got_from_system
8561 (Bug#6526).
8562
8563 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8564 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8565 New defines based on what configure finds.
8566
8567 * xterm.c (XTflash): Use gtk_widget_get_window.
8568 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8569 gtk_adjustment_get_page_size.
8570 (handle_one_xevent): Use gtk_widget_get_mapped.
8571 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8572 messages.
8573
8574 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8575
8576 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8577 HAVE_GTK_FILE_SELECTION_NEW.
8578
8579 * gtkutil.c (xg_display_open, xg_display_close):
8580 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8581 (xg_display_open): Return type is void.
8582 (gtk_widget_set_has_window)
8583 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8584 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8585 (gtk_adjustment_set_page_increment)
8586 (gtk_adjustment_get_step_increment): #define these if not found
8587 by configure.
8588 (remove_submenu): New define based on Gtk+ version.
8589 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8590 Use gtk_widget_get_window.
8591 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8592 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8593 (create_dialog): Use gtk_dialog_get_action_area and
8594 gtk_dialog_get_content_area.
8595 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8596 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8597 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8598 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8599 Use g_object_ref and g_object_unref.
8600 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8601 Use gtk_widget_get_sensitive.
8602 (xg_update_submenu): Use remove_submenu.
8603 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8604 properties instead to get old x and y position.
8605 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8606 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8607 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8608 (xg_get_tool_bar_widgets): New function.
8609 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8610 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8611 (toolbar_set_orientation): New #define based on if configure
8612 finds gtk_orientable_set_orientation.
8613 (xg_create_tool_bar): Call toolbar_set_orientation.
8614 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8615 instead of gtk_box_pack_start_defaults.
8616
8617 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
8618
8619 * cmds.c (Fdelete_backward_char): Move into Lisp.
8620
8621 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8622
8623 * s/freebsd.h (BSD4_2): Remove redundant definition.
8624 bsd-common.h defines it already.
8625
8626 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
8627
8628 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8629 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8630 tool-bar-mode, which are now set using these X resources at
8631 startup, to determine the defaults (Bug#2249).
8632
8633 * w32fns.c (Fx_create_frame):
8634 * nsfns.m (Fx_create_frame): Likewise.
8635
8636 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8637
8638 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8639
8640 * gtkutil.c (xg_update_scrollbar_pos):
8641 Avoid C99 mid-block variable declaration.
8642
8643 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8644
8645 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8646
8647 * gtkutil.h (xg_show_scroll_bar): Remove.
8648
8649 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8650 if height is less than scroll bar min size.
8651 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8652
8653 * xfns.c (x_default_font_parameter): Try to open font from system
8654 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8655
8656 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8657
8658 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8659
8660 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8661
8662 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8663 most-positive-fixnum, be extra accurate when scrolling window
8664 start, to avoid missing the cursor line.
8665
8666 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8667
8668 * xdisp.c (try_scrolling): Compute the limit for searching point
8669 in forward scroll from scroll_max, instead of an arbitrary limit
8670 of 10 screen lines.
8671 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8672 and
8673 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8674 for details.
8675
8676 2010-06-16 Glenn Morris <rgm@gnu.org>
8677
8678 * editfns.c (Fbyte_to_string): Pacify compiler.
8679
8680 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8681
8682 * lread.c (read1): Phase out old-style backquotes a bit more.
8683
8684 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8685
8686 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8687 bidimirror.h.
8688
8689 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8690
8691 * bidi.c (bidi_initialize): Remove explicit initialization of
8692 bidi_type_table; include biditype.h instead. Don't support
8693 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8694 (bidi_mirror_char): Use bidi_mirror_table.
8695
8696 * biditype.h: New file.
8697
8698 * bidimirror.h: New file.
8699
8700 * window.c (syms_of_window): Doc fix (bug#6409).
8701
8702 2010-06-12 Romain Francoise <romain@orebokech.com>
8703
8704 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8705 ediff-hook.
8706
8707 2010-06-10 Glenn Morris <rgm@gnu.org>
8708
8709 * editfns.c (Fbyte_to_string): Pacify compiler.
8710
8711 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8712
8713 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8714
8715 * alloc.c (Fmake_byte_code): Don't access undefined argument
8716 (Bug#6517).
8717
8718 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8719
8720 * xdisp.c (next_element_from_image): Ensure that after-strings are
8721 read the next time we hit handle_stop (Bug#1336).
8722
8723 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8724
8725 * lread.c (read1): Signal error if #s is not followed by paren.
8726
8727 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8728
8729 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8730
8731 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8732
8733 2010-06-15 Glenn Morris <rgm@gnu.org>
8734
8735 * editfns.c (Fbyte_to_string): Pacify compiler.
8736
8737 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8738
8739 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8740 Check `object's type before accessing its guts.
8741
8742 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8743
8744 * s/usg5-4.h: Fix previous change.
8745 Suggested by Lawrence Mitchell <wence@gmx.li>
8746
8747 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8748
8749 * minibuf.c (Fall_completions): Add more checks.
8750
8751 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8752
8753 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8754
8755 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8756
8757 * lread.c (X_OK): Remove, unused.
8758
8759 * dispnew.c: Remove obsolete comment.
8760
8761 Remove INCLUDED_FCNTL.
8762 * xterm.c (INCLUDED_FCNTL):
8763 * callproc.c (INCLUDED_FCNTL):
8764 * alloc.c (INCLUDED_FCNTL):
8765 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8766 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8767
8768 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8769
8770 * window.c (Fselect_window): Move `record_buffer' up to the
8771 beginning of this function, so the buffer gets recorded
8772 even if the selected window does not change.
8773 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8774
8775 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8776
8777 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8778 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8779
8780 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8781
8782 Remove BSTRING related code, all platforms define it.
8783 * s/usg5-4.h (BSTRING): Remove definition.
8784 * s/template.h (BSTRING):
8785 * s/msdos.h (BSTRING):
8786 * s/ms-w32.h (BSTRING):
8787 * s/hpux10-20.h (BSTRING):
8788 * s/gnu-linux.h (BSTRING):
8789 * s/darwin.h (BSTRING):
8790 * s/cygwin.h (BSTRING):
8791 * s/bsd-common.h (BSTRING):
8792 * s/aix4-2.h (BSTRING): Likewise.
8793 * sysdep.c: Remove code depending on BSTRING not being defined.
8794
8795 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8796
8797 Remove obsolete macro BASE_LEADING_CODE_P.
8798 * character.h (BASE_LEADING_CODE_P): Remove.
8799 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8800 * buffer.c (Fset_buffer_multibyte):
8801 * indent.c (scan_for_column, compute_motion):
8802 * insdel.c (count_combining_before, count_combining_after):
8803 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8804
8805 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8806
8807 Turn `directory-sep-char' into a noop.
8808
8809 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8810 (DIRECTORY_SEP): Define unconditionally.
8811
8812 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8813
8814 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8815 call dostounix_filename directly.
8816
8817 * fileio.c (CORRECT_DIR_SEPS): Remove.
8818 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8819 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8820 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8821 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8822
8823 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8824 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8825
8826 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8827
8828 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8829 (Bug#6346)
8830
8831 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8832
8833 * ccl.c (Fccl_program_p): Fix typo in docstring.
8834
8835 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8836
8837 Move UNEXEC definition to autoconf.
8838 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8839 * s/sol2-10.h (UNEXEC):
8840 * s/irix6-5.h (UNEXEC):
8841 * s/hpux10-20.h (UNEXEC):
8842 * s/gnu-linux.h (UNEXEC):
8843 * s/darwin.h (UNEXEC):
8844 * s/cygwin.h (UNEXEC):
8845 * s/bsd-common.h (UNEXEC):
8846 * s/aix4-2.h (UNEXEC):
8847 * m/alpha.h (UNEXEC): Likewise.
8848 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8849
8850 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8851
8852 Remove obsolete pre-unicode2 macros.
8853 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8854 * composite.c (composition_reseat_it):
8855 * data.c (Faset):
8856 * fns.c (Ffillarray):
8857 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8858 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8859
8860 2010-06-03 Juri Linkov <juri@jurta.org>
8861
8862 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8863 (Fswitch_to_buffer): Remove unused variable `err'.
8864
8865 2010-06-03 Glenn Morris <rgm@gnu.org>
8866
8867 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8868
8869 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8870 now that AH_BOTTOM does it.
8871
8872 * m/hp800.h (HAVE_ALLOCA):
8873 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8874
8875 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8876 Remove NOT_C_CODE tests, it is always true now.
8877
8878 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8879
8880 Fix config.h includes.
8881 * xsettings.c:
8882 * xgselect.c:
8883 * nsterm.m:
8884 * nsselect.m:
8885 * nsimage.m:
8886 * nsfont.m:
8887 * nsfns.m:
8888 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8889 other files do.
8890
8891 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8892
8893 * s/sol2-6.h: Remove obsolete comments.
8894
8895 Remove unnecessary alloca.h includes.
8896 * keymap.c: Do not include alloca.h, config.h does that.
8897 * sysdep.c: Likewise. Do not define fwrite, not used.
8898
8899 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8900
8901 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8902 the HAVE_TERMIO where it belongs (bug#6149).
8903
8904 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8905
8906 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8907 of bug#6305).
8908
8909 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8910
8911 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8912 state is always cached (bug#6306).
8913
8914 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8915
8916 Fix cursor motion in bidi-reordered continued lines.
8917 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8918 only after finding point's row. Fix the logic. Rewrite the loop
8919 over continuation lines in bidi-reordered buffers.
8920 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8921 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8922
8923 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8924
8925 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8926
8927 2010-05-28 Kenichi Handa <handa@m17n.org>
8928
8929 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8930 Don't sheck SPEC if it is nil.
8931 (font_list_entities): Call font_delete_unmatched if
8932 Vface_ignored_fonts is non-nil. (Bug#6287)
8933
8934 2010-05-28 Glenn Morris <rgm@gnu.org>
8935
8936 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8937
8938 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8939
8940 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8941 whether to trash.
8942 (internal_delete_file, Frename_file): Callers changed.
8943 (delete_by_moving_to_trash): Doc fix.
8944 (Fdelete_directory_internal): Don't move to trash.
8945
8946 * callproc.c (delete_temp_file):
8947 * buffer.c (Fkill_buffer): Callers changed.
8948
8949 * lisp.h: Update prototype.
8950
8951 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8952
8953 * xdisp.c (redisplay_window): After redisplay, check if point is
8954 still valid before setting it (Bug#6177).
8955
8956 2010-05-27 Glenn Morris <rgm@gnu.org>
8957
8958 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8959 Convert comments to Makefile format.
8960
8961 * Makefile.in (bootstrap-clean): No more Makefile.c.
8962
8963 2010-05-26 Glenn Morris <rgm@gnu.org>
8964
8965 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8966 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8967
8968 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8969 Remove.
8970 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8971
8972 2010-05-26 Kenichi Handa <handa@m17n.org>
8973
8974 * composite.c (composition_compute_stop_pos): Fix condition for
8975 backward scanning.
8976
8977 2010-05-25 Glenn Morris <rgm@gnu.org>
8978
8979 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8980 Move before TEMACS_LDFLAGS.
8981 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8982 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8983
8984 * Makefile.in (NOT_C_CODE): No longer define.
8985 (config.h): No longer include.
8986
8987 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8988 variables it may reference.
8989
8990 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8991 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8992
8993 2010-05-25 Kenichi Handa <handa@m17n.org>
8994
8995 * dispextern.h (struct composition_it): New members rule_idx and
8996 charpos.
8997
8998 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8999 that the character positions of IT point the last character of the
9000 current grapheme cluster.
9001 (next_element_from_composition): Don't change character positions
9002 of IT.
9003 (append_composite_glyph): Set glyph->charpos to
9004 it->cmp_it.charpos.
9005
9006 * composite.c (autocmp_chars): Change the first argument to RULE,
9007 and try composition with RULE only.
9008 (composition_compute_stop_pos): Record the index number of the
9009 composition rule in CMP_IT->rule_idx.
9010 (composition_reseat_it): Call autocmp_chars repeatedly until the
9011 correct rule of the composition is found.
9012 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
9013 is at the last character of the current grapheme cluster when
9014 CMP_IT->reversed_p is nonzero.
9015
9016 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
9017
9018 * editfns.c (Fbyte_to_string): New function.
9019
9020 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
9021
9022 * process.c (Fmake_network_process): Set :host to nil if it's not used.
9023 Suggested by Masatake YAMATO <yamato@redhat.com>.
9024
9025 2010-05-23 Eli Zaretskii <eliz@gnu.org>
9026
9027 * dispextern.h (init_iterator): Sync prototype with changed definition.
9028
9029 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
9030
9031 * s/netbsd.h: If terminfo is found, use it in preference to
9032 termcap. (Bug#6190) [Backport from trunk]
9033
9034 2010-05-19 Eli Zaretskii <eliz@gnu.org>
9035
9036 Redesign and reimplement bidi-aware edge positions of glyph rows.
9037
9038 * dispextern.h (struct glyph_row): New members minpos and maxpos.
9039 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
9040 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
9041 and maxpos members instead of start.pos and end.pos, respectively.
9042
9043 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
9044 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
9045 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
9046 (try_window_reusing_current_matrix, try_window_id):
9047 Use ROW->minpos rather than ROW->start.pos.
9048 (init_from_display_pos, init_iterator): Use EMACS_INT for
9049 character and byte positions.
9050 (find_row_edges): Rename from find_row_end. Accept additional
9051 arguments for minimum and maximum buffer positions seen by
9052 display_line for this row. Don't use iterator to find the
9053 position following the maximum one; instead, increment the
9054 position found by display_line directly. Fix logic; eol_pos
9055 should be tested before the rest. Handle the case of characters
9056 delivered from display vector (bug#6036). Fix tests related to
9057 it->method. Handle the truncated_on_right_p rows.
9058 (RECORD_MAX_MIN_POS): New macro.
9059 (display_line): Use it to record the minimum and maximum buffer
9060 positions for glyphs in the row being assembled. Record the
9061 position of the newline that terminates the line. If word wrap is
9062 in effect, restore minimum and maximum positions seen up to the
9063 wrap point, when iterator returns to it.
9064 (try_window_reusing_current_matrix): Give up if in bidi-reordered
9065 row and cursor not already at point. Restore original pre-bidi
9066 code for unidirectional buffers.
9067
9068 * dispnew.c (increment_row_positions, check_matrix_invariants):
9069 Increment and check row->start.pos and row->end.pos, in addition
9070 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
9071
9072 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
9073 Display truncated_on_left_p and truncated_on_right_p flags.
9074 Formatting fixes.
9075 (pmtxrows): Display the ordinal number of each row. Don't display
9076 rows beyond the last one.
9077
9078 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
9079 it is not copied by bidi_copy_it.
9080
9081 2010-05-22 Eli Zaretskii <eliz@gnu.org>
9082
9083 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
9084 (Bug#6237)
9085
9086 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
9087
9088 * image.c (Fimage_flush): Rename from image-refresh.
9089
9090 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
9091
9092 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
9093 just one window.
9094
9095 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
9096 (clear_image_cache): If the number of cached images is unusually
9097 large, decrease the cache eviction delay (Bug#6230).
9098
9099 2010-05-21 Glenn Morris <rgm@gnu.org>
9100
9101 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
9102 Move these rules to ns.mk.
9103 * ns.mk: New file.
9104
9105 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
9106
9107 * Makefile.in (CANNOT_DUMP): New, set by configure.
9108 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
9109
9110 2010-05-20 Juri Linkov <juri@jurta.org>
9111
9112 * fileio.c (Fdelete_file): Change interative spec to use
9113 `read-file-name' like in `find-file-read-args' where the default
9114 value is `default-directory' instead of `buffer-file-name'.
9115 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
9116
9117 2010-05-20 Kevin Ryde <user42@zip.com.au>
9118
9119 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
9120 (Voverriding_terminal_local_map, Vsystem_key_alist)
9121 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
9122
9123 2010-05-20 Glenn Morris <rgm@gnu.org>
9124
9125 * Makefile.in (DEPDIR): New constant.
9126 (DEPFLAGS): Set with configure, not cpp.
9127 (MKDEPDIR): New, set by configure.
9128 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
9129 (clean): Use $DEPDIR.
9130 (deps_frag): Include from configure.
9131 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
9132 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
9133
9134 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
9135 Fix reallocation of the cache. (Bug#6210)
9136
9137 2010-05-19 Glenn Morris <rgm@gnu.org>
9138
9139 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
9140
9141 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
9142 (GNULIB_VAR): Remove.
9143 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
9144
9145 * m/ibms390x.h (LINKER):
9146 * m/macppc.h (LINKER) [GNU_LINUX]:
9147 * s/aix4-2.h (ORDINARY_LINK):
9148 * s/cygwin.h (LINKER):
9149 * s/darwin.h (ORDINARY_LINK):
9150 * s/gnu.h (ORDINARY_LINK):
9151 * s/netbsd.h (LINKER):
9152 * s/usg5-4.h (ORDINARY_LINK):
9153 Move to configure.
9154
9155 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
9156
9157 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
9158
9159 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
9160 prevent stack overflow if number of arguments is too large
9161 (Bug#6214).
9162
9163 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
9164
9165 * charset.c (load_charset_map_from_file): Don't call close after fclose.
9166
9167 2010-05-18 Glenn Morris <rgm@gnu.org>
9168
9169 * s/gnu-linux.h: Combine two conditionals.
9170
9171 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
9172 $(POST_ALLOC_OBJ).
9173
9174 * Makefile.in (RALLOC_OBJ): New, set by configure.
9175 (rallocobj): Replace with the previous variable.
9176 (otherobj): Use $RALLOC_OBJ.
9177
9178 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
9179 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
9180
9181 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
9182 (gmallocobj, vmlimitobj): Replace with previous two variables.
9183 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
9184
9185 2010-05-17 Glenn Morris <rgm@gnu.org>
9186
9187 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
9188 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
9189
9190 2010-05-16 Glenn Morris <rgm@gnu.org>
9191
9192 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
9193
9194 * Makefile.in (clean): Get rid of HAVE_NS conditional.
9195
9196 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
9197 trailing "/".
9198
9199 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
9200 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
9201
9202 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
9203 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
9204 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
9205 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
9206 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
9207
9208 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
9209 Remove ${STARTFLAGS}, nothing ever sets it.
9210
9211 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
9212
9213 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
9214
9215 2010-05-16 Glenn Morris <rgm@gnu.org>
9216
9217 * Makefile.in (LIBX_BASE): Always define.
9218
9219 * Makefile.in (LIBX_OTHER): Move out of cpp section.
9220
9221 * Makefile.in (LIBXT): Always define.
9222
9223 2010-05-15 Glenn Morris <rgm@gnu.org>
9224
9225 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
9226
9227 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
9228 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
9229
9230 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
9231
9232 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
9233 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
9234
9235 * emacs.c (main): Initialize initial-environment and
9236 process-environment before generating from env, not after.
9237
9238 Handle --version reasonably in CANNOT_DUMP configuration.
9239 * emacs.c (emacs_version, emacs_copyright): New string variables.
9240 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
9241 (syms_of_emacs): Defvar them, and initialize them from the C
9242 string variables.
9243 (main): If initialization hasn't been done, print initial version
9244 info from the C strings, instead of starting an interactive session.
9245
9246 2010-05-15 Eli Zaretskii <eliz@gnu.org>
9247
9248 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
9249 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
9250 (bidi_paragraph_init): Remove redundant assertion that we are at
9251 the beginning of a line after call to bidi_find_paragraph_start.
9252
9253 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9254 (syms_of_xdisp): Defsubr it.
9255
9256 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9257
9258 * Makefile.in: Fix MSDOS-related comments.
9259
9260 2010-05-15 Glenn Morris <rgm@gnu.org>
9261
9262 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9263 (really-lwlib, really-oldXMenu): Always define.
9264 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9265
9266 * Makefile.in: Simplify cpp conditional.
9267
9268 * Makefile.in (${ns_appdir}): Simplify using umask.
9269
9270 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9271
9272 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9273
9274 * eval.c (specbind): Remove left-over duplicate test.
9275 Disallow let-binding frame-local vars. Add comment.
9276
9277 2010-05-14 Eli Zaretskii <eliz@gnu.org>
9278
9279 Make the cache of bidi iterator states dynamically allocated.
9280 * bidi.c (bidi_cache_shrink): New function.
9281 (bidi_init_it): Call it.
9282 (bidi_cache_iterator_state): Enlarge the cache if needed.
9283
9284 * bidi.c (bidi_move_to_visually_next): Rename from
9285 bidi_get_next_char_visually. All callers changed.
9286
9287 2010-05-14 Kenichi Handa <handa@m17n.org>
9288
9289 * dispextern.h (struct composition_it): New member reversed_p.
9290
9291 * composite.c (composition_compute_stop_pos): Search backward if
9292 ENDPOS < CHARPOS.
9293 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9294 Set CMP_IT->reversed_p.
9295 (composition_update_it): Pay attention to CMP_IT->reversed_p.
9296
9297 * xdisp.c (set_iterator_to_next):
9298 Call composition_compute_stop_pos with negative ENDPOS if we are
9299 scanning backward. Call composition_compute_stop_pos if scan
9300 direction is changed.
9301 (next_element_from_buffer): Call composition_compute_stop_pos with
9302 negative ENDPOS if we are scanning backward.
9303 (next_element_from_composition): Pay attention to
9304 IT->cmp_it.reversed_p.
9305
9306 2010-05-14 Kenichi Handa <handa@m17n.org>
9307
9308 * font.c (font_range): Return the range for the font found at first.
9309
9310 2010-05-14 Glenn Morris <rgm@gnu.org>
9311
9312 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9313
9314 * Makefile.in (mktime, X11, register): Move undefs to configure.
9315
9316 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9317 (MSDOS_X_OBJ): New variable.
9318 (MSDOS_SUPPORT_REAL): New constant.
9319 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9320 (obj): Use MSDOS_X_OBJ.
9321 (lisp): Use MSDOS_SUPPORT as a variable.
9322
9323 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9324 (GPM_MOUSE_SUPPORT): Now it's a constant.
9325 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9326 not cpp.
9327
9328 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
9329 (ns_appresdir): Remove, unused.
9330
9331 * Makefile.in (SHELL): Move outside cpp section.
9332
9333 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9334
9335 2010-05-13 Glenn Morris <rgm@gnu.org>
9336
9337 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9338 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9339
9340 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9341 HAVE_WINDOW_SYSTEM must be too.
9342
9343 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9344 (lisp): Remove WINNT_SUPPORT.
9345
9346 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9347 Let configure set these variables (to empty) in this case as well.
9348
9349 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9350 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9351
9352 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9353 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9354 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9355 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9356 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
9357 the values output by configure.
9358 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9359
9360 2010-05-12 Glenn Morris <rgm@gnu.org>
9361
9362 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9363 (LINKER_WAS_SPECIFIED): Remove.
9364
9365 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9366 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9367 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9368 * s/cygwin.h (LIB_GCC):
9369 * s/freebsd.h (LIB_GCC):
9370 * s/gnu-linux.h (LIB_GCC):
9371 * s/msdos.h (LIB_GCC):
9372 * s/netbsd.h (LIB_GCC):
9373 Move to configure.
9374
9375 2010-05-11 Karel Klíč <kklic@redhat.com>
9376
9377 * ftfont.c: Fix incorrect parentheses of #if condition for
9378 definining M17N_FLT_USE_NEW_FEATURE.
9379
9380 2010-05-11 Glenn Morris <rgm@gnu.org>
9381
9382 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9383 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9384
9385 2010-05-10 Eli Zaretskii <eliz@gnu.org>
9386
9387 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9388 unibyte buffers. See
9389 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9390
9391 2010-05-10 Glenn Morris <rgm@gnu.org>
9392
9393 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9394 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9395 (LIBES): Use LIBS_SYSTEM as a variable.
9396 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9397 * s/aix4-2.h (LIBS_SYSTEM):
9398 * s/freebsd.h (LIBS_SYSTEM):
9399 * s/hpux10-20.h (LIBS_SYSTEM):
9400 * s/sol2-6.h (LIBS_SYSTEM):
9401 * s/unixware.h (LIBS_SYSTEM):
9402 Move to configure.
9403
9404 * s/aix4-2.h (MAIL_USE_LOCKF):
9405 * s/bsd-common.h (MAIL_USE_FLOCK):
9406 * s/darwin.h (MAIL_USE_FLOCK):
9407 * s/gnu-linux.h (MAIL_USE_FLOCK):
9408 * s/irix6-5.h (MAIL_USE_FLOCK):
9409 * s/template.h (MAIL_USE_FLOCK):
9410 Move to configure.
9411
9412 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
9413
9414 * Version 23.2 released.
9415
9416 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
9417
9418 * composite.c (autocmp_chars): Save point as marker before calling
9419 auto-composition-function (Bug#5984).
9420
9421 * lisp.h (restore_point_unwind): Add prototype.
9422
9423 * fileio.c (restore_point_unwind): Remove static attribute.
9424
9425 2010-05-08 Kenichi Handa <handa@m17n.org>
9426
9427 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9428 new feature of libotf and m17n-flt.
9429 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9430 Call OTF_check_features even if no specific feature is given.
9431 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9432 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9433 that OUT is NULL. Use OTF_drive_gsub_with_log and
9434 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9435 OTF_drive_gpos.
9436 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9437 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9438 Setup mflt_enable_new_feature and mflt_try_otf.
9439
9440 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9441
9442 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9443
9444 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9445 box and toolbar (Bug #6139).
9446 (xg_create_tool_bar): Remove comment (Bug #6139).
9447 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9448 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9449
9450 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
9451
9452 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9453 Update dependencies.
9454
9455 2010-05-08 Eli Zaretskii <eliz@gnu.org>
9456
9457 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9458 R2L lines.
9459
9460 2010-05-08 Glenn Morris <rgm@gnu.org>
9461
9462 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9463
9464 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9465 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9466 (termcapobj): Replace with TERMCAP_OBJ.
9467 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9468 (LIBES): Use LIBS_TERMCAP as a variable.
9469
9470 * s/freebsd.h (osreldate.h): No longer include, since this file
9471 does not use __FreeBSD_version any more.
9472
9473 * s/aix4-2.h (TERMINFO):
9474 * s/cygwin.h (TERMINFO):
9475 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9476 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9477 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9478 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9479 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9480 * s/irix6-5.h (TERMINFO):
9481 * s/netbsd.h (LIBS_TERMCAP):
9482 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9483 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9484 * s/usg5-4.h (TERMINFO):
9485 Move to configure.
9486
9487 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9488
9489 * eval.c (unbind_to): Don't unbind a local binding into the global
9490 binding when the local binding disappeared. Inversely, don't unbind
9491 a global binding into a newly created local binding.
9492 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9493 can specify the frame to use, when applicable. Adjust callers.
9494
9495 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
9496 Stefan Monnier <monnier@iro.umontreal.ca>
9497
9498 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9499
9500 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9501
9502 * w32fns.c: Include w32.h.
9503 (Fw32_shell_execute): Decode the error message before passing it
9504 to `error'. (Bug#6126)
9505
9506 * msdos.c (dos_set_window_size):
9507 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9508 instead of `XSYMBOL (foo)->value'.
9509
9510 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9511
9512 Fix the MS-DOS build, broken by autoconfiscation.
9513
9514 * Makefile.in: Don't use Make-style comments past the "start of
9515 cpp stuff" line.
9516 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9517
9518 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9519 edited directly by msdos/sed1v2.inp).
9520
9521 2010-05-07 Glenn Morris <rgm@gnu.org>
9522
9523 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9524 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9525 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9526 move out of cpp section.
9527 * s/freebsd.h (LD_SWITCH_SYSTEM):
9528 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9529 * s/netbsd.h (LD_SWITCH_SYSTEM):
9530 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9531
9532 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9533
9534 Define LIB_STANDARD and START_FILES using autoconf.
9535 * s/usg5-4.h (LIB_STANDARD):
9536 * s/netbsd.h (START_FILES):
9537 * s/irix6-5.h (LIB_STANDARD):
9538 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9539 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9540 * s/freebsd.h (START_FILES):
9541 * s/darwin.h (START_FILES):
9542 * s/cygwin.h (START_FILES):
9543 * s/aix4-2.h (LIB_STANDARD):
9544 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9545 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9546 autoconf, not cpp.
9547
9548 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9549
9550 Remove NEED_BSDTTY and NEED_UNISTD_H.
9551 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9552 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9553 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9554 <sys/ptyio.h> and <unistd.h>.
9555
9556 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9557
9558 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9559 * s/gnu.h (START_FILES): Remove empty definition.
9560
9561 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9562
9563 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9564
9565 2010-05-06 Glenn Morris <rgm@gnu.org>
9566
9567 * Makefile.in (CPP, LN_S): Remove unused variables.
9568
9569 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9570
9571 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9572
9573 2010-05-05 Lawrence Mitchell <wence@gmx.li>
9574
9575 * m/sparc.h: Fix typo in earlier change.
9576
9577 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9578
9579 Misc tweaks.
9580 * eval.c (Fdefvaralias): Remove unintended nested if.
9581 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9582
9583 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
9584
9585 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9586
9587 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9588
9589 Remove BSD_PGRPS.
9590 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9591 * s/gnu-linux.h (BSD_PGRPS): Remove.
9592 * term.c (dissociate_if_controlling_tty):
9593 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9594 (init_sys_modes, reset_sys_modes):
9595 * emacs.c (main):
9596 * callproc.c (Fcall_process, child_setup): Remove code depending
9597 on BSD_PGRPS.
9598
9599 Remove POSIX_SIGNALS.
9600 * s/usg5-4.h (POSIX_SIGNALS):
9601 * s/netbsd.h (POSIX_SIGNALS):
9602 * s/msdos.h (POSIX_SIGNALS):
9603 * s/ms-w32.h (POSIX_SIGNALS):
9604 * s/hpux11.h (POSIX_SIGNALS):
9605 * s/gnu.h (POSIX_SIGNALS):
9606 * s/gnu-linux.h (POSIX_SIGNALS):
9607 * s/freebsd.h (POSIX_SIGNALS):
9608 * s/darwin.h (POSIX_SIGNALS):
9609 * s/cygwin.h (POSIX_SIGNALS):
9610 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9611 * s/unixware.h:
9612 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9613 * process.c (create_process):
9614 * syssignal.h:
9615 * sysdep.c (wait_for_termination, init_signals):
9616 * process.c (create_process):
9617 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9618 remove all code that assumes the contrary.
9619
9620 2010-05-04 Glenn Morris <rgm@gnu.org>
9621
9622 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9623 variable.
9624 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9625 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9626 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9627 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9628 LD_SWITCH_SYSTEM_tmp.
9629 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9630 New variables, set by configure.
9631
9632 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9633 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9634 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9635 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9636 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9637
9638 * s/aix4-2.h (C_SWITCH_SYSTEM):
9639 * m/alpha.h (C_SWITCH_MACHINE):
9640 Move to configure.in.
9641 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9642 New variables, set by configure.
9643 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9644 $c_switch_machine and $c_switch_system.
9645
9646 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9647
9648 * s/hpux10-20.h (LIB_STANDARD): New definition.
9649 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9650 on it, not used anymore.
9651
9652 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9653
9654 * eval.c (internal_condition_case_n): Rename from
9655 internal_condition_case_2.
9656 (internal_condition_case_2): New function.
9657
9658 * xdisp.c (safe_call): Use internal_condition_case_n.
9659
9660 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9661 (internal_delete_file, Frename_file): Callers changed.
9662
9663 * buffer.c (Fkill_buffer):
9664 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9665
9666 * lisp.h: Update prototypes.
9667
9668 2010-05-03 Glenn Morris <rgm@gnu.org>
9669
9670 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9671 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9672 (LIBXT): Set with configure, not cpp.
9673 (LIBX): Remove.
9674 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9675
9676 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9677
9678 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9679 The FreeBSD is not needed, the default works, Solaris version is
9680 not needed, and the remaining case is not supported by configure.
9681
9682 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9683
9684 * xsmfns.c (CHDIR_OPT): New define.
9685 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9686 restarting emacs.
9687
9688 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9689 shut_down_emacs.
9690
9691 * emacs.c (USAGE1): Mention --chdir.
9692 (main): Handle --chdir.
9693 (standard_args): Add --chdir.
9694 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9695 #5552).
9696
9697 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9698
9699 Remove LD_SWITCH_MACHINE.
9700 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9701 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9702
9703 Clean up IRIX code.
9704 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9705 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9706
9707 Clean up AIX code.
9708 * m/ibmrs6000.inp: Remove file, unused.
9709 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9710 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9711 definition ...
9712 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9713
9714 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9715 unused.
9716
9717 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9718
9719 Emulate POSIX_SIGNALS on MS-Windows.
9720
9721 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9722 (SIG_SETMASK, SIG_UNBLOCK): Define.
9723
9724 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9725 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9726 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9727
9728 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9729 New stubs.
9730
9731 Miscellaneous fixes of bidi display.
9732
9733 * xdisp.c (find_row_end): New function, refactored from display_line.
9734 (display_line): Use it.
9735 (extend_face_to_end_of_line): In almost-filled rows, extend only
9736 if the row is R2L and not continued.
9737 (display_line): Fix prepending of truncation glyphs to R2L rows.
9738 Preserve overlay and string info in row->end.
9739 (insert_left_trunc_glyphs): Support addition of left truncation
9740 glyphs to R2L rows.
9741 (set_cursor_from_row): Don't place cursor on the vertical border
9742 glyph between adjacent windows. Fix a crash when a display string
9743 is continued to the next line. Don't return zero if cursor was
9744 found by `cursor' property of a display string.
9745 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9746 test for that explicitly.
9747
9748 2010-05-01 Glenn Morris <rgm@gnu.org>
9749
9750 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9751 for clarity.
9752 (OTHER_OBJ): Remove.
9753 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9754 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9755
9756 2010-05-01 Karel Klíč <kklic@redhat.com>
9757
9758 * fileio.c (Ffile_selinux_context): Context functions may return null.
9759
9760 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9761
9762 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9763
9764 2010-04-30 Glenn Morris <rgm@gnu.org>
9765
9766 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9767 (OTHER_OBJ): Define as a separate variable, for clarity.
9768
9769 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9770
9771 * xsettings.c: Include limits.h and update file comment.
9772
9773 2010-04-30 Glenn Morris <rgm@gnu.org>
9774
9775 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9776 Set with configure, not cpp.
9777 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9778
9779 * Makefile.in (mallocobj): Remove.
9780 (otherobj): Simplify using @OTHER_OBJ@.
9781
9782 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9783 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9784 Don't bother making nsgui.h dependency platform-specific.
9785
9786 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9787
9788 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9789
9790 * process.c (read_process_output, exec_sentinel): Don't burp if the
9791 sentinel/filter kills the current buffer (bug#6060).
9792
9793 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9794 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9795 Remove unused var `args'.
9796 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9797 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9798 * doc.c (store_function_docstring): Use XSETCAR.
9799
9800 2010-04-28 Glenn Morris <rgm@gnu.org>
9801
9802 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9803 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9804
9805 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9806
9807 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9808 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9809
9810 * Makefile.in (FONT_OBJ): New, set by configure.
9811 (FONT_DRIVERS): Use $FONT_OBJ.
9812
9813 * Makefile.in (LIBXMU): Set with configure, not cpp.
9814 * s/aix4-2.h (LIBXMU):
9815 * s/hpux10-20.h (LIBXMU):
9816 Remove definition, now set in configure.
9817
9818 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9819
9820 * m/amdx86-64.h [i386]: Move this test to configure.in.
9821
9822 2010-04-27 Glenn Morris <rgm@gnu.org>
9823
9824 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9825 * s/unixware.h (NEED_LIBW): Remove definition.
9826
9827 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9828 (TOOLKIT_LIBW): New, set by configure.
9829 (@X_TOOLKIT_TYPE@): No longer define it.
9830
9831 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9832 (MOTIF_LIBW): Set with configure, not cpp.
9833 * s/aix4-2.h (LIB_MOTIF):
9834 * s/gnu-linux.h (LIB_MOTIF):
9835 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9836
9837 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9838
9839 Reduce CPP usage.
9840 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9841 (obj): Use autoconf for unexec instead of cpp.
9842 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9843 Remove definitions and undefs. Inline definitions in the only user.
9844 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9845
9846 2010-04-27 Glenn Morris <rgm@gnu.org>
9847
9848 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9849 since the defaults (set by the system file) are fine in most cases.
9850 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9851 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9852 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9853 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9854 Remove definitions, since they are set correctly in s/gnu-linux.h.
9855 * s/freebsd.h (START_FILES, LIB_STANDARD):
9856 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9857 * s/hpux10-20.h (START_FILES):
9858 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9859 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9860
9861 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9862 (MOTIF_LIBW): Use $LIBXP.
9863 (otherobj): Use $WIDGET_OBJ.
9864
9865 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9866
9867 * Makefile.in (LIBS_MACHINE): Remove, unused.
9868
9869 Use autoconf instead of cpp for LIB_MATH.
9870 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9871 * s/cygwin.h (LIB_MATH): Likewise.
9872 * Makefile.in (LIB_MATH): Do not define with cpp.
9873 (LIBES): Use autoconf for LIB_MATH.
9874
9875 2010-04-26 Kenichi Handa <handa@m17n.org>
9876
9877 * composite.c (Ffind_composition_internal): Fix the return value
9878 for an automatic composition.
9879
9880 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9881
9882 Remove all NO_ARG_ARRAY uses.
9883 * fns.c (concat2, concat3, nconc2):
9884 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9885 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9886 * m/xtensa.h (NO_ARG_ARRAY):
9887 * m/template.h (NO_ARG_ARRAY):
9888 * m/sparc.h (NO_ARG_ARRAY):
9889 * m/sh3.h (NO_ARG_ARRAY):
9890 * m/mips.h (NO_ARG_ARRAY):
9891 * m/macppc.h (NO_ARG_ARRAY):
9892 * m/iris4d.h (NO_ARG_ARRAY):
9893 * m/intel386.h (NO_ARG_ARRAY):
9894 * m/ibms390x.h (NO_ARG_ARRAY):
9895 * m/ibms390.h (NO_ARG_ARRAY):
9896 * m/ibmrs6000.h (NO_ARG_ARRAY):
9897 * m/ia64.h (NO_ARG_ARRAY):
9898 * m/hp800.h (NO_ARG_ARRAY):
9899 * m/arm.h (NO_ARG_ARRAY):
9900 * m/amdx86-64.h (NO_ARG_ARRAY):
9901 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9902
9903 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9904
9905 * xdisp.c (display_line): Don't assume 2nd call to
9906 get_next_display_element cannot return zero. (Bug#6030)
9907 (iterate_out_of_display_property): New function, body from pop_it.
9908 (pop_it): Use it.
9909
9910 2010-04-24 Glenn Morris <rgm@gnu.org>
9911
9912 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9913 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9914 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9915 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9916
9917 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9918
9919 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9920 use `get_next_display_element' and `set_iterator_to_next' to
9921 advance to the next character, when looking for the character that
9922 begins the next row.
9923
9924 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9925 definition of "struct Lisp_Symbol".
9926
9927 2010-04-24 Glenn Morris <rgm@gnu.org>
9928
9929 * Makefile.in (CRT_DIR): New variable, set by configure.
9930 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9931 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9932
9933 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9934
9935 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9936
9937 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9938
9939 Remove redundant flags.
9940 * s/freebsd.h (C_SWITCH_SYSTEM):
9941 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9942 * s/netbsd.h (C_SWITCH_SYSTEM):
9943 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9944 of these.
9945
9946 Simplify m/intel386.h.
9947 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9948 user: ecrt0.c.
9949 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9950 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9951 the only user: s/unixware.h.
9952 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9953 from m/intel386.h.
9954 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9955 Definitions moved here from m/intel386.h.
9956
9957 * m/mips.h: Remove #if 0 code.
9958
9959 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9960
9961 Fix display of composed characters from L2R scripts in bidi buffers.
9962 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9963 After advancing IT past the composition, resync the bidi iterator
9964 with IT's position. (Bug#5977)
9965
9966 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9967
9968 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9969 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9970
9971 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9972
9973 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9974
9975 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9976
9977 Support `display' text properties and overlay strings in bidi buffers.
9978 * xdisp.c (pop_it): When the stack is popped after displaying
9979 from a string, bidi-iterate to exit from the text portion covered
9980 by the `display' property or overlay. (Bug#5988, bug#5920)
9981
9982 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9983
9984 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9985 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9986
9987 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9988 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9989
9990 Simplify STARTFILES definition.
9991 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9992 relying on Makefile.in to define it.
9993 * s/cygwin.h (START_FILES): Likewise.
9994 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9995
9996 Clean up Solaris code.
9997 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9998 (LIB_MOTIF): Remove, configure takes care of this.
9999 (NOT_USING_MOTIF): Remove, unused.
10000 * xrdb.c: Remove #if 0-ed #include.
10001 (SYSV): Remove conditional for old SysV.
10002 * sysdep.c (closedir): Remove conditional code for Solaris,
10003 Solaris has closedir.
10004
10005 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
10006
10007 * xsettings.c (read_and_apply_settings): Check if current_font is
10008 NULL before strcmp (Bug#6001).
10009
10010 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
10011
10012 Clean up HP-UX files.
10013 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
10014 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
10015 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
10016 * s/hpux10-20.h: ... to the only user, here.
10017
10018 2010-04-21 Eli Zaretskii <eliz@gnu.org>
10019
10020 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
10021 use buffer-local values of paragraph-start and paragraph-separate.
10022 <paragraph_start_re, paragraph_separate_re>: Rename from
10023 fallback_paragraph_start_re and fallback_paragraph_separate_re.
10024 (Bug#5992)
10025
10026 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10027
10028 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
10029 current_tool_bar_style are new.
10030 (store_config_changed_event): Rename from store_font_changed_event.
10031 (XSETTINGS_TOOL_BAR_STYLE): New define.
10032 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
10033 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
10034 HAVE_XFT.
10035 (something_changedCB): store_font_changed_event is now
10036 store_config_changed_event.
10037 (parse_settings): Rename from parse_xft_settings.
10038 Read non-xft xsettings outside #ifdef HAVE_XFT.
10039 (read_settings): Rename from read_xft_settings.
10040 (apply_xft_settings): Take current settings as parameter. Do not
10041 call read_(xft)_settings.
10042 (read_and_apply_settings): New function.
10043 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
10044 Call read_and_apply_settings if there are settings to be read.
10045 (init_xsettings): Rename from init_xfd_settings.
10046 Call read_and_apply_settings unconditionally.
10047 (xsettings_initialize): Call init_xsettings.
10048 (Ftool_bar_get_system_style): New function.
10049 (syms_of_xsettings): Define Qmonospace_font_name and
10050 Qtool_bar_style. Initialize current_tool_bar_style to nil.
10051 defsubr Stool_bar_get_system_style. Fprovide on
10052 dynamic-setting.
10053 Move misplaced HAVE_GCONF.
10054
10055 * xsettings.h (Ftool_bar_get_system_style): Declare.
10056
10057 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
10058 Qtext, Qboth, Qboth_horiz are new.
10059 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
10060 Vtool_bar_style, tool_bar_max_label_size.
10061
10062 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
10063
10064 * keyboard.c: QClabel is new.
10065 (parse_tool_bar_item): Take out QClabel from tool bar items.
10066 Try to construct a label if ther is no QClabel.
10067 (syms_of_keyboard): Intern :label as QClabel.
10068
10069 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
10070 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
10071 New.
10072
10073 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
10074 dynamic-setting.el.
10075
10076 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
10077 (xg_make_tool_item, xg_show_toolbar_item): New function.
10078 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
10079 Call xg_make_tool_item to make a tool bar item.
10080 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
10081
10082 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
10083 into account for toolbars.
10084
10085 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10086
10087 * data.c (make_blv): Declarations before code (Bug#5993).
10088
10089 2010-04-21 Glenn Morris <rgm@gnu.org>
10090
10091 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
10092 Define using autoconf, not cpp.
10093 (LIBXSM): New variable, set by autoconf.
10094 (LIBXT): Use $LIBXSM.
10095
10096 2010-04-21 Dan Nicolaescu <local_user@dannlt>
10097
10098 Remove NOMULTIPLEJOBS, unused.
10099 * s/template.h (NOMULTIPLEJOBS):
10100 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
10101
10102 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
10103 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
10104 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
10105 detects -znocombreloc and passes it to the linker
10106 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
10107
10108 2010-04-21 Glenn Morris <rgm@gnu.org>
10109
10110 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
10111
10112 2010-04-21 Karel Klíč <kklic@redhat.com>
10113
10114 * Makefile.in (LIBSELINUX_LIBS): New.
10115 (LIBES): Add $LIBSELINUX_LIBS.
10116 * eval.c, lisp.h (call7): New function.
10117 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
10118 (Ffile_selinux_context, Fset_file_selinux_context):
10119 New functions.
10120 (Fcopy_file): New parameter preserve-selinux-context.
10121 (Frename_file): Preserve selinux context when renaming by copy-file.
10122
10123 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
10124 Eli Zaretskii <eliz@gnu.org>
10125
10126 Don't depend on cm.c or termcap.c on Windows, use stubs.
10127 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
10128 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
10129 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
10130 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
10131 (sys_tputs, sys_tgetstr): New stubs.
10132 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
10133 (tputs, tgetstr): New; define to sys_*.
10134
10135 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
10136
10137 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
10138
10139 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10140
10141 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
10142 Just signal a warning rather than an error when inside a let.
10143 (Fmake_variable_frame_local): Add the same test.
10144
10145 * font.c (syms_of_font): Make the style table vars read-only.
10146
10147 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
10148 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
10149
10150 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
10151
10152 2010-04-20 Eli Zaretskii <eliz@gnu.org>
10153
10154 Fix R2L paragraph display on TTY.
10155
10156 * xdisp.c (unproduce_glyphs): New function.
10157 (display_line): Use it when produced glyphs are discarded from R2L
10158 glyph rows.
10159 (append_composite_glyph): In R2L rows, prepend the glyph rather
10160 than appending it.
10161
10162 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
10163 rather than append it. Set up the resolved_level and bidi_type
10164 attributes of the appended glyph.
10165 (produce_special_glyphs): Mirror the backslash continuation
10166 character in R2L lines.
10167
10168 Implement display of R2L paragraphs in GUI sessions.
10169
10170 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
10171 append_stretch_glyph.
10172 (set_cursor_from_row) <cursor_x>: Remove unused variable.
10173 Fix off-by-one error in computing x at end of text in the row.
10174 (append_stretch_glyph): In reversed row, prepend the glyph rather
10175 than append it. Set resolved_level and bidi_type of the glyph.
10176 (extend_face_to_end_of_line): If the row is reversed, prepend a
10177 stretch glyph whose width is such that the rightmost glyph will be
10178 drawn at the right margin of the window. Fix off-by-one error on
10179 TTY frames in testing whether a line needs face extension.
10180 Fix face extension at ZV. If this is the last glyph row, use
10181 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
10182 region face.
10183 (set_cursor_from_row, display_line):
10184 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
10185 row->continuation_lines_width.
10186 (next_element_from_buffer): Don't call bidi_paragraph_init if we
10187 are at ZV. Fixes a crash when reseated to ZV by
10188 try_window_reusing_current_matrix.
10189 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
10190 which happens with R2L glyph rows. Fixes a crash when inserting a
10191 character at end of an R2L line.
10192 (set_cursor_from_row): Don't be fooled by truncated rows: don't
10193 treat them as having zero-width characters. Improve comments.
10194 Don't reverse pos_before and pos_after for reversed glyph rows.
10195 Set cursor.x to negative value when the cursor might be on the
10196 left fringe.
10197 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
10198 left fringe, not the right one.
10199 (notice_overwritten_cursor, draw_phys_cursor_glyph)
10200 (erase_phys_cursor): For reversed cursor_row, support cursor on
10201 the left fringe.
10202
10203 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
10204 of continuation indicators on the fringes.
10205 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
10206 left fringe.
10207
10208 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
10209 draw cursor on the left fringe.
10210
10211 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
10212 cursor on the left fringe.
10213
10214 * dispnew.c (update_text_area): Handle reversed desired rows when
10215 the cursor is on the left fringe.
10216 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
10217 below, not by 0, for when the cursor is on the left fringe.
10218
10219 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
10220
10221 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
10222 widget is a scrollbar.
10223
10224 2010-04-20 Kenichi Handa <handa@m17n.org>
10225
10226 * charset.c (char_charset): Consider Vcharset_non_preferred_head
10227 only when the arg CHARSET_LIST is nil.
10228
10229 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10230
10231 Make variable forwarding explicit rather the using special values.
10232 Basically, this makes the structure of buffer-local values and object
10233 forwarding explicit in the type of Lisp_Symbols rather than use
10234 special Lisp_Objects for that. This tends to lead to slightly more
10235 verbose code, but is more C-like, simpler, and makes it easier to make
10236 sure we handled all cases, among other things by letting the compiler
10237 help us check it.
10238 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
10239 Removing forwarding objects.
10240 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
10241 (struct Lisp_Symbol): Make the various forms of variable-forwarding
10242 explicit rather than hiding them inside Lisp_Object "values".
10243 (XFWDTYPE): New macro.
10244 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
10245 (XBUFFER_LOCAL_VALUE): Remove.
10246 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
10247 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
10248 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
10249 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10250 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10251 Remove the Lisp_Misc_* header.
10252 (struct Lisp_Buffer_Local_Value): Redefine.
10253 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10254 (struct Lisp_Misc_Any): Add filler to get the right size.
10255 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10256 Lisp_Intfwd.
10257 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10258 (DEFVAR_KBOARD): Allocate a forwarding object.
10259 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10260 (let_shadows_global_binding_p): New function.
10261 (union Lisp_Val_Fwd): New type.
10262 (make_blv): New function.
10263 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10264 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10265 (swap_in_symval_forwarding, find_symbol_value, Fset)
10266 (let_shadows_buffer_binding_p, set_internal, default_value)
10267 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10268 (Fkill_local_variable, Fmake_variable_frame_local)
10269 (Flocal_variable_p, Flocal_variable_if_set_p)
10270 (Fvariable_binding_locus):
10271 * xdisp.c (select_frame_for_redisplay):
10272 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10273 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10274 * frame.c (store_frame_param):
10275 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10276 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10277 value structure.
10278 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10279 (clone_per_buffer_values): Only adjust markers into the current buffer.
10280 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10281 (Fbuffer_local_value, set_buffer_internal_1)
10282 (swap_out_buffer_local_variables):
10283 Adapt to the new symbol value structure.
10284 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10285 (defvar_per_buffer): Take a new arg for the fwd object.
10286 (buffer_lisp_local_variables): Return a proper alist (different fix
10287 for bug#4138).
10288 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10289 (Fgarbage_collect): Don't handle buffer_defaults specially.
10290 (mark_object): Handle new symbol value structure rather than the old
10291 special Lisp_Misc_* objects.
10292 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10293 * term.c (set_tty_color_mode):
10294 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10295 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10296 a buffer_local_flags.
10297 * print.c (print_object): Get rid of impossible forwarding objects.
10298
10299 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10300
10301 * bidi.c (bidi_get_type, bidi_get_category)
10302 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
10303 (bidi_type_of_next_char, bidi_level_of_next_char):
10304 Declare static. Use `INLINE' rather than `inline'.
10305
10306 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
10307
10308 * dired.c (Ffile_attributes): Fix typo in docstring.
10309
10310 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10311
10312 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10313 NSInteger (Bug#5811).
10314
10315 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10316
10317 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10318 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10319
10320 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10321
10322 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10323
10324 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
10325
10326 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10327 terminal frames (Bug#5837).
10328
10329 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10330
10331 * .gdbinit (xsubchartable): New command.
10332
10333 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10334
10335 * xdisp.c (display_line): Don't write beyond the last glyph row in
10336 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
10337 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10338 and
10339 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10340
10341 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10342
10343 * alloc.c (Fpurecopy): Hash-cons if requested.
10344 (syms_of_alloc): Update purify-flag docstring.
10345
10346 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10347
10348 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10349 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10350
10351 2010-04-17 Eli Zaretskii <eliz@gnu.org>
10352
10353 Fix a crash when an NSM character is inserted at BEGV.
10354
10355 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10356 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10357 NEUTRAL_B or UNKNOWN_BT.
10358
10359 2010-04-16 Eli Zaretskii <eliz@gnu.org>
10360
10361 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10362 other rows with cursor unless they are different from this row and
10363 this row is part of a continued line. (Bug#5943)
10364
10365 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10366
10367 * s/freebsd.h: Restore osreldate.h include.
10368 Suggested by Naohiro Aota.
10369
10370 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10371
10372 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10373
10374 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10375
10376 * s/cygwin.h: Avoid linking against static libgcc.
10377
10378 2010-04-15 Juri Linkov <juri@jurta.org>
10379
10380 * window.c: Add Qscroll_command.
10381 Remove Vscroll_preserve_screen_position_commands.
10382 (window_scroll_pixel_based, window_scroll_line_based): Check the
10383 `scroll-command' property on the last command instead of searching
10384 the last command in Vscroll_preserve_screen_position_commands.
10385 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10386 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10387 (scroll-preserve-screen-position): Doc fix.
10388 (Vscroll_preserve_screen_position_commands): Remove variable.
10389
10390 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10391
10392 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10393
10394 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10395
10396 Reduce cpp use in Makefile.in.
10397 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10398 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10399 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10400 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10401 (CRT0_COMPILE): Remove, inline it in the only user.
10402
10403 2010-04-14 Juri Linkov <juri@jurta.org>
10404
10405 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10406 `scroll-up-command' and `M-v' from `scroll-down' to
10407 `scroll-down-command'.
10408
10409 2010-04-14 Juri Linkov <juri@jurta.org>
10410
10411 * window.c (Vscroll_preserve_screen_position_commands): New variable
10412 with the default value as the list of Qscroll_down and Qscroll_up.
10413 (window_scroll_pixel_based, window_scroll_line_based): Search the
10414 last command in the list Vscroll_preserve_screen_position_commands
10415 instead of comparing with Qscroll_up and Qscroll_down.
10416
10417 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10418
10419 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10420 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10421 does that.
10422
10423 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10424 to zero.
10425
10426 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10427
10428 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10429
10430 Try to solve the problem of spurious EOF chars in long lines of text
10431 sent to interactive subprocesses.
10432 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10433 (system_process_attributes): Remove unused var `ttotal'.
10434 * process.c (send_process): Don't bother breaking long line with EOF
10435 chars when talking to ttys any more.
10436 (wait_reading_process_output): Output a warning when called in such
10437 a way that it could block without being interruptible.
10438
10439 Try to detect file modification within the same second.
10440 * buffer.h (struct buffer): New field modtime_size.
10441 * buffer.c (reset_buffer): Initialize it.
10442 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10443 (Fverify_visited_file_modtime): Check it.
10444 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10445 (Fset_visited_file_modtime): Set (or clear) it.
10446
10447 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10448
10449 * process.c (status_notify): Remove unused var `ro'.
10450
10451 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10452
10453 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10454 more than one visual (Bug#5938).
10455
10456 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10457
10458 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10459 Undefine.
10460
10461 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10462
10463 Remove C_SWITCH_SYSTEM_TEMACS.
10464 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10465 (malloc, realloc, free): Use emacs, not temacs for conditional
10466 definition.
10467
10468 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10469 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10470
10471 Use autoconf, not cpp for some variables.
10472 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10473 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10474 (ALL_CFLAGS): Use them as make variables.
10475 (really-lwlib, really-oldXMenu): Do not pass them.
10476
10477 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10478
10479 * xmenu.c (apply_systemfont_to_dialog): New.
10480 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10481
10482 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10483
10484 * process.c (exec_sentinel): Preserve current-buffer.
10485
10486 * process.c (read_process_output): Move the save-current-buffer to
10487 apply to both the filter and the non-filter branches.
10488
10489 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10490
10491 * s/msdos.h (UNEXEC): New definition.
10492
10493 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10494
10495 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10496 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10497
10498 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10499 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10500 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10501 TRY_WINDOW_CHECK_MARGINS.
10502
10503 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
10504 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10505 width only when it is for padding.
10506
10507 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10508
10509 * xfns.c (Fx_show_tip): Call try_window in a loop until
10510 fonts_changed_p is zero (Bug#2423).
10511
10512 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10513
10514 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10515 the end of TEXT_AREA. (Bug#5856)
10516
10517 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10518
10519 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10520 HAVE_GCONF.
10521
10522 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10523
10524 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10525 prev.orig_type, for resolving type of NSM. (Bug#5858)
10526
10527 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10528
10529 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10530 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10531 in current_font.
10532 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10533 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10534 New functions.
10535 (syms_of_xsettings): Initialize current_font.
10536 defsubr Sfont_get_system_normal_font.
10537
10538 * xsettings.h (Ffont_get_system_normal_font)
10539 (xsettings_get_system_normal_font): Declare.
10540
10541 * xfns.c (extern xlwmenu_default_font): Remove.
10542 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10543 to xlwmenu.c.
10544
10545 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10546 menu items in UTF-8.
10547
10548 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10549 (apply_systemfont_to_menu): New function.
10550 (set_frame_menubar, create_and_show_popup_menu):
10551 Call apply_systemfont_to_menu.
10552
10553 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10554
10555 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10556 FRAME_LINE_TO_PIXEL_Y.
10557
10558 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10559 pixelwidth/height.
10560
10561 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10562
10563 Simplify code for HP machines.
10564 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10565 for GNU_LINUX, not needed.
10566 (UNEXEC, NEED_BSDTTY): Move definitions...
10567 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10568
10569 * m/iris4d.h (UNEXEC): Move definition ...
10570 * s/irix6-5.h (UNEXEC): ... here.
10571
10572 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10573
10574 * xfns.c (set_machine_and_pid_properties): New function.
10575 (Fx_create_frame): Call set_machine_and_pid_properties.
10576
10577 2010-04-03 Eli Zaretskii <eliz@gnu.org>
10578
10579 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10580 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10581 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10582
10583 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10584 in this function. (Bug#5703)
10585
10586 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
10587
10588 * nsterm.h: Fix last change.
10589
10590 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10591
10592 * m/intel386.h (NO_REMAP): Move definition ...
10593 * s/msdos.h (NO_REMAP): ... here.
10594
10595 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10596
10597 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10598 used on those platforms.
10599
10600 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10601
10602 Remove extern errno declarations.
10603 * xterm.c:
10604 * xrdb.c:
10605 * w32term.c:
10606 * unexec.c:
10607 * unexaix.c:
10608 * sysdep.c:
10609 * process.c:
10610 * lread.c:
10611 * keyboard.c:
10612 * floatfns.c:
10613 * filelock.c:
10614 * fileio.c:
10615 * emacs.c (main):
10616 * ecrt0.c:
10617 * dispnew.c:
10618 * callproc.c:
10619 * buffer.c: Remove errno extern declarations.
10620 * s/netbsd.h (NEED_ERRNO): Remove.
10621
10622 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10623
10624 Remove all uses of LIBX11_SYSTEM.
10625 * Makefile.in (LIBX11_SYSTEM): Remove.
10626 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10627 instead.
10628
10629 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10630
10631 Remove support for DJGPP v1.x (bug#5813).
10632
10633 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10634 * s/msdos.h:
10635 * unexec.c (make_hdr, copy_text_and_data):
10636 * sysdep.c (wait_for_termination, sys_subshell):
10637 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10638 (IT_set_terminal_modes, __write, _rename, gethostname)
10639 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10640 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10641 the value of __DJGPP__.
10642 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10643 compatibility code.
10644 * lread.c:
10645 * gmalloc.c (memalign):
10646 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10647 * emacs.c (main):
10648 * dosfns.c (init_dosfns):
10649 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10650
10651 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10652
10653 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10654 string with `cursor' property comes from an `after-string'
10655 overlay. (Bug#5816)
10656
10657 2010-04-01 Glenn Morris <rgm@gnu.org>
10658
10659 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10660 Define as Makefile variables.
10661 (LIBX): Use above variables rather than directly using autoconf.
10662
10663 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10664
10665 Clean up BSD_SYSTEM use.
10666 * xterm.c:
10667 * process.c:
10668 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10669 for including <sys/ioctl.h>.
10670 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10671 code is only used for MSDOS.
10672
10673 2010-03-31 Juri Linkov <juri@jurta.org>
10674
10675 * image.c: Add `Qextension_data'.
10676 (syms_of_image): Initialize and staticpro `Qextension_data'.
10677 (Fimage_metadata): Rename from `Fimage_extension_data'.
10678 (gif_load): Put GIF extension data to the property
10679 `Qextension_data'.
10680
10681 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10682
10683 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10684 * nsterm.h: Fix prototype.
10685
10686 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10687
10688 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10689 trailing whitespace in right-to-left rows.
10690
10691 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10692
10693 Get rid of the direct_output optimizations.
10694 * keyboard.c (nonundocount): Remove extern declaration.
10695 (command_loop_1): Remove brittle optimisation for cheap and
10696 common operations.
10697 * xdisp.c (redisplay_internal): Don't bother checking
10698 redisplay_performed_directly_p any more.
10699 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10700 any more.
10701 * dispnew.c (redisplay_performed_directly_p)
10702 (direct_output_for_insert, direct_output_forward_char):
10703 * dispextern.h (redisplay_performed_directly_p)
10704 (direct_output_for_insert, direct_output_forward_char): Remove.
10705 * cmds.c (nonundocount): Make it static.
10706
10707 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10708
10709 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10710
10711 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10712
10713 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10714 invisible (Bug#5766).
10715
10716 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10717
10718 * xdisp.c (x_consider_frame_title, update_window_cursor):
10719 Remove HAVE_NS conditionals.
10720 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10721
10722 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10723 filename for the title.
10724 (ns_set_doc_edited): Do nothing if the selected window is a
10725 minibuffer window.
10726
10727 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10728 ns_set_doc_edited.
10729
10730 * nsterm.m: Remove unneeded prototype.
10731
10732 2010-03-31 Glenn Morris <rgm@gnu.org>
10733
10734 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10735 in the DOC file. (Bug#5336)
10736
10737 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10738
10739 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10740
10741 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10742
10743 * window.c (keys_of_window): Remove redundant/overridden bindings.
10744
10745 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10746
10747 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10748 Restore original behavior when the iterator is not bidi_p.
10749
10750 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10751
10752 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10753
10754 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10755
10756 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10757 are outside the range of cached character positions.
10758
10759 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10760
10761 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10762
10763 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10764
10765 Initial support for bidirectional editing.
10766
10767 * Makefile.in (obj): Include bidi.o.
10768 (bidi.o): New target.
10769
10770 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10771 ($(BLD)/bidi.$(O)): New target.
10772
10773 * bidi.c: New file.
10774
10775 * buffer.h (struct buffer): New members bidi_display_reordering
10776 and bidi_paragraph_direction.
10777
10778 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10779 and bidi_paragraph_direction.
10780 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10781 and bidi-paragraph-direction.
10782 (Fbuffer_swap_text): Swap the values of
10783 bidi_display_reordering and bidi_paragraph_direction.
10784
10785 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10786 (bidi_type_t, bidi_dir_t): New types.
10787 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10788 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10789 prev_stop, base_level_stop, and eol_pos.
10790 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10791 (IT_STACK_SIZE): Enlarge to 5.
10792 (struct glyph_row): New member reversed_p.
10793 <string_buffer_position>: Update prototype.
10794 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10795 glyph_row if bidi_it.paragraph_dir == R2L.
10796 (struct glyph): New members resolved_level and bidi_type.
10797
10798 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10799 processing or buffer's direction is right-to-left.
10800 (prepare_desired_row): Preserve the reversed_p flag.
10801 (row_equal_p): Compare the reversed_p attributes as well.
10802
10803 * xdisp.c (init_iterator): Initialize it->bidi_p.
10804 Call bidi_init_it and set it->paragraph_embedding from the current
10805 buffer's value of bidi_paragraph_direction.
10806 (reseat_1): Initialize bidi_it.first_elt.
10807 (set_iterator_to_next, next_element_from_buffer): Use the value of
10808 paragraph_embedding to determine the paragraph direction.
10809 (set_iterator_to_next): Under bidi reordering, call
10810 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10811 new_paragraph flag is set in the bidi iterator.
10812 (next_element_from_buffer): If bidi_it.first_elt is set,
10813 initialize paragraph direction and find the first character to
10814 display in the visual order. If reseated to a middle of a line,
10815 prime the bidi iterator starting at the line's beginning.
10816 Handle the situation where we overstepped stop_charpos due to
10817 non-linearity of the bidi iteration. Likewise for when we back up
10818 beyond the previous stop_charpos. When moving across stop_charpos,
10819 record it in prev_stop.
10820 (display_line): Set row->end and it->start for the next row to the
10821 next character in logical order. Always extend reversed_p rows to
10822 the end of line, even if they end at ZV. Copy the reversed_p flag
10823 to the next glyph row. Keep calling set_cursor_from_row for
10824 bidi-reordered rows even if we already have a possible candidate
10825 for cursor position. Set row_end after all the row's glyphs have
10826 been produced, by looping over the glyphs. Record the position
10827 after EOL in it->eol_pos, and use it to set end_pos of the last
10828 row produced for a continued line.
10829 <Qright_to_left, Qleft_to_right>: New variables.
10830 (syms_of_xdisp): Initialize and staticpro them.
10831 (string_buffer_position_lim): New function.
10832 (string_buffer_position): Most of code moved to
10833 string_buffer_position_lim. Last argument and return value are
10834 now EMACS_INT; all callers changed.
10835 (set_cursor_from_row): Rewritten to support bidirectional text and
10836 reversed glyph rows.
10837 (text_outside_line_unchanged_p, try_window_id):
10838 Disable optimizations if we are reordering bidirectional text and the
10839 paragraph direction can be affected by the change.
10840 (append_glyph, append_composite_glyph)
10841 (produce_image_glyph, append_stretch_glyph): Set the
10842 resolved_level and bidi_type members of each glyph.
10843 (append_glyph): If the glyph row is reversed, prepend the glyph
10844 rather than appending it.
10845 (handle_stop_backwards): New function.
10846 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10847 (reseat): Call handle_stop_backwards to recompute prev_stop and
10848 base_level_stop for the new position.
10849 (handle_invisible_prop): Under bidi iteration, skip invisible text
10850 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10851 paragraph direction. Update IT->prev_stop after skipping
10852 invisible text.
10853 (move_it_in_display_line_to): New variables prev_method
10854 and prev_pos. Compare for strict equality in
10855 BUFFER_POS_REACHED_P.
10856 (try_cursor_movement): Examine all the candidate rows that occlude
10857 point, to return the best match. If rows are bidi-reordered
10858 and point moved backwards, back up to the row that is not a
10859 continuation line, and start looking for a suitable row from
10860 there.
10861
10862 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10863 rather than appending, if the glyph_row's reversed_p flag is set.
10864 Set the resolved_level and bidi_type members of each glyph.
10865
10866 * .gdbinit (pbiditype): New command.
10867 (pgx): Use it to display bidi level and type of the glyph.
10868 (pitx): Display some bidi information about the iterator.
10869 (prowlims, pmtxrows): New commands.
10870
10871 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10872
10873 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10874 * s/usg5-4.h (LIBS_DEBUG):
10875 * s/irix6-5.h (C_DEBUG_SWITCH):
10876 * s/gnu-linux.h (LIBS_DEBUG):
10877 * s/darwin.h (LIBS_DEBUG):
10878 * s/bsd-common.h (LIBS_DEBUG):
10879 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10880 * m/iris4d.h (LIBS_DEBUG):
10881 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10882
10883 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10884 (LIBS_DEBUG): Remove definition.
10885
10886 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10887
10888 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10889 Windows.
10890
10891 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10892
10893 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10894 `connect' (Bug#5723).
10895
10896 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10897
10898 * process.c (Fmake_network_process): Call `select' for interrupted
10899 `connect' rather than creating new socket (Bug#5173).
10900
10901 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10902
10903 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10904
10905 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10906
10907 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10908
10909 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10910
10911 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10912 XLoadQueryFont.
10913
10914 2010-03-24 Kenichi Handa <handa@m17n.org>
10915
10916 * coding.c (decode_coding_ccl): Fix previous change for the
10917 multibyte case.
10918 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10919 case that the output buffer is fullfilled.
10920 (encode_coding): Setup ccl program here.
10921
10922 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10923
10924 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10925
10926 Simplify LIBS_MACHINE definitions.
10927 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10928 * m/iris4d.h (LIBS_MACHINE): Likewise.
10929 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10930 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10931 * s/netbsd.h: Remove commented out code.
10932
10933 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10934
10935 Remove dead code dealing with POSIX_SIGNALS.
10936 * atimer.c (set_alarm): Remove dead code, all USG systems define
10937 POSIX_SIGNALS.
10938 * data.c (arith_error): Likewise.
10939 * keyboard.c (input_available_signal, handle_user_signal)
10940 (interrupt_signal): Likewise.
10941 * process.c (sigchld_handler): Likewise.
10942 (create_process): Remove if 0 code. Remove HPUX conditional when
10943 !defined (POSIX_SIGNALS), it cannot be true.
10944 * syssignal.h: Remove USG5_4 and USG conditionals when
10945 !POSIX_SIGNALS, they cannot be true.
10946
10947 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10948 NO_SOCK_SIGIO, not used anymore.
10949
10950 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10951
10952 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10953 support vax on BSDs.
10954
10955 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10956 * s/aix4-2.h (ORDINARY_LINK): ... here.
10957
10958 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10959
10960 * Makefile.in (abs_builddir): Define.
10961 (bootstrap_exe): Use it.
10962 (VPATH): Use $(srcdir) instead of @srcdir@.
10963
10964 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10965
10966 * Makefile.in (bootstrap_exe): Use an absolute name.
10967
10968 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10969
10970 Remove support for old GNU/Linux using libc version 5.
10971 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10972 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10973
10974 Consolidate redundant definitions in s/bsd-common.h.
10975 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10976 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10977 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10978 doing it in all files that include this one.
10979 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10980 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10981 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10982 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10983 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10984 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10985 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10986 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10987 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10988
10989 Consolidate redundant definitions.
10990 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10991 it's undefined in all files that include this one.
10992 (POSIX_SIGNALS): Define here instead of doing it in all files that
10993 include this one.
10994 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10995 (POSIX_SIGNALS): Do not define.
10996 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10997 (POSIX_SIGNALS): Do not define.
10998 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10999 (POSIX_SIGNALS): Do not define.
11000
11001 Remove support for old UNIX System V systems.
11002 * s/unixware.h: Add the contents of s/usg5-4-2.h.
11003 * s/usg5-4-2.h: Remove.
11004
11005 Remove support for Solaris on PPC and for old versions.
11006 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
11007 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
11008 that cancel each other.
11009 * s/sol2-3.h:
11010 * s/sol2-4.h:
11011 * s/sol2-5.h: Remove.
11012 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
11013 (NO_REMAP): Remove, unused.
11014 (UNEXEC): Move definition ...
11015 * s/aix4-2.h (UNEXEC): ... here.
11016
11017 * s/openbsd.h: Remove support for non-ELF and for systems that do
11018 not support shared libraries.
11019 * s/netbsd.h:
11020 * s/freebsd.h: Likewise.
11021
11022 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11023
11024 Remove non-working support for lynxos 3.0.
11025 * s/lynxos.h: Remove file.
11026
11027 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
11028 COFF_BSD_SYMBOLS, nothing defines it anymore.
11029
11030 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11031
11032 Remove obsolete uses of HAVE_SHM.
11033 * emacs.c (standard_args):
11034 (Fdump_emacs):
11035 (syms_of_emacs): Remove code depending on HAVE_SHM.
11036
11037 * alloc.c: Remove HAVE_SHM dependent definition.
11038
11039 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
11040
11041 2010-03-18 Glenn Morris <rgm@gnu.org>
11042
11043 * emacs.c (USAGE4): Hard-code bug address.
11044 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
11045 (bug_reporting_address): Remove.
11046 (main): Don't call bug_reporting_address.
11047
11048 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
11049 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
11050
11051 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
11052
11053 * xfns.c (Fx_create_frame):
11054 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
11055 on left.
11056
11057 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
11058
11059 * editfns.c (Fformat): Account for string precision when computing
11060 field width (Bug#5710).
11061
11062 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
11063
11064 * xfns.c (Fx_create_frame): Set default to Qright.
11065
11066 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
11067 all window systems.
11068
11069 2010-03-12 Eli Zaretskii <eliz@gnu.org>
11070
11071 These changes remove termcap.c from the build on Posix platforms.
11072 * Makefile.in (termcapobj): Move termcap.o from here...
11073 (MSDOS_OBJ): ...to here.
11074 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
11075 now identical to when LIBS_TERMCAP is defined.
11076
11077 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
11078
11079 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
11080
11081 * config.in: Regenerated. (See top-level ChangeLog.)
11082
11083 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
11084
11085 * Branch for 23.2.
11086
11087 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11088
11089 Cleanup setup of gl_state in various parts of the code.
11090 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
11091 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
11092 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
11093 (skip_chars):
11094 * regex.c (regex_compile): Use it.
11095 (re_compile_pattern): Don't set gl_state.current_syntax_table since
11096 it's now set in regex_compile when/if we need it.
11097
11098 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
11099
11100 Make it possible to C-g in a tight bytecode loop again (bug#5680).
11101 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
11102 (QUIT): Use it to consolidate code and remove redundancy.
11103 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
11104
11105 * regex.c (regex_compile): Setup gl_state as well.
11106
11107 * syntax.c (skip_chars): Setup gl_state (bug#3823).
11108 (in_classes): Use CONSP before XCAR/XCDR.
11109
11110 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
11111
11112 * keymap.c (Fwhere_is_internal): Use Fequal to compare
11113 definitions, so that keyboard macros are correctly handled
11114 (Bug#5481).
11115
11116 2010-03-02 Eli Zaretskii <eliz@gnu.org>
11117
11118 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
11119 text that could be relocated inside the call to emacs_mule_char.
11120 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
11121 (CODING_DECODE_CHAR): Add a comment describing its purpose.
11122
11123 2010-03-02 Kenichi Handa <handa@m17n.org>
11124
11125 * character.c (parse_str_as_multibyte): Fix handling of the
11126 multibyte form of raw-bytes.
11127 (str_as_multibyte): Likewise.
11128
11129 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
11130 form of raw-bytes.
11131
11132 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
11133
11134 * charset.c (load_charset_map_from_file)
11135 (load_charset_map_from_vector): Zero out allocated
11136 charset_map_entries before using them.
11137
11138 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
11139
11140 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
11141
11142 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
11143
11144 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
11145 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
11146
11147 2010-02-26 Kenichi Handa <handa@m17n.org>
11148
11149 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
11150
11151 * xdisp.c (reseat_to_string): Fix previous change.
11152
11153 2010-02-26 David Reitter <david.reitter@gmail.com>
11154
11155 * nsfont.m (nsfont_draw): ns_antialias_text should be a
11156 Lisp_Object (Bug#4736).
11157
11158 2010-02-25 Kenichi Handa <handa@m17n.org>
11159
11160 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
11161
11162 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
11163
11164 * xterm.c (XTflash): Move declarations before statements.
11165
11166 * gtkutil.c (xg_get_gdk_display): Remove (unused).
11167 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
11168 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
11169 (xg_create_tool_bar): Remove unused variables.
11170 (x_wm_set_size_hint): Move declarations before statements.
11171 (xg_create_frame_widgets): Remove variable grav.
11172
11173 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
11174
11175 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
11176
11177 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11178
11179 * term.c (fatal): Add a final \n if needed (bug#5596).
11180
11181 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
11182
11183 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
11184
11185 2010-02-18 Glenn Morris <rgm@gnu.org>
11186
11187 * callint.c (Finteractive): Doc fix.
11188
11189 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
11190
11191 * coding.c (record_conversion_result):
11192 Handle CODING_RESULT_INSUFFICIENT_DST.
11193 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
11194 memory allocation error.
11195
11196 2010-02-17 Kenichi Handa <handa@m17n.org>
11197
11198 * coding.c (decode_coding_ccl): Don't setup ccl program here.
11199 Fix for the case that the output buffer is fullfilled.
11200 (decode_coding): Setup ccl program here. Keep looping when the
11201 decoder stopped because the output buffer is
11202 fullfilled (bug#5534).
11203
11204 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
11205
11206 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
11207
11208 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
11209 bug #5571.
11210 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
11211 overdrawn.
11212
11213 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
11214
11215 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11216 doing_interact here.
11217 (ice_connection_closed): New function.
11218 (x_session_check_input, smc_die_CB, ice_io_error_handler)
11219 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
11220 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
11221 returns I/O error.
11222 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
11223 bug #5512.
11224
11225 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
11226
11227 * nsfont.m (nsfont_open): The system's value for the font descent
11228 is negative, so round it down to avoid clipping.
11229
11230 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
11231
11232 * charset.c (load_charset_map_from_file)
11233 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
11234 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
11235
11236 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
11237
11238 * charset.c (load_charset_map_from_file): Allocate large
11239 charset_map_entries structure on the heap rather than the stack.
11240 (Bug#5526).
11241
11242 2010-01-31 Kenichi Handa <handa@m17n.org>
11243
11244 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
11245 size in NAME is invalid, return -1 (Bug#5396).
11246
11247 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
11248
11249 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11250 <deactivated@gmail.com> (Bug#3605).
11251
11252 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
11253
11254 * fileio.c (Frename_file): Correctly rename symlinks to
11255 directories (Bug#5496).
11256
11257 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11258
11259 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11260
11261 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11262
11263 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11264
11265 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
11266
11267 * frame.c (DEFAULT_ROWS): Change default to 35.
11268
11269 * xfns.c (x_default_font_parameter): Change default XFT font to
11270 monospace-10 (Bug#3643).
11271
11272 2010-01-29 Eli Zaretskii <eliz@gnu.org>
11273
11274 * w32inevt.c (key_event): Remove unnecessary comparison of
11275 event->uChar.AsciiChar with 128.
11276
11277 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
11278
11279 * fileio.c (Frename_file): Fix last change (Bug#5487).
11280
11281 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11282
11283 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11284
11285 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11286
11287 * xfns.c (Fx_create_frame): Remove window size matching code from
11288 2010-01-15.
11289 (x_get_current_desktop, x_get_desktop_workarea): Remove.
11290
11291 2010-01-27 Jason Rumney <jasonr@gnu.org>
11292
11293 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
11294 (key_event): Use unicode for characters 128 and higher (Bug#4567).
11295
11296 2010-01-27 Kenichi Handa <handa@m17n.org>
11297
11298 * regex.c (analyse_first): Fix setting of fastmap for unibyte
11299 pattern string (Bug#4209).
11300
11301 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
11302
11303 * fileio.c (Frename_file): Call copy-directory and
11304 delete-directory for directories, in order to handle cross-device
11305 renaming (Bug#3353).
11306
11307 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11308
11309 * xfns.c (Fx_create_frame): If frame height is too big, try
11310 sizes 24 and 10. Bug #3643.
11311
11312 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11313
11314 Try and fix bug#788, hopefully for real this time.
11315 * keymap.c (shadow_lookup): Add `remap' arg.
11316 (describe_map, describe_vector): Update calls to shadow_lookup.
11317 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11318 `remapped' so this flag is applicable to `sequence'. Be careful to
11319 perform remapping during shadow_lookup check of remapped_sequences.
11320
11321 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11322
11323 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11324 png_check_sig, which has been removed in libpng 1.4.
11325
11326 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11327
11328 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11329 lacks this header file).
11330
11331 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11332
11333 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11334 as in Emacs 22.
11335
11336 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11337
11338 * lisp.h (make_pure_string): String pointer arg now points to const.
11339
11340 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11341 args now point to const.
11342
11343 2010-01-22 Eli Zaretskii <eliz@gnu.org>
11344
11345 * lread.c (Fload): Don't treat files without .elc extension as
11346 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11347 them. (bug#5303)
11348
11349 2010-01-20 Kenichi Handa <handa@m17n.org>
11350
11351 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11352 treat the source as actual byte sequence.
11353
11354 2010-01-19 Alan Mackenzie <acm@muc.de>
11355
11356 Fix spurious before-change-functions invocation from (insert ?\n).
11357 * textprop.c (set_text_properties): Rename parameter
11358 `signal_after_change_p' to `coherent_change_p', and make the
11359 invocation of `modify_region' conditional on it.
11360
11361 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11362
11363 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11364 for debug purpose.
11365 (syms_of_xsettings): Declare xft-settings.
11366
11367 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
11368
11369 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11370
11371 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11372
11373 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11374
11375 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
11376
11377 * emacs.c (standard_args): Adjust arg priorities to reflect how
11378 they are processed in startup.el.
11379
11380 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11381
11382 * Makefile.in (lisp, shortlisp): Update.
11383
11384 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11385
11386 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11387 code, link the new kboard into all_kboard before running Lisp code,
11388 and protect the new terminal with GCPRO (Bug#5365).
11389 (x_term_init): Remove unused var `atom'.
11390 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11391
11392 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11393
11394 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11395 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11396 to find out usable size of the desktop. Don't make frames larger than
11397 this. Bug #3643.
11398
11399 2010-01-15 Kenichi Handa <handa@m17n.org>
11400
11401 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11402
11403 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
11404
11405 * nsterm.m (Qnone): Define.
11406
11407 * nsfns.m (Qnone): Move definition to nsterm.m.
11408
11409 2010-01-14 Kenichi Handa <handa@m17n.org>
11410
11411 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11412 systems.
11413
11414 2010-01-14 Kenichi Handa <handa@m17n.org>
11415
11416 Make auto-composition work on all buffers even if they are
11417 fundamental mode.
11418
11419 * composite.c (Vauto_composition_mode): New variable.
11420 (composition_compute_stop_pos): Check Vauto_composition_mode
11421 instead of Vauto_composition_function.
11422 (composition_adjust_point, Ffind_composition_internal): Likewise.
11423 (syms_of_composite): Declare Lisp variable
11424 "auto-composition-mode" here.
11425
11426 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
11427
11428 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11429 during call to vendor-specific-keysyms (Bug#5365).
11430
11431 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11432
11433 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11434 Call SIGNAL_THREAD_CHECK (Bug#5333).
11435
11436 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11437 Call SIGNAL_THREAD_CHECK.
11438
11439 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11440
11441 Try to fix bug#5314. This is probably not the final word, tho.
11442 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11443 recent-auto-save-p as a side-effect.
11444 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11445 * buffer.c (Fkill_buffer, reset_buffer):
11446 * editfns.c (Fsubst_char_in_region):
11447 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11448 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11449
11450 2010-01-13 Kenichi Handa <handa@m17n.org>
11451
11452 Display buffer name, etc. in mode line by composing correctly.
11453
11454 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11455 STRING is not nil.
11456 (display_mode_element): Adjust for the change of
11457 decode_mode_spec and display_line.
11458 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11459 (display_string): Handle the case that STRING is non-null and
11460 LISP_STRING is not nil.
11461
11462 * xterm.c (x_draw_composite_glyph_string_foreground):
11463 Pay attention to s->face->overstrike.
11464
11465 * composite.c (composition_reseat_it): Don't check PT if STRING is
11466 non nil.
11467
11468 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11469
11470 * keyboard.c (read_char): Don't apply previous change when current
11471 buffer is unchanged by command execution.
11472
11473 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11474
11475 * keyboard.c (read_char): Return after executing from special map.
11476
11477 2010-01-12 Glenn Morris <rgm@gnu.org>
11478
11479 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11480 bug-gnu-emacs rather than emacs-pretest-bug.
11481
11482 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11483
11484 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11485 initializing the Lisp variables that depend on them.
11486
11487 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11488
11489 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11490 Clear areas that will not be updated after change of menu bar lines.
11491 Clear the menu bar window's current matrix when the window gets empty.
11492
11493 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
11494
11495 * intervals.h, textprop.c (extend_property_ranges): Return value
11496 and args changed. Discard properties that begin at or after the
11497 new end (Bug#5306).
11498
11499 * editfns.c (Fformat): Caller changed.
11500
11501 * nsterm.m (ns_set_default_prefs): Delete function.
11502 (syms_of_nsterm): Initialize ns_command_modifier,
11503 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11504 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11505
11506 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11507 position (Bug#4040).
11508
11509 2010-01-09 Eli Zaretskii <eliz@gnu.org>
11510
11511 * editfns.c (Ffloat_time): Doc fix.
11512
11513 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11514
11515 * xfns.c (Fx_create_frame): Don't create frame larger than display
11516 by default bug#3643.
11517
11518 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11519
11520 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11521 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11522 windows above internal border.
11523
11524 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11525 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11526 windows above internal border.
11527
11528 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11529 tool bar windows specially.
11530
11531 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11532
11533 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11534 specially.
11535 (XTflash): Take account of menu bar height.
11536
11537 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11538 specially.
11539
11540 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11541
11542 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11543 also be true before we can return early (bug #5339).
11544
11545 2010-01-06 David Reitter <david.reitter@gmail.com>
11546
11547 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11548 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11549 (Bug#3233).
11550
11551 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11552
11553 * font.c (font_open_entity): Enable chache and call cached_font_ok
11554 for the driver if defined.
11555 (QCuser_spec): New symbol.
11556 (font_spec_from_name): Save name as user-spec.
11557 (font_load_for_lface): Keep user-spec instead of name.
11558 (font_open_by_name): Save name as user-spec.
11559 (syms_of_font): Initialize QCuser_spec.
11560 (font_clear_prop): Clear name if it exists in font (bug#5157).
11561
11562 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11563 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11564 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11565
11566 * font.h (struct font_driver): Add cached_font_ok.
11567
11568 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11569
11570 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11571
11572 * xterm.c (x_new_font): Move code for setting rows/cols before
11573 resizing ...
11574 (x_set_window_size): ... to here. Bug #2568.
11575
11576 * gtkutil.c (xg_clear_under_internal_border): New function.
11577 (xg_frame_resized, xg_frame_set_char_size):
11578 Call xg_clear_under_internal_border.
11579 (xg_update_scrollbar_pos): Clear under old scroll bar position.
11580
11581 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
11582
11583 * keyboard.c (read_key_sequence): Catch keyboard switch after
11584 making a new tty frame (Bug#5095).
11585
11586 2010-01-05 Kenichi Handa <handa@m17n.org>
11587
11588 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11589
11590 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11591
11592 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11593 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11594 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11595
11596 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
11597
11598 * dbusbind.c (xd_add_watch): Improve debug message.
11599 (xd_remove_watch): Improve debug message. If DATA is the session
11600 bus, unset D-Bus session environment.
11601 (Fdbus_init_bus): Pass the bus as argument to
11602 dbus_connection_set_watch_functions. (Bug#5283)
11603
11604 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
11605
11606 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11607
11608 * lread.c (syms_of_lread): Make it clearer that these are the
11609 names of loaded files (Bug#5068).
11610
11611 * eval.c (run_hook_with_args): Handle the case where the global
11612 value has the obsolete single-function form (Bug#5026).
11613
11614 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
11615
11616 * minibuf.c (Fall_completions): Minor optimization.
11617
11618 2009-12-26 Eli Zaretskii <eliz@gnu.org>
11619
11620 * .gdbinit (pgx): Fix display of composite glyphs.
11621 Display cmp.from and cmp.to as well.
11622 (pitx): Fix last change.
11623
11624 2009-12-25 Kenichi Handa <handa@m17n.org>
11625
11626 * composite.h (composition_adjust_point): Update prototype.
11627
11628 * composite.c (composition_reseat_it): Don't make a composition
11629 spanning over point.
11630 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11631 composable characters.
11632 (composition_adjust_point): New arg NEW_PT. Callers changed.
11633
11634 * keyboard.c (command_loop_1): Force redisplay if the last point
11635 was within a composition.
11636 (adjust_point_for_property): Don't adjust point for automatic
11637 composition when called after buffer modification.
11638
11639 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11640
11641 * .gdbinit (pitx): Don't use enum names, use their values.
11642 Remove reference to non-existing value GET_FROM_COMPOSITION.
11643 (pgx): Don't use enum names, use their values.
11644 (pitmethod): New helper command.
11645 (pitx): Use it to display iteration method.
11646 (pgrowit): New command.
11647
11648 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11649
11650 Update dependencies in Makefile.in.
11651
11652 * Makefile.in (alloc.o): Depend on termhooks.h.
11653 (atimer.o): Depend on blockinput.h.
11654 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11655 and frame.h.
11656 (callint.o): Depend on systime.h, coding.h, and composite.h.
11657 (callproc.o): Depend on buffer.h.
11658 (casefiddle.o): Don't depend on charset.h.
11659 (casetab.o): Depend on character.h.
11660 (ccl.o): Depend on composite.h.
11661 (chartab.o): Depend on ccl.h.
11662 (cm.o): Depend on dispextern.h.
11663 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11664 (coding.o): Don't depend on $(INTERVALS_H).
11665 (composite.o): Don't depend on dispextern.h explicitly (it's in
11666 $(INTERVALS_H)). Depend on ccl.h.
11667 (data.o): Depend on systime.h, coding.h, composite.h,
11668 dispextern.h, font.h, and ccl.h.
11669 (dired.o): Depend on composite.h.
11670 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11671 composite.h (it's in $(INTERVALS_H)).
11672 (doc.o): Depend on systime.h, coding.h, and composite.h.
11673 (editfns.o): Don't depend explicitly on dispextern.h.
11674 (emacs.o): Depend on frame.h and coding.h.
11675 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11676 (fileio.o): Depend on frame.h and commands.h. Don't depend
11677 explicitly on dispextern.h.
11678 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11679 composite.h.
11680 (fns.o): Don't depend on termhooks.h.
11681 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11682 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11683 coding.h, $(INTERVALS_H), window.h, xterm.h.
11684 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11685 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11686 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11687 fontset.h, ccl.h, and ftfont.h.
11688 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11689 (gtkutil.o): Depend on dispextern.h and composite.h.
11690 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11691 termhooks.h, and ccl.h.
11692 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11693 (intervals.o): Depend on systime.h and coding.h.
11694 (keyboard.o): Depend on composite.h and coding.h.
11695 (keymap.o): Depend on coding.h and frame.h.
11696 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11697 (macros.o): Depend on systime.h, coding.h, and composite.h.
11698 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11699 and atimer.h.
11700 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11701 dispextern.h explicitly.
11702 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11703 Don't depend explicitly on dispextern.h and composite.h.
11704 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11705 (regex.o): Don't depend on charset.h.
11706 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11707 (search.o): Don't depend explicitly on composite.h.
11708 (sound.o): Depend on atimer.h and systime.h.
11709 (syntax.o): Don't depend explicitly on composite.h.
11710 (sysdep.o): Depend on coding.h and composite.h.
11711 (term.o): Depend on xterm.h and buffer.h.
11712 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11713 (textprop.o): Don't depend on dispextern.h explicitly.
11714 (undo.o): Depend on dispextern.h.
11715 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11716 dispextern.h and composite.h explicitly.
11717 (xdisp.o): Depend on ccl.h.
11718 (xfaces.o): Depend on coding.h and ccl.h.
11719 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11720 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11721 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11722 ftfont.h.
11723 (xgselect.o): New dependency.
11724 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11725 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11726 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11727 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11728 (xsmfns.o): Depend on frame.h and dispextern.h.
11729 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11730 sysselect.h.
11731
11732 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11733
11734 * font.c (Fclear_font_cache): Pass correct cache argument to
11735 font_clear_cache.
11736
11737 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11738
11739 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11740 twice.
11741
11742 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11743
11744 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11745 calling file-remote-p. Reported by Jim Meyering.
11746
11747 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11748
11749 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11750 avoid compiler warnings. (Bug #5217)
11751
11752 2009-12-14 Kenichi Handa <handa@m17n.org>
11753
11754 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11755 in 8-bit encoding.
11756
11757 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11758
11759 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11760 tooltip windows.
11761
11762 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11763
11764 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11765 Xatom_net_window_type.
11766
11767 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11768 Xatom_net_window_type.
11769
11770 * xterm.c (my_log_handler): New function.
11771 (x_term_init): Set my_log_handler as log handler during gtk_init
11772 so we can filter out buggy messages. (Bug #5120).
11773
11774 * xterm.c (xg_scroll_callback): Parameter list changed,
11775 use parameter GtkScrollType to determine scroll/line/page.
11776 Only allow dragging if a button < 4 is grabbed (bug #5177).
11777 (xg_end_scroll_callback): New function.
11778 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11779 xg_create_scroll_bar.
11780
11781 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11782 (scroll_end_callback): Remove.
11783 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11784 button-release-event. Replace value-changed event with change-value,
11785 bug #5177.
11786 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11787 bug #5177.
11788
11789 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11790 (xg_create_scroll_bar): Add GCallback end_callback.
11791
11792 * xftfont.c (QClcdfilter): New variable.
11793 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11794 (syms_of_xftfont): Initialize QClcdfilter.
11795
11796 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11797
11798 * xsettings.c (struct xsettings): Add member seen.
11799 (parse_xft_settings): Update member seen with what we have read.
11800 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11801 (apply_xft_settings): Only update Xft settings with what member seen
11802 indicates as new.
11803
11804 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11805
11806 * dispextern.h (struct text_pos): Use EMACS_INT.
11807 (struct glyph): Use EMACS_INT for charpos.
11808 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11809 region_beg_charpos, region_end_charpos,
11810 redisplay_end_trigger_charpos, and also for
11811 iterator_stack_entry.end_charpos and
11812 iterator_stack_entry.stop_charpos.
11813
11814 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11815
11816 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11817 (xg_create_scroll_bar): Call scroll_end_callback on button release
11818 event (bug #5177).
11819 (xg_event_is_for_scrollbar): != replaced with ==.
11820
11821 2009-12-12 Kenichi Handa <handa@m17n.org>
11822
11823 * ftfont.c (struct ftfont_info): New member matrix.
11824 (ftfont_open): Setup xftfont_info->matrix.
11825 (MFLTFontFT): New member matrix.
11826 (FLOOR, CEIL, ROUND): New macros.
11827 (ftfont_get_metrics): Handle matrix transformation.
11828 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11829
11830 * xftfont.c (struct xftfont_info): New member matrix.
11831 (xftfont_open): Setup xftfont_info->matrix.
11832
11833 2009-12-10 Kenichi Handa <handa@m17n.org>
11834
11835 * xdisp.c (append_space_for_newline): Consider face-remapping.
11836
11837 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11838
11839 * xsettings.c: Include "keyboard.h".
11840
11841 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11842
11843 Fix implicit function declarations.
11844 * cmds.c: Include "frame.h".
11845 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11846 * frame.h: Move declaration of delete_frame outside of
11847 HAVE_WINDOW_SYSTEM.
11848
11849 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11850
11851 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11852
11853 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11854 GTK builds.
11855
11856 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11857
11858 * unexelf.c (unexec): Don't search for .data twice.
11859
11860 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11861
11862 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11863 if push failed.
11864 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11865 of push_display_prop (Bug#5000).
11866
11867 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11868 value of font_list_entities (Bug#5085).
11869
11870 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11871
11872 Fix `string-to-number' to deal consistently with integers and floats.
11873 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11874 trailing characters, not just whitespace.
11875 (read1): Pass new arg 0 to keep old behavior.
11876 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11877 trailing chars, as it is already done for integers. Doc fixes.
11878 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11879
11880 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11881
11882 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11883 Delete unused enumeration value.
11884
11885 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11886
11887 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11888
11889 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11890
11891 * process.c (Fmake_network_process): Fix up the tests for
11892 "connectionless socket", so they DTRT for seqpacket sockets as well.
11893
11894 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11895
11896 * process.c (Qseqpacket): New symbol.
11897 (HAVE_SEQPACKET): New macro.
11898 (Fmake_network_process): Accept new :type `seqpacket'.
11899 (init_process): Add `seqpacket' feature when applicable.
11900 (syms_of_process): Initialize Qseqpacket.
11901
11902 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11903
11904 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11905 if entity is Qnil.
11906
11907 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11908
11909 * print.c (print_preprocess): Preprocess the key_and_value table of
11910 hashtables, even tho they're "hidden" (bug#5082).
11911
11912 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11913
11914 * frame.c (frame_make_pointer_invisible)
11915 (frame_make_pointer_visible): Declare f before statements.
11916
11917 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11918
11919 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11920 omitted dependencies on lisp.h.
11921
11922 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11923
11924 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11925 is NULL.
11926
11927 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11928
11929 * frame.c (frame_make_pointer_invisible)
11930 (frame_make_pointer_visible): Just return if there isn't any selected
11931 frame.
11932
11933 * search.c (simple_search): Remove warning by making *p const.
11934
11935 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11936
11937 * xdisp.c (power_letter): Remove duplicate const.
11938
11939 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11940
11941 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11942
11943 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11944 defaults (bug #5025).
11945
11946 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * insdel.c (adjust_markers_for_delete): Move it in the
11949 right direction! (bug#4803)
11950
11951 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11952
11953 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11954
11955 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11956
11957 2009-11-24 Glenn Morris <rgm@gnu.org>
11958
11959 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11960
11961 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11962
11963 * Makefile.in: Must create deps for ecrt0.o in its rule.
11964
11965 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11966 because that is what Gtk+ font dialog understands.
11967
11968 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11969 of Fcopy_sequence.
11970 (font_open_by_name): Put name given into QCname for font-object returned.
11971
11972 * frame.c (x_set_font): Save original font name as frame parameter
11973 font-parameter.
11974
11975 * xsettings.c (set_default_xft_settings): New function.
11976 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11977 is found.
11978
11979 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11980
11981 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11982 searching backwards through multibyte buffer.
11983
11984 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11985
11986 * xterm.c: #include xgselect.h.
11987 (x_initialize): Call xgselect_initialize.
11988
11989 * xsettings.c (something_changedCB): C++ comments => C comments.
11990 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11991 does that now.
11992
11993 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11994 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11995 (scroll_bar_button_cb): Remove.
11996 (create_menus): C++ comments => C comments. Don't bind grab-notify
11997 event.
11998 (xg_create_scroll_bar): Don't bind button-press-event and
11999 button-release-event.
12000
12001 * process.c: Include xgselect.h if defined (USE_GTK) ||
12002 defined (HAVE_GCONF).
12003 (wait_reading_process_output): Call xg_select for the same condition.
12004
12005 * xgselect.c (xg_select): New function to better integrate with
12006 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
12007
12008 * xgselect.h: New file, declare xg_select, xgselect_initialize.
12009
12010 * Makefile.in (XOBJ): Add xgselect.o.
12011
12012 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
12013
12014 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
12015 Remove ignored second argument. All callers changed.
12016 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
12017 (RE_STRING_CHAR_AND_LENGTH): Likewise.
12018 * xdisp.c (string_char_and_length): Likewise.
12019
12020 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
12021
12022 * xterm.c (x_new_font):
12023 * print.c (print_object):
12024 * cmds.c (Fself_insert_command): Move declarations before statements.
12025
12026 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
12027
12028 * s/cygwin.h: Remove unneeded linker flags.
12029
12030 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
12031
12032 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
12033
12034 * xsettings.h: Declare xsettings_get_system_font.
12035
12036 * xsettings.c (xsettings_get_system_font): New function.
12037 (init_gconf): No use initiating gconf unless we have Xft also.
12038 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
12039 HAVE_GCONF.
12040
12041 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
12042 add a blank entry so it doesn't collapse into nothing.
12043
12044 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12045
12046 * lread.c (Funintern): Comment out last change.
12047
12048 2009-11-19 Richard Stallman <rms@gnu.org>
12049
12050 * lread.c (Funintern): Error if symbol is t or nil.
12051
12052 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12053
12054 * insdel.c (make_gap_larger): Don't make as many assumptions about the
12055 representation of Lisp integers.
12056 Reported by MJ Chan <mjchan.inbox@gmail.com>.
12057
12058 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12059
12060 * lisp.h: Remove declaration of Ffont_get_system_font.
12061 * xfns.c: Move include of "xsettings.h".
12062 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
12063
12064 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12065
12066 * xsettings.c (something_changedCB, Ffont_get_system_font):
12067 Check use_system_font.
12068 (syms_of_xsettings): DEFVAR font-use-system-font.
12069
12070 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12071
12072 * xfns.c (x_default_font_parameter): Remove dead assignment.
12073
12074 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
12075
12076 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12077
12078 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
12079 not have FC_LCD_*. #define them if not there.
12080
12081 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
12082
12083 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
12084
12085 * xterm.c (handle_one_xevent): Call xft_settings_event for
12086 ClientMessage, PropertyNotify and DestroyNotify.
12087 (x_term_init): If we have XFT, get DPI from Xft.dpi.
12088 Call xsettings_initialize.
12089
12090 * xftfont.c (xftfont_fix_match): New function.
12091 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
12092 Call xftfont_fix_match after XftFontMatch.
12093
12094 * xfont.c (xfont_driver): Initialize all members.
12095
12096 * xfns.c (x_default_font_parameter):
12097 Try font from Ffont_get_system_font.
12098 Do not get font from x_default_parameter if we got one from
12099 Ffont_get_system_font.
12100 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
12101
12102 * w32font.c (w32font_driver): Initialize all members.
12103
12104 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
12105
12106 * lisp.h: Declare syms_of_xsettings.
12107
12108 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
12109 Handle CONFIG_CHANGED_EVENT.
12110
12111 * ftfont.c (ftfont_filter_properties): New function.
12112
12113 * frame.c (x_set_font): Remove unused variable lval.
12114
12115 * font.h (struct font_driver): Add filter_properties.
12116
12117 * font.c (font_put_extra): Don't return if val is nil, it means
12118 boolean option is off.
12119 (font_parse_fcname): Collect all extra properties in extra_props
12120 and call filter_properties for all drivers with extra_props and
12121 font as parameter.
12122 (font_open_entity): Do not use cache, it does not pick up new
12123 fontconfig settings like hinting.
12124 (font_load_for_lface): If spec had a name in it, store it in entity.
12125
12126 * emacs.c (main): Call syms_of_xsettings.
12127
12128 * config.in: HAVE_GCONF is new.
12129
12130 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
12131 xsettings.o is new.
12132
12133 2009-11-17 Kenichi Handa <handa@m17n.org>
12134
12135 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
12136 back to the default font in case that no suitable font is found.
12137
12138 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12139
12140 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
12141 Suggested by Chad Brown <yandros@mit.edu>.
12142 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
12143
12144 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
12145
12146 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
12147
12148 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
12149
12150 * Makefile.in: Ignore errors from mkdir when creating deps directory.
12151
12152 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
12153
12154 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
12155 has a parent.
12156
12157 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
12158 dependency files in deps/. Include those files into Makefile.
12159
12160 * config.in: Generated (AUTO_DEPEND).
12161
12162 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
12163
12164 * dbusbind.c (Vdbus_registered_objects_table): Rename from
12165 Vdbus_registered_functions_table, because it contains also
12166 properties. Fix docstring.
12167 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
12168
12169 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
12170
12171 * alloc.c (mark_object): Don't reprocess marked strings.
12172 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
12173 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
12174
12175 2009-11-13 Kenichi Handa <handa@m17n.org>
12176
12177 * category.c (word_boundary_p): Adjust for the change of the
12178 semantics of Vword_combining_categories.
12179 (Vword_combining_categories): Describe the slight change of the
12180 semantics.
12181
12182 2009-11-13 Eli Zaretskii <eliz@gnu.org>
12183
12184 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
12185
12186 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
12187
12188 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
12189
12190 * xdisp.c (syms_of_xdisp): Fix typo in last change.
12191
12192 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
12193
12194 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
12195
12196 2009-11-11 David Reitter <david.reitter@gmail.com>
12197
12198 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
12199 variables to fix 2009-11-09 change.
12200
12201 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
12202
12203 * process.c (ifflag_def): Make flag_sym constant.
12204 (Fnetwork_interface_info): Use a constant pointer.
12205 (ifflag_table):
12206 * xfns.c (cursor_bits):
12207 * xdisp.c (power_letter):
12208 * termcap.c (speeds, esctab):
12209 * sysdep.c (baud_convert):
12210 * keyboard.c (lispy_accent_codes, modifier_names):
12211 * image.c (xbm_format, xpm_format, pbm_format, png_format)
12212 (jpeg_format, tiff_format, gif_format, svg_format)
12213 (interlace_start, interlace_increment, gs_format):
12214 * gtkutil.c (separator_names):
12215 * fringe.c (swap_nibble):
12216 * fns.c (base64_value_to_char, base64_char_to_value):
12217 * fileio.c (make_temp_name_tbl):
12218 * coding.c (suffixes): Make constant.
12219
12220 * frame.c (make_initial_frame):
12221 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
12222 build_string.
12223 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
12224
12225 * s/freebsd.h:
12226 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
12227
12228 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
12229 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
12230
12231 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
12232 * xterm.c (syms_of_xterm):
12233 * xfaces.c (syms_of_xfaces):
12234 * xdisp.c (syms_of_xdisp):
12235 * lread.c (syms_of_lread):
12236 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
12237 build_string.
12238
12239 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
12240
12241 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12242
12243 * fns.c (Fplist_get): Merge the active and the commented out code.
12244
12245 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12246
12247 * keyboard.h: Declare timer_check.
12248
12249 * keyboard.c (timer_check_2): New function that does what the old
12250 timer_check did.
12251 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12252 returned, i.e. don't return -1 with timers pending.
12253
12254 * process.c: Remove extern declaration of timer_check.
12255
12256 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12257 even if timer_check returned -1.
12258
12259 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12260 xg_dialog_data.
12261 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12262 the event loop.
12263 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12264 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12265 Destroy the dialog after xg_dialog_run.
12266
12267 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12268
12269 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12270
12271 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12272
12273 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12274
12275 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
12276
12277 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12278
12279 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12280
12281 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12282 w32menu.c, and nsmenu.m.
12283 Simplify the obsolete case where position is nil.
12284 (cleanup_popup_menu): New function, moved from nsmenu.m.
12285 (struct skp): Remove slot `notreal'.
12286 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12287 adjust callers.
12288 (single_menu_item): Adjust call to parse_menu_item.
12289 (syms_of_menu): Defsubr x-popup-menu.
12290 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12291 (keymap_panes): Don't export any more.
12292 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12293 (xmenu_show): Declare.
12294 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12295 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12296 * keyboard.h (parse_menu_item): Update declaration.
12297 * xmenu.c (Fx_popup_menu): Remove.
12298 (syms_of_xmenu): Don't defsubr x-popup-menu.
12299 * w32menu.c (Fx_popup_menu): Remove.
12300 (syms_of_w32menu): Don't defsubr x-popup-menu.
12301 * nsmenu.m (cleanup_popup_menu): Remove.
12302 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12303 moved to menu.c's Fx_popup_menu.
12304 (Fx_popup_menu): Remove.
12305 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12306 menu_items (it's done in menu.c already).
12307
12308 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12309
12310 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12311 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12312
12313 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
12314
12315 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
12316 xmenu_show. Hide any tooltip before opening a menu.
12317 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12318 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12319
12320 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12321
12322 Let integers use up 2 tags to give them one extra bit and thus double
12323 their range.
12324 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12325 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12326 New macros.
12327 (enum Lisp_Type): Use them. Give explicit values.
12328 (Lisp_Type_Limit): Remove.
12329 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12330 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12331 Pay attention to USE_2_TAGS_FOR_INTS.
12332 (INTEGERP): Use LISP_INT_TAG_P.
12333 * fns.c (internal_equal): Simplify the default case.
12334 (sxhash): Use case_Lisp_Int.
12335 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12336 any more.
12337 (Ftype_of): Use case_Lisp_Int.
12338 (store_symval_forwarding): Take into account the fact that Ints can
12339 now have more than one tag.
12340 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
12341 (buffer_slot_type_mismatch):
12342 * xfaces.c (face_attr_equal_p):
12343 * print.c (print_object):
12344 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12345 Use case_Lisp_Int.
12346
12347 2009-11-06 Eli Zaretskii <eliz@gnu.org>
12348
12349 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12350
12351 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12352 warning.
12353
12354 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12355
12356 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12357
12358 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12359
12360 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12361 ButtonPressRelease and MotionNotify (bug#4870).
12362
12363 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12364
12365 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12366
12367 * xterm.c (syms_of_xterm):
12368 * xselect.c (syms_of_xselect):
12369 * xmenu.c (syms_of_xmenu):
12370 * xfns.c (syms_of_xfns):
12371 * xfaces.c (syms_of_xfaces):
12372 * xdisp.c (syms_of_xdisp):
12373 * window.c (syms_of_window):
12374 * w32fns.c (syms_of_w32fns):
12375 * undo.c (syms_of_undo):
12376 * textprop.c (syms_of_textprop):
12377 * terminal.c (syms_of_terminal):
12378 * syntax.c (syms_of_syntax):
12379 * sound.c (syms_of_sound):
12380 * search.c (syms_of_search):
12381 * print.c (syms_of_print):
12382 * minibuf.c (syms_of_minibuf):
12383 * macros.c (syms_of_macros):
12384 * keymap.c (syms_of_keymap, initial_define_key)
12385 (initial_define_lispy_key):
12386 * keyboard.c (syms_of_keyboard):
12387 * insdel.c (syms_of_insdel):
12388 * image.c (syms_of_image):
12389 * fringe.c (syms_of_fringe):
12390 * frame.c (syms_of_frame):
12391 * fontset.c (syms_of_fontset):
12392 * fns.c (syms_of_fns):
12393 * fns.c (syms_of_fns):
12394 * fileio.c (syms_of_fileio):
12395 * fileio.c (syms_of_fileio):
12396 * eval.c (syms_of_eval):
12397 * doc.c (syms_of_doc):
12398 * dispnew.c (syms_of_display):
12399 * dired.c (syms_of_dired):
12400 * dbusbind.c (syms_of_dbusbind):
12401 * data.c (syms_of_data):
12402 * composite.c (syms_of_composite):
12403 * coding.c (syms_of_coding):
12404 * cmds.c (syms_of_cmds):
12405 * charset.c (define_charset_internal, syms_of_character):
12406 * ccl.c (syms_of_ccl):
12407 * category.c (syms_of_category, init_category_once):
12408 * casetab.c (syms_of_casetab):
12409 * casefiddle.c (syms_of_casefiddle):
12410 * callint.c (syms_of_callint):
12411 * bytecode.c (syms_of_bytecode):
12412 * buffer.c (keys_of_buffer, syms_of_buffer):
12413 * alloc.c (syms_of_alloc):
12414 * process.c (syms_of_process, init_process):
12415 * lread.c (syms_of_lread, init_obarray):
12416 * font.c (build_style_table):
12417 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12418 intern_c_string, calls to make_pure_string with
12419 make_pure_c_string. Use pure_cons instead of Fcons.
12420
12421 * process.c (socket_options): Make it const.
12422 (set_socket_option, init_process): Use a const pointer.
12423
12424 * lread.c (intern_c_string): New function.
12425 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12426 (defvar_int): Uset it. Make the name const char*.
12427
12428 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12429 (defvar_int): Update prototypes.
12430 (DEFUN, EXFUN): Support for prototypes is now required.
12431 (intern_c_string): New prototype.
12432 (struct Lisp_Subr): Make symbol_name constant.
12433
12434 * font.c (struct table_entry): Remove unused member. Make NAMES
12435 constant.
12436 (weight_table, slant_table, width_table): Make constant.
12437
12438 * emacs.c (struct standard_args): Make name and longname constant.
12439
12440 * character.h (DEFSYM): Use intern_c_string.
12441
12442 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12443
12444 * alloc.c (make_pure_c_string): New function.
12445
12446 * eval.c (Fautoload): Purecopy all arguments.
12447
12448 2009-11-05 Kenichi Handa <handa@m17n.org>
12449
12450 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12451 the buffer in case of replace.
12452
12453 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12454
12455 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12456
12457 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12458
12459 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12460 when applicable (bug#4851).
12461
12462 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12463 (P_): Support for prototypes is now required.
12464
12465 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
12466
12467 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12468 (Bug#4827).
12469
12470 2009-10-30 Eli Zaretskii <eliz@gnu.org>
12471
12472 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12473
12474 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12475
12476 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12477
12478 * lread.c (Fload): Purecopy the file name when building
12479 Vpreloaded_file_list.
12480
12481 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12482
12483 * w32fns.c (syms_of_w32fns): Change default value of
12484 w32-scroll-lock-modifier to nil. (Bug#2827)
12485
12486 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12487
12488 * minibuf.c (Fall_completions): Fix typos in docstring.
12489
12490 2009-10-26 Andreas Schwab <schwab@redhat.com>
12491
12492 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12493
12494 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12495
12496 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12497 For delta < 0, skip check that only makes sense when the mini-window
12498 is going to be enlarged. (Bug#4534)
12499
12500 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
12501
12502 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12503 string in menu maps (Bug#4471).
12504
12505 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
12506
12507 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12508 FRAME_NS_VIEW on terminal frames (Bug#4765).
12509
12510 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12511
12512 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12513 DBUS_TYPE_UINTnn separately to get proper sign extension.
12514
12515 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12516 can properly handle unsigned types.
12517 (make_uid, make_gid): Remove.
12518
12519 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12520 types again.
12521
12522 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12523 (system_process_attributes): Likewise.
12524
12525 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12526
12527 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12528
12529 * eval.c (Fautoload): Purecopy the filename. Simplify.
12530
12531 * category.c (Fdefine_category): Purecopy docstring.
12532
12533 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12534
12535 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12536
12537 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12538
12539 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
12540
12541 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12542 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12543 (Bug#4775).
12544
12545 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12546
12547 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12548 (init_fileio_once):
12549 * lisp.h (init_fileio_once): Remove.
12550 * emacs.c (main): Don't call init_fileio_once.
12551
12552 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12553
12554 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12555
12556 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12557
12558 * doprnt.c (doprnt): Fix overflow check.
12559
12560 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12561
12562 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12563
12564 * xterm.h (x_wait_for_event): Declare it.
12565
12566 * xterm.c (pending_event_wait): New variable.
12567 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12568 see pending_event_wait.eventtype.
12569 (handle_one_xevent): Don't change gravity when parent changes.
12570 (x_new_font): Call change_frame_size with new rows/columns before we
12571 try to resize the frame.
12572 (x_wait_for_event): New function.
12573 (x_set_window_size_1): Don't change gravity unless change_gravity
12574 is set.
12575 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12576 don't change frame size, instead wait for the ConfigureNotify.
12577 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12578 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12579 (x_initialize): Initialize pending_event_wait.
12580
12581 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12582 size.
12583
12584 * widget.c (EmacsFrameSetValues): Add comment.
12585 (EmacsFrameSetCharSize): Just call x_set_window_size.
12586
12587 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12588 x_wait_for_event.
12589 (flush_and_sync): Remove again.
12590 (xg_get_font_name): Suggest monospace if no previous font is known.
12591
12592 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12593
12594 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12595 8th bit, since that only made sense in the ASCII world (bug#4751).
12596
12597 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12598
12599 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12600 processing pending events when event is filtered for input method.
12601 (Bug#3681)
12602
12603 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
12604
12605 * fns.c: Add #endif accidentally removed in previous change.
12606
12607 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12608
12609 * fns.c: Remove code for unsupported system: MAC_OS.
12610 * image.c: Likewise. Include setjmp.h.
12611
12612 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12613
12614 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12615 pixel -1 (bug #4742).
12616
12617 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12618
12619 * process.c (create_pty): Remove conditionals for no longer
12620 supported systems: UNIPLUS and RTU.
12621
12622 * xterm.c:
12623 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12624
12625 * alloc.c: Do not define struct catchtag.
12626 * eval.c: Move struct catchtag definition ...
12627 * lisp.h: ... here.
12628
12629 * image.c: Move png.h #include earlier to avoid warnings.
12630
12631 * xterm.c:
12632 * xsmfns.c:
12633 * xselect.c:
12634 * xrdb.c:
12635 * xmenu.c:
12636 * xftfont.c:
12637 * xfont.c:
12638 * xfns.c:
12639 * xfaces.c:
12640 * xdisp.c:
12641 * window.c:
12642 * widget.c:
12643 * w32xfns.c:
12644 * w32uniscribe.c:
12645 * w32term.c:
12646 * w32select.c:
12647 * w32reg.c:
12648 * w32proc.c:
12649 * w32menu.c:
12650 * w32inevt.c:
12651 * w32heap.c:
12652 * w32font.c:
12653 * w32fns.c:
12654 * w32console.c:
12655 * w32.c:
12656 * w16select.c:
12657 * vm-limit.c:
12658 * unexsol.c:
12659 * unexec.c:
12660 * unexcw.c:
12661 * unexaix.c:
12662 * undo.c:
12663 * tparam.c:
12664 * textprop.c:
12665 * terminfo.c:
12666 * terminal.c:
12667 * termcap.c:
12668 * term.c:
12669 * syntax.c:
12670 * sound.c:
12671 * sheap.c:
12672 * search.c:
12673 * scroll.c:
12674 * region-cache.c:
12675 * regex.c:
12676 * ralloc.c:
12677 * process.c:
12678 * print.c:
12679 * nsterm.m:
12680 * nsselect.m:
12681 * nsmenu.m:
12682 * nsimage.m:
12683 * nsfont.m:
12684 * nsfns.m:
12685 * msdos.c:
12686 * minibuf.c:
12687 * menu.c:
12688 * marker.c:
12689 * macros.c:
12690 * keymap.c:
12691 * keyboard.c:
12692 * intervals.c:
12693 * insdel.c:
12694 * indent.c:
12695 * gtkutil.c:
12696 * ftxfont.c:
12697 * ftfont.c:
12698 * fringe.c:
12699 * frame.c:
12700 * fontset.c:
12701 * font.c:
12702 * fns.c:
12703 * floatfns.c:
12704 * filelock.c:
12705 * fileio.c:
12706 * emacs.c:
12707 * editfns.c:
12708 * dosfns.c:
12709 * doprnt.c:
12710 * doc.c:
12711 * dispnew.c:
12712 * dired.c:
12713 * dbusbind.c:
12714 * data.c:
12715 * composite.c:
12716 * coding.c:
12717 * cmds.c:
12718 * cm.c:
12719 * chartab.c:
12720 * charset.c:
12721 * character.c:
12722 * ccl.c:
12723 * category.c:
12724 * casetab.c:
12725 * casefiddle.c:
12726 * callproc.c:
12727 * callint.c:
12728 * bytecode.c:
12729 * buffer.c:
12730 * atimer.c: Include setjmp.h. (Bug#4643)
12731
12732 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12733
12734 Remove leftover table unibyte_to_multibyte_table.
12735 * character.c (unibyte_to_multibyte_table): Remove.
12736 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12737 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12738 * character.h (UNIBYTE_TO_CHAR): New macro.
12739 (MAKE_CHAR_MULTIBYTE): Use it.
12740 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12741 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12742 (message_dolog, set_message_1):
12743 * search.c (Freplace_match):
12744 * editfns.c (Fcompare_buffer_substrings):
12745 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12746 (concat):
12747 * insdel.c (copy_text, count_size_as_multibyte):
12748 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12749 * term.c (produce_glyphs):
12750 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12751 * regex.c (RE_CHAR_TO_MULTIBYTE):
12752 * cmds.c (internal_self_insert):
12753 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12754
12755 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12756
12757 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12758
12759 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12760
12761 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12762
12763 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12764
12765 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12766
12767 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12768 still needed under Tiger.
12769
12770 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12771
12772 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12773 __Apple__.
12774
12775 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12776
12777 2009-10-15 Kenichi Handa <handa@m17n.org>
12778
12779 * print.c (print_object): Escape a symbol like "2E10" too.
12780
12781 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12782
12783 Cleanups and changes for 64-bit compile under Snow Leopard.
12784 Based on suggestions by Erik Charlebois.
12785
12786 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12787
12788 * nsfont.m (ns_char_width): Replace deprecated call.
12789 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12790 cast argument.
12791 (nsfont_open): Use ns_char_width() everywhere.
12792 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12793
12794 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12795
12796 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12797 where appropriate.
12798
12799 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12800 where appropriate.
12801 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12802 Use stringWithUTF8String.
12803 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12804
12805 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12806 Add formal protocol mention to inheritance.
12807 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12808
12809 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12810 Fix printf format.
12811 (ns_query_color): Use CGFloat where appropriate.
12812 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12813 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12814 argument.
12815
12816 * config.in (NS_HAVE_NSINTEGER): Drop.
12817
12818 * dbusbind.c (dbus-method-return-internal)
12819 (dbus-method-error-internal): Use long format in printf, and cast
12820 argument.
12821
12822 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12823 in printf, and cast argument.
12824
12825 * process.c (list_processes_1): Use long format in printf, and
12826 cast argument.
12827
12828 2009-10-11 Glenn Morris <rgm@gnu.org>
12829
12830 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12831
12832 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12833
12834 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12835 menu bar with a small width so it doesn't enlarge the frame.
12836
12837 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12838
12839 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12840
12841 2009-10-06 Glenn Morris <rgm@gnu.org>
12842
12843 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12844 SOME_MACHINE_LISP (this enters indirectly via DOC).
12845
12846 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12847
12848 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12849
12850 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12851
12852 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12853 Doc fix.
12854
12855 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12856
12857 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12858
12859 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12860
12861 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12862 used anymore outside fileio.c.
12863
12864 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12865
12866 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12867
12868 * lisp.h (Qdelete_directory_internal):
12869 Declare, instead of Qdelete_directory.
12870
12871 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12872
12873 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12874
12875 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12876
12877 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12878
12879 * fileio.c (Fdelete_directory_internal): Rename from
12880 Fdelete_directory. It is not a command anymore. It has no file
12881 name handler.
12882
12883 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12884
12885 * xdisp.c (get_next_display_element): Use an enum in last change.
12886
12887 2009-09-28 Kenichi Handa <handa@m17n.org>
12888
12889 * xdisp.c (get_next_display_element): Pay attention to
12890 unibyte_display_via_language_environment in handling
12891 Vnobreak_char_display.
12892
12893 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12894
12895 * nsterm.h (ns_app_name): New extern variable.
12896
12897 * nsterm.m (ns_app_name): New variable.
12898 (ns_term_init): Set and use it.
12899 (ns_term_shutdown): Use it.
12900
12901 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12902 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12903
12904 * nsfns.m (ns_set_name_iconic, ns_set_name)
12905 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12906 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12907
12908 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12909 Remove double-casting in client_data comparison.
12910
12911 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12912
12913 * keyboard.c (make_lispy_event): Remember last wheel direction.
12914 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12915
12916 2009-09-26 Glenn Morris <rgm@gnu.org>
12917
12918 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12919 internal.elc. Add term/pc-win.elc.
12920 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12921 term/x-win.elc.
12922 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12923 term/w32-win.elc.
12924 (NS_SUPPORT): New.
12925 (lisp): Add NS_SUPPORT.
12926 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12927
12928 2009-09-25 David Reitter <david.reitter@gmail.com>
12929
12930 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12931 on Mac OS X 10.6+ (bug#4513).
12932
12933 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12934
12935 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12936 some parts of Emacs code (like font selection) don't grok them.
12937 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12938
12939 2009-09-24 Andreas Schwab <schwab@redhat.com>
12940
12941 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12942
12943 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12944
12945 * dired.c (Fdirectory_files): Fix typo in docstring.
12946
12947 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12948
12949 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12950 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12951 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12952 under GNUstep.
12953 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12954
12955 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12956 glyph advancement.
12957
12958 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12959
12960 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12961 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12962
12963 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12964 deleted (bug #4492).
12965
12966 * nsfont.m (Vns_reg_to_script): New lisp variable.
12967 (syms_of_nsfont): Declare it.
12968 (ns_registry_to_script): New function.
12969 (ns_get_req_script): Call it.
12970 (ns_findfonts): Don't give up on non-unicode registry.
12971
12972 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12973
12974 2009-09-20 Tom Tromey <tromey@redhat.com>
12975
12976 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12977 batch mode (bug#4228).
12978
12979 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12980
12981 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12982 carefully. (Bug #4339)
12983
12984 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12985
12986 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12987
12988 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12989
12990 * emacs.c (inhibit_x_resources): Update doc string for NS.
12991 (main) [HAVE_NS]: Don't process --no-init-file option.
12992 Remove legacy code for -NXHost. Fix error printf in daemon case.
12993
12994 * nsterm.h (ns_no_defaults): Remove.
12995
12996 * nsterm.m (ns_no_defaults): Remove.
12997 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12998 (ns_use_qd_smoothing): Remove legacy variable.
12999 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
13000 don't update the NSWindow itself.
13001 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
13002 Improve state detection and store user rect ourselves. (Bug #3581)
13003
13004 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
13005 ns_use_qd_smoothing.
13006
13007 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
13008 platform versions. Drop support for emacs-20-style face specs.
13009 (x-close-connection): Drop PSFlush() under OS X.
13010 (x-focus-frame): Activate the app first. (Bug #4180)
13011
13012 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
13013
13014 * emacs.c (inhibit_x_resources): New variable.
13015 (main) [HAVE_NS]: Don't process --quick command line option.
13016 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
13017
13018 * lisp.h (inhibit_x_resources): Declare it extern.
13019
13020 * w32reg.c (x_get_string_resource):
13021 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
13022
13023 2009-09-17 Eli Zaretskii <eliz@gnu.org>
13024
13025 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
13026 Add lisp/term/internal.elc.
13027
13028 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13029
13030 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
13031 (bug#4461).
13032
13033 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
13034
13035 * puresize.h (BASE_PURESIZE): Increase to 1290000.
13036
13037 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
13038 (OBJECTS_MACHINE): Remove, unused.
13039
13040 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
13041
13042 * frame.c (x_get_resource_string): Remove unused.
13043
13044 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
13045
13046 * xterm.c (x_new_font): Call change_frame_size before calling
13047 x_set_window_size, in case frame size won't change.
13048
13049 * frame.c (x_set_font): Remove dead code.
13050
13051 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
13052
13053 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
13054
13055 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13056
13057 * lread.c (Fload): Don't output a message after loading an obsolete
13058 package any more (done in Lisp now).
13059
13060 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
13061
13062 * fns.c (syms_of_fns): Doc fix (Bug#4227).
13063
13064 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13065
13066 * keymap.c (Fwhere_is_internal): Use nconc2.
13067
13068 2009-09-11 Alan Mackenzie <acm@muc.de>
13069
13070 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
13071 batch mode.
13072
13073 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
13074
13075 * xdisp.c (display_mode_element): Detect cycles.
13076
13077 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13078
13079 * keymap.c (where_is_internal): Don't erroneously return nil right after
13080 filling the cache.
13081 (where_is_internal_1): Fix up typo.
13082
13083 2009-09-11 Glenn Morris <rgm@gnu.org>
13084
13085 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
13086 share a common doc-string.
13087
13088 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13089
13090 * keymap.c (get_keymap): Return the actual keymap symbol rather than
13091 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
13092
13093 * keymap.c (QCadvertised_binding): New constant.
13094 (syms_of_keymap): Initialize it.
13095 (Fwhere_is_internal): Try and use bindings from :advertised-binding
13096 if applicable.
13097
13098 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13099
13100 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
13101 (parse_menu_item): Streamline since bindings are recomputed all the
13102 time anyway. Don't bother checking Vdefine_key_rebound_commands any
13103 more and don't support lmenu's menu-alias any more either.
13104
13105 * keymap.c (where_is_internal_data): Make noindirect a boolean.
13106 (where_is_internal): Strip it down to only traverse the keymaps.
13107 Move the cache handling from Fwhere_is_internal to here.
13108 (Fwhere_is_internal): Move the handling of remapping and the choice of
13109 the best binding from where_is_internal to here.
13110 Unify the cached/noncached paths, so remapping is also handled
13111 correctly when the cache is used, and so the cache can be used to
13112 speed up remap-handling when applicable.
13113 Give preference to non-remapped bindings.
13114 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
13115 non-remapped bindings.
13116 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
13117 command remapping.
13118
13119 * xdisp.c (display_mode_element): Move list length limit from 50 to
13120 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
13121
13122 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
13123
13124 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
13125
13126 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
13127
13128 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
13129 (Bug#4334)
13130
13131 * keymap.c (where_is_internal): Filter out shadowed remappings.
13132 Assume that where_is_internal returns unshadowed bindings to simplify
13133 the code and get rid of the gotos. Use ASIZE.
13134
13135 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
13136
13137 * xterm.c (x_focus_changed): If we get a focusout and pointer
13138 is invisible, make it visible.
13139
13140 * xterm.h: Remove condition for declaration of
13141 x_*_window_to_frame.
13142
13143 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
13144
13145 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
13146 initial terminal as well.
13147
13148 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
13149
13150 * xterm.h: Rename x_non_menubar_window_to_frame to
13151 x_menubar_window_to_frame.
13152
13153 * xterm.c: Remove declarations also in xterm.h.
13154 (XTmouse_position): Do not return valid positions
13155 for clicks in the menubar and the toolbar for Gtk+.
13156
13157 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
13158 if the widget for the event has the same top level as a frame,
13159 return the frame.
13160 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
13161 internal windows, bug #4122.
13162 (x_non_menubar_window_to_frame): Remove.
13163
13164 2009-09-02 Glenn Morris <rgm@gnu.org>
13165
13166 * buffer.c (default-major-mode): Move most of the doc from here...
13167 (major-mode): ... to here.
13168
13169 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
13170
13171 * process.c (wait_reading_process_output): Keep the descriptor
13172 when pty is used by a non-child process, e.g., in I/O buffer of
13173 GDB this allows inferior to be restarted.
13174
13175 2009-08-29 Eli Zaretskii <eliz@gnu.org>
13176
13177 * xdisp.c (redisplay_internal): Remove redundant test and collapse
13178 both branches into one.
13179
13180 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13181
13182 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
13183 (main): Use enable-multibyte-characters rather than
13184 default-enable-multibyte-characters. Output a warning message when
13185 running a unibyte session.
13186
13187 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13188
13189 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
13190 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
13191 (copy_data_segment): Also copy __program_vars section.
13192 (copy_dyld_info) [LC_DYLD_INFO]: New function.
13193 (dump_it) [LC_DYLD_INFO]: Use it.
13194
13195 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
13196
13197 2009-08-28 Eli Zaretskii <eliz@gnu.org>
13198
13199 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
13200 $(SRC)/buildobj.h.
13201 (buildobj.h): Rename from $(SRC)/buildobj.h.
13202 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
13203 $(SRC)/buildobj.h.
13204 (clean): Add buildobj.h.
13205
13206 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
13207
13208 * print.c (print_object): Set escapeflag to 1 when printing
13209 hashtable keys and values.
13210
13211 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
13212
13213 * lread.c (read_integer): Use doubles (and potentially return a float
13214 number) as we do in string-to-number.
13215 (read1): Use strtol to read integers, signal errors on strtol's
13216 overflow and use floats if strtol's output is too large for
13217 Elisp integers.
13218
13219 2009-08-27 Eli Zaretskii <eliz@gnu.org>
13220
13221 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
13222 (make-buildobj-SH): Fix last change.
13223 (SRC): Move to before where it's first used.
13224
13225 2009-08-27 Kenichi Handa <handa@m17n.org>
13226
13227 * process.c (send_process): Use encode_coding_object instead of
13228 encode_coding_string to perform eol-conversion even if the string
13229 is unibyte.
13230
13231 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
13232 character.
13233
13234 * cmds.c (Fself_insert_command): Avoid unnecessay
13235 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
13236
13237 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
13238
13239 * callproc.c (Fcall_process): Remove always true #if.
13240
13241 * lisp.h: Replace #if 0 code for checking with text pointing to
13242 the --enable-checking configure flag.
13243
13244 * emacs.c (main): Mention the --enable-profiling configure flag
13245 instead of using CFLAGS.
13246
13247 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
13248
13249 * Makefile.in (buildobj.h): New target.
13250 (doc.o): Depend on it.
13251 (temacs${EXEEXT}): Don't generate buildobj.lst.
13252 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13253 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13254 ($(BLD)/doc.$(O)): Depend on it.
13255 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13256 provided by Eli Zaretskii.)
13257 ($(TEMACS)): Don't generate buildobj.lst.
13258 * doc.c: Include buildobj.h.
13259 (buildobj): New static variable.
13260 (Fsnarf_documentation): Use it, instead of opening and reading
13261 buildobj.lst.
13262
13263 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
13264
13265 * dbusbind.c (Fdbus_call_method)
13266 (Fdbus_call_method_asynchronously): Use English numeric format for
13267 timeout values in doc string.
13268
13269 2009-08-25 Kenichi Handa <handa@m17n.org>
13270
13271 * alloc.c (mark_char_table): New function.
13272 (mark_object): Use mark_char_table for a char-table.
13273
13274 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13275 (CHAR_TABLE_REF): Use it.
13276
13277 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
13278
13279 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13280 before invoking the newly build emacs to check for load-path
13281 shadowing.
13282
13283 2009-08-22 Glenn Morris <rgm@gnu.org>
13284
13285 * Makefile.in (bootstrap_exe): New variable.
13286 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13287 Use ${bootstrap_exe}.
13288
13289 2009-08-22 Eli Zaretskii <eliz@gnu.org>
13290
13291 * coding.h (encode_coding_string): Don't encode unibyte strings.
13292 (Bug#4047)
13293
13294 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
13295
13296 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13297
13298 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13299 intended as hotfix only.
13300 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13301
13302 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13303
13304 * nsterm.m (ns_get_color): Update documentation properly for last
13305 change, and clean up loose ends in the code left by it.
13306 Fix longstanding bug with 16-bit hex parsing, and add support for
13307 yet another X11 format (rgb:r/g/b) for compatibility.
13308 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13309 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13310
13311 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13312
13313 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13314
13315 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
13316
13317 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13318 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13319 (xd_initialize, xd_pending_messages): Check, whether
13320 $DBUS_SESSION_BUS_ADDRESS is set.
13321
13322 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13323
13324 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13325
13326 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13327
13328 2009-08-20 Glenn Morris <rgm@gnu.org>
13329
13330 * emacs.c (system-type): Doc fix.
13331
13332 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13333
13334 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13335 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13336
13337 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
13338
13339 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13340 New functions.
13341 (xd_initialize): Revert change from 2009-08-16.
13342
13343 2009-08-18 Kenichi Handa <handa@m17n.org>
13344
13345 * fontset.c (Ffontset_font): If a nil element is found in a
13346 font-group vector, return nil.
13347
13348 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
13349
13350 * process.c (status_notify): Don't perform redisplay.
13351 (Fdelete_process, list_processes_1, process_send_signal):
13352 Expliticly perform redisplay.
13353 (wait_reading_process_output): Always check process status, but
13354 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13355
13356 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
13357
13358 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
13359 (XFLOAT_INIT): New macro for storing a float value.
13360 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13361 * fns.c (sxhash): Copy out the value of a float in order to
13362 examine its bytes.
13363 * dbusbind.c (xd_append_arg): Likewise.
13364
13365 * emacs.c (main): Don't call syms_of_data twice.
13366
13367 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
13368
13369 * dbusbind.c (xd_initialize): Add connection file descriptor to
13370 input_wait_mask, in order to let select() detect, whether a new
13371 message has been arrived.
13372 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
13373
13374 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
13375
13376 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13377 New functions.
13378
13379 * lisp.h (xd_pending_messages): Declare.
13380
13381 * keyboard.c (readable_events): Call xd_pending_messages.
13382
13383 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
13384
13385 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
13386
13387 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13388
13389 * buffer.c (set_buffer_internal_1)
13390 (swap_out_buffer_local_variables): Check for unbound local
13391 variables (Bug#4138).
13392
13393 2009-08-14 Eli Zaretskii <eliz@gnu.org>
13394
13395 * process.c (create_pty): Fix last change.
13396
13397 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
13398
13399 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13400 (xbm_load_image): Caller changed.
13401 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13402
13403 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
13404
13405 * process.c (create_pty): New function.
13406 (Fstart_process): Use it to allow Emacs to just associate a pty
13407 with the buffer. See associated change in gdb-mi.el.
13408 (list_processes_1): Deal with no program name.
13409 (start_process_unwind): Use pid == -2 to mean no process.
13410
13411 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13412
13413 * cmds.c (nonundocount): New global variable.
13414 (keys_of_cmds): Initialize it.
13415 (Fself_insert_command): Use it to combine upto 20 sequential chars
13416 into a single undo entry, just like the Qself_insert_command code in
13417 keyboard.c does.
13418 Call frame_make_pointer_invisible, also like the Qself_insert_command
13419 code in keyboard.c does.
13420 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13421 than its own local replacement for it.
13422
13423 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
13424
13425 * fns.c (concat): Don't re-set string length to its current value.
13426
13427 * coding.h (decode_coding_string, encode_coding_string):
13428 Use SBYTES macro.
13429
13430 * doprnt.c (doprnt_lisp): Delete unused function.
13431 (doprnt): Merge with doprnt1, discarding lispstrings code.
13432 * lisp.h (doprnt_lisp): Don't declare.
13433
13434 2009-08-07 Juri Linkov <juri@jurta.org>
13435
13436 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13437
13438 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13439
13440 * print.c (syms_of_print): Undo previous change.
13441
13442 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13443
13444 * lread.c (read1, syms_of_lread): Read hashtables back from the
13445 readable format.
13446
13447 * print.c (print_preprocess, print_object): Print hashtables fully
13448 and readably.
13449 (syms_of_print): Provide 'hashtable-print-readable.
13450
13451 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13452
13453 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13454 no family set.
13455 (nsfont_open): Handle case when entity has no family.
13456
13457 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13458
13459 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13460 element, not a list, for match case.
13461
13462 2009-07-28 Kenichi Handa <handa@m17n.org>
13463
13464 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13465 rigidly.
13466
13467 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13468 font_parse_xlfd. Check font properties more rigidly.
13469
13470 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13471
13472 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13473 bsd-common.h.
13474
13475 2009-07-27 Kenichi Handa <handa@m17n.org>
13476
13477 * xfaces.c (face_with_height): Call font_clear_prop.
13478
13479 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
13480
13481 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13482
13483 * xterm.c (x_term_init): Use Qx.
13484
13485 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13486
13487 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13488 (ns_get_color): Revert 2009-07-16 change.
13489
13490 2009-07-25 Eli Zaretskii <eliz@gnu.org>
13491
13492 * lread.c (syms_of_lread) <force_load_messages>: New variable.
13493 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13494
13495 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
13496
13497 * coding.h (decode_coding_string, encode_coding_string):
13498 Use SCHARS macro.
13499
13500 * lread.c: Rewrite 2009-07-21 changes.
13501 (load_depth): Delete.
13502 (Qload_in_progress): New variable.
13503 (load_unwind): Don't reference load_depth or load_in_progress.
13504 (Fload): Likewise; specbind Qload_in_progress instead.
13505 (init_lread): Don't initialize load_depth.
13506 (syms_of_lread): Initialize and protect Qload_in_progress.
13507
13508 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13509
13510 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13511
13512 2009-07-23 Yavor Doganov <yavor@gnu.org>
13513
13514 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13515
13516 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13517
13518 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13519 Bugs 3792, 3720, 2402.
13520 (ns_lookup_indexed_color): Check for bad index.
13521 (ns_index_color): Init unused slot to 0.
13522 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13523 Bug 3714, possibly 3082.
13524
13525 2009-07-22 Jason Rumney <jasonr@gnu.org>
13526
13527 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13528 Position IME window at cursor (Bug#2570).
13529 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13530 (globals_of_w32fns): Dynamically load functions required above.
13531
13532 * w32term.c (w32_draw_window_cursor): Send message to reposition
13533 any IME window.
13534
13535 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13536
13537 * fileio.c: Revert 2009-07-16 changes.
13538 (Vauto_save_include_big_deletions): New variable.
13539 (Fdo_auto_save): Disable auto-save only if
13540 auto-save-include-big-deletions is nil.
13541
13542 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13543
13544 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13545 the overflowed pixels into account (Bug#3879).
13546
13547 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
13548
13549 * lread.c (load_depth): New variable.
13550 (Fload, load_unwind, init_lread): Set it to the load recursion
13551 depth; set load_in_progress as a simple boolean based on the
13552 current load_depth. (Bug#3892)
13553
13554 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13555
13556 * nsfont.m (ns_has_attribute): Remove.
13557 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13558
13559 2009-07-18 Juri Linkov <juri@jurta.org>
13560
13561 * process.c (Fset_process_query_on_exit_flag): Mention killing
13562 a buffer in docstring.
13563
13564 2009-07-17 Kenichi Handa <handa@m17n.org>
13565
13566 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13567
13568 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13569
13570 * nsfns.m (Fns_set_alpha): Remove function.
13571 (syms_of_nsfns): Don't defsubr it.
13572
13573 * nsterm.m (ns_get_color): Remove incompatible color formats.
13574 (ns_color_to_lisp): Generate #rrggbb color format string.
13575
13576 2009-07-16 Richard Stallman <rms@gnu.org>
13577
13578 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13579 (Fset_buffer_auto_saved): Handle save_length = -2.
13580
13581 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
13582
13583 * xterm.c (Qx_gtk_map_stock): New var.
13584
13585 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13586 of calling intern each time.
13587
13588 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13589
13590 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13591 does tiling.
13592
13593 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13594
13595 2009-07-14 Kenichi Handa <handa@m17n.org>
13596
13597 * font.c (font_vconcat_entity_vectors): New function.
13598 (struct font_sort_data): New member font_driver_preference.
13599 (font_compare): Check font_driver_preference.
13600 (font_sort_entities): The format of the first argument changed.
13601 (font_delete_unmatched): Likewise.
13602 (font_list_entities): The return type changed.
13603 (font_select_entity): The format of the second argument changed.
13604 (font_find_for_lface): Adjuste for the above changes.
13605 Don't suppress the checking of C even if the repertory supports it.
13606 (Flist_fonts): Adjust for the above changes.
13607
13608 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13609 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13610 Reject a font who has adstyle property that is different from a
13611 langname derived from registry property.
13612 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13613
13614 2009-07-13 Eli Zaretskii <eliz@gnu.org>
13615
13616 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13617 local copy of dirfilename.
13618
13619 2009-07-13 Kenichi Handa <handa@m17n.org>
13620
13621 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13622 against max_char.
13623
13624 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13625 calling XSYMBOL (sym).
13626
13627 2009-07-11 Eli Zaretskii <eliz@gnu.org>
13628
13629 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13630 New function.
13631 (directory_files_internal) [WINDOWSNT]:
13632 Bind w32-get-true-file-attributes to either t or nil, depending whether
13633 the filesystem of the directory is fast or slow.
13634
13635 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13636 file name.
13637 (is_slow_fs): New function.
13638 (stat): Use it to determine whether to issue more system calls to
13639 get accurate file attributes, when w32-get-true-file-attributes is
13640 `local'.
13641
13642 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13643
13644 * xfns.c (Fx_select_font): Remember last font selected in
13645 x_last_font_name and use that the next time. Also try the frame
13646 parameter font-parameter as default to the font dialog.
13647
13648 2009-07-10 Kenichi Handa <handa@m17n.org>
13649
13650 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13651
13652 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13653
13654 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13655
13656 * w32.c (stat): Treat UNC file names as residing on remote
13657 drives. (Bug#3542)
13658
13659 2009-07-09 Kenichi Handa <handa@m17n.org>
13660
13661 * fontset.c (fontset_find_font): Fix previous change.
13662
13663 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13664
13665 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13666 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13667 error flag.
13668
13669 2009-07-08 Kenichi Handa <handa@m17n.org>
13670
13671 * fontset.c (fontset_find_font): Fix the logic of handling
13672 charset_matched.
13673 (font_for_char): Delete unused var.
13674 (generate_ascii_font_name): Delete it.
13675
13676 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13677
13678 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13679 (encode_coding_sjis): Fix the code range check.
13680
13681 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13682
13683 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13684 (Fexpand_file_name): Copy string data properly (Bug#3772).
13685
13686 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13687
13688 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13689 first MapNotify.
13690
13691 2009-07-07 Kenichi Handa <handa@m17n.org>
13692
13693 * character.h (unibyte_has_multibyte_table): Delete extern.
13694 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13695
13696 * charset.c (Fset_charset_priority): Update charset_unibyte.
13697 (syms_of_charset): Initialize charset_unibyte.
13698
13699 * character.c (unibyte_has_multibyte_table): Delete it.
13700 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13701 charset_unibyte.
13702 (multibyte_char_to_unibyte_safe): Likewise.
13703 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13704
13705 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13706 (x_produce_glyphs): Likewise.
13707
13708 * .gdbinit (xcharset): Fix the treating $arg0.
13709
13710 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13711
13712 Emulation of `getloadavg' on MS-Windows.
13713 * w32.c: Include float.h.
13714 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13715 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13716 (get_native_system_info, get_system_times): New functions.
13717 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13718 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13719 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13720 g_b_init_get_system_times, and num_of_processors.
13721
13722 2009-07-03 Jason Rumney <jasonr@gnu.org>
13723
13724 * w32term.c (w32_initialize): Use standard types.
13725
13726 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13727
13728 * dired.c (Ffile_attributes): Decode user and group names by the
13729 locale's encoding. (Bug#3443)
13730
13731 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13732
13733 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13734 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13735
13736 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13737
13738 * term.c (init_tty): Remove spurious #ifdef.
13739
13740 * m/mips.h: Mention this file is also used for netbsd.
13741 * m/pmax.h: Remove file.
13742
13743 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13744
13745 * xterm.h (struct x_display_info): Add invisible_cursor.
13746 (struct x_output): Add current_cursor.
13747
13748 * xterm.c (XTtoggle_invisible_pointer): New function.
13749 (x_define_frame_cursor): Don't define cursor if invisible or the
13750 same as before. Set current_cursor.
13751 (x_create_terminal): Set toggle_invisible_pointer_hook.
13752
13753 * xfns.c (make_invisible_cursor): New function.
13754 (x_set_mouse_color): Call make_invisible_cursor.
13755 Set current_cursor.
13756 (x_window): Set current_cursor.
13757
13758 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13759
13760 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13761 inserting a character.
13762 (read_avail_input): Call frame_make_pointer_visible.
13763
13764 * frame.c (Vmake_pointer_invisible): New variable.
13765 (frame_make_pointer_invisible, frame_make_pointer_visible):
13766 New functions.
13767 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13768
13769 * frame.h: Declare frame_make_pointer_invisible and
13770 frame_make_pointer_visible.
13771 (struct frame): Add pointer_invisible.
13772
13773 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13774
13775 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13776 frame isn't visible.
13777 (xg_frame_resized): If width/height is -1, get size of window
13778 from X server.
13779
13780 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13781 for MapNotify.
13782
13783 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13784 here or call change_frame_size. Just call flush_and_sync.
13785 (flush_and_sync): Reintroduce.
13786
13787 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13788
13789 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13790
13791 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13792 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13793
13794 * frame.h: Declare Qsticky.
13795
13796 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13797
13798 * nsfns.m (ns_frame_parm_handlers): Ditto.
13799
13800 * frame.c: Declare Qsticky.
13801 (frame_parms): Add sticky.
13802
13803 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13804
13805 * xterm.h: Declare x_set_sticky.
13806
13807 * xterm.c (x_set_sticky): New function.
13808
13809 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13810 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13811 xg_tool_bar_proxy_help_callback.
13812
13813 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13814
13815 * frame.c: Qmaximized is new.
13816 (x_set_frame_parameters): Do not handle fullscreen specially.
13817 Only set width and height if explicitly set.
13818 (x_set_fullscreen): Handle Qmaximized.
13819 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13820 (syms_of_frame): Initialize Qmaximized.
13821
13822 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13823 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13824
13825 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13826 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13827 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13828 set gravity to NorthWestGravity when USE_GTK.
13829 (set_wm_state): New function.
13830 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13831 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13832 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13833 or the case when no window manager is running. That means remove calls
13834 to x_real_positions and x_fullscreen_adjust.
13835
13836 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13837 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13838 flush_and_sync.
13839 (xg_height_changed): New function.
13840 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13841 and gtk_window_set_policy. Set frame gravity after parsing the
13842 geometry string.
13843 (xg_update_frame_menubar, free_frame_menubar)
13844 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13845 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13846 Remove calls to xg_frame_set_char_size.
13847
13848 2009-07-01 Kenichi Handa <handa@m17n.org>
13849
13850 * keyboard.c (decode_keyboard_code): New function.
13851 (tty_read_avail_input): Decode the input bytes if necessary.
13852
13853 * coding.c (setup_coding_system):
13854 Initialize coding->carryover_bytes to 0.
13855 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13856 use Qno_conversion.
13857
13858 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13859
13860 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13861
13862 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13863
13864 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13865
13866 2009-06-30 Jason Rumney <jasonr@gnu.org>
13867
13868 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13869 is already loaded.
13870 Set user model ID if supported (bug#1849).
13871
13872 2009-06-29 Jim Meyering <meyering@redhat.com>
13873
13874 Remove useless if-before-xfree test.
13875 * nsfont.m (nsfont_close): Remove useless test.
13876 * term.c (delete_tty): Likewise.
13877 * w32.c (system_process_attributes): Likewise.
13878 * w32font.c (w32font_close): Likewise.
13879 * xfaces.c (x_free_gc): Likewise.
13880 * xselect.c (buffer): Likewise.
13881
13882 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13883
13884 * process.c (send_process): Keep decoded string in a local
13885 variable and protect it from GC. (Bug#3521)
13886
13887 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13888
13889 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13890 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13891
13892 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13893
13894 * xdisp.c (start_display, handle_face_prop)
13895 (move_it_vertically_backward, cursor_row_fully_visible_p)
13896 (redisplay_window, try_window_id, produce_image_glyph):
13897 Delete some #ifdef-ed out code chunks that are now obsolete.
13898
13899 * xterm.c (x_update_window_begin, x_new_focus_frame)
13900 (x_scroll_bar_handle_click, handle_one_xevent)
13901 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13902 (x_make_frame_visible, x_make_frame_invisible)
13903 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13904 code chunks that are now obsolete.
13905
13906 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13907
13908 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13909 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13910 for hours, when optimzation is enabled.
13911 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13912 (xd_read_message): Make them static.
13913
13914 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13915
13916 * term.c (turn_on_face): Allow simultaneously bold and dim
13917 terminal faces (Bug#3530).
13918
13919 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13920
13921 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13922
13923 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13924 truncation glyphs (Bug#3686).
13925
13926 2009-06-27 Glenn Morris <rgm@gnu.org>
13927
13928 * m/pmax.h: Restore file, with only netbsd portions.
13929
13930 2009-06-26 David Reitter <david.reitter@gmail.com>
13931
13932 * nsterm.m (keydown): Avoid infinite loop.
13933
13934 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13935
13936 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13937 the arg FORCE_SYMBOL.
13938
13939 2009-06-25 Kenichi Handa <handa@m17n.org>
13940
13941 * fontset.c (fontset_find_font): When a usable rfont_def is found
13942 in a fallback font-group, make it the first element of the group.
13943
13944 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13945
13946 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13947
13948 2009-06-24 Kenichi Handa <handa@m17n.org>
13949
13950 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13951 set for C.
13952 (fontset_font): Record the availability of a font for C both in
13953 the realized fontsets of the current one and the default one.
13954
13955 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13956
13957 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13958 conditional, it is always defined on AIX.
13959
13960 2009-06-23 Miles Bader <miles@gnu.org>
13961
13962 * window.c (Vrecenter_redisplay): New variable.
13963 (syms_of_window): Initialize it.
13964 (Qtty): New extern declaration.
13965 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13966
13967 2009-06-23 Jim Meyering <meyering@redhat.com>
13968
13969 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13970 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13971 pointer dereferences are guaranteed to be valid.
13972
13973 2009-06-23 Kenichi Handa <handa@m17n.org>
13974
13975 * emacs.c (main): Call init_font ().
13976
13977 * font.h (Vfont_log): Extern it.
13978 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13979
13980 * font.c (font_sort_entities, font_list_entities)
13981 (font_matching_entity, font_open_entity)
13982 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13983 (Vfont_log): Delete static.
13984 (font_log_env_checked): Delete this variable.
13985 (font_add_log): Don't check font_log_env_checked.
13986 (font_deferred_log): Check Vfont_log.
13987 (init_font): New function.
13988
13989 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13990
13991 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13992
13993 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13994
13995 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13996
13997 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13998 (face_for_char): Don't call font_deferred_log here.
13999 (font_for_char): Likewise.
14000
14001 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
14002
14003 * w32term.c (x_draw_glyph_string): Use the glyph string's width
14004 rather than its background_width for drawing the overline and
14005 underline (Bug#489).
14006
14007 * xterm.c (x_draw_glyph_string): Use the glyph string's width
14008 rather than its background_width for drawing the overline and
14009 underline (Bug#489).
14010 (xg_default_icon_file): New variable.
14011 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
14012 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
14013
14014 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
14015 (load_overlay_strings): Remove externs.
14016 (fast_find_position): Function deleted.
14017 (mouse_face_from_buffer_pos): New function, based on
14018 fast_find_position. Correctly handle before-strings,
14019 display-strings, and after-strings (Bug#1220).
14020 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
14021
14022 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14023
14024 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
14025 (move_it_in_display_line_to, move_it_in_display_line_to)
14026 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
14027
14028 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14029
14030 * Branch for 23.1.
14031
14032 2009-06-21 Jason Rumney <jasonr@gnu.org>
14033
14034 * w32term.c (keyboard_codepage): New static variable.
14035 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
14036 (w32_read_socket) [WM_CHAR]: Use it to decode character
14037 input (bug#3237).
14038 (w32_initialize): Initialize it.
14039 (codepage_for_locale): New function.
14040
14041 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
14042
14043 * process.c (status_message): Pass Faset index argument as a lisp
14044 object, so as to work with USE_LISP_UNION_TYPE.
14045
14046 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14047
14048 * coding.c (Ffind_coding_systems_region_internal):
14049 Cache checked characters.
14050
14051 2009-06-18 Kenichi Handa <handa@m17n.org>
14052
14053 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
14054
14055 2009-06-18 Andreas Schwab <aschwab@redhat.com>
14056
14057 * xdisp.c (redisplay_internal): Check that the frame is still
14058 live after redisplay of its windows.
14059 (redisplay_windows): Check that the window is still live.
14060
14061 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
14062
14063 * coding.c (detect_coding_utf_16): Fix previous change.
14064
14065 2009-06-16 Kenichi Handa <handa@m17n.org>
14066
14067 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
14068 UTF-16 by checking the dispersion of Eth and Oth bytes.
14069
14070 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
14071
14072 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
14073
14074 2009-06-15 Kenichi Handa <handa@m17n.org>
14075
14076 * process.c (status_message): Fix previous change. Be sure to
14077 decode a localized string.
14078
14079 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14080
14081 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
14082 add comment explaining why.
14083
14084 2009-06-14 Sidney Markowitz <sidney@sidney.com>
14085
14086 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
14087
14088 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
14089
14090 * nsfont.m (ns_attribute_value): Remove.
14091 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
14092 (ns_has_attribute): Shrink the normal range.
14093 (ns_findfonts): Don't worry about requested spec in determining
14094 need for synthItal.
14095 (ns_get_covering_families): Retain scriptToFamilies.
14096
14097 2009-06-14 Seiji Zenitani <zenitani@mac.com>
14098
14099 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
14100
14101 2009-06-11 Kenichi Handa <handa@m17n.org>
14102
14103 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14104 overhang for the static composition case.
14105
14106 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14107
14108 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14109 overhang for the automatic composition case.
14110
14111 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
14112 composition case.
14113
14114 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
14115
14116 * xdisp.c (get_next_display_element): When handling wrap-prefix
14117 and line-prefix, treat \n as a control character (bug#3502).
14118
14119 2009-06-10 Kenichi Handa <handa@m17n.org>
14120
14121 * font.c (font_parse_family_registry): Fix for one-char foundry.
14122 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
14123
14124 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
14125
14126 * process.c (status_message): Fix handling of multibyte signal
14127 string (Bug#3499).
14128
14129 2009-06-09 Jim Meyering <meyering@redhat.com>
14130
14131 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
14132 color name is missing.
14133
14134 2009-06-09 Kenichi Handa <handa@m17n.org>
14135
14136 * charset.c (Fmap_charset_chars): In docstring, state clearly that
14137 FROM-CODE and TO-CODE are codepoints of CHARSET.
14138
14139 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14140
14141 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
14142
14143 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14144
14145 Changes to support :script/:lang/:otf in NS font driver.
14146 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
14147 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
14148 indicate not part of font driver interface, and change callers.
14149 (ns_get_family): Remove pointless null check.
14150 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
14151 ns_spec_to_descriptor, ns_descriptor_to_entity.
14152 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
14153 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
14154 (ns_spec_to_descriptor, ns_descriptor_to_entity)
14155 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
14156 (ns_get_req_script, ns_accumulate_script_ranges)
14157 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
14158 New functions.
14159 (nsfont_list, nsfont_match): Use ns_findfonts.
14160 (nsfont_open): Use font descriptor instead of traits.
14161 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
14162 (dump_glyphstring): Rename to ns_dump_glyphstring.
14163
14164 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
14165
14166 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
14167
14168 * fontset.c (fontset_from_font): Remove NS-specific code.
14169
14170 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
14171
14172 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
14173 nonactive windows.
14174
14175 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
14176
14177 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
14178
14179 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14180
14181 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
14182
14183 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
14184
14185 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
14186 account for the overflowing of newlines into the last glyph on the
14187 display line (Bug#3482).
14188
14189 2009-06-05 David Reitter <david.reitter@gmail.com>
14190
14191 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
14192 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
14193 Fns_selection_exists_p, Fns_selection_owner_p.
14194
14195 2009-06-03 Jason Rumney <jasonr@gnu.org>
14196
14197 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
14198 available. (Bug#3379)
14199
14200 2009-05-29 Kenichi Handa <handa@m17n.org>
14201
14202 * coding.c (get_translation_table):
14203 Check Venable_character_translation.
14204
14205 2009-05-26 David Reitter <david.reitter@gmail.com>
14206
14207 * nsterm.m (ns_raise_frame): Only raise frame if visible.
14208 (x_make_frame_visible): Move frame to front rather than calling
14209 ns_raise_frame().
14210 (keyDown:): Do not swallow events that aren't re-sent if frame
14211 isn't key window.
14212 (drawRect:): Do not set visibility/iconified flags because
14213 drawRect may be called by NSView even if the frame is hidden.
14214
14215 * nsfns.m (Fx_create_frame): Follow other ports in
14216 determining visibility; default to t. Ensure async_visible is set.
14217
14218 2009-05-23 Eli Zaretskii <eliz@gnu.org>
14219
14220 * dired.c (Ffile_attributes): Doc fix.
14221
14222 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
14223
14224 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
14225
14226 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
14227
14228 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
14229 and xfont_scratch_props.
14230 (syms_of_xfont): Do it here instead.
14231 (xfont_find_ccl_program): Delete, unused.
14232 (xfont_open): Delete unused var `i'.
14233
14234 2009-05-21 Kenichi Handa <handa@m17n.org>
14235
14236 * fontset.c (Qlatin): Don't make it static.
14237
14238 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
14239 New functions.
14240 (xfont_scripts_cache, xfont_scratch_props): New variables.
14241 (Qlatin, Vscalable_fonts_allowed): Extern it.
14242 (xfont_list_pattern): Argument changed. Callers changed.
14243 Check Vscalable_fonts_allowed. Check the support of a script.
14244 (xfont_list): Don't reject a font spec with :script property.
14245 (xfont_has_char): Fix setting of encoding.
14246 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
14247 xfont_scratch_props.
14248
14249 2009-05-19 Kenichi Handa <handa@m17n.org>
14250
14251 * font.c (font_sort_entities): Rename from font_sort_entites.
14252 Callers changed.
14253
14254 2009-05-18 Kenichi Handa <handa@m17n.org>
14255
14256 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14257
14258 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14259
14260 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14261 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14262
14263 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14264
14265 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14266 (x_delete_terminal): Dissociate resource database from display and
14267 then call XrmDestroyDatabase before closing display.
14268
14269 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14270
14271 * nsterm.m (ns_read_socket): Remove unused variable.
14272 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14273 whether selected frame is viable before raising it (based on patch
14274 by David Reitter), and improve commentary.
14275 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
14276
14277 2009-05-15 Kenichi Handa <handa@m17n.org>
14278
14279 * font.c (Ffont_spec): Check arguments.
14280
14281 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
14282
14283 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14284 weight when testing attributes (Bug#3282).
14285
14286 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14287
14288 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14289 what we expect to get in the next ConfigureNotify event.
14290
14291 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14292 before Xft one (Bug#1696).
14293
14294 2009-05-07 David Reitter <david.reitter@gmail.com>
14295
14296 * nsfns.m (Fx_display_planes): Compute bitplanes using
14297 NSBitsPerPixelFromDepth (Bug#3207).
14298
14299 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
14300
14301 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14302
14303 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
14304
14305 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14306
14307 2009-05-07 David Reitter <david.reitter@gmail.com>
14308
14309 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14310 Respect mouse face background.
14311
14312 2009-05-07 David Reitter <david.reitter@gmail.com>
14313
14314 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14315 Mouse movement/highlight: bracket drawing operations
14316 in ns_update_begin and ns_update_end.
14317
14318 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14319
14320 * nsfns.m (ns_get_screen): Rewrite.
14321 Don't presume selected-frame is of type `ns'.
14322
14323 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14324 all drivers.
14325
14326 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14327
14328 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14329
14330 * keyboard.h (add_user_signal): Fix typo in extern.
14331
14332 * lisp.h (add_user_signal): Remove extern.
14333
14334 * unexelf.c (unexec): Consider a section to precede the .bss section
14335 if its addresses overlap that of .bss.
14336 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14337 instead of dumping process.
14338
14339 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14340
14341 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14342
14343 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14344
14345 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14346
14347 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14348
14349 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14350 any statements.
14351
14352 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14353
14354 * process.c (read_process_output): Make sure the current buffer is
14355 always restored.
14356
14357 * coding.c (record_conversion_result): Don't modify
14358 Vlast_code_conversion_error for successful result.
14359 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14360
14361 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14362
14363 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
14364 (load_charset_map): Remove unnecessary code.
14365
14366 2009-04-30 David Reitter <david.reitter@gmail.com>
14367
14368 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
14369 through f24.
14370
14371 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
14372
14373 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14374
14375 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14376 face_at_buffer_position.
14377 (face_before_or_after_it_pos, get_next_display_element)
14378 (note_mouse_highlight): Update face_at_buffer_position call.
14379
14380 * term.c (term_mouse_highlight):
14381 * msdos.c (IT_note_mouse_highlight):
14382 * fontset.c (Finternal_char_font):
14383 * font.c (font_at, font_range): Update face_at_buffer_position call.
14384
14385 * dispextern.h (face_at_buffer_position): Update prototype.
14386
14387 2009-04-30 Kenichi Handa <handa@m17n.org>
14388
14389 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
14390
14391 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14392
14393 * callproc.c (Fcall_process): Fix GC protection. Make sure
14394 current buffer is always restored.
14395
14396 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14397
14398 * atimer.c (init_atimer): Also clear stopped_atimers.
14399
14400 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14401
14402 * process.c (create_process): Clean up merger residues of
14403 2008-07-17 change.
14404
14405 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
14406
14407 * lread.c (Vread_circle): New variable.
14408 (read1): Disable recursive read if Vread_circle is nil.
14409
14410 2009-04-29 Kenichi Handa <handa@m17n.org>
14411
14412 * fontset.h (set_default_ascii_font): Delete extern.
14413
14414 * fontset.c (set_default_ascii_font): Delete this unused function.
14415
14416 * frame.c (x_set_font): When ARG is a font-object, check if the
14417 font-object matches with the ASCII font-spec of the frame's
14418 fontset. If not, create a new fontset for the frame. (Bug #3075)
14419
14420 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14421
14422 * fns.c (Flocale_info): Protect vector from GC during decoding.
14423
14424 * process.c (Fstart_process): Protect argv strings from GC during
14425 encoding.
14426
14427 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14428
14429 * sysdep.c: Include <ctype.h>.
14430
14431 2009-04-27 David Reitter <david.reitter@gmail.com>
14432
14433 * nsfont.m (nsfont_open): Remove unused variable shrink.
14434 Remove commented-out code.
14435
14436 2009-04-26 Johan Bockgård <bojohan@gnu.org>
14437
14438 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14439
14440 2009-04-25 Jason Rumney <jasonr@gnu.org>
14441
14442 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14443
14444 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14445
14446 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14447 Swap bytes in short integer if fringe bitmap width > 8.
14448
14449 2009-04-23 Kenichi Handa <handa@m17n.org>
14450
14451 * xfaces.c (Fx_list_fonts): If a font size is specified in
14452 PATTERN, set it in returned scalable fonts.
14453
14454 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
14455
14456 * keyboard.c (Fset_input_meta_mode): Doc fix.
14457
14458 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14459
14460 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14461
14462 * coding.c (Fterminal_coding_system): Doc fix.
14463
14464 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14465 (Fx_display_pixel_height, Fx_display_planes)
14466 (Fx_display_color_cells, Fx_server_max_request_size)
14467 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14468 (Fx_display_mm_height, Fx_display_mm_width)
14469 (Fx_display_backing_store, Fx_display_visual_class)
14470 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14471 Doc fixes, replacing "terminal id" with "terminal object".
14472 (check_x_display_info): Handle terminal objects instead of
14473 terminal ids.
14474
14475 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14476 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14477 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14478 Doc fixes, replacing "terminal id" with "terminal object".
14479
14480 2009-04-21 Kenichi Handa <handa@m17n.org>
14481
14482 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14483 (font_score): Check AVGWIDTH too.
14484
14485 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14486 worst case.
14487 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14488 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14489
14490 2009-04-19 Jason Rumney <jasonr@gnu.org>
14491
14492 The following changes fix Bug#3005 for wide glyphs on each platform,
14493 without reintroducing Bug#1258 for stretch glyphs.
14494
14495 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14496 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14497 get_phys_cursor_geometry.
14498
14499 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14500 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14501 using get_phys_cursor_geometry.
14502
14503 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14504 correctly calculated.
14505
14506 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14507
14508 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14509 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14510 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14511 is deprecated.
14512
14513 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14514
14515 * font.c (font_put_frame_data): Use xfree instead of free.
14516
14517 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
14518
14519 * w32font.c (Qja, Qko): Remove declarations.
14520 (syms_of_w32font): Don't DEFSYM them.
14521
14522 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
14523
14524 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14525
14526 * font.h (Qja, Qko): Extern them.
14527
14528 * ftfont.c (Qja, Qko): Remove declarations.
14529
14530 * xfont.c (Qja, Qko): Remove declarations.
14531
14532 2009-04-17 Kenichi Handa <handa@m17n.org>
14533
14534 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14535 string from a vector to handle Latin-1 characters correctly.
14536
14537 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14538 entity even if the cache hits.
14539
14540 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14541
14542 * search.c (boyer_moore): Use zero as marker value for a possible
14543 match instead of depending on overflow behavior. (Bug#2844)
14544
14545 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14546 * lisp.h: Adjust prototypes.
14547
14548 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
14549
14550 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14551 change (Bug#3003).
14552
14553 2009-04-16 Kenichi Handa <handa@m17n.org>
14554
14555 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14556
14557 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14558 adstyle.
14559
14560 * ftfont.c (Qja, Qko): Don't make them static.
14561 (enum ftfont_cache_for): New enum.
14562 (fc_charset_table): Undo the previous change.
14563 (ftfont_get_latin1_charset): Delete it.
14564 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14565 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
14566 non-scarable font, try to get AVERAGE_WIDTH.
14567 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14568 Change ft_face_cache from a list of a hash-table. Don't check
14569 `ja' and `ko' adstyle here.
14570 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14571 FTFONT_CACHE_FOR_CHARET.
14572 (ftfont_get_charset): Undo the previous change.
14573 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14574 (ftfont_close): Likewise.
14575 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14576
14577 * font.c (font_sort_entites): Change the meaning of the arg
14578 BEST-ONLY. Don't optimize for VEC of lenght 1.
14579 (font_select_entity): Just return the value of font_sort_entites.
14580
14581 * xfaces.c (merge_face_vectors): Reflect font properties in
14582 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14583 font_clear_prop if a face attribute doesn't change.
14584
14585 * charset.h (charset_ksc5601): Extern it.
14586
14587 * charset.c (charset_ksc5601): New variable.
14588 (Fdefine_charset_internal): Set charset_ksc5601.
14589 (init_charset_once): Initialize charset_ksc5601 to -1.
14590
14591 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14592
14593 * fileio.c (history_delete_duplicates): Remove unused declaration.
14594
14595 * callint.c (history_delete_duplicates): New declaration.
14596 (Fcall_interactively): Remove command history duplicates when
14597 history_delete_duplicates is true.
14598
14599 2009-04-14 Eli Zaretskii <eliz@gnu.org>
14600
14601 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14602
14603 2009-04-14 Kenichi Handa <handa@m17n.org>
14604
14605 * font.c (Ffont_info): Fix docstring. Fix the second element of
14606 the returned value (bug#2949).
14607
14608 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
14609
14610 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14611
14612 2009-04-14 Kenichi Handa <handa@m17n.org>
14613
14614 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14615 encoding charset is ascii_compatible.
14616
14617 * charset.c (Fdefine_charset_internal): Make charset
14618 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14619 code_offset is 0, and covers all ASCII characters.
14620
14621 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14622
14623 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14624 (ns_string_to_pasteboard_internal):
14625 * nsmenu.m (process_dialog):
14626 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14627 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14628 * lisp.h (Fx_load_color_file): Declare.
14629
14630 2009-04-13 Kenichi Handa <handa@m17n.org>
14631
14632 * font.c (font_delete_unmatched): Preserve the order of list elements.
14633 (font_select_entity): Suppress the code to optimize for the same
14634 kind of fonts.
14635 (font_load_for_lface): Get a font that supports at least ASCII
14636 characters.
14637
14638 * ftfont.c (Qja, Qko): New variables.
14639 (fc_charset_table): Delete uniquifier data for iso8859-1.
14640 (ftfont_get_latin1_charset): New function.
14641 (get_adstyle_property): New function.
14642 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14643 bitmap fonts.
14644 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14645 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14646 `ko' or `ja'.
14647 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14648 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14649 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14650 property.
14651 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14652 (syms_of_ftfont): DEFSYM Qja and Qko.
14653
14654 2009-04-09 Kenichi Handa <handa@m17n.org>
14655
14656 * charset.c (map_charset_chars): For a charset of `superset'
14657 method, fix calculation of code range.
14658
14659 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14660 from the list of extra properties.
14661 (font_clear_prop): Be sure to delete `:name' font property.
14662
14663 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14664
14665 * dispnew.c (redraw_overlapping_rows): Fix detection of
14666 overlapping for topmost and bottommost rows.
14667
14668 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14669
14670 2009-04-06 Jason Rumney <jasonr@gnu.org>
14671
14672 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14673
14674 2009-04-06 Kenichi Handa <handa@m17n.org>
14675
14676 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14677
14678 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14679
14680 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14681
14682 * ftfont.c (ftfont_open): Fix checking of the return value of
14683 FT_Load_Char. Fix setting font->underline_thickness.
14684
14685 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14686
14687 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14688 (Fterminal_parameters, Fterminal_parameter)
14689 (Fset_terminal_parameter): In doc string, refer to terminal
14690 objects rather than terminal ids.
14691
14692 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14693
14694 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14695 ret_lim_data. (Bug#2867)
14696
14697 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14698
14699 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14700 so they don't get wider than the window, matching 2006-01-23
14701 change to the partner function in xdisp.c (Bug#2800).
14702
14703 2009-04-03 Kenichi Handa <handa@m17n.org>
14704
14705 * print.c (print_object): Make each lowest sub_char_table start a
14706 new line (Bug#2866).
14707
14708 2009-04-02 Kenichi Handa <handa@m17n.org>
14709
14710 * fontset.c (fontset_font): Record no-font when a fontset
14711 explicitly tells not to try another font-specs.
14712
14713 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14714
14715 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14716
14717 2009-03-30 Kenichi Handa <handa@m17n.org>
14718
14719 * fontset.c (fontset_from_font): Specify only registry in a
14720 font-spec for all characters supported by that registry.
14721
14722 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14723 even if HAVE_M17N_FLT is not defined.
14724
14725 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14726
14727 * ftfont.c: Conditionalize prototyping and use of
14728 ftfont_variation_glyphs.
14729
14730 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14731
14732 * frame.c (delete_frame): Work around compiler bug.
14733
14734 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14735 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14736 Some more EMACS_INT.
14737 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14738
14739 * xdisp.c (dump_glyph): Fix typo.
14740
14741 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14742 (adjust_markers_gap_motion, adjust_markers_for_delete)
14743 (adjust_markers_for_insert, adjust_point)
14744 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14745 (make_gap, copy_text, count_size_as_multibyte, insert)
14746 (insert_and_inherit, insert_before_markers)
14747 (insert_before_markers_and_inherit, insert_1)
14748 (count_combining_before, count_combining_after, insert_1_both)
14749 (insert_from_string, insert_from_string_before_markers)
14750 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14751 (insert_from_buffer_1, adjust_after_replace)
14752 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14753 (replace_range_2, del_range, del_range_1, del_range_byte)
14754 (del_range_both, del_range_2, modify_region)
14755 (prepare_to_modify_buffer, signal_before_change)
14756 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14757 for buffer positions and sizes.
14758 * lisp.h: Adjust prototypes accordingly.
14759
14760 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14761 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14762 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14763
14764 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14765
14766 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14767
14768 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14769 lines and columns so we keep the same pixel height and width.
14770
14771 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14772 the property _NET_WM_STATE has changed.
14773 (x_handle_net_wm_state): New function to update frame parameter
14774 fullscreen.
14775 (x_term_init): Initialize atoms for _NET_WM_STATE.
14776
14777 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14778
14779 2009-03-27 Kevin Ryde <user42@zip.com.au>
14780
14781 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14782 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14783 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14784 (Fgpm_mouse_stop): Pass that new parameter.
14785 * termhooks.h (close_gpm): Adjust prototype.
14786
14787 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14788
14789 * lisp.h (Fx_focus_frame): Declare.
14790
14791 * callint.c (Fcall_interactively): For '^' just delegate the work to
14792 handle-shift-selection.
14793 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14794
14795 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14796
14797 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14798
14799 * data.c (Qinteractive_form): New variable.
14800 (Finteractive_form): Use it.
14801
14802 * eval.c (Fcommandp): Use Qinteractive_form.
14803
14804 2009-03-24 Jason Rumney <jasonr@gnu.org>
14805
14806 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14807 Calculate total size precisely. Decode environment variables
14808 before substituting. (Bug#38)
14809
14810 2009-03-24 Kenichi Handa <handa@m17n.org>
14811
14812 * font.c (find_font_encoding): Return Qnil for unsupported
14813 encoding (Bug#2722).
14814
14815 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14816
14817 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14818 that gdpy is set.
14819
14820 2009-03-22 Alan Mackenzie <acm@muc.de>
14821
14822 * callint.c (Finteractive): Clarify the doc string - even
14823 promptless elements need \n separators.
14824
14825 2009-03-22 Jason Rumney <jasonr@gnu.org>
14826
14827 * w32term.c (syms_of_w32term): Doc fix for
14828 x-use-underline-position-properties.
14829
14830 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14831
14832 * w32.c (getpwuid): Change argument type to unsigned.
14833 (struct w32_id): Change type of `rid' member to unsigned.
14834 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14835 argument ID to unsigned. All callers changed.
14836 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14837
14838 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14839
14840 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14841 negative, produce a float value.
14842
14843 * dired.c (make_uid, make_gid): New functions.
14844 (Ffile_attributes): Use them to avoid negative UID and GID.
14845
14846 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14847
14848 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14849 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14850 Fix typos in docstrings.
14851
14852 2009-03-19 Kenichi Handa <handa@m17n.org>
14853
14854 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14855 changed, use font_load_for_lface to get a new font object.
14856 Call free_realized_fontset after handling ASCII font change.
14857
14858 * frame.c (x_set_font): Handle the case that ARG is a cons.
14859
14860 2009-03-19 Glenn Morris <rgm@gnu.org>
14861
14862 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14863
14864 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14865
14866 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14867
14868 2009-03-19 Kenichi Handa <handa@m17n.org>
14869
14870 * charset.c (load_charset_map_from_file): When a mapfile can't be
14871 loaded, signal an error.
14872
14873 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14874
14875 * dired.c (Ffile_attributes): Make sure UID and GID are always
14876 positive, even if the value is too large for a positive EMACS_INT.
14877 Doc fix.
14878
14879 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14880
14881 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14882
14883 * xmenu.c (xdialog_show): Move Fredisplay call ...
14884 (Fx_popup_dialog): ... here.
14885
14886 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14887
14888 * dired.c (file_name_completion): Disable the first optimization just
14889 installed, since it is not implemented correctly.
14890
14891 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14892
14893 * dired.c (file_name_completion): Check completion-ignored-extensions
14894 only if the entry can affect bestmatch.
14895 Stop the search early, as Ftry_completion already does.
14896
14897 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14898
14899 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14900
14901 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14902
14903 * keyboard.c (parse_menu_item): Don't display remappings as menu
14904 equivalent bindings (Bug#788).
14905
14906 2009-03-15 Jason Rumney <jasonr@gnu.org>
14907
14908 * w32term.h (WM_EMACS_PAINT): New message.
14909 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14910 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14911 before passing to lisp thread. (Bug#950)
14912
14913 2009-03-14 David Reitter <david.reitter@gmail.com>
14914
14915 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14916 variable as it was never reset.
14917 (ns_term_init): Remove initialization of Lisp-settable defaults
14918 and ns_expand_space.
14919 (-setPanelFromDefaultValues): Remove ns_expand_space.
14920 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14921 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14922 i.e. no additional spacing, similar to Carbon port.
14923
14924 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14925 * nsfns.m (ns-popup-prefs-panel): Remove.
14926
14927 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14928
14929 * sound.c (alsa_configure): Remove call to deprecated
14930 snd_pcm_sw_params_set_xfer_align.
14931
14932 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14933
14934 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14935 after clicking in a detached tool bar.
14936 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14937
14938 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14939
14940 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14941 int/Lisp_Object mixup).
14942
14943 2009-03-13 Kenichi Handa <handa@m17n.org>
14944
14945 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14946 Handle NAME nil and t correctly. Callers changed.
14947 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14948 (set_fontset_font): Change ARG to a vector. Handle range_list in
14949 ARG correctly.
14950 (Fset_fontset_font): Fix the case that TARGET is both a script
14951 name and charset name. Adjust the arg to set_fontset_font for
14952 the above change.
14953 (fontset_from_font): Fix previous change.
14954 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14955 entry. If FONTSET is the default fontset, don't set the extra
14956 slot of the returning char-table.
14957
14958 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14959
14960 * nsfns.m (Fx_close_connection): Doc fix.
14961 (Fns_do_applescript): Reflow docstring.
14962 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14963 (Fx_display_pixel_width, Fx_display_pixel_height)
14964 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14965 Fix typos in docstrings.
14966 (Fns_set_alpha): Fix typos in error messages.
14967
14968 2009-03-12 David Reitter <david.reitter@gmail.com>
14969
14970 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14971 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14972 were used for such events.
14973
14974 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14975 (toggleToolbar, performDragOperation, runHelp): Use it.
14976
14977 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14978 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14979
14980 2009-03-11 Kenichi Handa <handa@m17n.org>
14981
14982 * font.h (font_open_by_spec): Extern it.
14983
14984 * font.c (font_open_by_spec): New function.
14985 (font_open_by_name): Use font_open_by_spec.
14986
14987 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14988 fontset of the frame.
14989
14990 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14991 modify the default font of frames that use this fontset.
14992 (num_auto_fontsets): New variable.
14993 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14994 name. Be sure to set FONTSET_ASCII to the correct font name.
14995 (update_auto_fontset_alist): New function.
14996
14997 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14998
14999 * makefile.w32-in: Update dependencies.
15000
15001 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15002
15003 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
15004
15005 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15006
15007 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
15008
15009 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
15010
15011 * lread.c (Feval_buffer): Doc fix.
15012
15013 2009-03-09 Kenichi Handa <handa@m17n.org>
15014
15015 * charset.c (Qfile_name_handler_alist): Extern it.
15016 (load_charset_map_from_file): Temporarily bind
15017 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
15018
15019 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
15020
15021 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
15022 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
15023
15024 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15025
15026 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
15027 (x_set_window_size): Change back to calculated method of setting
15028 toolbar height under Cocoa. (Bug#2546)
15029 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
15030 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
15031
15032 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
15033
15034 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
15035 accelerator in parens under GNUstep.
15036
15037 2009-03-06 Kenichi Handa <handa@m17n.org>
15038
15039 These changes are to detect incorrect composition sequence without
15040 looking ahead the source. (Bug#2370)
15041
15042 * coding.h: Include "composite.h".
15043 (enum compisition_state): New enum.
15044 (struct compisition_status): New struct.
15045 (struct iso_2022_spec): New member cmp_status.
15046 (struct emacs_mule_spec): New struct.
15047 (struct coding_system): New members ctext_extended_segment_len and
15048 embedded_utf_8. Change the union member
15049 spec.emacs_mule_full_support to spec.emacs_mule.
15050
15051 * coding.c (CODING_ISO_CMP_STATUS): New macro.
15052 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
15053 (MAX_ANNOTATION_LENGTH): Define to 5.
15054 (ADD_COMPOSITION_DATA): New arg nbytes.
15055 (emacs_mule_char): New arg cmp_status.
15056 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
15057 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
15058 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
15059 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
15060 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
15061 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
15062 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
15063 (EMACS_MULE_COMPOSITION_END): New macro.
15064 (emacs_mule_finish_composition): New function.
15065 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
15066 (decode_coding_emacs_mule): Avoid long looking ahead while
15067 handling composition.
15068 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
15069 (ENCODE_COMPOSITION_RULE): New macro.
15070 (finish_composition): New function.
15071 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
15072 (DECODE_COMPOSITION_START): New implementation.
15073 (DECODE_COMPOSITION_END): Likewise.
15074 (STORE_COMPOSITION_RULE): New macro.
15075 (decode_coding_iso_2022): Avoid long looking ahead while handling
15076 composition, CTEXT extended segment, and embedded UTF-8.
15077 (setup_coding_system): For a coding of type iso-2022, reset
15078 CODING_ISO_EXTSEGMENT_LEN (coding) and
15079 CODING_ISO_EMBEDDED_UTF_8 (coding).
15080 (get_translation): Delete arguments last_block, from_nchars,
15081 to_nchars. Callers changed.
15082 (produce_chars): Don't modify charbuf. Adjusted for the change of
15083 get_translation.
15084 (produce_composition): Adjust for the new annotation sequence.
15085 (handle_composition_annotation): Likewise.
15086 (consume_chars): Adjust for the change of get_translation.
15087
15088 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
15089
15090 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
15091
15092 2009-03-05 Kenichi Handa <handa@m17n.org>
15093
15094 * font.c (font_select_entity): New function.
15095 (font_find_for_lface): Use font_select_entity to select a font.
15096
15097 * fontset.c (fontset_find_font): If a font found without
15098 restricting to the characters C doesn't support C, try to find a
15099 font with C restriction.
15100
15101 2009-03-04 Nikolaj Schumacher <me@nschum.de>
15102
15103 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
15104
15105 2009-03-04 Jason Rumney <jasonr@gnu.org>
15106
15107 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
15108 characters that have already been read. (Bug#2569)
15109
15110 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
15111 Log an error message if check_image_size failed.
15112 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
15113 (gs_load): Mention max-image-size in size error message. (Bug#2560)
15114
15115 2009-03-02 Eli Zaretskii <eliz@gnu.org>
15116
15117 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
15118 when decoding process output.
15119
15120 2009-03-01 Richard M Stallman <rms@gnu.org>
15121
15122 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
15123
15124 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
15125
15126 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15127
15128 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
15129 (decode_coding_emacs_mule, decode_coding_iso_2022)
15130 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15131 (decode_coding_raw_text, decode_coding_charset)
15132 (setup_coding_system, decode_eol, decode_coding, consume_chars):
15133 Honor inhibit-eol-conversion. (Bug #2186)
15134
15135 2009-02-28 Jason Rumney <jasonr@gnu.org>
15136
15137 * coding.c (detect_coding_charset): If not checking latin extra,
15138 fail on characters between 0x80 and 0xA0. (Bug#2354)
15139
15140 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15141
15142 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
15143 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
15144
15145 2009-02-27 Glenn Morris <rgm@gnu.org>
15146
15147 * callint.c (Finteractive): Doc fix.
15148
15149 2009-02-27 Kenichi Handa <handa@m17n.org>
15150
15151 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
15152
15153 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
15154
15155 * font.c (font_style_to_value): Set value for unknown symbols to
15156 100 instead of 255.
15157 (weight_table, slant_table, width_table): Treat "unspecified" as
15158 the default value.
15159
15160 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
15161
15162 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
15163
15164 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
15165
15166 * lread.c (Fload): Stop checking Vloads_in_progress and signal
15167 error as soon as a recursive load is detected.
15168
15169 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15170
15171 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
15172 before caching.
15173
15174 2009-02-24 Kenichi Handa <handa@m17n.org>
15175
15176 * fontset.c (fontset_find_font): Fix the condition for checking
15177 unavailable font.
15178
15179 2009-02-24 Glenn Morris <rgm@gnu.org>
15180
15181 * xfaces.c (Finternal_set_font_selection_order): Remove leading
15182 whitespace that confuses documentation.
15183
15184 2009-02-23 Miles Bader <miles@gnu.org>
15185
15186 * process.c (Flist_system_processes, Fprocess_attributes)
15187 (syms_of_process): Rename `system-process-attributes' to
15188 `process-attributes'.
15189
15190 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
15191
15192 * coding.h (struct coding_system): Make safe_charsets a pointer to
15193 unsigned char.
15194 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
15195 being 255.
15196 (SAFE_CHARSET_P): Likewise.
15197 (setup_iso_safe_charsets): Properly setup safe_charsets.
15198 (Fdefine_coding_system_internal): Likewise.
15199 (setup_coding_system): Likewise. Remove unneeded casts.
15200 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
15201 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
15202 Remove unneeded casts.
15203
15204 * insdel.c (del_range_2): Don't modify gap contents when called
15205 from decode_coding_object. (Bug#1809)
15206
15207 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
15208
15209 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
15210 Qfont_object.
15211 (Ftype_of): Recognize font objects.
15212
15213 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
15214
15215 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
15216 Definitions moved to data.c.
15217
15218 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15219
15220 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15221 async_iconified. Based on a patch by Christian Lynbech
15222 <christian.lynbech@tieto.com>.
15223 (EmacsView-windowDidMiniaturize:): Unset async_visible.
15224
15225 2009-02-20 Glenn Morris <rgm@gnu.org>
15226
15227 * syntax.c (Fskip_chars_forward): Fix doc typo.
15228
15229 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
15230
15231 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
15232
15233 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
15234
15235 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
15236
15237 2009-02-19 Kenichi Handa <handa@m17n.org>
15238
15239 * coding.c (detect_coding): Preserve coding->mode.
15240 Don't overflow coding->carryover. (Bug#2370)
15241
15242 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
15243
15244 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
15245
15246 2009-02-18 Kenichi Handa <handa@m17n.org>
15247
15248 * font.c (font_check_otf_features): Fix handling of `nil' element.
15249 (Ffont_spec): Describe :lang and :otf in the docstring.
15250
15251 2009-02-16 Andreas Schwab <schwab@suse.de>
15252
15253 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15254 string.
15255
15256 2009-02-16 Kenichi Handa <handa@m17n.org>
15257
15258 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
15259 (Bug#1723)
15260
15261 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
15262
15263 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
15264
15265 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15266 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15267
15268 2009-02-14 Eli Zaretskii <eliz@gnu.org>
15269
15270 * msdos.c (MAX_SCREEN_BUF): New macro.
15271 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15272 Encode the entire run of glyphs sharing the same face, instead of
15273 doing that one glyph at a time (fixes a bug with displaying
15274 double-size characters).
15275
15276 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15277
15278 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15279
15280 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15281 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
15282 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
15283
15284 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
15285 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
15286
15287 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15288
15289 * keyboard.c (adjust_point_for_property): Allow stopping between two
15290 invisible areas.
15291
15292 2009-02-12 Jason Rumney <jasonr@gnu.org>
15293
15294 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15295 (add_font_entity_to_list): Call check_face_name even when family
15296 is unspecified.
15297
15298 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15299 Release DC when finished. Use NULL window to refer to desktop.
15300 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
15301
15302 * w32font.c (add_font_entity_to_list): Fix check for substituted
15303 raster fonts. (Bug#2219)
15304
15305 2009-02-12 Kenichi Handa <handa@m17n.org>
15306
15307 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15308 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15309 (autocmp_chars): Use fast_looking_at. Don't compose more
15310 characters than MAX_COMPOSITION_COMPONENTS.
15311 (find_automatic_composition): While looking forward and backward,
15312 check static composition. Fix where to stop looking forward.
15313 (composition_adjust_point): Fix checking of static composition.
15314 (Fcomposition_get_gstring): Pay attention to
15315 MAX_COMPOSITION_COMPONENTS.
15316
15317 * lisp.h (fast_looking_at): Extern it.
15318
15319 * search.c (fast_looking_at): New function.
15320
15321 * term.c (encode_terminal_code): Adjust for the change of
15322 <struct glyph>.u.cmp.to.
15323 (append_composite_glyph): Likewise.
15324
15325 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
15326 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15327 composition.
15328 (append_composite_glyph): Adjust for the change of
15329 <strcut glyph>.u.cmp.to.
15330
15331 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
15332
15333 * casetab.c (init_casetab_once):
15334 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15335 * font.c (font_update_lface):
15336 * fontset.c (Fnew_fontset):
15337 * ftfont.c (ftfont_drive_otf):
15338 * xfont.c (xfont_open):
15339 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15340
15341 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15342
15343 * fileio.c (Fwrite_region): !NILP -> CONSP.
15344
15345 2009-02-10 Andreas Schwab <schwab@suse.de>
15346
15347 * process.c (send_process): Properly relocate pointer into data
15348 when using encoded data. (Bug#2272)
15349
15350 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15351
15352 * coding.c (detect_coding_charset): Fix previous change.
15353
15354 2009-02-08 Jason Rumney <jasonr@gnu.org>
15355
15356 * w32fns.c (w32_hide_hourglass): Handle case where frame
15357 disappeared while hourglass was displayed. (Bug #2193)
15358
15359 2009-02-07 Andreas Schwab <schwab@suse.de>
15360
15361 * unexelf.c (unexec): Fix error message.
15362
15363 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15364
15365 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
15366 when modal window is active. (Bug #2152)
15367 (applicationShouldTerminate:): Remove now-unneeded while loop
15368 around NSRunAlertPanel.
15369
15370 * nsmenu.m (popupSession): New file-global variable.
15371 (pop_down_menu): End the popupSession before closing dialog.
15372 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15373 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15374 don't query NSApp for events (just sleep instead).
15375
15376 2009-02-07 Eli Zaretskii <eliz@gnu.org>
15377
15378 * coding.c (syms_of_coding) <translation-table-for-input>:
15379 Modify doc string to discourage use for character code unification.
15380
15381 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15382
15383 * atimer.c (run_timers): Update pending_atimers.
15384
15385 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
15386
15387 * image.c (svg_load_image): Fix last change.
15388
15389 * xfns.c (Fx_create_frame): Signal an error if no font is
15390 found (Bug#2147).
15391
15392 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
15393
15394 * character.c (syms_of_character) <script-representative-chars>:
15395 Fix typo in docstring.
15396
15397 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15398
15399 * nsmenu.m (pop_down_menu): New function.
15400 (ns_popup_dialog): Call it on unwind.
15401 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15402 call timer_check() (Bug#2154).
15403 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15404 handling_signal is set.
15405 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15406
15407 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15408
15409 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15410
15411 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15412
15413 * keyboard.c (poll_for_input_1, handle_async_input):
15414 Set handling_signal under HAVE_NS.
15415
15416 2009-02-04 Glenn Morris <rgm@gnu.org>
15417
15418 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15419
15420 2009-02-04 Kenichi Handa <handa@m17n.org>
15421
15422 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15423
15424 * charset.c (Fchar_charset): New optional arg restriction.
15425
15426 * coding.h (coding_system_charset_list): Extern it.
15427
15428 * coding.c (coding_system_charset_list): New function.
15429
15430 * composite.c: Include coding.h and termhooks.h.
15431 (composition_gstring_p): Fix for the terminal case.
15432 (composition_gstring_width): Likewise.
15433 (fill_gstring_body): Likewise.
15434 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15435 the frame.
15436 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15437 is within a composition.
15438 (Fcomposition_get_gstring): Fix the terminal case.
15439
15440 * term.c (encode_terminal_code): Fix handling of composition.
15441 (produce_composite_glyph): For static composition, get pixel_width
15442 from struct composition.
15443
15444 2009-02-02 Andreas Schwab <schwab@suse.de>
15445
15446 * unexelf.c (unexec): Handle unaligned bss offset.
15447
15448 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15449
15450 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15451 XT,w32read_socket changes to ns_read_socket.
15452
15453 * keyboard.c (handle_interrupt): Don't call
15454 quit_throw_to_read_char() under NS.
15455
15456 * blockinput.h: Remove NS-specific code.
15457
15458 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15459
15460 * dispnew.c (window_change_signal): Don't try to get the size of a
15461 suspended tty frame.
15462 * term.c (Fresume_tty): Resize if the size has changed while the
15463 tty was suspended.
15464
15465 * alloc.c (mark_stack): Properly conditionalize previous change.
15466
15467 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15468
15469 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15470 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15471 Remove; this code is not used on Windows.
15472
15473 2009-01-30 Eli Zaretskii <eliz@gnu.org>
15474
15475 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15476 EOLs that also has stray ^M characters.
15477
15478 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15479
15480 * atimer.c (run_timers, alarm_signal_handler):
15481 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15482 * w32inevt.c (w32_console_read_socket):
15483 * w32term.c (w32_read_socket):
15484 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15485
15486 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
15487
15488 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15489 Initialize it as a relative filename pattern.
15490 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15491 (Fcall_process_region): Simplify temp file creation using
15492 temporary-file-directory.
15493
15494 2009-01-29 Eli Zaretskii <eliz@gnu.org>
15495
15496 * msdos.c: Rename pending_signals to msdos_pending_signals.
15497 (sig_suspender, sigprocmask): Adjust.
15498
15499 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
15500
15501 * keyboard.c (pending_signals): New var.
15502 (poll_for_input, input_available_signal, init_keyboard): Set it.
15503 (process_pending_signals): New function.
15504
15505 * lisp.h (QUIT): Check pending_signals instead of
15506 interrupt_input_pending. Use process_pending_signals.
15507
15508 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15509
15510 * process.c (wait_reading_process_output): Use process_pending_signals.
15511
15512 * sysdep.c (emacs_write): Use process_pending_signals.
15513
15514 * xterm.c (XTread_socket): Update pending_signals.
15515
15516 * w32term.c (w32_read_socket): Update pending_signals.
15517
15518 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15519
15520 2009-01-29 Kenichi Handa <handa@m17n.org>
15521
15522 * xftfont.c (xftfont_has_char): New function.
15523 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15524
15525 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15526
15527 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15528 under GNUstep.
15529 (ns_query_color): New declaration.
15530
15531 * nsterm.m (ns_confirm_quit): New variable.
15532 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15533 (EmacsApp-applicationShouldTerminate:): Use it.
15534 (EmacsPrefsController): Let user set it.
15535 (ns_query_color): New function.
15536 (ns_defined_color): Use it.
15537 (ns_initialize): Drop.
15538 (ns_term_init): Add two lines from ns_initialize(), and set
15539 input_interrupt_mode to nil.
15540
15541 * image.c (svg_load_image): Don't right-shift background RGB when
15542 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
15543
15544 2009-01-28 Kenichi Handa <handa@m17n.org>
15545
15546 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15547 (fontset_get_font_group): Remember that no font-group is specified
15548 for C.
15549
15550 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
15551
15552 * fns.c (concat): Check for string overflow (bug#1787).
15553
15554 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15555 Quadruple undo limits (bug#1501).
15556
15557 2009-01-27 Kenichi Handa <handa@m17n.org>
15558
15559 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15560 directly use GT_Get_Char_index.
15561
15562 * xftfont.c (struct xftfont_info): New member `index'.
15563
15564 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15565 (Ffontset_font): Adjust for the change of fontset entry.
15566
15567 2009-01-26 Kenichi Handa <handa@m17n.org>
15568
15569 * fontset.c (fontset_find_font): Fix handling of non-cons return
15570 value of fontset_get_font_group.
15571 (fontset_font): Revert last change.
15572
15573 2009-01-26 Jason Rumney <jasonr@gnu.org>
15574
15575 * w32font.c (w32font_list_internal): Return quickly if registry is
15576 unknown. Simplify final return.
15577 (add_font_entity_to_list): Break complex logic down into more
15578 manageable chunks. Move unknown registry check to
15579 w32font_list_internal.
15580
15581 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15582
15583 Changes to remove Feval calls from GUI under NS.
15584
15585 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15586 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15587 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15588
15589 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15590 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15591 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15592 instead of NON_ASCII_KEYSTROKE_EVENT.
15593 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15594 (EmacsApp-applicationShouldTerminate:): Query user.
15595 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15596 instead of Feval.
15597
15598 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15599
15600 * keyboard.c (kbd_buffer_get_event): Check for it.
15601 (keys_of_keyboard): Define lispy keys for
15602 ns-put/unput-working-text.
15603
15604 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15605 versions.
15606 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15607
15608 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
15609
15610 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15611 setting current_buffer directly. (Bug#2044)
15612
15613 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
15614
15615 * fontset.c (fontset_font): If we know there is no font, don't do
15616 any work. (Bug#1952, bug#1990).
15617
15618 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
15619
15620 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15621
15622 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15623 (ns_no_defaults): New declaration.
15624 (main): Use it.
15625
15626 * nsterm.h (ns_no_defaults): New declaration.
15627
15628 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15629
15630 * nsterm.m (ns_no_defaults): New variable.
15631 (ns_initialize): Don't read defaults when ns_no_defaults.
15632 (EmacsView-readSelectionFromPasteboard:)
15633 (writeSelectionToPasteboard:types:): New stubbed-out methods for
15634 NSServicesRequests protocol. (Bug#1435)
15635 (ns_dumpglyphs_stretch): New function.
15636 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15637 of 2008-11-15 to other terms. (Bug#615)
15638
15639 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15640
15641 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15642
15643 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15644 call for Sparc64.
15645
15646 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15647
15648 * nsfns.m:
15649 * nsgui.h:
15650 * nsmenu.m:
15651 * nsselect.m:
15652 * nsterm.h:
15653 * nsterm.m: Remove '23' comments that indicated code added during
15654 update from emacs-20 -> emacs-23.
15655
15656 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15657
15658 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15659 ns_alternate_modifier. (Bug#1217)
15660
15661 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15662 Display all shortcuts, including those w/o super modifier.
15663
15664 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15665
15666 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15667
15668 * fileio.c (Vwrite_region_post_annotation_function)
15669 (Vwrite_region_annotation_buffers): New vars.
15670 (build_annotations_unwind): Just reset
15671 Vwrite_region_annotation_buffers.
15672 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15673 Call write-region-post-annotation-function.
15674 (build_annotations): Add to Vwrite_region_annotation_buffers if
15675 buffer changes.
15676
15677 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15678
15679 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15680 Tiger.
15681 * nsfns.m (ns_do_applescript):
15682 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15683
15684 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15685
15686 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15687
15688 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15689
15690 * nsmenu.m (NSMENUPROFILE): Change #if style.
15691
15692 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15693
15694 * nsterm.m (x_set_frame_alpha): Add prototype.
15695 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15696 handle Ctrl-tab. (Bug#1841)
15697 (ns_get_color): Use unsigned long long for scanned hex string value.
15698 (ns_term_shutdown): Abort on non SIGTERM signals.
15699 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15700 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15701 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15702 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15703 (ns_defined_color): Fix settings of the XColor variable fields:
15704 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15705
15706 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15707 DPI. (Bug#1316)
15708 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15709 values in onTiger section.
15710
15711 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15712
15713 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15714 Check return value of font_spec_from_name.
15715 (Fx_list_fonts): Doc fix. (Bug#1951)
15716
15717 * font.c (font_spec_from_name): Return Qnil if font name could not
15718 be parsed.
15719 (font_parse_name): Treat a `?' character as part of an XLFD.
15720
15721 * fns.c (Fsubstring): Doc fix.
15722
15723 2009-01-19 Kenichi Handa <handa@m17n.org>
15724
15725 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15726 (ftfont_list): Likewise.
15727
15728 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15729
15730 * dbusbind.c (Fdbus_register_signal):
15731 * process.c (conv_sockaddr_to_lisp):
15732 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15733
15734 * callproc.c (Fgetenv_internal): Doc fix.
15735
15736 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15737
15738 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15739 it is not even used.
15740
15741 2009-01-16 Glenn Morris <rgm@gnu.org>
15742
15743 * font.c (Ffont_variation_glyphs): Silence compiler.
15744
15745 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15746
15747 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15748 Reported by David Robinow <drobinow@gmail.com>.
15749
15750 2009-01-15 Kenichi Handa <handa@m17n.org>
15751
15752 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15753
15754 2009-01-14 Jason Rumney <jasonr@gnu.org>
15755
15756 * frame.c (x_set_font): Always store a font to the font parameter,
15757 never a fontset. (Bug#1562)
15758
15759 2009-01-14 Kenichi Handa <handa@m17n.org>
15760
15761 * coding.c (TWO_MORE_BYTES): New macro.
15762 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15763
15764 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15765
15766 * font.c (font_clear_prop): If clearing the family, clear the font
15767 width index too.
15768
15769 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15770
15771 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15772
15773 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15774 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15775 functions, use sizeof.
15776
15777 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15778
15779 * keyboard.c (read_char): Fix case where last_nonmenu_event
15780 returned a bad value with submenus. (Bug#447)
15781
15782 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15783
15784 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15785 family, clear the font width index too.
15786
15787 2009-01-11 Jason Rumney <jasonr@gnu.org>
15788
15789 * keyboard.c (cmd_error_internal): Exit when errors occur before
15790 frame creation and not in daemon mode. (Bug#1836)
15791
15792 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15793
15794 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15795 of a display vector, backtrack.
15796 (try_window_reusing_current_matrix): Check glyph type before
15797 referencing charpos member.
15798
15799 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15800
15801 Fix Bug #876:
15802
15803 * coding.c (inhibit_null_byte_detection): New variable.
15804 (detect_coding, detect_coding_system): Don't pay attention to null
15805 bytes if inhibit_null_byte_detection is non-zero.
15806 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15807 <inhibit-iso-escape-detection>: Doc fix.
15808
15809 2009-01-09 Jason Rumney <jasonr@gnu.org>
15810
15811 * w32font.c (add_font_entity_to_list): Don't report unknown
15812 Windows charset as any unrecognized registry. (Bug#1548)
15813 Only report Unicode Plane 2 fonts as unicode-sip.
15814
15815 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15816
15817 * xfaces.c (Fx_font_family_list): Delete function.
15818 Move compatibility version to faces.el.
15819
15820 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15821
15822 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15823
15824 * frame.c (x_set_frame_parameters): Remember requested value for
15825 fullscreen before it's reset by the parameter handler.
15826
15827 2009-01-09 Glenn Morris <rgm@gnu.org>
15828
15829 * keyboard.c (last_command_char): For clarity, rename to...
15830 (last_command_event): ... and update all users.
15831 (last_input_char): For clarity, rename to...
15832 (last_input_event): ... and update all users.
15833 (last-command-char, last-input-char): Move to subr.el as aliases.
15834 * cmds.c, commands.h: Update for last_command_char rename.
15835
15836 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15837
15838 * font.c (font_open_for_lface): Handle unspecified height attribute.
15839
15840 2009-01-08 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15843 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15844 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15845 Don't declare.
15846 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15847 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15848
15849 2009-01-07 Kenichi Handa <handa@m17n.org>
15850
15851 * fileio.c (Finsert_file_contents): In the case of replace,
15852 remember the coding system used for decoding in
15853 coding_system (Bug#1039).
15854
15855 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15856 breaking the loop. (Bug#870)
15857 (decode_coding_utf_16, decode_coding_emacs_mule)
15858 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15859 (decode_coding_charset): Likewise.
15860
15861 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15862
15863 * frame.c (x_set_frame_parameters): Make sure height (width) get
15864 applied when fullwidth (fullheight) is set. (Bug#1522)
15865
15866 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15867
15868 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15869 (utc_base): Declare as ULONGLONG, not long double.
15870 (convert_time_raw): Delete.
15871 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15872 (initialize_utc_base): New function.
15873 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15874 (convert_from_time_t): Use initialize_utc_base; compute result with
15875 64-bit arithmetic.
15876 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15877
15878 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15879
15880 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15881 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15882 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15883 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15884 [!subprocesses]: Define.
15885 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15886 (Flist_system_processes, Fsystem_process_attributes)
15887 [!subprocesses]: Call list_system_processes and
15888 system_process_attributes instead of returning Qnil.
15889
15890 * dosfns.c (system_process_attributes, list_system_processes):
15891 New functions.
15892
15893 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15894
15895 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15896 Don't use the default (no-op) implementation.
15897
15898 2009-01-03 Jason Rumney <jasonr@gnu.org>
15899
15900 * keyboard.c (parse_modifiers_uncached): Wheel events are
15901 clicks (bug#687).
15902
15903 * w32term.c (x_query_colors, x_query_color): New functions.
15904
15905 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15906 (svg_load_image): Cast returned pointers from dynamically loaded
15907 functions. Eliminate W32 specific code.
15908
15909 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15910
15911 * nsfns.m (x_set_foreground_color, x_set_background_color)
15912 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15913 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15914 x_ prefix instead of ns_. Update references.
15915 (syms_of_nsfns): Add a FIXME comment.
15916
15917 * nsterm.m (x_set_cursor_type): New prototype.
15918 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15919
15920 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15921 for Solaris instead of incorrectly providing Qutime and Qcutime.
15922
15923 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15924
15925 * w32.c (process_times): Compute sum of utime and stime.
15926 (system_process_attributes): Add Qtime to the alist.
15927
15928 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15929 and add them to the alist.
15930
15931 * process.c (top level) <Qtime, Qctime>: New variables.
15932 (syms_of_process): staticpro them.
15933 (Fsystem_process_attributes): Add their documentation to the doc
15934 string.
15935
15936 * process.h: Declare Qtime and Qctime.
15937
15938 2009-01-02 Jason Rumney <jasonr@gnu.org>
15939
15940 * image.c (Qgobject): New symbol.
15941 (syms_of_image): Initialize it.
15942 (init_svg_functions): Load some functions from gobject library.
15943
15944 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15945
15946 * frame.c (make_terminal_frame): Remove redundant code and useless
15947 block.
15948
15949 2009-01-01 Andreas Schwab <schwab@suse.de>
15950
15951 * process.c (conv_sockaddr_to_lisp): Add workaround for
15952 getsockname bug on BSD.
15953
15954 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15955
15956 * xfns.c (x_create_tip_frame): Set border width of the X window.
15957
15958 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15959
15960 2009-01-01 Jason Rumney <jasonr@gnu.org>
15961
15962 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15963 Don't block input, as per earlier xterm.c changes.
15964
15965 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15966
15967 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15968 (ns_appkit_version_int): New function.
15969 (x-server-version): Use ns_appkit_version_int and follow 21+
15970 convention of returning 3 integers.
15971
15972 2008-12-30 Kenichi Handa <handa@m17n.org>
15973
15974 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15975 (CHAR_SURROGATE_PAIR_P): New macro.
15976
15977 * font.h (struct font_driver): New member get_variation_glyphs.
15978
15979 * font.c (font_range): Don't require a font for a variation selector.
15980 (Ffont_variation_glyphs): New function.
15981 (syms_of_font): Defsubr it.
15982
15983 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15984 ftfont_variation_glyphs.
15985 (setup_otf_gstring): New function.
15986 (ftfont_drive_otf): Use it.
15987 (ftfont_shape_by_flt): Handle variation selector.
15988 (ftfont_variation_glyphs): New function.
15989
15990 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15991
15992 * frame.c (Vemacs_iconified): Remove.
15993
15994 2008-12-30 Jason Rumney <jasonr@gnu.org>
15995
15996 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15997 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15998
15999 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
16000
16001 * indent.c (Fvertical_motion): Don't advance iterator if we have
16002 reseated to the desired position.
16003
16004 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
16005 checking for pos match.
16006
16007 2008-12-30 Kenichi Handa <handa@m17n.org>
16008
16009 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
16010 just get the low 8-bit of the code.
16011
16012 * font.c (font_intern_prop): Validate str as multibyte.
16013
16014 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
16015
16016 * dispextern.h (struct face): Move lface and hash from the middle
16017 of bitfields.
16018
16019 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
16020
16021 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
16022
16023 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
16024 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
16025 instead of intervals.h.
16026
16027 2008-12-26 Andreas Schwab <schwab@suse.de>
16028
16029 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
16030 cons.
16031
16032 2008-12-26 Martin Rudalics <rudalics@gmx.at>
16033
16034 * textprop.c (Qminibuffer_prompt): New variable.
16035 (syms_of_textprop): Initialize it.
16036 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
16037 in minibuffer-prompt face. (Bug#1662)
16038
16039 2008-12-25 Jason Rumney <jasonr@gnu.org>
16040
16041 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
16042
16043 2008-12-24 Jason Rumney <jasonr@gnu.org>
16044
16045 * ralloc.c (r_alloc_reset_variable): New function.
16046
16047 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
16048 record of what points where. (Bug#716)
16049
16050 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
16051
16052 * minibuf.c (read_minibuf): Follow the non-interactive case when
16053 running as a daemon, before detaching.
16054
16055 2008-12-22 Andreas Schwab <schwab@suse.de>
16056
16057 * buffer.c (init_buffer): Use realloc instead of xrealloc.
16058 * gtkutil.c (free_widget_value): Use xfree instead of free.
16059
16060 2008-12-22 Martin Rudalics <rudalics@gmx.at>
16061
16062 * frame.c (delete_frame): New function derived from
16063 Fdelete_frame to handle Qnoelisp value for FORCE argument.
16064 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
16065 (Fdelete_frame): Call delete_frame. Remove line from doc-string
16066 saying that FORCE non-nil doesn't run `delete-frame-functions'.
16067 * frame.h: Extern delete_frame.
16068 * window.c (window_loop):
16069 * terminal.c (delete_terminal):
16070 * xterm.c (x_connection_closed):
16071 * xfns.c (Fx_hide_tip):
16072 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
16073
16074 2008-12-21 Jason Rumney <jasonr@gnu.org>
16075
16076 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
16077 when character maps to .notdef character.
16078
16079 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
16080
16081 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
16082
16083 2008-12-20 Jason Rumney <jasonr@gnu.org>
16084
16085 * frame.c (Fmake_terminal_frame): Raise an error when called from
16086 a graphical frame on Windows. (Bug#1325)
16087
16088 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
16089
16090 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
16091
16092 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
16093
16094 * minibuf.c (Fread_buffer): Doc fix.
16095
16096 2008-12-20 Jason Rumney <jasonr@gnu.org>
16097
16098 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
16099 server name in UNC paths. (Bug#719)
16100
16101 * coding.c (decode_coding): Clear chars_at_source flag when using
16102 charbuf. (Bug#1035)
16103
16104 2008-12-19 Daniel Engeler <engeler@gmail.com>
16105
16106 * sysdep.c (serial_configure): Fix typo.
16107
16108 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16109
16110 * sysdep.c: Include alloca.h.
16111 (system_process_attributes): Add implementation for Solaris.
16112
16113 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
16114
16115 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16116
16117 Reorganize implementation of Flist_system_processes and
16118 Fsystem_process_attributes. No functional changes.
16119 * process.c: Don't #include pwd.h, grp.h and limits.h.
16120 (Flist_system_processes): Just call list_system_processes.
16121 (Fsystem_process_attributes): Just call system_process_attributes.
16122 (procfs_list_system_processes, time_from_jiffies)
16123 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16124 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
16125
16126 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
16127 (list_system_processes): Rename from
16128 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
16129 Provide a do nothing implementation.
16130 (system_process_attributes): Rename from
16131 procfs_list_system_processes.
16132 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16133 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
16134
16135 * w32.c (list_system_processes): Rename from
16136 w32_list_system_processes.
16137 (system_process_attributes): Rename from
16138 w32_system_process_attributes.
16139
16140 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
16141
16142 * process.h (w32_list_system_processes)
16143 (w32_system_process_attributes): Remove.
16144 (list_system_processes, system_process_attributes):
16145 New prototypes.
16146
16147 2008-12-19 Kenichi Handa <handa@m17n.org>
16148
16149 * xfont.c (xfont_decode_coding_xlfd): New function.
16150 (xfont_encode_coding_xlfd): New function.
16151 (xfont_list_pattern): Decode XLFD by iso-8859-1.
16152 (xfont_list): Decode and encode XLFD by iso-8859-1.
16153 (xfont_match): Likewise.
16154 (xfont_list_family): Likewise.
16155 (xfont_open): Likewise.
16156
16157 * ftfont.c (ftfont_open): Generate a multibyte string if given
16158 names are utf-8.
16159
16160 * xftfont.c (xftfont_open): Generate a multibyte string if given
16161 names are utf-8.
16162
16163 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
16164
16165 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
16166 changed.
16167 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
16168 clicked on a detached tool bar button.
16169
16170 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
16171
16172 * emacs.c (main): Print and error and exit when no data is read
16173 from the pipe.
16174
16175 2008-12-17 Jason Rumney <jasonr@gnu.org>
16176
16177 * w32font.c (w32font_has_char): Always return -1.
16178
16179 2008-12-16 Kenichi Handa <handa@m17n.org>
16180
16181 * font.c (font_open_entity): Fix previous change.
16182
16183 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
16184
16185 * process.c: Include <limits.h>.
16186
16187 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
16188
16189 * font.c (font_update_drivers): Fix mistake in reconstructing the
16190 driver list.
16191
16192 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
16193
16194 * font.c (font_clear_cache): Fix format of font cache data.
16195
16196 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
16197
16198 * xftfont.c (xftfont_open): Free Xft font pattern if
16199 XftFontOpenPattern fails.
16200
16201 * xterm.c (x_free_frame_resources): Remove extraneous call to
16202 free_frame_faces.
16203
16204 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16205
16206 * xterm.c (x_delete_display): Move xim_close_dpy call to
16207 x_delete_terminal.
16208 (x_delete_terminal): Call xim_close_dpy.
16209
16210 2008-12-13 Jason Rumney <jasonr@gnu.org>
16211
16212 * w32font.c (intern_font_name): New function.
16213 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
16214 (w32font_open_internal, Fx_select_font): Decode font name.
16215 (fill_in_logfont, list_all_matching_fonts): Encode font name.
16216
16217 * w32font.h (intern_font_name): Declare new function.
16218
16219 * w32uniscribe.c (add_opentype_font_name_to_list):
16220 Use intern_font_name.
16221
16222 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16223
16224 * frame.c (Fdelete_frame): Call free_font_driver_list.
16225
16226 * font.c (free_font_driver_list): Implement missing function.
16227
16228 * w32term.c (w32_term_init): Don't initialize the image cache
16229 here; it will be done in init_frame_faces.
16230
16231 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
16232 (struct x_display_info): Remove unused member null_pixel.
16233 New member xim_callback_data.
16234
16235 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
16236 (xim_initialize): Save pointer to callback function data.
16237 (xim_close_dpy): Free callback function data. Call XCloseIM,
16238 reverting 2008-11-04 change by David Smith.
16239 (x_term_init): Don't initialize the image cache here; it will be
16240 done in init_frame_faces. Remove ancient "null_pixel" cruft.
16241 (x_delete_display): Free x_dnd_atoms member.
16242
16243 2008-12-13 Kenichi Handa <handa@m17n.org>
16244
16245 * font.c (font_rescale_ratio): Move from xfaces.c.
16246 Argument type changed. Handle a font-spec too.
16247 (font_score): Check Vface_font_rescale_alist.
16248 (font_open_entity): Likewise. (Bug#1547)
16249
16250 * xfaces.c (font_rescale_ratio): Move to font.c.
16251
16252 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16253
16254 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16255
16256 2008-12-12 Jason Rumney <jasonr@gnu.org>
16257
16258 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16259 Set Vwindow_system_version to the real w32 major version.
16260
16261 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16262
16263 * term.c (init_tty): Move setting the terminal name before the
16264 potential user: maybe_fatal.
16265
16266 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
16267
16268 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
16269 all callers changed. Call free_frame_faces to free the face cache.
16270
16271 2008-12-11 Jason Rumney <jasonr@gnu.org>
16272
16273 * w32font.c (fill_in_logfont): Don't assume symbol script means
16274 SYMBOL_CHARSET. (Bug#547)
16275
16276 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
16277 size for surrogates. (Bug#1096, bug#872)
16278
16279 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16280
16281 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16282
16283 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16284
16285 * process.c (Fsystem_process_attributes, syms_of_process):
16286 Fix typo in name of Ssystem_process_attributes.
16287 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16288
16289 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16290
16291 * syntax.c (Fmodify_syntax_entry): Doc fix.
16292
16293 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16294
16295 * font.c (Ffont_spec): Move usage to end of docstring.
16296
16297 2008-12-10 Jason Rumney <jasonr@gnu.org>
16298
16299 * w32font.c (Qcham): New symbol.
16300 (font_supported_scripts): Add cham, and comments for other new
16301 scripts in bitfield from OpenType spec.
16302 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16303 contain characters beyond the bmp.
16304
16305 2008-12-10 Kenichi Handa <handa@m17n.org>
16306
16307 * ftfont.c (fc_charset_table): Add "unicode-sip".
16308 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
16309 Qunicode_sip.
16310
16311 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16312
16313 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16314 (Fcoding_system_put): Use QCdefault_char.
16315 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16316
16317 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
16318
16319 * xftfont.c (syms_of_xftfont): Fix typo.
16320
16321 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
16322
16323 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16324
16325 * emacs.c (main): Close daemon_pipe on exec.
16326
16327 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
16328
16329 * termchar.h (struct tty): New members termcap_term_buffer and
16330 termcap_strings_buffer.
16331
16332 * term.c (encode_terminal_code): Free any previous memory blocks
16333 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
16334 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16335 All callers changed.
16336 (init_tty): Store termcap data and string buffers in new struct
16337 tty members termcap_term_buffer and termcap_strings_buffer.
16338 (delete_tty): Free them.
16339 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
16340
16341 2008-12-07 Seiji Zenitani <zenitani@mac.com>
16342
16343 * nsfns.m (ns_set_background_color): Remove code duplication.
16344 It was a substitute for face-transparency on OS X 10.3.
16345
16346 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
16347
16348 * coding.c (make_conversion_work_buffer): Disable buffer
16349 modification hooks in the work buffer.
16350
16351 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16352
16353 * process.c (procfs_system_process_attributes): If `nread' has a
16354 negative value, assign zero to it.
16355
16356 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
16357
16358 * eval.c (Vdebug_on_error): Doc fix.
16359
16360 2008-12-05 Kenichi Handa <handa@m17n.org>
16361
16362 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16363 second character is a combining character.
16364
16365 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16366
16367 * process.c (procfs_system_process_attributes): Don't use cmd,
16368 cmdsize, and q without initializing them first.
16369
16370 2008-12-04 Jason Rumney <jasonr@gnu.org>
16371
16372 * w32font.c (w32font_draw): Initialize orig_clip before getting
16373 it, and delete it when finished.
16374
16375 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16376
16377 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16378 case when running as a daemon before detaching.
16379
16380 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
16381
16382 * w32.c (init_environment): Don't unload library shell32.dll.
16383
16384 2008-12-03 Kenichi Handa <handa@m17n.org>
16385
16386 * font.c (font_at): Set `multibyte' at first.
16387
16388 * coding.c (decode_coding_charset): Check type of an element of
16389 vector VALIDS.
16390 (encode_coding_emacs_mule): Be sure to set `code'.
16391
16392 * fontset.c (face_for_char): Handle invalid charset property correctly.
16393 (font_for_char): Likewise.
16394
16395 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
16396
16397 * font.c (Fopen_font): Compute pixel size correctly.
16398 (font_update_lface): Handle fonts with corrupted size specs,
16399 i.e. non-int and non-float.
16400
16401 * ftfont.c (ftfont_match): Initialize entity variable.
16402 (ftfont_resolve_generic_family): Avoid using uninitialized var.
16403 (ftfont_list_family): Initialize list var earlier.
16404
16405 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16406
16407 * xterm.c (x_draw_glyph_string): Fall back on
16408 underline_minimum_offset for underline position.
16409
16410 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16411
16412 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16413
16414 * character.c (c_string_width): Specify the type for LEN.
16415
16416 2008-12-03 Kenichi Handa <handa@m17n.org>
16417
16418 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16419 (decode_coding_utf_8): Likewise.
16420 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16421 (produce_chars): Initialize consumed_chars to 0.
16422
16423 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16424
16425 * keyboard.c (make_lispy_position): Only use PT if the selected
16426 window is current.
16427
16428 2008-12-02 Andreas Schwab <schwab@suse.de>
16429
16430 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16431
16432 * doprnt.c (doprnt1): Fix size of charbuf.
16433
16434 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16435
16436 * keyboard.c (timer_check): Revert last change.
16437
16438 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
16439
16440 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16441
16442 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
16443
16444 * makefile.w32-in: Update dependencies.
16445 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16446
16447 2008-12-01 Andreas Schwab <schwab@suse.de>
16448
16449 * font.c (register_font_driver): Use xmalloc.
16450 (font_put_frame_data): Likewise.
16451
16452 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
16453
16454 * xfaces.c (realize_x_face): Make abort condition clearer.
16455
16456 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16457
16458 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
16459
16460 * keyboard.c (timer_check): After a timer runs, ensure that the
16461 selected window's buffer is current.
16462
16463 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
16464
16465 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16466 It was accidentally restored by the Unicode merge.
16467
16468 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16469
16470 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
16471
16472 * w32proc.c: Include "coding.h".
16473 (Fw32_short_file_name): Encode filename passed to Windows API.
16474 (Fw32_long_file_name): Encode filename passed to Windows API and
16475 decode back the result. (Bug#1433)
16476
16477 2008-11-29 Kenichi Handa <handa@m17n.org>
16478
16479 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16480 not before accessing it.
16481
16482 * charset.c (Fdefine_charset_internal): After calculating
16483 min_char, max_char, and fastmap, copy the charset structure again.
16484 (encode_char): Fix the previous change.
16485
16486 2008-11-28 Seiji Zenitani <zenitani@mac.com>
16487
16488 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16489
16490 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16491
16492 * nsterm.m (x_set_frame_alpha): New function.
16493
16494 2008-11-27 Eli Zaretskii <eliz@gnu.org>
16495
16496 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16497
16498 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
16499
16500 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16501 pointer to check_face_name.
16502
16503 2008-11-27 Kenichi Handa <handa@m17n.org>
16504
16505 * category.h (SET_CATEGORY_SET): Call set_category_set.
16506 (set_category_set): Extern it.
16507
16508 * category.c (hash_get_category_set): New function.
16509 (Fmodify_category_entry): Adjust for the change of
16510 char_table_ref_and_range. Call hash_get_category_set to get a
16511 category set to store in the table.
16512
16513 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16514 Funify_charset.
16515
16516 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16517 (DECODE_CHAR): Check if the decoder vector is ready.
16518 (ENCODE_CHAR): Check if the encoder char-table is ready.
16519 (maybe_unify_char): Extern it.
16520
16521 * charset.c (Vchar_unified_charset_table): Delete it.
16522 (inhibit_load_charset_map): New variable.
16523 (temp_charset_work): New variable.
16524 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16525 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16526 New macros.
16527 (load_charset_map): Meaning of control_flag changed.
16528 If inhibit_load_charset_map is nonzero, setup a table in
16529 temp_charset_work.
16530 (load_charset): New argument control_flag.
16531 (map_charset_for_dump): New function.
16532 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16533 map_charset_for_dump.
16534 (Fdefine_charset_internal): If the charset method is MAP, load
16535 mapping tables by calling load_charset.
16536 (Funify_charset): Don't load a mapping table but directly set
16537 Vchar_unify_table.
16538 (maybe_unify_char): New function.
16539 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16540 Handle the case of inhibit_load_charset_map being nonzero.
16541 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16542 Handle the case of inhibit_load_charset_map being nonzero.
16543 (Fclear_charset_maps): Just free temp_charset_work.
16544 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16545 variable.
16546
16547 * chartab.c (sub_char_table_ref_and_range): Adjust for the
16548 change of char_table_ref_and_range.
16549 (char_table_ref_and_range): Change the meaning of argument FROM
16550 and TO. Now the caller must provide initial values for *FROM
16551 and *TO.
16552
16553 * fontset.c (fontset_add): Adjust for the change of
16554 char_table_ref_and_range.
16555 (fontset_get_font_group): Likewise.
16556 (Ffontset_info): Likewise.
16557
16558 * keymap.c (describe_vector): Adjust for the change of
16559 char_table_ref_and_range. For char-table, put boundary between
16560 non-ASCII and 8-bit characters.
16561
16562 * print.c (print_object): For bool-vector, delete unnecessary
16563 check of ASCII_BYTE_P.
16564
16565 2008-11-26 Jason Rumney <jasonr@gnu.org>
16566
16567 * w32font.c (w32font_open_internal): Don't include external
16568 leading in font height. (Bug#879)
16569
16570 2008-11-26 Glenn Morris <rgm@gnu.org>
16571
16572 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16573 redefinition with ifdef. (Bug#1383)
16574
16575 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16576
16577 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16578
16579 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
16580
16581 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16582 New EmacsView methods.
16583 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16584 Fixes bug #1048,1357,1414.
16585
16586 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16587
16588 Fix bug #1362.
16589 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16590 is not an indexed color.
16591 * nsterm.m (free_indexed_color): Add argument checking.
16592 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16593
16594 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
16595
16596 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16597 Document confirm-after-completion value for
16598 minibuffer-completion-confirm.
16599
16600 2008-11-24 Jason Rumney <jasonr@gnu.org>
16601
16602 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16603 warning.
16604
16605 2008-11-23 Jason Rumney <jasonr@gnu.org>
16606
16607 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16608 restored before returning.
16609
16610 * w32font.c (check_face_name): New function.
16611 (add_font_entity_to_list): Use it to filter out common substituted
16612 fonts. (Bug#642)
16613
16614 2008-11-22 Martin Rudalics <rudalics@gmx.at>
16615
16616 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16617 confirm-nonexistent-file-or-buffer in doc-string.
16618
16619 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16620
16621 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16622 Fix copy/paste typo. Add checks.
16623
16624 2008-11-21 Kenichi Handa <handa@m17n.org>
16625
16626 * coding.c (detect_coding_iso_2022): Reject invalid composition
16627 sequence.
16628 (DECODE_COMPOSITION_START): If the current source is the last
16629 block, and the current composition doesn't end, regard this
16630 sequence as invalid.
16631 (decode_coding_iso_2022): Handle invalid composition sequence.
16632
16633 2008-11-20 Martin Rudalics <rudalics@gmx.at>
16634
16635 * window.c (coordinates_in_window): Don't return
16636 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16637 line when the window is not the rightmost one. (Bug#1372)
16638
16639 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16640
16641 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16642
16643 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16644
16645 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16646 and bright_bg if noninteractive is non-zero.
16647
16648 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16649
16650 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16651 x_draw_glyph_string_background.
16652
16653 * w32term.c (x_draw_glyph_string): Likewise.
16654
16655 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16656
16657 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16658 the next glyph string once past the overhang width.
16659
16660 * nsterm.m (ns_draw_glyph_string): Likewise.
16661
16662 * w32term.c (x_draw_glyph_string): Likewise.
16663
16664 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16665
16666 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16667 double file close.
16668
16669 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16670
16671 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16672 dedicated status of window before attempting to display another
16673 buffer in it.
16674
16675 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16676
16677 * msdos.c (Fmsdos_long_file_names):
16678 (syms_of_msdos) <dos-unsupported-char-glyph>:
16679 * dosfns.c (Fint86): Fix typos in docstrings.
16680
16681 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16682
16683 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16684
16685 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16686
16687 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16688
16689 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16690
16691 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16692
16693 * frame.h: Negative alpha means "don't touch".
16694
16695 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16696
16697 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16698
16699 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16700
16701 * hftctl.c:
16702 * chpdef.h:
16703 * acldef.h: Remove files used only for systems no longer supported.
16704
16705 * Makefile.in: Fix .o alphabetical ordering.
16706 (hftctl.o): Remove dependency, file removed.
16707 (keymap.o, print.o): Depend on charset.h.
16708
16709 2008-11-10 Kenichi Handa <handa@m17n.org>
16710
16711 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16712
16713 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16714
16715 * dired.c (file_name_completion): If completion_ignore_case is
16716 enabled, ignore case when checking completion-regexp-list.
16717
16718 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16719
16720 * vm-limit.c (get_lim_data): Fix last change.
16721
16722 2008-11-08 Kenichi Handa <handa@m17n.org>
16723
16724 * character.c (Fget_byte): New function.
16725 (syms_of_character): Defsubr Fget_byte.
16726
16727 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16728
16729 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16730 cursor position is valid after scrolling.
16731
16732 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16733
16734 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16735
16736 2008-11-06 Glenn Morris <rgm@gnu.org>
16737
16738 * xterm.c (handle_one_xevent): Don't let popup menus cause
16739 mouse-autoselect-window related window switching. (Bug#1261)
16740
16741 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16742
16743 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16744
16745 2008-11-04 Andreas Schwab <schwab@suse.de>
16746
16747 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16748
16749 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16750
16751 * xfns.c (Fx_wm_set_size_hint): New function.
16752
16753 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16754
16755 * textprop.c (Fprevious_single_char_property_change): Return 0
16756 when there's no change in a string. (Bug#1301)
16757
16758 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16759
16760 * frame.c (do_switch_frame): New argument NORECORD passed to
16761 Fselect_window.
16762 (Fselect_frame): New argument NORECORD passed to
16763 do_switch_frame.
16764 (Fset_frame_selected_window): New argument NORECORD passed to
16765 Fselect_frame.
16766 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16767 in call of do_switch_frame.
16768 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16769 Handle NORECORD argument in call of Fselect_frame.
16770 * lisp.h (do_switch_frame, Fselect_frame)
16771 (Fset_frame_selected_window): Adjust declarations.
16772 * window.c (select_frame_norecord): New function.
16773 (run_window_configuration_change_hook): Use it and call
16774 Fselect_frame with NORECORD set.
16775 (Fselect_window): Pass NORECORD to Fselect_frame.
16776 (Fset_window_configuration): Handle NORECORD argument in call of
16777 do_switch_frame.
16778 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16779 Fset_frame_selected_window.
16780 * keyboard.c (command_loop_1): Handle NORECORD in call of
16781 Fselect_frame (currently ifdefd).
16782
16783 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16784
16785 * emacs.c (USAGE2): Untabify.
16786
16787 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16788
16789 * composite.c (fill_gstring_header): Fix copy/paste typo.
16790
16791 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16792
16793 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16794 (Fother_window): Rename argument and rewrite doc-string.
16795 (select_window_norecord): Fix return value. (Bug#1276)
16796
16797 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16798
16799 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16800 new frames overriding foreground for tooltips. Based on similar patch
16801 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16802
16803 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16804
16805 * emacs.c (Fdaemon_initialized): Initialize nfd.
16806
16807 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16808
16809 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16810 (Fwindow_text_height): Clarify doc-strings.
16811 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16812 doc-string of window-scroll-functions.
16813
16814 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16815
16816 * category.c (syms_of_category): Fix typo in docstring.
16817
16818 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16819
16820 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16821 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16822 Fix typos in docstrings.
16823
16824 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16825
16826 * emacs.c (daemon_pipe): Make non-static.
16827 (IS_DAEMON): Move definition ...
16828 * lisp.h (IS_DAEMON): ... here.
16829 (daemon_pipe): Declare.
16830 (is_daemon): Remove.
16831 * dispnew.c (init_display): Use IS_DAEMON.
16832
16833 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16834
16835 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16836 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16837
16838 * emacs.c (is_daemon): Remove.
16839 (main): Don't set is_daemon.
16840 (IS_DAEMON): New macro.
16841 (Fdaemonp, Fdaemon_initialized): Use it.
16842 (Fdaemon_initialized): Write a char into the pipe to make sure the
16843 parent exits.
16844 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16845
16846 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16847
16848 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16849 over-sized glyph, draw it with the default glyph width.
16850
16851 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16852 glyph, draw it with the default glyph width.
16853
16854 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16855 glyph, draw it with the default glyph width.
16856
16857 * xdisp.c (try_scrolling): When computing the distance from the
16858 scroll margin to PT, try moving some distance past the window
16859 bottom before giving up.
16860
16861 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16862
16863 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16864 (Fset_window_buffer): Explain in doc-string that a window can be
16865 "strongly" dedicated to its buffer.
16866
16867 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16868
16869 * emacs.c (daemon_name): New variable.
16870 (main): Deal with --daemon=SERVER_NAME.
16871 (Fdaemonp): Return a name if one was passed to --daemon.
16872
16873 2008-10-26 Romain Francoise <romain@orebokech.com>
16874
16875 * emacs.c (daemon_pipe): New variable.
16876 (main): Create a pipe before forking, make the parent exit only after
16877 the child has closed its end of the pipe. Move closing the
16878 descriptors ...
16879 (Fdaemon_initialized): ... here. New function.
16880
16881 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16882
16883 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16884 the previous unoptimized table.
16885
16886 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16887 the distinction between non-nil and non-t value of `dedicated'.
16888
16889 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16890
16891 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16892 read_char_minibuf_menu_text is large enough to hold the menu string.
16893
16894 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16895
16896 * window.c (Fget_buffer_window, Fdelete_windows_on)
16897 (Freplace_buffer_in_windows): Make buffer argument optional and
16898 rename to buffer_or_name.
16899
16900 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16901
16902 * xdisp.c (handle_single_display_spec, handle_display_prop):
16903 Undo 2005-05-16 change.
16904 (handle_stop): Pop iterator if it's loaded with an empty string.
16905 (get_overlay_strings_1): Don't save iterator if it's loaded with
16906 an empty string (bug#1201).
16907
16908 2008-10-24 Kenichi Handa <handa@m17n.org>
16909
16910 * ftfont.c (ftfont_otf_features): Fix previous change.
16911 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16912 calling ftfont_otf_features.
16913
16914 2008-10-24 Kenichi Handa <handa@m17n.org>
16915
16916 * font.c (font_match_p): Fix for the case that a vector of
16917 characters is in script-representative-chars.
16918
16919 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16920
16921 * dbusbind.c (xd_in_read_queued_messages): New variable.
16922 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16923 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16924 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16925 macro. (Bug#1186)
16926
16927 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16928
16929 * s/sol2-10.h: New file.
16930
16931 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16932
16933 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16934 poor beast has survived 9+ years and the jump from xterm.c!).
16935
16936 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16937
16938 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16939 Reword doc-string.
16940 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16941
16942 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16943
16944 * character.c (syms_of_character) <script-representative-chars>:
16945 <unicode-category-table>: Doc fixes.
16946
16947 2008-10-23 Noah Friedman <friedman@splode.com>
16948
16949 * coding.c (make_conversion_work_buffer): Check that
16950 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16951 Fget_buffer_create.
16952
16953 2008-10-23 Kenichi Handa <handa@m17n.org>
16954
16955 * font.c (font_add_log): Check the values of extra properties.
16956
16957 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16958
16959 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16960 Reword doc-string.
16961 (Fset_window_parameter): Use NILP.
16962 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16963 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16964
16965 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16966
16967 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16968
16969 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16970
16971 * nsfns.m (ns_appkit_version): New function.
16972 (x-server-version): Use it.
16973 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16974 (x-server-vendor): Don't check_ns().
16975
16976 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16977
16978 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16979
16980 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16981 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16982
16983 2008-10-22 Kenichi Handa <handa@m17n.org>
16984
16985 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16986 scripts.
16987
16988 * category.c (word_boundary_p): Check scripts instead of charset.
16989 Handle nil value in word-separating-categories and
16990 word-combining-categories.
16991 (syms_of_category): Fix docstrings of word-separating-categories
16992 and word-combining-categories.
16993
16994 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16995
16996 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16997 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16998
16999 2008-10-21 Martin Rudalics <rudalics@gmx.at>
17000
17001 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
17002 Rename arg "buffer" to "buffer_or_name".
17003 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
17004 it optional.
17005 (no_switch_window): Remove since the return value is not used.
17006 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
17007 Consider window as dedicated when Fwindow_dedicated_p returns a
17008 non-nil value.
17009 * lisp.h: Remove prototype for no_switch_window.
17010
17011 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
17012
17013 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
17014 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
17015
17016 2008-10-21 Kenichi Handa <handa@m17n.org>
17017
17018 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
17019 check Vlatin_extra_code_table.
17020
17021 2008-10-20 Eli Zaretskii <eliz@gnu.org>
17022
17023 * fileio.c (Fset_file_modes): Doc fix.
17024
17025 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
17026
17027 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
17028 in arrays.
17029
17030 2008-10-19 Martin Rudalics <rudalics@gmx.at>
17031
17032 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
17033 Mention kill-buffer in doc-string.
17034 (Fset_window_buffer): Reinsert tem check removed in last commit.
17035 (Fenlarge_window, Fshrink_window): Have argument names and
17036 doc-string follow Elisp manual more closely.
17037
17038 2008-10-18 Eli Zaretskii <eliz@gnu.org>
17039
17040 * fileio.c (Fset_file_modes): Doc fix.
17041
17042 2008-10-18 Martin Rudalics <rudalics@gmx.at>
17043
17044 * window.c (Fwindow_width, Fset_window_start)
17045 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
17046 (Fdelete_windows_on, Freplace_buffer_in_windows):
17047 Make doc-strings follow code and Elisp manual more closely.
17048 (Fwindow_dedicated_p): Make window argument optional.
17049 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
17050 (Fset_window_buffer): Respect any non-nil dedicated value for
17051 window. Rename "buffer" argument to "buffer_or_name".
17052
17053 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
17054
17055 * m/sh3.h: New file, machine description for SuperH.
17056
17057 2008-10-17 Martin Rudalics <rudalics@gmx.at>
17058
17059 * window.c (Fsplit_window): Rename arg horflag to horizontal.
17060
17061 2008-10-17 Kenichi Handa <handa@m17n.org>
17062
17063 * ftfont.c (ftfont_otf_features): Fix indexing
17064 gsub_gpos->FeatureList.Feature. Check the validity of indices.
17065
17066 2008-10-16 Magnus Henoch <mange@freemail.hu>
17067
17068 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
17069 (Fdbus_call_method_asynchronously): Ditto.
17070 This change makes C-h f display the argument list.
17071
17072 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
17073
17074 * fileio.c (Fexpand_file_name): Doc fix.
17075
17076 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
17077 of :foreground and :background equivalent to unspecified (20.x
17078 compatibility).
17079
17080 2008-10-15 Eli Zaretskii <eliz@gnu.org>
17081
17082 * buffer.c (syms_of_buffer): Doc fix.
17083
17084 2008-10-14 Kenichi Handa <handa@m17n.org>
17085
17086 * font.c (font_clear_prop): When clearing font width, clear the
17087 average width field too.
17088
17089 2008-10-12 Andreas Schwab <schwab@suse.de>
17090
17091 * ftfont.c (ftfont_shape_by_flt): Make static.
17092 * ftfont.h (ftfont_shape_by_flt): Don't declare.
17093
17094 * font.c: Don't include <m17n-flt.h>.
17095
17096 2008-10-10 Eli Zaretskii <eliz@gnu.org>
17097
17098 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
17099
17100 2008-10-09 Eli Zaretskii <eliz@gnu.org>
17101
17102 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
17103 away code.
17104
17105 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
17106
17107 * dispnew.c (update_text_area): Avoid looping due to large glyph
17108 overhangs (bug#1070).
17109
17110 2008-10-09 Kenichi Handa <handa@m17n.org>
17111
17112 * fontset.c (face_for_char): If face->fontset is negative, just
17113 return ascii_face.
17114
17115 * font.c (font_delete_unmatched): Fix previous change.
17116 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
17117
17118 2008-10-09 Martin Rudalics <rudalics@gmx.at>
17119
17120 * frame.c (Fraise_frame): On text-only terminals select frame in
17121 order to make it visible. (Bug#1061)
17122
17123 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
17124
17125 * fontset.c (fontset_find_font): Check frame validity.
17126
17127 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
17128
17129 * gtkutil.c (xg_display_open): Reset default display if none exists.
17130 (xg_display_close): Allow Emacs to close all displays (bug#985).
17131
17132 2008-10-06 Andreas Schwab <schwab@suse.de>
17133
17134 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
17135
17136 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
17137
17138 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
17139
17140 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
17141
17142 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
17143 during initialization.
17144
17145 2008-10-04 Eli Zaretskii <eliz@gnu.org>
17146
17147 * xdisp.c (redisplay_internal): If frame switched, redisplay the
17148 whole thing on MSDOS frames as well as on a TTY.
17149
17150 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
17151 well as for TTY.
17152 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
17153 well as on a TTY.
17154
17155 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
17156 as well as for TTY.
17157
17158 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
17159
17160 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
17161 MSDOS frames as well.
17162
17163 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17164
17165 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
17166 correct arguments.
17167 * menu.c (find_and_return_menu_selection): Add cast.
17168
17169 2008-10-03 Glenn Morris <rgm@gnu.org>
17170
17171 * emacs.c (USAGE1): Add --daemon.
17172
17173 2008-10-02 Eli Zaretskii <eliz@gnu.org>
17174
17175 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
17176 100, so it's in percents as advertised.
17177
17178 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17179
17180 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
17181 (ns_output.current_cursor, ns_output.desired_cursor)
17182 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
17183 (FRAME_NEW_CURSOR_COLOR): Remove.
17184
17185 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
17186 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
17187 enumeration (HOLLOW_BOX_CURSOR, etc.).
17188
17189 * nsterm.m (ns_frame_rehighlight): Remove commented code.
17190 (draw_window_cursor): Simplify code.
17191 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
17192 Don't change cursor type. In latter, call rehighlight instead of doing
17193 updates manually.
17194 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
17195 Use core Emacs cursor types.
17196
17197 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
17198
17199 2008-10-02 Martin Rudalics <rudalics@gmx.at>
17200
17201 * process.c (Faccept_process_output): Fix doc-string.
17202
17203 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
17204
17205 * gmalloc.c (__sbrk): Also define for uClibc.
17206
17207 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
17208 for uClibc.
17209
17210 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17211
17212 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
17213 styles.
17214 (nsfont_open): Reenable the cache.
17215
17216 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17217
17218 * font.c (font_matching_entity): Reflect ATTRS in font selection.
17219 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
17220
17221 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
17222
17223 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
17224 a suspended terminal.
17225
17226 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
17227
17228 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
17229
17230 2008-09-30 Eli Zaretskii <eliz@gnu.org>
17231
17232 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
17233
17234 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
17235
17236 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
17237 in a continued line coincides with a line beginning.
17238
17239 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
17240
17241 * nsfont.m (nsfont_trait_distance): Fix bug.
17242 (nsfont_list): Return a list rather than a vector (syncs with Handa
17243 changes of 2008-05-14).
17244 (nsfont_open): Improve logging.
17245
17246 2008-09-29 Andreas Schwab <schwab@suse.de>
17247
17248 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
17249
17250 2008-09-28 Martin Rudalics <rudalics@gmx.at>
17251
17252 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17253 name as char-resolve-modifiers.
17254 Reported by: Markus Triska <markus.triska@gmx.at>
17255
17256 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17257
17258 * dispnew.c (init_display): Return earlier when running as a daemon.
17259
17260 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17261
17262 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17263
17264 2008-09-27 Eli Zaretskii <eliz@gnu.org>
17265
17266 * composite.c (Fcomposition_get_gstring)
17267 (Fcompose_region_internal, Fcompose_string_internal)
17268 (Ffind_composition_internal): Doc fix.
17269 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17270 (syms_of_composite) <auto-composition-function>: Doc fix.
17271 (syms_of_composite) <composition-function-table>: Doc fix.
17272
17273 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
17274
17275 * search.c (wordify): New argument for lax word-ends.
17276 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17277
17278 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17279
17280 * lisp.h (is_daemon): Declare.
17281 * dispnew.c (init_display): Do not try to initialize the terminal
17282 when running as a daemon.
17283
17284 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
17285
17286 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17287 x_display_pixel_height.
17288
17289 2008-09-22 Martin Rudalics <rudalics@gmx.at>
17290
17291 * undo.c (record_point): Don't call Fundo_boundary for first
17292 change. (Bug#731)
17293
17294 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
17295
17296 * emacs.c (Fdaemonp): Doc fix.
17297
17298 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17299
17300 * emacs.c (main): Place #ifdef in the proper place.
17301
17302 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17303
17304 * emacs.c (standard_args): Add --daemon.
17305 (main): Disconnect from the terminal when --daemon is passed.
17306 (is_daemon): New variable.
17307 (Fdaemonp): New function.
17308 (syms_of_emacs): Defsubr it.
17309
17310 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
17311
17312 * xdisp.c (get_next_display_element): Handle string display
17313 correctly when checking for the end of a box run.
17314
17315 2008-09-20 Glenn Morris <rgm@gnu.org>
17316
17317 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17318 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17319 (Frename_file): Avoid copying to trash if a rename involves
17320 a delete. (Bug#964).
17321
17322 2008-09-20 Eli Zaretskii <eliz@gnu.org>
17323
17324 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17325 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17326 frames as well as termcap frames.
17327 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17328 get_named_tty.
17329
17330 2008-09-19 Eli Zaretskii <eliz@gnu.org>
17331
17332 * process.c (procfs_system_process_attributes): Fix cmdline in
17333 case /proc/PID/cmdline is empty.
17334
17335 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17336 x_display_pixel_height.
17337
17338 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
17339
17340 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17341
17342 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17343 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17344
17345 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17346
17347 * dispextern.h (struct it): Move line_wrap away from the middle of
17348 bitfields. Move voffset in struct iterator_stack_entry after the
17349 bitfields. Move tab_width near after another short.
17350
17351 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17352
17353 * frame.h (struct frame): Move alpha from the middle of bitfields.
17354
17355 * window.h (struct window): Move frozen_window_start_p after the
17356 rest of the bitfields to reduce padding.
17357
17358 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
17359
17360 * xterm.h (x_display_info): Remove `height' and `width' members.
17361
17362 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17363
17364 * w32term.h (w32_display_info): Remove `height', `width',
17365 `height_in', and `width_in' members.
17366
17367 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17368 New functions.
17369 (x_calc_absolute_position): Use them.
17370 (x_term_init): Omit removed `height' and `width' members.
17371
17372 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17373 New functions.
17374 (w32_read_socket, x_calc_absolute_position): Use them.
17375 (w32_initialize_display_info, w32_term_init): Omit removed members
17376 of w32_display_info.
17377
17378 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17379 New functions.
17380 (ns_initialize_display_info): Omit removed members of ns_display_info.
17381
17382 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17383 New functions.
17384 (x_calc_absolute_position): Use them.
17385 (x_term_init): Omit removed `height' and `width' members.
17386
17387 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17388 (compute_tip_xy):
17389 * frame.c (x_fullscreen_adjust):
17390 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17391 x_display_pixel_width.
17392
17393 2008-09-18 Kenichi Handa <handa@m17n.org>
17394
17395 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17396 (composition_compute_stop_pos): Fix handling of static composition.
17397 (Fcomposition_get_gstring): Check FROM and TO at first.
17398
17399 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17400
17401 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17402 mixup (YAILOM).
17403
17404 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
17405
17406 * indent.c (Fvertical_motion): Use position reported by iterator
17407 instead of PT for determining screen motion (bug#943).
17408
17409 2008-09-17 Romain Francoise <romain@orebokech.com>
17410
17411 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17412
17413 2008-09-17 Kenichi Handa <handa@m17n.org>
17414
17415 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17416
17417 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17418 if necessary.
17419
17420 2008-09-16 Kenichi Handa <handa@m17n.org>
17421
17422 * coding.c (make_conversion_work_buffer): Avoid calling
17423 Fget_buffer_create if it is not necessary.
17424
17425 2008-09-15 Martin Rudalics <rudalics@gmx.at>
17426
17427 * window.c (Fselect_window): Don't update window_select_count and
17428 use_time when norecord is not nil.
17429
17430 2008-09-14 Kenichi Handa <handa@m17n.org>
17431
17432 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17433 specpdl_ptr.
17434
17435 2008-09-12 Kenichi Handa <handa@m17n.org>
17436
17437 * indent.c (scan_for_column): Don't handle automatic composition
17438 if the current buffer is not associated with a window.
17439
17440 * composite.c (composition_reseat_it): If the current buffer is
17441 not associated with a window, ignore the automatic composition.
17442 (find_automatic_composition): Likewise.
17443
17444 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17445
17446 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17447 (Fgpm_mouse_stop): Use it.
17448 * termhooks.h (close_gpm): Declare.
17449 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17450 connection if Gpm_GetEvent fails.
17451
17452 * window.c (set_window_buffer): Always preserve current-buffer.
17453
17454 2008-09-12 Glenn Morris <rgm@gnu.org>
17455
17456 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17457
17458 2008-09-11 Glenn Morris <rgm@gnu.org>
17459
17460 * charset.c (charset-map-path): Doc fix.
17461
17462 2008-09-10 Kenichi Handa <handa@m17n.org>
17463
17464 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17465
17466 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17467 compose a grapheme cluster with the preceding base glyph.
17468
17469 * composite.c (composition_compute_stop_pos): Fix previous change.
17470 Reset cmp_it->id to -1 at first.
17471
17472 2008-09-10 Glenn Morris <rgm@gnu.org>
17473
17474 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17475
17476 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
17477
17478 * keyboard.c (read_key_sequence): Reapply translation maps when
17479 switching keyboards.
17480
17481 2008-09-09 Kenichi Handa <handa@m17n.org>
17482
17483 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17484 characters.
17485
17486 * composite.c (FORWARD_CHAR): Fix calculation
17487 of (POSITION).pos_byte.
17488 (composition_compute_stop_pos): Limit the search of composition to
17489 at most 500 characters ahead. If we reach the limit or find a
17490 newline, set cmp_it->ch to -2 and return 0.
17491 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17492
17493 2008-09-08 Kenichi Handa <handa@m17n.org>
17494
17495 * indent.c (Fvertical_motion): Be sure to set
17496 it_overshoot_expected if it.cmp_it.id is non-negative.
17497
17498 2008-09-07 Andreas Schwab <schwab@suse.de>
17499
17500 * callproc.c (Fcall_process): Don't hold references to string data
17501 across garbage collection. Move initialisation of new_argv down
17502 to avoid compiler bug.
17503
17504 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17505
17506 * process.c (Fsystem_process_attributes): Doc fix.
17507
17508 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
17509
17510 * callproc.c (Fcall_process): Canonicalize current directory name.
17511
17512 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17513 iterator advances to the next line if the current line ends in a
17514 continued tab.
17515
17516 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17517
17518 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17519 member to point to cmp_from.
17520
17521 * xdisp.c: Doc fix for references to gidx data member.
17522
17523 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17524
17525 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17526
17527 2008-09-07 Kenichi Handa <handa@m17n.org>
17528
17529 * composite.c (FORWARD_CHAR): Check STOP after
17530 incrementing (POSITION).pos.
17531
17532 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17533
17534 * process.c (Fsystem_process_attributes): Doc fix.
17535
17536 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
17537
17538 * keyboard.c (Ftop_level): Doc fix.
17539
17540 2008-09-06 Eli Zaretskii <eliz@gnu.org>
17541
17542 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17543 minibuffer, don't let lower part of menu invade the echo area.
17544
17545 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17546 "char *q" to access menu text and advance through it. Revert the
17547 change that displayed ">" instead of ASCII character 0x10.
17548
17549 2008-09-05 Eli Zaretskii <eliz@gnu.org>
17550
17551 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17552 toggle boxes and radio buttons on MS-DOS as well.
17553
17554 2008-09-05 Kenichi Handa <handa@m17n.org>
17555
17556 * composite.c (autocmp_chars): Check lookback count.
17557 (composition_compute_stop_pos): Set cmp_it->lookback.
17558 (composition_reseat_it): Check lookback count.
17559 (struct position_record): New struct.
17560 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17561 (find_automatic_composition): New function.
17562 (composition_adjust_point): Use find_automatic_composition.
17563
17564 * dispextern.h (struct composition_it): New member lookback.
17565
17566 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
17567
17568 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17569 if moving by a single line.
17570
17571 2008-09-02 Andreas Schwab <schwab@suse.de>
17572
17573 * xterm.c (x_delete_display): Fix merge error.
17574
17575 * fileio.c (Fexpand_file_name): Remove unused variables.
17576
17577 2008-09-02 Eli Zaretskii <eliz@gnu.org>
17578
17579 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17580 storage on all platforms, not just on DOS_NT.
17581
17582 2008-09-02 Jason Rumney <jasonr@gnu.org>
17583
17584 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17585 Ensure mouse is not grabbed after menu is finished.
17586
17587 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
17588
17589 * xfaces.c (Finternal_set_alternative_font_family_alist)
17590 (Finternal_set_alternative_font_registry_alist): Properly copy
17591 entire alist structure.
17592
17593 2008-09-01 Kenichi Handa <handa@m17n.org>
17594
17595 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17596 representative chars of the script is a vector.
17597 (ftfont_list): Handle the case where the representative chars of
17598 the script is a vector.
17599
17600 * character.c (syms_of_character): Docstring of
17601 script-representative-chars fixed.
17602
17603 2008-08-31 Eli Zaretskii <eliz@gnu.org>
17604
17605 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17606 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17607 the menu. Allocate larger buffer for `text', to account for
17608 possible ^C characters.
17609
17610 2008-08-31 Martin Rudalics <rudalics@gmx.at>
17611
17612 * xdisp.c (prepare_menu_bars): Don't call
17613 Vwindow_size_change_functions with arg Qt.
17614
17615 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17616
17617 * font.h (font_range):
17618 * fileio.c (report_file_error):
17619 * composite.c (composition_update_it): Yet another int/Lisp_Object
17620 mixup (YAILOM).
17621
17622 2008-08-30 Glenn Morris <rgm@gnu.org>
17623
17624 * data.c (Fmake_variable_frame_local): Doc fix.
17625
17626 * frame.c (Fmodify_frame_parameters): Doc fix.
17627
17628 2008-08-30 Eli Zaretskii <eliz@gnu.org>
17629
17630 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17631 needed by GetTokenInformation.
17632 (w32_system_process_attributes): Check return values of all system
17633 APIs.
17634
17635 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17636 only when the state changes.
17637 (IT_update_begin, IT_update_end): Add termscript trace.
17638
17639 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17640 clipboard is unavailable. Set dst to NULL if it doesn't point to
17641 malloc'ed data.
17642 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17643 passing random values to xfree.
17644
17645 * dispnew.c (init_display): Set `tty's association in frame's
17646 parameters alist to the name of the terminal device, if that is known.
17647
17648 2008-08-29 Jason Rumney <jasonr@gnu.org>
17649
17650 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17651
17652 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17653
17654 * composite.c (fill_gstring_body): Avoid compiler warnings.
17655
17656 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17657 LGLYPH_SET_CODE to avoid compiler warnings.
17658
17659 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17660
17661 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17662
17663 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17664 LGLYPH_SET_CODE.
17665
17666 2008-08-29 Kenichi Handa <handa@m17n.org>
17667
17668 * fileio.c (report_file_error): Don't downcase the first character
17669 of errstring if it is still unibyte.
17670
17671 2008-08-29 Kenichi Handa <handa@m17n.org>
17672
17673 These changes are to re-implement the automatic composition so
17674 that it doesn't use text properties.
17675
17676 * Makefile.in (ftfont.o): Depend on composite.h.
17677 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17678
17679 * character.h (Vunicode_category_table): Extern it.
17680
17681 * character.c (Vunicode_category_table): New variable.
17682 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17683
17684 * chartab.c (optimize_sub_char_table): Perform more greedy
17685 optimization.
17686
17687 * composite.h (enum composition_method):
17688 Delete COMPOSITION_WITH_GLYPH_STRING.
17689 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17690 (Vcomposition_function_table): Extern it.
17691 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17692 (composition_gstring_put_cache, composition_gstring_from_id)
17693 (composition_gstring_p, composition_gstring_width)
17694 (composition_compute_stop_pos, composition_reseat_it)
17695 (composition_update_it, composition_adjust_point): Extern them.
17696 (Fcomposition_get_gstring): EXFUN it.
17697
17698 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17699 (Vcomposition_function_table)
17700 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17701 (gstring_hash_table, gstring_work, gstring_work_headers):
17702 New variables.
17703 (gstring_lookup_cache, composition_gstring_put_cache)
17704 (composition_gstring_from_id, composition_gstring_p)
17705 (composition_gstring_width, fill_gstring_header)
17706 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17707 (composition_reseat_it, composition_update_it)
17708 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17709 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17710 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17711 Defsubr composition_get_gstring.
17712
17713 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17714 cmp_id.
17715 (struct glyph_string): Delete the member gidx. New members
17716 cmp_id, cmp_from, and cmp_to.
17717 (enum it_method): Delete GET_FROM_COMPOSITION.
17718 (struct composition_it): New struct.
17719 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17720 Delete c, len, cmp_id, cmp_len in u.comp.
17721
17722 * font.h (enum lgstring_indices): Delete it.
17723 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17724 (enum lglyph_indices): Likewise.
17725 (font_range): Adjust extern.
17726 (font_fill_lglyph_metrics): Extern it.
17727
17728 * font.c (QCf): New variable.
17729 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17730 (font_prepare_composition): Delete this function.
17731 (font_range): Type and arguments changed.
17732 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17733 (font_fill_lglyph_metrics): New function.
17734 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17735 (syms_of_font): DEFSYM QCf. Delete defsubr for
17736 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17737 Defsubr Sfont_shape_gstring.
17738
17739 * fontset.h (font_for_char): Extern it.
17740
17741 * fontset.c (font_for_char): New function.
17742
17743 * ftfont.c: Include composite.h.
17744 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17745 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17746
17747 * indent.c: Include composite.h and dispextern.h.
17748 (check_composition): Delete this function.
17749 (scan_for_column): Handle composition by
17750 composition_compute_stop_pos, composition_reseat_it, and
17751 composition_update_it.
17752 (compute_motion): Likewise.
17753 (Fvertical_motion): Fix checking of composition.
17754
17755 * keyboard.c (adjust_point_for_property): Check composition by
17756 composition_adjust_point.
17757
17758 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17759 struct glyph_string.
17760
17761 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17762 (append_composite_glyph): Adjust for the change of struct it and
17763 struct glyph.
17764 (produce_composite_glyph): Likewise.
17765
17766 * w32term.c (x_draw_composite_glyph_string_foreground):
17767 Adjust for the change of struct glyph_string.
17768 (x_draw_glyph_string): Likewise.
17769
17770 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17771 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17772
17773 * xdisp.c: Include font.h.
17774 (it_props): Delete the entry for Qauto_composed.
17775 (init_iterator): Initialize it->cmp_it.id to -1.
17776 (compute_stop_pos): Call composition_compute_stop_pos.
17777 (face_before_or_after_it_pos): Adjust for the change of struct it.
17778 (handle_auto_composed_prop): Delete it.
17779 (handle_composition_prop): Handle only static composition.
17780 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17781 from xassert. Initialize it->cmp_it.stop_pos.
17782 (push_it): Adjust for the change of struct it.
17783 (pop_it): Likewise.
17784 (get_next_element): Delete next_element_from_composition.
17785 (CHAR_COMPOSED_P): New macro.
17786 (get_next_display_element): For automatic composition, get a face
17787 from the font in the glyph-string.
17788 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17789 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17790 (next_element_from_string): Check if the character at the current
17791 position is composed by CHAR_COMPOSED_P.
17792 (next_element_from_buffer): Likewise.
17793 (next_element_from_composition): Adjust for the change of struct it.
17794 Update it->cmp_it.
17795 (dump_glyph): Adjust for the change of struct glyph.
17796 (fill_composite_glyph_string): Adjust for the change of struct
17797 it and struct glyph. Don't handle automatic composition here.
17798 (fill_gstring_glyph_string): New function.
17799 (x_get_glyph_overhangs): Handle automatic composition.
17800 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17801 (BUILD_GSTRING_GLYPH_STRING): New macro.
17802 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17803 automatic composition.
17804 (append_composite_glyph): Adjust for the change of struct it and
17805 struct glyph.
17806 (x_produce_glyphs): Adjust for the change of struct it.
17807
17808 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17809 the change of struct glyph_string.
17810 (x_draw_glyph_string): Likewise.
17811
17812 2008-08-29 Glenn Morris <rgm@gnu.org>
17813
17814 * buffer.c (word-wrap): Doc fix.
17815 * xdisp.c (truncate-partial-width-windows): Doc fix.
17816 Increase default to 50.
17817
17818 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17819
17820 * xdisp.c (update_tool_bar_unwind): New function.
17821 (update_tool_bar): Temporarily set selected frame before building
17822 tool-bar items.
17823
17824 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17825
17826 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17827 snprintf, respectively.
17828 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17829
17830 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17831
17832 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17833 LDFLAGS to GNUstep CC invocation.
17834
17835 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17836
17837 * indent.c (Fvertical_motion): Revert last change. Handle the
17838 general case where we are moving forward, and PT spans multiple
17839 screen lines.
17840
17841 * eval.c (find_handler_clause): Temporarily increase
17842 max-lisp-eval-depth while printing the backtrace buffer, to
17843 guarantee that help-mode code can run.
17844
17845 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17846
17847 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17848 colors under -rv.
17849 (IT_set_frame_parameters): Don't swap foreground and background
17850 colors if `(reverse . t)' is present in the frame properties.
17851 (internal_terminal_init): Call init_frame_faces only for the
17852 initial frame.
17853
17854 2008-08-27 Andreas Schwab <schwab@suse.de>
17855
17856 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17857
17858 2008-08-27 Andreas Schwab <schwab@suse.de>
17859
17860 * search.c (search_buffer): Set char_base to zero only at the end.
17861
17862 2008-08-27 Kenichi Handa <handa@m17n.org>
17863
17864 * fileio.c (report_file_error): Fix handling of multibyte error string.
17865
17866 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17867
17868 * xterm.c (x_term_init): Temporarily hide the partially
17869 initialized terminal while calling vendor-specific-keysyms.
17870
17871 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17872
17873 * msdos.c (internal_terminal_init): Most initializations done only
17874 once, especially initial_screen_colors[] and termscript open.
17875
17876 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17877
17878 * eval.c (Fcondition_case): Doc fix.
17879
17880 * widgetprv.h (EmacsFramePart): Change font member to the new font
17881 struct.
17882
17883 * widget.c: Include character.h and font.h for XSETFONT.
17884 (setup_frame_gcs): Compute X font id from font struct, just once.
17885
17886 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17887
17888 * term.c (get_named_tty): Fix last change.
17889
17890 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17891
17892 * indent.c (Fvertical_motion): If moving forward starting from a
17893 multi-line string, move the iterator to the last line of that string.
17894
17895 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17896
17897 * frame.c (do_switch_frame): Mark previously displayed frame as
17898 obscured for FRAME_MSDOS_P frames as well.
17899
17900 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17901
17902 * frame.c (make_terminal_frame): Initialize f->terminal,
17903 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17904 Set the top frame to newly created frame.
17905 (Fmake_terminal_frame): Reuse the_only_display_info.
17906
17907 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17908 estimating available memory.
17909
17910 2008-08-23 David Reitter <david.reitter@gmail.com>
17911
17912 * nsterm.m (ns_draw_window_cursor): Don't call
17913 NSDisableScreenUpdates and NSEnableScreenUpdates on
17914 non-NS_IMPL_COCOA systems.
17915
17916 2008-08-23 Andreas Schwab <schwab@suse.de>
17917
17918 * process.c (procfs_system_process_attributes): Fix use of
17919 uninitialized variables.
17920
17921 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17922
17923 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17924
17925 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17926 calling tty-set-up-initial-frame-faces.
17927
17928 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17929 Allow MSDOS frames along with X frames.
17930
17931 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17932 addition to output_termcap.
17933
17934 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17935
17936 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17937 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17938 highlight.
17939
17940 * process.c [!subprocesses]: Define QCname.
17941 (syms_of_process): Intern and staticpro it.
17942
17943 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17944 Adjust for changes in encoding/decoding routines.
17945 Use encode_coding_object and decode_coding_object instead of
17946 encode_coding and decode_coding.
17947
17948 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17949
17950 * dosfns.c: Include frame.h before termhooks.h.
17951 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17952 variable termscript.
17953
17954 * s/msdos.h (USER_FULL_NAME): Define.
17955 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17956
17957 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17958 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17959 pw->pw_gecos.
17960
17961 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17962 SELECTED_FRAME as additional (1st) argument.
17963 (tty_read_avail_input): Handle output_msdos_raw in
17964 addition to output_termcap.
17965
17966 * msdos.c: Include frame.h before termhooks.h.
17967 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17968 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17969 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17970 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17971 (IT_set_terminal_modes, IT_reset_terminal_modes)
17972 (IT_set_frame_parameters): Use tty->termscript instead of a global
17973 variable termscript.
17974 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17975 global variable terminal_coding. Don't refer to
17976 Vnonascii_translation_table.
17977 (internal_terminal_init): Set Vwindow_system in current_kboard.
17978 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17979 Announce date and time of session start, if termscript is open.
17980 Don't zero out the_only_display_info (it is done in
17981 term.c:init_tty). Open termscript only of not already open.
17982 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17983 here instead of dos_ttraw. Don't initialize display if this is an
17984 initial tty. Don't set FRAME_FONT.
17985 (Vwindow_system_version): Bump to 23.
17986 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17987 is available, set up mouse_position_hook.
17988 (dos_ttraw, IT_set_terminal_modes): If called with initial
17989 terminal, do nothing.
17990 (IT_set_frame_parameters): Handle the Qtty_type frame
17991 parameter by calling internal_terminal_init.
17992 (dos_set_window_size, show_mouse_face)
17993 (clear_mouse_face, IT_note_mode_line_highlight)
17994 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17995 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17996 (initialize_msdos_display): New function.
17997 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17998 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17999 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
18000 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
18001 Accept additional argument: a pointer to a frame. Update all callers.
18002 (request_sigio, unrequest_sigio): Don't define, now defined on
18003 sysdep.c.
18004 (IT_write_glyphs): Rewrite to use encode_terminal_code.
18005
18006 * term.c [MSDOS]: Include msdos.h.
18007 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
18008 conditional to DOS_NT. Allow only one call to this function in a
18009 session. Don't allocate a new struct tty_display_info; instead,
18010 reuse the_only_display_info. Call get_tty_size to get screen
18011 dimensions. Call init_baud_rate to set bad_rate.
18012 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
18013 (Fsuspend_tty) [MSDOS]: Don't close input and output.
18014 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
18015 (get_tty_terminal, get_named_tty, Ftty_type)
18016 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
18017 output_termcap.
18018 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
18019 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
18020 only when subprocesses are supported.
18021
18022 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
18023 f->output_data.x.
18024 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
18025 terminal devices.
18026
18027 * msdos.h: Remove definition of struct x_display_info and struct
18028 x_output.
18029 (FRAME_FONT): Use output_data.tty.
18030 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
18031 (struct x_display_info): Rename from display_info. Update all users in
18032 msdos.c.
18033 (struct x_output): Remove background_pixel and foreground_pixel.
18034 (the_only_display_info): Rename from the_only_x_display.
18035 (dos_ttraw): Update prototype.
18036
18037 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
18038 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
18039
18040 2008-08-23 Jason Rumney <jasonr@gnu.org>
18041
18042 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
18043 (fn_TIFFSetDirectory): New library function used.
18044 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
18045 (tiff_load): Use :index to select among multiple images. Set count
18046 property when multiple images exist.
18047 (gif_format): Use :index, not :image.
18048
18049 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
18050
18051 * xdisp.c (try_scrolling): Check INT_MAX instead of
18052 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
18053 to obtain INT_MAX.
18054
18055 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
18056
18057 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
18058
18059 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
18060
18061 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
18062 GNUstep library location.
18063
18064 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
18065
18066 * xfaces.c (x_update_menu_appearance): Check validity of menu font
18067 before using it.
18068
18069 * puresize.h (BASE_PURESIZE): Increase to 1250000.
18070
18071 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18072
18073 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
18074 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
18075 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
18076 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
18077 (EmacsApp-cursor_blink_handler): Remove declaration.
18078 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
18079 match 01 Feb 2008 changes in xterm.c.
18080 (ns_read_socket): Add cast to avoid warning.
18081 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
18082 GNUstep.
18083
18084 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
18085
18086 * xselect.c (x_get_foreign_selection): Return nil if desired
18087 selection could not be obtained, instead of signalling an error.
18088
18089 2008-08-20 David Reitter <david.reitter@gmail.com>
18090
18091 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
18092 * nsterm.m: Remove ns-specific code for cursor blinking.
18093 (ns_draw_window_cursor): Clear cursor properly rather than
18094 redrawing the area. Respect width of bar cursors.
18095 These changes enable the use of generic blink-cursor-mode and
18096 generic cursor types in NS and support smooth cursor movements (do
18097 not blink off after command).
18098 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
18099 Nextstep, too.
18100
18101 2008-08-19 Kenichi Handa <handa@m17n.org>
18102
18103 * font.c (Vfont_log_deferred): New variable.
18104 (font_add_log): Check Vfont_log_deferred.
18105 (font_deferred_log): New function.
18106
18107 * font.h (font_deferred_log): Extern it.
18108
18109 * fontset.c (reorder_font_vector): Use encoding charset of fonts
18110 for sorting.
18111 (face_for_char): Use deferred log.
18112
18113 2008-08-18 Kenichi Handa <handa@m17n.org>
18114
18115 * fontset.c (face_for_char): Add font log.
18116
18117 * font.c (font_add_log): Add the font properties :script, :lang,
18118 and :otf in the log.
18119
18120 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
18121
18122 * xdisp.c: Remove dead code.
18123 (handle_invisible_prop, next_overlay_string): Defer call to
18124 setup_for_ellipsis.
18125 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
18126
18127 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
18128
18129 * xfaces.c (lookup_derived_face): Properly handle possible zero
18130 return value of get_lface_attributes.
18131 (merge_faces): Don't tell lookup_derived_face to signal an error
18132 if face is not found.
18133
18134 * dired.c (Fdirectory_files): Doc fix.
18135
18136 * process.c (make_process): Initialize kill_without_query struct
18137 member.
18138
18139 2008-08-15 Eli Zaretskii <eliz@gnu.org>
18140
18141 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
18142 Alternative calculation of totphys for Visual Studio 6.
18143
18144 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
18145
18146 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
18147 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
18148 All users changed.
18149 (stat): Only root directory passed to GetDriveType. Allow RAM
18150 disk as well as local fixed disk when w32-get-true-file-attributes
18151 is set to `local'.
18152 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
18153 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
18154 (w32_cached_id, w32_add_to_cache): New functions.
18155 (get_name_and_id): Look account names in the cache before calling
18156 lookup_account_sid.
18157 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
18158 New initialization flags.
18159 (globals_of_w32): Initialize them to zero.
18160 (w32_system_process_attributes): Use w32_cached_id and
18161 w32_add_to_cache.
18162
18163 2008-08-14 Lawrence Mitchell <wence@gmx.li>
18164
18165 * lread.c (Fread_char, Fread_char_exclusive): If no character
18166 event is read before timeout is reached, return nil, rather than
18167 converting to a number.
18168
18169 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
18170
18171 * fns.c (use_dialog_box): Doc fix.
18172
18173 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
18174 on OS X.
18175
18176 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
18177
18178 * frame.c (Qns_parse_geometry): New var.
18179 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
18180
18181 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
18182
18183 * xdisp.c (x_produce_glyphs): Handle the case when font has no
18184 space character in calculating tabs.
18185
18186 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
18187
18188 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
18189
18190 2008-08-10 Glenn Morris <rgm@gnu.org>
18191
18192 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
18193 silence gcc "limited range of data type" warnings in some
18194 make_fixnum_or_float calls.
18195
18196 2008-08-09 Eli Zaretskii <eliz@gnu.org>
18197
18198 * w32.c (w32_system_process_attributes): If the process does not
18199 exist, return nil.
18200
18201 * w32.c: Include thelp32.h, psapi.h and coding.h.
18202 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
18203 declarations.
18204 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
18205 (Process32Next_Proc): New typedefs.
18206 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
18207 (g_b_init_process32_next, g_b_init_open_thread_token)
18208 (g_b_init_impersonate_self, g_b_init_revert_to_self)
18209 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
18210 (g_b_init_get_process_working_set_size)
18211 (g_b_init_global_memory_status_ex): New static variables.
18212 (globals_of_w32): Initialize them.
18213 (create_toolhelp32_snapshot, process32_first, process32_next)
18214 (open_thread_token, impersonate_self, revert_to_self)
18215 (get_process_memory_info, get_process_working_set_size)
18216 (global_memory_status, global_memory_status_ex): New wrapper
18217 functions.
18218 (w32_list_system_processes, w32_system_process_attributes)
18219 (enable_privilege, restore_privilege, ltime, process_times):
18220 New functions.
18221 (convert_time_raw): New function.
18222 (convert_time): Remove conversion of FILETIME into time in 100
18223 nsec units, call convert_time_raw instead.
18224
18225 * process.h (w32_list_system_processes, w32_system_process_attributes):
18226 Add prototypes.
18227 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
18228 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
18229 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
18230 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
18231
18232 * process.c (Fsystem_process_attributes): Doc fix.
18233
18234 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
18235
18236 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
18237 a continued multi-char glyph; if so, advance to the actual glyph.
18238
18239 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
18240
18241 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
18242
18243 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
18244 (.m.o): Use it.
18245 * config.in: Regenerate.
18246
18247 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
18248
18249 * xdisp.c (redisplay_window): Revert last change.
18250 (try_window): Check bottom scroll margin too.
18251
18252 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18253
18254 * config.in: Regenerate.
18255
18256 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18257 -list-load-path-shadows'.
18258 (nsgui.h): Reduce number of things depending on it.
18259
18260 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
18261
18262 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18263 instead of window-end which does the wrong thing at eob.
18264 (try_cursor_movement): Minor optimization.
18265 (redisplay_window): If scroll margin is defined, don't assume
18266 window doesn't need scrolling.
18267
18268 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18269
18270 * config.in: Regenerate.
18271
18272 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18273 (mostlyclean): Don't delete *.d under NS.
18274
18275 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18276
18277 2008-08-06 Kenichi Handa <handa@m17n.org>
18278
18279 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18280
18281 2008-08-06 Andreas Schwab <schwab@suse.de>
18282
18283 * config.in: Regenerate.
18284
18285 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
18286
18287 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18288 forcing a window start.
18289
18290 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18291 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18292
18293 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18294
18295 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18296 argument.
18297
18298 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
18299
18300 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18301 <scroll-down-aggressively, before-change-functions>:
18302 <after-change-functions>: Reflow docstrings.
18303
18304 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18305 Ken Raeburn <raeburn@gnu.org>
18306
18307 Dock menu customization, based on a patch by Ken Raeburn, plus some
18308 other fixes.
18309 * nsmenu.m (dockMenu): New variable.
18310 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18311
18312 * nsterm.h (dockMenu): Declare.
18313
18314 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18315 (ns_term_init): Initialize dockMenu.
18316 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18317 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18318 left.
18319
18320 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18321
18322 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18323
18324 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18325
18326 * config.in: Regenerate.
18327
18328 2008-08-04 Seiji Zenitani <zenitani@mac.com>
18329
18330 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18331
18332 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18333
18334 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18335
18336 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18337
18338 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18339
18340 * keyboard.h: Comment an #endif.
18341
18342 * lisp.h (have_menus_p): Adjust comment.
18343
18344 * menu.c (find_and_return_menu_selection): Fix comparison with
18345 client_data.
18346
18347 * nsmenu.m (popup_activated_flag): New variable.
18348 (popup_activated): New function.
18349 (menu-or-popup-active-p): New exported lisp definition.
18350 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18351 when popup done.
18352 (ns_popup_dialog): Set popup_activated_flag.
18353
18354 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18355 version for GNUstep (handled by conditional typedef in nsterm.m).
18356 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18357 in rgb.txt).
18358
18359 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18360
18361 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18362
18363 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18364
18365 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18366 shortcircuit if popup_activated like GTK and X toolkit.
18367
18368 * m/inter386.h: Change DARWIN to DARWIN_OS.
18369
18370 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18371 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
18372 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18373 Expand comment on NO_SOCK_SIGIO.
18374
18375 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
18376
18377 * nsterm.m (windowDidResize): Remove stopModal call.
18378
18379 2008-08-03 Andreas Schwab <schwab@suse.de>
18380
18381 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18382 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18383
18384 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
18385
18386 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18387 Don't use uninitialized pointer variable when using getrlimit.
18388
18389 2008-08-02 Jason Rumney <jasonr@gnu.org>
18390
18391 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18392
18393 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18394
18395 * alloc.c (NSTATICS): Bump to 0x640.
18396
18397 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18398
18399 * lisp.h: Add prototype for directory_files_internal.
18400
18401 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18402 New functions.
18403 (syms_of_process): Defsubr them. Add initializations for various
18404 Q* symbols used in procfs_system_process_attributes.
18405 (procfs_list_system_processes, procfs_system_process_attributes)
18406 [HAVE_PROCFS]: New functions.
18407 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18408 (procfs_get_total_memory): New functions.
18409
18410 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18411
18412 * xfaces.c (Fx_load_color_file): Fix previous change;
18413 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18414
18415 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
18416
18417 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18418
18419 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18420
18421 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18422
18423 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
18424
18425 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18426
18427 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18428 define NSApplicationDelegateReplySuccess.
18429 (EmacsView -converstationIdentifier): Use long instead of
18430 NSInteger for GNUstep, since it doesn't have NSInteger.
18431
18432 * xmenu.c: Revert last change.
18433
18434 * keyboard.h: Fix last change.
18435
18436 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18437
18438 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18439 on Windows.
18440
18441 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18442
18443 Warning clearing and clean-up in NS port.
18444 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18445 Add prototypes.
18446 * nsgui.h (FACE_DEFAULT): Remove, unused.
18447 (XGCValues): Change colors to unsigned long.
18448 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18449 nsterm.m.
18450 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18451 (ns_list_fonts): Remove, unused.
18452 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18453 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18454 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18455 (nsfont_draw): Compare face colors to 0, not nil.
18456 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18457 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18458 (-addSubmenuWithTitle:): Use NSMenuItem class.
18459 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18460 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18461 (ns_clip_to_row): Make gc arg a BOOL.
18462 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18463 ns_clip_to_row() call.
18464 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18465 used). Cast FRAME_FONT assignments.
18466 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18467 (ns_string_to_lispmod): Change arg to const char.
18468 (ns_term_init): Use NSMenuItem class.
18469 (EmacsApp -openFile:): Move to different section of file.
18470 (EmacsApp -application:openFiles:): Don't return a value, call
18471 -replyToOpenOrPrint:.
18472 (EmacsView -keyDown:): Fix up cast.
18473 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18474 (EmacsView -menuDown:): Cast tag in call to
18475 find_and_call_menu_selection().
18476 (ns_list_fonts): Remove, unused.
18477 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18478 (ns_fontname_to_xlfd): Make static.
18479 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18480 Remove prototypes (now in keyboard.h).
18481 (next_menubar_widget_id): Remove, unused.
18482 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18483 Remove prototypes (now in keyboard.h).
18484 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18485
18486 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18487
18488 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18489 (floatfns.o): Depend on syssignal.h.
18490 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18491
18492 * systty.h: Fix previous change that removed BSD_TERMIOS.
18493 Add comments to #ifdefs.
18494
18495 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18496
18497 * w32fns.c (w32-load-color-file): Remove.
18498 (x-open-connection): Use renamed Fx_load_color_file.
18499 * xfaces.c (x-load-color-file): Add.
18500 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18501 Emacs.clr.
18502 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18503
18504 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
18505
18506 * dbusbind.c (Fdbus_call_method_asynchronously)
18507 (Fdbus_method_error_internal): New defuns.
18508 (xd_read_message): Handle also reply messages.
18509 (Vdbus_registered_functions_table): Extend docstring.
18510
18511 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
18512
18513 * keyboard.c (gobble_input): Fix previous change.
18514
18515 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18516
18517 * bitmaps/README:
18518 * xfns.c:
18519 * termcap.c:
18520 * term.c:
18521 * syswait.h:
18522 * systty.h:
18523 * systime.h:
18524 * syssignal.h:
18525 * sysdep.c:
18526 * process.h:
18527 * process.c:
18528 * print.c:
18529 * ndir.h:
18530 * lread.c:
18531 * keyboard.c:
18532 * getpagesize.h:
18533 * floatfns.c:
18534 * fileio.c:
18535 * emacs.c:
18536 * doc.c:
18537 * dispnew.c:
18538 * dired.c:
18539 * data.c:
18540 * callproc.c:
18541 * buffer.c:
18542 * README:
18543 * Makefile.in:
18544 * s/template.h:
18545 * s/msdos.h:
18546 * m/vax.h: Remove VMS support.
18547 * s/vms.h:
18548 * vlimit.h:
18549 * uaf.h:
18550 * temacs.opt:
18551 * param.h:
18552 * ioctl.h: Remove file.
18553
18554 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18555
18556 * s/ms-w32.h (MULTI_KBOARD): Remove.
18557 * xterm.c:
18558 * xselect.c:
18559 * xfns.c:
18560 * window.c:
18561 * w32term.c:
18562 * w32fns.c:
18563 * terminal.c:
18564 * termhooks.h:
18565 * term.c:
18566 * sysdep.c:
18567 * keyboard.h:
18568 * keyboard.c:
18569 * frame.h:
18570 * frame.c:
18571 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18572 * config.in: Regenerate.
18573
18574 2008-07-30 Jason Rumney <jasonr@gnu.org>
18575
18576 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18577
18578 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18579 (w32font_open_internal): Get unicode version of textmetrics.
18580 Don't enable or disable glyph indices here.
18581 (w32font_open): Disable use of glyph indices.
18582
18583 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18584
18585 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
18586
18587 * minibuf.c (Vread_buffer_function): Doc fix.
18588
18589 2008-07-30 John Paul Wallington <jpw@pobox.com>
18590
18591 * minibuf.c (read_buffer_completion_ignore_case): New var.
18592 (Fread_buffer): Use it.
18593
18594 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18595
18596 * systty.h (sensemode): Remove empty #if. Remove reference to
18597 BSD_TERMIOS, unused.
18598
18599 * sysdep.c: Remove reference to DGUX.
18600 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18601
18602 * config.in: Regenerate.
18603
18604 2008-07-30 Jason Rumney <jasonr@gnu.org>
18605
18606 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18607
18608 2008-07-29 Jason Rumney <jasonr@gnu.org>
18609
18610 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18611 is populated.
18612 (uniscribe_encode_char): Always use uniscribe.
18613 Avoid using context if cache is populated.
18614
18615 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18616
18617 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18618 open menu.
18619
18620 * gtkutil.c (menu_nav_ended): Remove.
18621 (create_menus): Remove signal connect for menu_nav_ended.
18622
18623 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
18624
18625 * xdisp.c (redisplay_window): Check return value of
18626 compute_window_start_on_continuation_line before forcing a window
18627 start.
18628
18629 2008-07-28 Jason Rumney <jasonr@gnu.org>
18630
18631 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18632
18633 * w32term.c (w32_enable_unicode_output, cleartype_active):
18634 Remove obsolete display options.
18635 (x_draw_glyph_string_background): Don't use old cleartype_active
18636 workaround.
18637 (w32_initialize): Remove cleartype_active initialization.
18638 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18639
18640 2008-07-28 Andreas Schwab <schwab@suse.de>
18641
18642 * lisp.h (init_weak_hash_tables, syms_of_font)
18643 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18644 (remove_hash_entry): Don't declare.
18645 * eval.c (maybe_call_debugger): Make static and move before use.
18646 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18647 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18648 * xterm.h (x_set_frame_alpha): Declare.
18649
18650 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18651
18652 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18653 (create_menus): Connect selection-done to menu_nav_ended.
18654
18655 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18656
18657 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18658 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18659 parameter with read of 'alpha' one.
18660 (Qns_frame_parameter): Remove.
18661 * nsselect.m (selection-coding-system)
18662 (next-selection-coding-system, Vselection_coding_system)
18663 (Vnext_selection_coding_system): Drop.
18664
18665 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18666
18667 * nsfns.m (do-applescript, do_applescript): Rename to
18668 ns-do-applescript, ns_do_applescript, and move within file.
18669
18670 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18671
18672 Remove support for Mac Carbon.
18673 * mactoolbox.c:
18674 * macterm.h:
18675 * macterm.c:
18676 * macselect.c:
18677 * macmenu.c:
18678 * macgui.h:
18679 * macfns.c:
18680 * mac.c: Remove file.
18681 * s/darwin.h:
18682 * m/intel386.h:
18683 * xfaces.c:
18684 * xdisp.c:
18685 * window.c:
18686 * tparam.c:
18687 * termhooks.h:
18688 * termcap.c:
18689 * term.c:
18690 * syssignal.h:
18691 * sysselect.h:
18692 * sysdep.c:
18693 * process.c:
18694 * lread.c:
18695 * lisp.h:
18696 * keyboard.c:
18697 * image.c:
18698 * fringe.c:
18699 * frame.h:
18700 * frame.c:
18701 * fontset.c:
18702 * font.h:
18703 * font.c:
18704 * fns.c:
18705 * fileio.c:
18706 * emacs.c:
18707 * dispnew.c:
18708 * dispextern.h:
18709 * config.in:
18710 * atimer.c:
18711 * Makefile.in: Remove code for Carbon.
18712
18713 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18714
18715 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18716
18717 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18718
18719 * macterm.h (kCGBitmapByteOrder32Host): New define for
18720 non-universal SDKs.
18721
18722 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18723 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18724
18725 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18726 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18727
18728 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18729
18730 * w32inevt.c: Include dispextern.h.
18731
18732 2008-07-26 Andreas Schwab <schwab@suse.de>
18733
18734 * print.c (print_object): Fix off-by-one in last change.
18735
18736 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18737
18738 * term.c (syms_of_term): Don't initialize default_orig_pair,
18739 default_set_foreground and default_set_background on Windows.
18740
18741 2008-07-25 Jason Rumney <jasonr@gnu.org>
18742
18743 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18744 ScriptItemize. Clean up return value checking. Remove unused
18745 variables.
18746 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18747 shaping engine.
18748
18749 * w32font.c (w32font_has_char): Handle the case where we can't
18750 determine the script for a character.
18751
18752 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18753
18754 * term.c (syms_of_term): Initialize default_orig_pair,
18755 default_set_foreground, and default_set_background.
18756
18757 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18758 clash (bug#86).
18759 (getloadavg): Callers changed.
18760
18761 * image.c (svg_load_image): Fix last change.
18762 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18763 image size is valid. Use g_object_unref instead of deprecated
18764 rsvg_handle_free to free rsvg handle.
18765 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18766
18767 2008-07-25 Jason Rumney <jasonr@gnu.org>
18768
18769 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18770 surrogates before looking up glyph index.
18771 (w32font_text_extents): Encode as surrogates if falling back to
18772 functions that need UTF-16 wide chars.
18773
18774 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18775 BMP as surrogates before looking up glyph index.
18776
18777 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18778
18779 * image.c (svg_load_image): Check for failure in return value of
18780 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18781
18782 2008-07-25 Jason Rumney <jasonr@gnu.org>
18783
18784 * w32font.c (Fx_select_font): Reverse sense of second arg.
18785
18786 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18787
18788 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18789 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18790
18791 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18792 (PURESIZE): Use it.
18793
18794 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18795
18796 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18797 * m/alpha.h (TEXT_END):
18798 * m/ibmrs6000.h (TEXT_END):
18799 * m/macppc.h (TEXT_END):
18800 * s/darwin.h (TEXT_END):
18801 * s/msdos.h (TEXT_END): Remove, unused.
18802 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18803 * s/cygwin.h: Remove comment.
18804
18805 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18806 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18807 * m/intel386.h (DOT_GLOBAL_START):
18808 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18809 (USG): Remove, file not used on USG platforms.
18810
18811 * Makefile.in (HAVE_X11): Remove empty #else.
18812
18813 2008-07-24 Andreas Schwab <schwab@suse.de>
18814
18815 * fileio.c (Finsert_file_contents): Properly adjust undo list
18816 after format conversion.
18817
18818 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18819
18820 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18821 (menu_nav_ended): Remove.
18822 (create_menus): Remove signal connect for menu_nav_ended.
18823 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18824 create_menus.
18825 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18826
18827 2008-07-23 Jason Rumney <jasonr@gnu.org>
18828
18829 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18830 with opened font.
18831 (w32font_open): Set font type to gdi.
18832
18833 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18834
18835 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18836
18837 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18838 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18839 defines it.
18840 * unexec.c (ADDR_CORRECT): Define unconditionally.
18841
18842 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18843
18844 * unexec.c: Remove code depending on !COFF and USG, the file is
18845 not used for such systems.
18846
18847 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18848 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18849 (LD_SWITCH_SYSTEM_1): Remove, update users.
18850
18851 * s/darwin.h (DATA_END):
18852 * m/intel386.h (DATA_END):
18853 * m/ibmrs6000.h (DATA_END):
18854 * m/alpha.h (DATA_END): Remove, unused.
18855
18856 * config.in: Regenerate.
18857 * s/ms-w32.h (subprocesses): Define unconditionally.
18858 * s/template.h (subprocesses): Update comment.
18859 * s/vms.h (subprocesses):
18860 * s/usg5-4.h (subprocesses):
18861 * s/hpux10-20.h (subprocesses):
18862 * s/gnu-linux.h (subprocesses):
18863 * s/cygwin.h (subprocesses):
18864 * s/bsd-common.h (subprocesses):
18865 * s/aix4-2.h (subprocesses):
18866 * s/darwin.h (subprocesses): Do not define, defined by default now.
18867
18868 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18869 Remove all references.
18870 (temacs): Add GNUstep specific ld flags.
18871
18872 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18873 similarly to what X does.
18874
18875 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18876
18877 * nsfns.m (x-list-fonts): Remove.
18878 (syms_of_nsfns): Drop the x-list-fonts declaration.
18879 * nsterm.m: Get rid of remaining "//" comments.
18880
18881 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18882
18883 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18884
18885 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18886 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18887 (Fns_own_selection_internal, Fx_disown_selection_internal)
18888 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18889
18890 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18891 ... */' style of docstrings. Doc fixes.
18892
18893 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18894
18895 * terminfo.c (UP, BC, PC): Undo previous change.
18896
18897 * nsfns.m: Rename ns prefixed functions/variables to the
18898 corresponding x versions. Update references.
18899
18900 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18901
18902 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18903
18904 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18905
18906 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18907 Remove forwarding functions.
18908 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18909 non-static.
18910 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18911 non-static.
18912 (ns_frame_parm_handlers): Use the new names.
18913 (syms_of_nsfns): Move to the end of file.
18914
18915 * nsterm.m (syms_of_nsterm): Move to the end of file.
18916
18917 * dispnew.c (init_display): Remove code for X10.
18918
18919 2008-07-22 Jason Rumney <jasonr@gnu.org>
18920
18921 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18922 bare drive.
18923
18924 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18925
18926 * nsterm.m (syms_of_nsterm): Remove debugging println.
18927
18928 2008-07-22 David Reitter <david.reitter@gmail.com>
18929
18930 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18931 Carbon implementation of the same functionality: execute arbitrary
18932 AppleScript code.
18933
18934 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18935
18936 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18937 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18938 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18939 (Fx_display_mm_height, Fx_display_mm_width)
18940 (Fx_display_backing_store, Fx_display_visual_class)
18941 (Fx_display_save_under, Fx_open_connection)
18942 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18943 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18944 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18945 (Fx_display_pixel_width, Fx_display_pixel_height)
18946 (Fx_display_usable_bounds, Fx_display_planes)
18947 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18948 ... */' style of docstrings.
18949
18950 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18951
18952 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18953 on this platform.
18954 (mips):
18955 * m/iris4d.h (mips): Do not define.
18956 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18957
18958 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18959
18960 * image.c:
18961 * nsfns.m:
18962 * nsselect.m:
18963 * nsterm.h:
18964 * nsterm.m: Rename ns prefixed functions/variables to the
18965 corresponding x versions. Update references.
18966
18967 * m/ibms390x.h (NO_REMAP): Do not undefine.
18968
18969 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18970
18971 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18972
18973 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18974 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18975 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18976 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18977 (Fns_display_mm_height, Fns_display_mm_width)
18978 (Fns_display_backing_store, Fns_display_visual_class)
18979 (Fns_display_save_under, Fns_open_connection)
18980 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18981 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18982 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18983 (Fns_display_pixel_width, Fns_display_pixel_height)
18984 (Fns_display_usable_bounds, Fx_display_planes)
18985 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18986
18987 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18988
18989 * print.c (print_object): Check print_depth before searching for
18990 circularities.
18991
18992 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18993
18994 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18995 only sprintf.
18996
18997 2008-07-21 Kenichi Handa <handa@m17n.org>
18998
18999 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
19000
19001 2008-07-20 Andreas Schwab <schwab@suse.de>
19002
19003 * syntax.c (find_start_pos, find_start_value)
19004 (find_start_value_byte, find_start_begv, find_defun_start)
19005 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
19006
19007 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
19008
19009 * s/sol2-3.h: Insert contents of s/sol2.h.
19010 (LD_SWITCH_SYSTEM): Remove redundant definition.
19011 * s/sol2.h: Remove, unused.
19012
19013 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
19014
19015 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
19016
19017 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
19018
19019 * Makefile.in (ns_appdir): Fix typo in find command.
19020
19021 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
19022
19023 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
19024
19025 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
19026 added not supported anymore.
19027
19028 * s/usg5-4-2.h (LIBS_SYSTEM):
19029 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
19030
19031 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19032 * s/lynxos.h (GETPGRP_NO_ARG):
19033 * s/hpux10-20.h (NO_SIOCTL_H):
19034 * s/gnu.h (GETPGRP_NO_ARG):
19035 * s/gnu-linux.h (NO_SIOCTL_H):
19036 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19037 * s/cygwin.h (GETPGRP_NO_ARG):
19038 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
19039 (C_DEBUG_SWITCH): Remove duplicate definition.
19040
19041 * m/ibms390.h: Remove boilerplate comments.
19042
19043 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
19044
19045 * process.c (HAVE_SERIAL): Consolidate ifdefs.
19046 (wait_reading_process_output): Remove code for SunOS, platform not
19047 supported anymore. Use SOLARIS2 instead of sun.
19048
19049 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19050
19051 * font.c (font_open_by_name): Under NS, default lface height to zero.
19052 (font_open_for_lface): Under NS, set size based on frame fontsize.
19053 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
19054 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
19055
19056 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19057
19058 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
19059 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
19060 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
19061 YES/NO.
19062 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
19063 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
19064 * Makefile.in (clean): Clear out build destination dir.
19065
19066 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19067
19068 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
19069 xterm, xselect.
19070 * lisp.h: Remove declaration of hash_remove.
19071 * nsgui.h: Remove redefinitions of hash_remove.
19072 * fns.c (hash_remove): Rename to hash_remove_from_table.
19073
19074 2008-07-19 Seiji Zenitani <zenitani@mac.com>
19075
19076 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
19077 strdup() the family UTF8String before modifying it.
19078
19079 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19080
19081 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
19082 NS_FACE_BACKGROUND with 0 instead of nil.
19083 * nsfont.m (nsfont_draw): Same.
19084
19085 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
19086
19087 * nsfns.m (ns_set_background_color): Fix crash.
19088
19089 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
19090
19091 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
19092
19093 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
19094
19095 * puresize.h (BASE_PURESIZE): Increase to 1240000.
19096
19097 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19098
19099 * gtkutil.c: Include <config.h> instead of "config.h".
19100
19101 * lisp.h (Foverlay_buffer): Add EXFUN.
19102
19103 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
19104 child process to complete child_setup. Undo 2005-09-21 change.
19105
19106 * s/darwin.h: Mention setsid after vfork.
19107
19108 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19109
19110 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
19111 Depend on macgui.h.
19112
19113 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
19114 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
19115
19116 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
19117 and f19.
19118 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
19119
19120 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
19121 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
19122 Remove enumerators.
19123
19124 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
19125 Check if FACE_FROM_ID returns NULL.
19126
19127 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
19128
19129 * w32inevt.c (change_frame_size): Remove extern declaration.
19130 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
19131 change_frame_size.
19132
19133 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19134
19135 * getloadavg.c: Revert last change (2008-07-15).
19136
19137 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19138
19139 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
19140 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
19141 from configure.
19142
19143 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
19144
19145 * s/sol2.h:
19146 * s/sol2-4.h: Reorganize conditionals.
19147
19148 * ecrt0.c: Remove code depending on m68000, not used anymore.
19149
19150 * fns.c (hash_remove): Make static.
19151 * lisp.h (hash_remove): Don't prototype.
19152
19153 * m/ibmrs6000.h:
19154 * m/ibms390x.h:
19155 * m/macppc.h: Remove boilerplate comments.
19156
19157 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
19158 Solaris, which does not need them.
19159
19160 * m/vax.h: Remove comments about unsupported systems.
19161
19162 * s/darwin.h: Reorganize ifdefs.
19163
19164 2008-07-17 Andreas Schwab <schwab@suse.de>
19165
19166 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
19167
19168 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19169
19170 Use SDATA. Follow coding convention of placing operators at
19171 beginning of next line rather than end of previous line, and placing
19172 spaces around infix operators.
19173
19174 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
19175 in case it was defined already.
19176 USE @GNUSTEP_MAKEFILES@ rather than envvars.
19177 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
19178 ns_default.
19179 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
19180 Lisp_Objects.
19181 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
19182 (ns_defined_color, ns_color_to_lisp): Declare.
19183 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
19184 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
19185 it's accepted even with USE_LISP_UNION_TYPE.
19186 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
19187 (update_frame_tool_bar): Remove apparently obsolete tests for
19188 non-integerness of f->tool_bar_lines.
19189 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
19190 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
19191 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
19192 (nsfont_open): Don't confuse NULL for Qnil.
19193 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
19194 * menu.h (find_and_call_menu_selection):
19195 * menu.c (find_and_call_menu_selection): Use just int for vector size.
19196 (find_and_return_menu_selection): Always return something.
19197 * frame.h: Include dispextern.h for Display_Info.
19198 (display_x_get_resource): Declare.
19199
19200 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
19201
19202 * syntax.c: Remove stdio.h include accidentally introduced in
19203 Emacs.app commit.
19204 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
19205 NS_IMPL_COCOA.
19206 * keyboard.c (handle_async_input, input_available_signal): Remove
19207 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
19208
19209 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19210
19211 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
19212 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
19213 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
19214 Use SDATA.
19215
19216 * keymap.c: Remove all NS-specific code.
19217 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
19218 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
19219 where_is_preferred_modifier, return a different value depending on how
19220 preferred is the binding.
19221 (where_is_internal): Adjust accordingly.
19222 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
19223 Adjust to new preferred_sequence_p.
19224 (syms_of_keymap): Declare `where-is-preferred-modifier'.
19225 * keyboard.c (parse_solitary_modifier): Not static any more.
19226 * keyboard.h (parse_solitary_modifier): Declare.
19227
19228 2008-07-16 Andreas Schwab <schwab@suse.de>
19229
19230 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
19231 of easymenu.
19232
19233 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
19234
19235 * xdisp.c (move_it_in_display_line): Account for word wrap, so
19236 that we don't move off the line.
19237
19238 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19239
19240 * keyboard.c (Qsuper): Remove.
19241 (parse_menu_item): Don't call where_is_internal specially for NS.
19242
19243 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19244
19245 * s/gnu-linux.h: Remove boilerplate comments.
19246
19247 * m/alpha.h (__ELF__): Consolidate conditions.
19248
19249 * m/m68k.h (linux): Use GNU_LINUX instead.
19250 Remove boilerplate comments.
19251
19252 * m/intel386.h: Undo refactoring from previous change.
19253 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19254 too, remove dead code.
19255 (linux): Use GNU_LINUX instead.
19256
19257 2008-07-16 Jason Rumney <jasonr@gnu.org>
19258
19259 * w32gui.h: Repeat 26 June changes lost by last change.
19260
19261 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19262
19263 * systty.h: Remove code for Aix on 386, unsupported platform.
19264
19265 * s/ms-w32.h: Remove boilerplate comments.
19266 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19267
19268 * s/gnu-linux.h (TERM): Remove support.
19269 (HAVE_SYSVIPC): Remove, unused.
19270 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19271 for this system.
19272
19273 * process.c: Remove support for IRIS, unused.
19274 Remove support for TERM, not relevant anymore.
19275
19276 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19277 used with the definition.
19278
19279 * s/aix4-2.h (static): Do not undef.
19280
19281 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19282 only used on Aix.
19283 (HAVE_SYSVIPC): Remove, unused.
19284
19285 * m/hp800.h (CANNOT_DUMP): Do not undef.
19286
19287 * m/alpha.h: Fix comment.
19288
19289 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19290 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19291 used by this configuration.
19292 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19293 * unexec.c: Remove code depending on HPUX and
19294 USG_SHARED_LIBRARIES, not used with this file. Remove code
19295 depending on IRIS, unused. Remove if 0-ed code.
19296
19297 * s/template.h: Remove comments about static.
19298
19299 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19300 Remove if 0-ed code.
19301 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19302 were the same as the default.
19303 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19304 Remove boilerplate comments.
19305 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19306 (HAVE_SYSVIPC): Remove, unused.
19307 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19308
19309 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19310 Remove boilerplate comments.
19311 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19312 Remove boilerplate comments.
19313 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19314 Remove boilerplate comments.
19315 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19316
19317 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19318 USG systems which do not use DATA_SEG_BITS.
19319 Refactor code. Remove boilerplate comments.
19320
19321 * m/ibms390.h:
19322 * m/m68k.h:
19323 * s/bsd-common.h:
19324 * s/cygwin.h:
19325 * s/darwin.h:
19326 * s/freebsd.h:
19327 * s/gnu.h:
19328 * s/msdos.h: Remove boilerplate comments.
19329
19330 * m/iris4d.h: Remove boilerplate comments and code for systems that
19331 do not use this file.
19332 (IRIS_4D): Remove, unused.
19333
19334 * m/mips.h: Remove boilerplate comments and code for systems that
19335 do not use this file.
19336 (SIGN_EXTEND_CHAR):
19337 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19338 * unexmips.c: Remove file, unused.
19339
19340 * editfns.c (Fuser_full_name): Replace the only use of
19341 USER_FULL_NAME with its value.
19342 * config.in: Regenerate.
19343
19344 2008-07-16 David Reitter <david.reitter@gmail.com>
19345
19346 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19347 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19348
19349 2008-07-16 Glenn Morris <rgm@gnu.org>
19350
19351 * emacs.c (system-type): Doc fix.
19352
19353 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19354
19355 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19356 If the cache doesn't work, let's fix it, rather than work around it.
19357
19358 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19359
19360 * Makefile.in: Correct additions for nsfont.o in last commit.
19361 * nsfont.m: New file (forgot last commit).
19362
19363 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19364
19365 * callproc.c (set_initial_environment):
19366 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
19367 batch-compiling for bootstrap).
19368
19369 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19370 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19371
19372 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19373 CANNOT_DUMP case -- fix crash due to different init order.
19374
19375 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19376
19377 Changes and additions for NeXTstep windowing system (Cocoa and
19378 GNUstep) support.
19379
19380 * Makefile.in:
19381 * config.in: Support defines and build commands for NS port.
19382 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19383 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19384 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19385 windowing.
19386 (struct face): Add synth_ital field.
19387 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19388 (init_display): Initialize Vinitial_window_system to "ns" when so
19389 compiled.
19390 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19391 (display_arg): Use under NS.
19392 (main): Under NS, allocate autorelease pool and handle command line
19393 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19394 (standard_args): Add NS-specific args.
19395 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19396 * font.c (DEFAULT_ENCODING): New variable.
19397 (font_find_for_lface): Use it.
19398 (syms_of_font): Load syms_of_nsfont under NS.
19399 * font.h: Declare nsfont_driver when compiled under NS.
19400 * fontset.c: When compiling under NS, include nsterm.h.
19401 (fontset_from_font): Autoconstruct fontset under NS.
19402 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19403 symbol, document and use it.
19404 (do_switch_frame): When for_deletion under Cocoa, add
19405 Fraise_frame(Qnil).
19406 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19407 (x_get_arg): Allow "yes" and "no" as boolean values.
19408 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19409 Qright under Cocoa.
19410 (focus-follows-mouse): Default to 0 under NS.
19411 * frame.h (enum output_method): Add output_ns.
19412 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19413 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19414 (FRAME_WINDOW_P): NS-specific definition.
19415 * fringe.c (max_used_fringe_bitmap): Make public.
19416 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19417 (getloadavg): Use NeXT code under descendant OS's.
19418 * image.c (includes and header section, x_create_bitmap_from_data)
19419 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19420 (image_background_transparent, x_clear_image_1)
19421 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19422 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19423 (x_to_xcolors, x_from_xcolors, x_disable_image)
19424 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19425 other GUIs, including XPM support using code originally written for
19426 Carbon GUI.
19427 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19428 using NS API.
19429 (image_ascent): Use font metrics macros instead of direct struct field
19430 access.
19431 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19432 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19433 Also, handle NS as GTK for menu bar purposes.
19434 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19435 toolkit where they differ.
19436 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19437 use cachelist, still needed under NS.
19438 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19439 (struct widget_value): Define it here for menu.c.
19440 * keymap.c (includes): Include modifier internals.
19441 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19442 NS.
19443 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19444 support for preferring sequences using certain modifiers, specified by
19445 the FIRSTONLY argument.
19446 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19447 under NS GNUstep implementation.
19448 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19449 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19450 * menu.c: Include nsterm.h under NS.
19451 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19452 (free_menubar_widget_tree_value, update_submenu_strings)
19453 (find_and_call_menu_selection): Treat NS as X and NT.
19454 (find_and_return_menu_selection): New function, used for popup menus.
19455 * nsgui.h:
19456 * nsterm.h:
19457 * nsfns.m:
19458 * nsimage.m:
19459 * nsmenu.m:
19460 * nsselect.m:
19461 * nsterm.m: New files.
19462 * process.c (wait_reading_process_output): Under NS, call ns_select()
19463 instead of plain select().
19464 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19465 beginning of buffer.
19466 * sysselect.h (init_process): Rename when compiling under Cocoa to
19467 avoid name conflict.
19468 * termhooks.h (display_info): Add ns_display_info to union.
19469 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19470 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19471 COCOA environment.
19472 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19473 unexec() signature. (Note, this will dump, but the resulting file
19474 crashes; unexosx is used instead; keeping around for reference and
19475 possible aid in getting dump working under GNUstep.)
19476 * w32gui.h (button_type, widget_value): Remove definitions (now in
19477 keyboard.h).
19478 * window.c: Include nsterm.h when compiling under NS.
19479 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19480 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19481 other GUI windowing systems.
19482 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19483 GTK.
19484 (x_consider_frame_title): Under NS, set icon type and frame
19485 modified-state indicator; use ns_set_name_as_filename() when using
19486 formatted title.
19487 (update_window_cursor): Make public when compiling under NS.
19488 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19489 (hourglass_atimer, Vhourglass_delay
19490 * xfaces.c (header section, init_frame_faces, clear_font_table)
19491 (defined_color, unload_color, x_face_list_fonts)
19492 (prepare_face_for_display): Add NS support parallel to other GUIs.
19493 Emulate GCs like other non-X GUIs.
19494 (split_font_name): Don't lowercase font name under NS.
19495 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19496 under NS.
19497 * s/darwin.h: Add support for compilation under NS.
19498
19499 2008-07-15 Jason Rumney <jasonr@gnu.org>
19500
19501 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19502 (w32_show_hourglass): Rename from show_hourglass.
19503 (w32_hide_hourglass): Rename from hide_hourglass.
19504 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19505 (Vhourglass_delay): Declare extern.
19506 (hourglass_started): Remove.
19507
19508 * xdisp.c (Vhourglass_delay): Remove static.
19509 (hourglass_started, start_hourglass, cancel_hourglass):
19510 Don't include these versions on WINDOWSNT.
19511
19512 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19513
19514 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19515 variables (formerly in xfns.c).
19516 (show_hourglass, hide_hourglass): New prototypes (same).
19517 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19518 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19519 in xfns.c).
19520 (syms_of_xdisp): Declare/initialize display-hourglass,
19521 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19522 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19523 formerly in xfns.c.
19524 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19525 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19526 (start_hourglass, cancel_hourglass): Remove.
19527 (show_hourglass, hide_hourglass): Remove prototypes and static
19528 modifiers.
19529 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19530 hourglass_atimer, hourglass_shown_p declaration/initialization.
19531 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19532 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19533 (start_hourglass, cancel_hourglass): Remove.
19534 (show_hourglass, hide_hourglass): Remove prototypes and static
19535 modifiers.
19536 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19537 hourglass_atimer, hourglass_shown_p declaration/initialization.
19538 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19539 (DEFAULT_HOURGLASS_DELAY): Remove.
19540 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19541 hourglass_shown_p declaration/initialization.
19542
19543 2008-07-14 Jason Rumney <jasonr@gnu.org>
19544
19545 * w32fns.c (w32_get_arg): Remove wrapper function.
19546 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19547 directly.
19548 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19549
19550 2008-07-14 Kenichi Handa <handa@m17n.org>
19551
19552 * xfont.c (xfont_open): Add workaround for X's bug.
19553
19554 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19555
19556 * fontset.c: Include <stdio.h> unconditionally.
19557
19558 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
19559
19560 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19561 for filtering.
19562
19563 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19564
19565 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19566
19567 * m/macppc.h:
19568 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19569
19570 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19571 (SPECIAL_EMACS_INT):
19572 * m/ia64.h (SPECIAL_EMACS_INT):
19573 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19574 * s/gnu.h (NLIST_STRUCT):
19575 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19576 * s/gnu-linux.h (LINUX):
19577 * s/msdos.h (HAVE_FACES):
19578 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19579
19580 * systty.h:
19581 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19582 anymore.
19583
19584 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19585
19586 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19587 always defined as int.
19588
19589 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19590 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19591 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19592 * s/freebsd.h (HAVE_WAIT_HEADER):
19593 * s/bsd-common.h (HAVE_UNION_WAIT):
19594 * s/aix4-2.h (HAVE_WAIT_HEADER):
19595 * m/mips.h (HAVE_UNION_WAIT):
19596 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19597 (COFF, static): Do not define, they are undefined later in the file.
19598
19599 * process.c (update_status): Don't use a union.
19600 (status_convert):
19601 (sigchld_handler): Use int instead of WAITTYPE.
19602
19603 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
19604
19605 * indent.c (Fvertical_motion): Restore hscroll before moving to
19606 goal column.
19607
19608 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19609
19610 * lisp.h: Remove left over code.
19611
19612 2008-07-11 Andreas Schwab <schwab@suse.de>
19613
19614 * lisp.h: Fix logic in last change.
19615
19616 * menu.h: New file.
19617 * menu.c: Include it.
19618 * xmenu.c: Likewise.
19619 * Makefile.in: Update dependencies.
19620
19621 2008-07-11 Kenichi Handa <handa@m17n.org>
19622
19623 * fontset.c (fontset_from_font): Cancel the previous change.
19624
19625 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19626
19627 * lisp.h:
19628 * w32heap.c:
19629 * emacs.c:
19630 * alloc.c: Replace all references of NO_UNION_TYPE with
19631 USE_LISP_UNION_TYPE.
19632
19633 * m/xtensa.h (NO_UNION_TYPE):
19634 * m/vax.h (NO_UNION_TYPE):
19635 * m/template.h (NO_UNION_TYPE):
19636 * m/sparc.h (NO_UNION_TYPE):
19637 * m/mips.h (NO_UNION_TYPE):
19638 * m/macppc.h (NO_UNION_TYPE):
19639 * m/m68k.h (NO_UNION_TYPE):
19640 * m/iris4d.h (NO_UNION_TYPE):
19641 * m/intel386.h (NO_UNION_TYPE):
19642 * m/ibms390x.h (NO_UNION_TYPE):
19643 * m/ibms390.h (NO_UNION_TYPE):
19644 * m/ibmrs6000.h (NO_UNION_TYPE):
19645 * m/ia64.h (NO_UNION_TYPE):
19646 * m/hp800.h (NO_UNION_TYPE):
19647 * m/arm.h (NO_UNION_TYPE):
19648 * m/amdx86-64.h (NO_UNION_TYPE):
19649 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19650 defining it the same.
19651
19652 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19653
19654 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19655
19656 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19657
19658 * fileio.c:
19659 * sysdep.c:
19660 * systty.h:
19661 * m/ibmrs6000.h:
19662 * m/iris4d.h:
19663 * s/aix4-2.h:
19664 * s/freebsd.h:
19665 * s/gnu-linux.h:
19666 * s/hpux10-20.h:
19667 * s/hpux11.h:
19668 * s/netbsd.h:
19669 * s/sol2-3.h:
19670 * s/sol2-4.h:
19671 * s/sol2.h:
19672 * s/usg5-4.h:
19673 * s/vms.h: Remove references to unused variables.
19674
19675 2008-07-10 Andreas Schwab <schwab@suse.de>
19676
19677 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19678 pattern before matching the generic family.
19679
19680 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19681
19682 * unexec.c:
19683 * s/vms.h:
19684 * s/usg5-4-2.h:
19685 * s/sol2-5.h:
19686 * s/freebsd.h:
19687 * s/darwin.h: Remove dead code.
19688
19689 * m/template.h:
19690 * m/sparc.h:
19691 * m/mips.h:
19692 * m/m68k.h:
19693 * m/iris4d.h:
19694 * m/intel386.h:
19695 * m/ibms390x.h:
19696 * m/ibms390.h:
19697 * m/ia64.h:
19698 * m/hp800.h:
19699 * m/arm.h:
19700 * m/amdx86-64.h: Remove dead code and references to unused
19701 and compiler defined symbols.
19702
19703 * unexmips.c:
19704 * unexelf.c: Remove references to desupported systems.
19705
19706 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19707
19708 * m/powermac.h: Remove boilerplate comments.
19709 (NO_REMAP): Remove unused definition.
19710
19711 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19712 define them.
19713
19714 2008-07-10 Kenichi Handa <handa@m17n.org>
19715
19716 * xfont.c (xfont_open): Log the reason of failure.
19717
19718 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19719
19720 * fontset.c (fontset_get_font_group):
19721 * font.c (font_check_otf): Specify argument types.
19722
19723 2008-07-09 Kenichi Handa <handa@m17n.org>
19724
19725 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19726 non-ASCII char is found.
19727
19728 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19729 (reorder_font_vector): Change the arg preferred_family to font.
19730 Prefer the spec matching with font.
19731 (fontset_get_font_group): New function.
19732 (fontset_find_font): Change the format of an element of a realized
19733 fontset. Use fontset_get_font_group.
19734 (fontset_font): Try the current fontset, the default fontset, the
19735 fallbacks of the current fontset, and the fallbacks of the default
19736 fontset in this order.
19737 (face_for_char): Delete the shortcut to use the current font.
19738 (fontset_from_font): Don't set fonts for Latin in the fontset.
19739
19740 * font.h (font_make_object, font_match_p): Adjust prototypes.
19741
19742 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19743
19744 * font.c (font_make_object): New arg entity and pixelsize.
19745 (font_check_otf_features, font_check_otf): New functions.
19746 (font_match_p): Check :lang, :script, and :otf properties.
19747
19748 * xfont.c (xfont_open): Adjust it for the change of
19749 font_make_object.
19750 (xfont_text_extents): Fix initial setting of metrics.
19751
19752 * ftfont.c (struct ftfont_info): New member index, delete member
19753 fc_charset_idx. Make the member order compatible with struct
19754 xftfont_info.
19755 (fc_charset_table): Change charset names to registry names.
19756 (ftfont_pattern_entity): Delete the args registry and
19757 fc_charset_idx. Change the value of :font-entity property
19758 to (FONTNAME . INDEX). Always set :registry property to
19759 `iso10646-1'.
19760 (struct ftfont_cache_data): New struct.
19761 (ftfont_lookup_cache): New arg for_face.
19762 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19763 (ftfont_driver): Set the member otf_capability.
19764 (ftfont_get_charset): Adjust it for the change of
19765 fc_charset_table.
19766 (OTF_TAG_SYM): New macro.
19767 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19768 for the change of fc_charset_table.
19769 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19770 ftfont_pattern_entity. Add FC_INDEX to objset.
19771 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19772 and ftfont_pattern_entity.
19773 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19774 font_make_object, struct ftfont_info.
19775 (ftfont_has_char): Use ftfont_get_fc_charset.
19776 (ftfont_otf_features, ftfont_otf_capability): New functions.
19777 (ftfont_shape): Use ftfont_get_otf.
19778 (ftfont_text_extents): Fix initial setting of metrics.
19779
19780 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19781 member order compatible with struct ftfont_info.
19782 (xftfont_open): Add FC_CHARSET to the pattern.
19783 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19784 properties if appropriate.
19785 (xftfont_close): Unlock the face.
19786 (xftfont_anchor_point, xftfont_shape): Delete.
19787 (syms_of_xftfont): Don't set members anchor_point and shape of
19788 xftfont_driver.
19789
19790 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19791 font_make_object.
19792
19793 * w32font.c (w32font_open): Adjust it for the change of
19794 font_make_object.
19795 (w32font_open_internal): Don't set properties of font_object here.
19796
19797 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19798
19799 * macfns.c (x_create_tip_frame):
19800 * w32fns.c (x_create_tip_frame):
19801 * xfns.c (x_create_tip_frame): Pass parameter argument to
19802 face-set-after-frame-default.
19803
19804 * xfaces.c (Finternal_merge_in_global_face): Save merged
19805 attributes for the default face back into the face vector.
19806
19807 2008-07-08 Andreas Schwab <schwab@suse.de>
19808
19809 * fontset.h: Declare fontset_from_font. Don't declare
19810 new_fontset_from_font and fontset_from_font_name.
19811 * xterm.c: Include "fontset.h".
19812 * Makefile.in (xterm.o): Update dependencies.
19813
19814 2008-07-08 Glenn Morris <rgm@gnu.org>
19815
19816 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19817 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19818
19819 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19820
19821 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19822 (x_set_frame_parameters): Don't bind it.
19823
19824 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19825
19826 * w32fns.c (map_w32_filename): Declare extern.
19827
19828 2008-07-07 Jason Rumney <jasonr@gnu.org>
19829
19830 * w32term.c (WS_EX_LAYERED): Define if not already.
19831
19832 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19833
19834 * xfaces.c (set_font_frame_param): Don't try to set the font
19835 parameter if it is still unspecified in the lface.
19836
19837 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19838
19839 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19840 face if it didn't already exist.
19841
19842 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19843
19844 2008-07-05 Andreas Schwab <schwab@suse.de>
19845
19846 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19847
19848 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19849
19850 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19851 word-wrapping.
19852 (IT_DISPLAYING_WHITESPACE): New macro.
19853 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19854 when word-wrapping. Simplify word-wrapping logic. Use correct
19855 pixel positions when saving copies of the iterator.
19856 (display_line): Use proper wrap point if the last character on a
19857 line was preceded by whitespace.
19858
19859 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19860
19861 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19862
19863 2008-07-04 Kenichi Handa <handa@m17n.org>
19864
19865 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19866
19867 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19868
19869 2008-07-02 Jason Rumney <jasonr@gnu.org>
19870
19871 * xfns.c (syms_of_xfns): Only define x-select-font when both
19872 HAVE_FREETYPE and USE_GTK.
19873
19874 * xdisp.c (next_element_from_display_vector): Move assignment out
19875 of if statement.
19876
19877 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19878
19879 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19880
19881 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19882 (syms_of_fileio): Initialize and export them.
19883 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19884
19885 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19886 (Fsystem_move_file_to_trash): New function.
19887 (syms_of_w32fns): Export it to lisp.
19888
19889 2008-07-01 Jason Rumney <jasonr@gnu.org>
19890
19891 * w32font.c (w32font_text_extents): Don't count overhang as part
19892 of width.
19893
19894 2008-06-30 Miles Bader <miles@gnu.org>
19895
19896 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19897 Add `avoid_cursor_p' field.
19898
19899 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19900 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19901 (append_glyph, append_composite_glyph, produce_image_glyph)
19902 (append_stretch_glyph): Initialize avoid_cursor_p.
19903 (get_it_property): Rename from `get_line_height_property'.
19904 (x_produce_glyphs): Use get_it_property.
19905 (handle_line_prefix, push_display_prop): New functions.
19906 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19907 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19908 New variables.
19909 (syms_of_xdisp): Initialize them.
19910
19911 2008-06-30 Kenichi Handa <handa@m17n.org>
19912
19913 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19914 XftDefaultSubstitute (they are called in XftFontMatch).
19915 (xftfont_open): Fix args to ftfont_font_format.
19916
19917 * ftfont.c (fc_charset_table): New member lang.
19918 (ftfont_resolve_generic_family): New arg pattern.
19919 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19920 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19921 (ftfont_open): Fix args to ftfont_font_format.
19922 (ftfont_font_format): New arg filename.
19923
19924 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19925
19926 * xfaces.c (Finternal_merge_in_global_face): If default face was
19927 modified, realize it again. Update the font face attribute.
19928
19929 2008-06-29 Jason Rumney <jasonr@gnu.org>
19930
19931 * w32term.c (x_set_frame_alpha): Fix logic.
19932
19933 2008-06-29 Kenichi Handa <handa@m17n.org>
19934
19935 * fontset.c (Finternal_char_font): Return font-object instead of
19936 font-name.
19937
19938 * composite.c (get_composition_id): Fix the width calculation for TAB.
19939
19940 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19941
19942 * indent.c (Fvertical_motion): Properly handle float column arg.
19943
19944 2008-06-28 Jason Rumney <jasonr@gnu.org>
19945
19946 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19947 (pfnSetLayeredWindowAttributes): New function pointer.
19948 (w32_initialize): Initialize it when supported.
19949 (x_set_frame_alpha): New function.
19950
19951 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19952 (w32_frame_parm_handlers): Set alpha handler.
19953
19954 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19955
19956 2008-06-27 Jason Rumney <jasonr@gnu.org>
19957
19958 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19959 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19960 (w32_to_x_charset, x_to_w32_charset)
19961 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19962 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19963 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19964 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19965 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19966 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19967 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19968 (Qw32_charset_unicode): Remove.
19969 (syms_of_w32fns): Update for above changes.
19970
19971 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19972 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19973 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19974 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19975 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19976 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19977 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19978 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19979 (syms_of_w32font): Update for above changes.
19980
19981 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19982
19983 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19984 removed #if.
19985 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19986
19987 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19988 Eli Zaretskii <eliz@gnu.org>
19989
19990 * makefile.w32-in (LOCAL_FLAGS):
19991 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19992
19993 * sysdep.c (_spawnlp, _getpid):
19994 Declare with explicit _cdecl instead of _CRTAPI1.
19995
19996 * editfns.c (Fget_internal_run_time):
19997 Check for WINDOWSNT with #ifdef, not #if.
19998
19999 2008-06-26 Jason Rumney <jasonr@gnu.org>
20000
20001 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
20002
20003 * w32term.c (x_draw_glyph_string_foreground)
20004 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
20005 Use FONT_HANDLE macro.
20006 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
20007
20008 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20009 (uniscribe_encode_char): Use FONT_HANDLE macro.
20010
20011 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
20012 (w32font_text_extents): Use precast w32_font.
20013 (w32font_close): Free cached metrics.
20014 (w32font_open_internal): Allocate space for name on stack.
20015
20016 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
20017
20018 * xdisp.c (extend_face_to_end_of_line): Fix last change.
20019
20020 2008-06-26 Jason Rumney <jasonr@gnu.org>
20021
20022 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
20023 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
20024
20025 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
20026
20027 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
20028
20029 2008-06-26 Jason Rumney <jasonr@gnu.org>
20030
20031 * w32bdf.c, w32bdf.h: Remove obsolete files.
20032
20033 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
20034
20035 * w32gui.h: Don't include w32bdf.h.
20036 (XCharStruct, enum w32_char_font_type, W32FontStruct):
20037 Remove obsolete font support.
20038
20039 * w32font.h (struct w32font_info): Remove compat_w32_font.
20040 Add hfont member.
20041 (FONT_COMPAT): Remove obsolete macro.
20042
20043 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
20044 (w32font_encode_char, w32font_text_extents): Use new hfont member.
20045 (w32font_open_internal): Remove compat code. Set new hfont member.
20046 (Fx_select_font): Use new hfont member.
20047
20048 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20049 (uniscribe_encode_char): Use new hfont member.
20050
20051 * w32term.c (x_draw_glyph_string_foreground)
20052 (x_draw_composite_glyph_string_foreground): Use new hfont member.
20053 (x_draw_glyph_string): Use metrics in w32font_info.
20054
20055 2008-06-26 Kenichi Handa <handa@m17n.org>
20056
20057 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
20058
20059 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
20060
20061 * unexnext.c:
20062 * m/ews4800.h:
20063 * m/hp9000s300.h:
20064 * m/ibm370aix.h:
20065 * m/mips-siemens.h:
20066 * m/ncr386.h:
20067 * m/next.h:
20068 * m/pmax.h:
20069 * m/powerpcle.h:
20070 * m/tandem-s2.h:
20071 * s/386bsd.h:
20072 * s/bsd386.h:
20073 * s/bsd4-1.h:
20074 * s/bsd4-2.h:
20075 * s/bsdos2-1.h:
20076 * s/bsdos2.h:
20077 * s/bsdos3.h:
20078 * s/bsdos4.h:
20079 * s/nextstep.h:
20080 * s/ultrix4-3.h:
20081 * s/usg5-0.h:
20082 * s/usg5-2-2.h:
20083 * s/usg5-2.h:
20084 * s/usg5-4-3.h:
20085 * s/ux4800.h:
20086 * s/uxpds.h:
20087 * s/uxpv.h: Remove support for obsolete systems.
20088 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
20089 Remove, insert contents in s/hpux10-20.h.
20090 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
20091 Remove, insert contents in s/aix4-2.h.
20092 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
20093 * s/bsd4-3.h: Rename to ...
20094 * s/bsd-common.h: ... this.
20095 * data.c:
20096 * doc.c:
20097 * ecrt0.c:
20098 * emacs.c:
20099 * fileio.c:
20100 * floatfns.c:
20101 * keyboard.c:
20102 * mem-limits.h:
20103 * print.c:
20104 * process.c:
20105 * sysdep.c:
20106 * syssignal.h:
20107 * systty.h:
20108 * syswait.h:
20109 * term.c:
20110 * unexec.c:
20111 * unexelf.c:
20112 * unexhp9k800.c:
20113 * m/hp800.h:
20114 * m/ibmrs6000.h:
20115 * m/mips.h:
20116 * m/vax.h:
20117 * s/darwin.h:
20118 * s/freebsd.h:
20119 * s/gnu.h:
20120 * s/ms-w32.h:
20121 * s/msdos.h:
20122 * s/netbsd.h:
20123 * s/template.h: Remove references to obsolete variables.
20124
20125 * Makefile.in: Add dependencies for all unexec files.
20126 (admindir): Remove unused variable.
20127 (UNEXEC_SRC): Remove references.
20128
20129 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
20130
20131 * xfns.c (x_default_font_parameter): If Xft is available, first
20132 try Monospace-12 for the default font.
20133
20134 2008-06-25 Jason Rumney <jasonr@gnu.org>
20135
20136 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
20137
20138 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
20139
20140 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
20141
20142 * buffer.c (syms_of_buffer): Remove default-word-wrap.
20143
20144 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
20145
20146 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
20147 <scroll-conservatively>: Fix typo in docstring.
20148
20149 * xselect.c (Fx_send_client_event): Doc fix.
20150
20151 2008-06-25 Kenichi Handa <handa@m17n.org>
20152
20153 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
20154
20155 * font.c (font_parse_fcname): Remove unused variables.
20156 (font_sort_entites): Delete the arg SPEC. Caller changed.
20157 Fix for the case of ! best_only.
20158 (font_delete_unmatched): Check DPI and AVGWIDTH too.
20159
20160 * lisp.h (Fstring_to_unibyte): EXFUN it.
20161
20162 * character.h (str_to_unibyte): Extern it.
20163
20164 * character.c (str_to_unibyte): New function.
20165
20166 * fns.c (Fstring_to_unibyte): New function.
20167 (syms_of_fns): Defsubr it.
20168
20169 2008-06-24 Kenichi Handa <handa@m17n.org>
20170
20171 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
20172 DPI too.
20173 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
20174
20175 2008-06-24 Andreas Schwab <schwab@suse.de>
20176
20177 * Makefile.in (${lispsource}loaddefs.el): Rename from
20178 ../lisp/loaddefs.el.
20179 (bootstrap-clean): Do what distclean does but don't remove
20180 Makefile.
20181 (distclean): Depend on bootstrap-clean and remove Makefile.
20182
20183 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
20184
20185 * buffer.h (struct buffer): New member word_wrap.
20186
20187 * buffer.c (syms_of_buffer): New variables default-word-wrap and
20188 word-wrap.
20189 (init_buffer_once): Initialize them.
20190
20191 * dispextern.h (struct it): Replace bool truncate_lines_p with a
20192 line_wrap enum possessing three possible values.
20193
20194 * termopts.h: Replace truncate_partial_width_windows with
20195 Vtruncate_partial_width_windows.
20196
20197 * dispnew.c (direct_output_for_insert): Avoid direct output when
20198 inserting a space with word wrap on.
20199
20200 * indent.c (compute_motion): Obey integer values of
20201 truncate-partial-width-windows.
20202
20203 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
20204 replacing truncate_partial_width_windows.
20205 (init_iterator): If Vtruncate_partial_width_windows is an integer,
20206 truncate only if the window width is below that integer.
20207 (start_display, resize_mini_window, produce_stretch_glyph)
20208 (display_string, move_it_in_display_line_to): Use line_wrap.
20209 (back_to_previous_visible_line_start, reseat_1):
20210 Reset string_from_display_prop_p.
20211 (display_line): Extend default face to end of line when wrapping.
20212
20213 2008-06-24 Kim F. Storm <storm@cua.dk>
20214
20215 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
20216 to wrap continued lines at word boundaries.
20217
20218 2008-06-24 Jason Rumney <jasonr@gnu.org>
20219
20220 * font.c (Ffont_face_attributes): Multiply pixel size before point
20221 conversion to avoid multiplying rounding error.
20222
20223 2008-06-23 Jason Rumney <jasonr@gnu.org>
20224
20225 * w32term.c (x_draw_glyph_string_background)
20226 (x_draw_glyph_string): Remove old bdf font code.
20227
20228 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
20229
20230 2008-06-22 Kenichi Handa <handa@m17n.org>
20231
20232 * font.c (font_find_for_lface): Try the adstyle specified in
20233 the property of LFACE_FONT of LFACE (if any).
20234
20235 2008-06-21 Seiji Zenitani <zenitani@mac.com>
20236 Ryo Yoshitake <ryo@shiftmode.net>
20237
20238 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
20239
20240 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
20241
20242 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
20243 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
20244 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
20245 (witness-emacs): Remove.
20246 (lisp, shortlisp): Move loaddefs.el earlier.
20247 (mostlyclean): Forget about witness-emacs.
20248
20249 2008-06-22 Glenn Morris <rgm@gnu.org>
20250
20251 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20252 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20253
20254 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20255
20256 * Makefile.in (PRECOMP): Remove.
20257 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20258 (witness-emacs): Run `compile-first'.
20259 (.el.elc): Use the new compile-onefile target.
20260
20261 2008-06-21 Kenichi Handa <handa@m17n.org>
20262
20263 * xftfont.c (xftfont_open): Handle QCembolden only when
20264 FC_EMBOLDEN is defined.
20265
20266 2008-06-21 Andreas Schwab <schwab@suse.de>
20267
20268 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20269 (.el.elc): Likewise.
20270
20271 2008-06-21 Miles Bader <miles@gnu.org>
20272
20273 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20274 build dir, not the lisp source dir.
20275
20276 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20277
20278 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20279 (bootstrapclean): Remove.
20280 (.el.elc): New rule.
20281 (PRECOMP): New var.
20282 (../lisp/subdirs.el): Remove.
20283 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20284 (witness-emacs): New target.
20285 (mostlyclean): Remove witness-emacs as well.
20286 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20287 Add witness-emacs dependency.
20288
20289 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
20290
20291 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20292 defined by the font.
20293
20294 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20295
20296 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20297 (bootstrap-clean): New target that keeps TAGS around.
20298 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20299 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20300
20301 2008-06-20 Jason Rumney <jasonr@gnu.org>
20302
20303 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20304 Remove obsolete font code.
20305
20306 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20307 to determine language support.
20308
20309 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20310
20311 * sysdep.c (cfsetspeed): New fun extracted from the code.
20312 (cfmakeraw): Move before first use.
20313
20314 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20315
20316 * sysdep.c (cfmakeraw): Provide fallback implementation.
20317 (serial_configure): Provide fallback implementation of cfsetspeed.
20318
20319 2008-06-20 Kenichi Handa <handa@m17n.org>
20320
20321 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20322 the pattern.
20323
20324 * fontset.c (fontset_from_font): Copy font_spec before changing
20325 the elements.
20326
20327 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20328
20329 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20330
20331 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20332 for explicit `font' parameters.
20333
20334 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20335
20336 2008-06-19 Kenichi Handa <handa@m17n.org>
20337
20338 * frame.c: Include <ctype.h>.
20339 (x_set_font_backend): Allow spacing characters in the X resource
20340 for FontBackend.
20341
20342 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20343
20344 * w32fns.c, xfns.c (Qfont_param): New var.
20345 (syms_of_w32fns): Initialize it.
20346 (x_default_font_parameter): Record explicit `font' into
20347 `font-parameter'.
20348
20349 2008-06-18 Kenichi Handa <handa@m17n.org>
20350
20351 * font.c (font_parse_xlfd): Fix previous change.
20352 (font_parse_fcname): Don't use :fc-unknown-spec.
20353 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20354 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20355 (font_add_log): Prepend the driver name to the resulting fonts.
20356
20357 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20358 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20359 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20360
20361 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20362 (QCembolden): New variables.
20363 (syms_of_xftfont): DEFSYM them.
20364 (xftfont_open): Call XftFontMatch. Don't trust the result of
20365 XftTextExtents8 if the pixel_size is less than 5.
20366
20367 2008-06-18 Andreas Schwab <schwab@suse.de>
20368
20369 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20370 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20371
20372 2008-06-18 Jason Rumney <jasonr@gnu.org>
20373
20374 * w32font.c (w32font_list, w32font_match): Add logging.
20375
20376 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20377
20378 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
20379
20380 * font.c (font_parse_fcname): Store divider characters for
20381 unknown-spec list. For known key symbols, intern using correct
20382 symbol name.
20383
20384 2008-06-17 Kenichi Handa <handa@m17n.org>
20385
20386 * xfaces.c (realize_default_face): If the frame is not on window
20387 system, set the fontset of face to nil.
20388
20389 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20390
20391 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20392
20393 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20394
20395 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20396 (build_font_name_from_vector): Delete externs.
20397
20398 * xfaces.c (struct font_name): Don't declare.
20399
20400 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20401
20402 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20403
20404 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20405
20406 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20407
20408 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20409
20410 * font.c (Ffont_spec): Fix usage in docstring.
20411 (Ffont_face_attributes): Doc fix.
20412
20413 2008-06-16 Andreas Schwab <schwab@suse.de>
20414
20415 * font.c (Ffont_face_attributes): Fix definition.
20416
20417 2008-06-16 Jason Rumney <jasonr@gnu.org>
20418
20419 * font.h (font_style_symbolic_from_value): Remove.
20420
20421 * font.c (font_style_symbolic_from_value): Remove.
20422 (font_style_symbolic): Revert to pre 2008-06-13 version.
20423
20424 * w32font.c (w32_to_fc_weight): New function.
20425 (w32font_full_name, logfont_to_fcname): Use it.
20426
20427 2008-06-16 Kenichi Handa <handa@m17n.org>
20428
20429 * font.c (font_check_object): Delete it.
20430 (font_clear_cache): Check if a font-object is alive.
20431 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20432 font-object to nil.
20433 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20434 (font_at): Don't call font_check_object.
20435 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20436
20437 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20438
20439 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20440
20441 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20442
20443 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20444
20445 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
20446
20447 * font.c (font_parse_fcname): Only one decimal point.
20448 (font_unparse_fcname): Handle data in family and foundry indices
20449 as symbols, not strings.
20450 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20451
20452 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20453
20454 * font.h (font_unparse_gtkname): Add prototype.
20455
20456 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20457
20458 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20459
20460 2008-06-15 Andreas Schwab <schwab@suse.de>
20461
20462 * font.c (font_update_drivers): Fix crash when no drivers match.
20463
20464 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20465
20466 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20467 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20468
20469 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20470
20471 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20472
20473 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20474
20475 * process.c (Fserial_process_configure, Fprocess_send_eof):
20476 Use EQ to compare Lisp_Objects.
20477
20478 2008-06-13 Jason Rumney <jasonr@gnu.org>
20479
20480 * w32fns.c (Fw32_select_font): Remove old font API function.
20481
20482 * w32font.c (logfont_to_fcname): New function.
20483 (Fx_select_font): New font dialog function compatible with
20484 GTK/fontconfig version.
20485
20486 * font.c (font_style_symbolic_from_value): New function.
20487 (font_style_symbolic): Use it.
20488
20489 * font.h (font_style_symbolic_from_value): Declare new function.
20490
20491 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
20492
20493 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20494 <font-width-table>: Fix typos in docstrings.
20495
20496 2008-06-13 Daniel Engeler <engeler@gmail.com>
20497
20498 These changes add serial port access.
20499 * process.c: Add HAVE_SERIAL.
20500 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20501 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20502 (list_processes_1, select_wrapper, Fstop_process)
20503 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20504 (status_notify): Modify to handle serial processes.
20505 [HAVE_SERIAL] (Fserial_process_configure)
20506 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20507 New functions.
20508 * process.h (struct Lisp_Process): Add `type'.
20509 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20510 New functions.
20511 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20512 serial ports.
20513 (serial_open, serial_configure): New functions.
20514 * w32.h: Add FILE_SERIAL.
20515 (struct _child_process): Add ovl_read, ovl_write.
20516
20517 2008-06-13 Kenichi Handa <handa@m17n.org>
20518
20519 * dispextern.h (enum lface_attribute_index): New member
20520 LFACE_FOUNDRY_INDEX.
20521
20522 * font.c (font_score): Delete arg alternate_families. Check only
20523 weight, slant, width, and size. Ignore the difference of alias
20524 style symbols.
20525 (font_sort_entites): Adjust for the above change. Reflect the
20526 order of font-driver to scores.
20527 (font_list_entities): Don't check alternate_familes here.
20528 (font_clear_prop): Handle foundry.
20529 (font_update_lface): Don't parse "foundry-family" form here.
20530 Handle FONT_FOUNDRY_INDEX.
20531 (font_find_for_lface): Likewise. Handle alternate families here.
20532 If registry is nil, try iso8859-1 and ascii-0.
20533 (font_open_for_lface): Pay attention to size in ENTITY.
20534 (font_open_by_name): Simplify by calling font_load_for_lface.
20535 (free_font_driver_list): Delete it.
20536 (font_update_drivers): Preserve the order of backends.
20537 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20538 of font_score and font_sort_entites.
20539 (font_update_sort_order): Likewise.
20540
20541 * xfaces.c (LFACE_FOUNDRY): New macro.
20542 (check_lface_attrs): Check foundry.
20543 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20544 (merge_face_vectors): Check foundry.
20545 (merge_face_ref): Likewise.
20546 (Finternal_set_lisp_face_attribute): Likewise.
20547 (x_update_menu_appearance): Likewise.
20548 (Finternal_get_lisp_face_attribute): Likewise.
20549 (lface_hash): Likewise.
20550 (lface_same_font_attributes_p): Likewise.
20551 (x_supports_face_attributes_p): Likewise.
20552 (tty_supports_face_attributes_p): Likewise.
20553 (Finternal_set_alternative_font_family_alist): Intern strings.
20554 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20555 (realize_default_face): Set LFACE_FOUNDRY (lface).
20556
20557 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20558 font-driver at first.
20559
20560 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20561
20562 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20563
20564 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20565
20566 2008-06-12 Jim Meyering <meyering@redhat.com>
20567
20568 Make unexec_free handle NULL the same way free does.
20569 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20570
20571 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20572
20573 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20574 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20575 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20576 (WEAK_ALIAS): Simplify.
20577 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20578 when searching a unibyte buffer.
20579
20580 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
20581
20582 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20583
20584 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
20585
20586 * w32font.c: Include ctype.h.
20587
20588 2008-06-11 Jason Rumney <jasonr@gnu.org>
20589
20590 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20591 misreported as space.
20592 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20593 as aliases for registry iso10646-1.
20594
20595 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20596
20597 * buffer.c (clone_per_buffer_values): Skip `name'.
20598
20599 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
20600
20601 * font.c (font_parse_fcname): Fix last change; accept decimal
20602 points in font size.
20603
20604 2008-06-10 Jason Rumney <jasonr@gnu.org>
20605
20606 * w32uniscribe.c (add_opentype_font_name_to_list):
20607 Skip non unicode fonts.
20608
20609 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20610
20611 * xfns.c (Fx_font_dialog): New function.
20612
20613 * gtkutil.c (xg_dialog_response_cb): Rename from
20614 xg_file_response_callback.
20615 (pop_down_dialog): Rename from pop_down_file_dialog.
20616 (xg_get_file_name): Callers changed.
20617 (xg_get_font_name): New function.
20618
20619 * gtkutil.h (xg_get_font_name): Insert prototype.
20620
20621 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20622
20623 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20624 x_underline_minimum_display_offset.
20625 (syms_of_xdisp): Declare it here rather than in xterm.c.
20626 * dispextern.h (underline_minimum_offset): Declare it.
20627 * w32term.c (x_draw_glyph_string): Use it.
20628 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20629 (syms_of_xterm): Don't declare it any more.
20630 (x_draw_glyph_string): Adjust to the new name.
20631
20632 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
20633
20634 * xterm.c (x_underline_minimum_display_offset): New var.
20635 (x_draw_glyph_string): Use it.
20636 (syms_of_xterm): Declare it.
20637
20638 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20639
20640 * font.c (font_parse_fcname): Accept GTK-style font names too.
20641
20642 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20643
20644 * dired.c (file_name_completion): Don't return t if the match is exact
20645 but with different capitalization.
20646 * minibuf.c (Ftry_completion): Simplify.
20647
20648 * window.c (Vwindow_point_insertion_type): New var.
20649 (set_window_buffer): Use it.
20650 (syms_of_window): Init and export it to Lisp.
20651
20652 2008-06-10 Kenichi Handa <handa@m17n.org>
20653
20654 * font.h (font_intern_prop): Prototype adjusted.
20655
20656 * font.c (font_intern_prop): New arg force_symbol.
20657 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20658 Adjust for the change of font_intern_prop.
20659
20660 * ftfont.c (ftfont_pattern_entity):
20661 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20662 (w32_registry):
20663 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20664 the change of font_intern_prop.
20665
20666 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20667
20668 * w32menu.c (digest_single_submenu): Declare extern.
20669
20670 2008-06-09 Jason Rumney <jasonr@gnu.org>
20671
20672 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20673
20674 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20675 (parse_single_submenu): Remove.
20676 (digest_single_submenu): Remove.
20677 (syms_of_w32menu): Don't initialise variables that have moved
20678 to menu.c.
20679 (set_frame_menubar): Sync with version in xmenu.c.
20680 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20681
20682 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20683 Make static again.
20684
20685 2008-06-09 Jason Rumney <jasonr@gnu.org>
20686
20687 Changes to w32 files related to the move of common menu code
20688 to menu.c on 2008-06-08 by Chong Yidong.
20689
20690 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20691 defs to w32gui.h.
20692 (single_keymap_panes, push_menu_item, push_menu_pane):
20693 Make globally visible.
20694
20695 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20696 (local_free, malloc_widget_value, free_widget_value)
20697 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20698 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20699 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20700 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20701 (menu_items, menu_items_allocated, menu_items_used)
20702 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20703 (init_menu_items, finish_menu_items, discard_menu_items)
20704 (grow_menu_items, push_submenu_start, push_submenu_end)
20705 (push_left_right_boundary, push_menu_pane, push_menu_item)
20706 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20707 (free_menubar_widget_tree_value, parse_single_submenu)
20708 (update_submenu_strings): Remove functions.
20709 (xmalloc_widget_value): Remove and declare extern.
20710
20711 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20712 (OBJ1): Build it.
20713
20714 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20715 (local_heap, local_alloc, local_free, malloc_widget_value)
20716 (free_widget_value): Define here.
20717
20718 2008-06-09 Kenichi Handa <handa@m17n.org>
20719
20720 * font.h (Qascii_0): Extern it.
20721
20722 * font.c (Qascii_0): New variable.
20723 (syms_of_font): DEFSYM it.
20724 (font_open_by_name): If the registry "iso8859-1" fails, try also
20725 "ascii-0".
20726
20727 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20728
20729 2008-06-08 Kenichi Handa <handa@m17n.org>
20730
20731 * .gdbinit (xfont): New command.
20732
20733 2008-06-08 Andreas Schwab <schwab@suse.de>
20734
20735 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20736 * Makefile.in (menu.o): Update dependencies.
20737
20738 * Makefile.in (obj): Always add menu.o.
20739 * emacs.c (main): Always call syms_of_menu.
20740 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20741
20742 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20743
20744 * Makefile.in: Compile menu.c.
20745
20746 * lisp.h: Declare syms_of_menu.
20747
20748 * emacs.c (main): Call syms_of_menu.
20749
20750 * keyboard.h: Relocate platform-independent menu definitions from
20751 xmenu.c.
20752
20753 * menu.c: New file. Relocate platform-independent menu
20754 definitions from xmenu.c. Suggested by Adrian Robert.
20755
20756 * xmenu.c: Remove platform-independent menu definitions.
20757 (menu_items, menu_items_inuse, menu_items_allocated)
20758 (menu_items_used, menu_items_n_panes)
20759 (menu_items_submenu_depth): Move to keyboard.h.
20760 (init_menu_items, finish_menu_items, unuse_menu_items)
20761 (discard_menu_items, restore_menu_items, save_menu_items)
20762 (grow_menu_items, push_submenu_start, push_submenu_end)
20763 (push_left_right_boundary, push_menu_pane, push_menu_item)
20764 (keymap_panes, single_keymap_panes, single_menu_item)
20765 (list_of_panes, list_of_items, find_and_call_menu_selection)
20766 (xmalloc_widget_value, free_menubar_widget_value_tree)
20767 (parse_single_submenu, digest_single_submenu)
20768 (update_submenu_strings): Move to menu.c.
20769
20770 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20771
20772 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20773
20774 2008-06-06 Miles Bader <miles@gnu.org>
20775
20776 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20777 face, not frame default.
20778
20779 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20780
20781 * window.c (pop_up_windows, pop_up_frames)
20782 (display_buffer_reuse_frames, Vpop_up_frame_function)
20783 (Vdisplay_buffer_function, Veven_window_heights)
20784 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20785 (Vspecial_display_function, Vsame_window_buffer_names)
20786 (Vsame_window_regexps, split_height_threshold)
20787 (Vsplit_window_preferred_function): Move those vars to window.el.
20788 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20789 (Fdisplay_buffer): Move those functions to window.el.
20790 (syms_of_window): Remove corresponding declarations.
20791 (display_buffer): New function.
20792 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20793 * dispnew.c (Flast_nonminibuf_frame): New function.
20794 * buffer.c (Fpop_to_buffer): Move to window.el.
20795
20796 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20797
20798 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20799
20800 2008-06-05 Kenichi Handa <handa@m17n.org>
20801
20802 * coding.c (detect_coding): Fix previous change.
20803 (detect_coding_system): Likewise.
20804
20805 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20806
20807 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20808
20809 * keymap.c (Vminibuffer_local_filename_must_match_map):
20810 Rename from Vminibuffer_local_must_match_filename_map.
20811 (syms_of_keymap):
20812 * minibuf.c (Fcompleting_read): Adjust accordingly.
20813 * commands.h: Rename declaration as well.
20814
20815 2008-06-05 Kenichi Handa <handa@m17n.org>
20816
20817 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20818 family name.
20819 (Ffont_put): Likewise.
20820
20821 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20822 current font-spec.
20823
20824 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20825 is unspecified.
20826
20827 * xfaces.c (realize_x_face): If the font-related face attributes
20828 are the same as those of default face, realize a new fontset from
20829 default->fontset.
20830 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20831
20832 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20833
20834 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20835 (move_it_in_display_line): New wrapper.
20836
20837 * window.c (window_scroll_pixel_based_preserve_x)
20838 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20839 (window_scroll_pixel_based, window_scroll_line_based):
20840 Use them to preserve column positions.
20841 (syms_of_window): Initialize them.
20842
20843 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20844 (HPOS . VPOS) pair.
20845
20846 * dispextern.h (move_it_in_display_line): Declare.
20847
20848 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20849
20850 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20851 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20852 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20853
20854 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20855
20856 * window.c (Fset_window_parameter): Doc fix.
20857 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20858
20859 2008-06-04 Joakim Verona <joakim@verona.se>
20860
20861 * window.h (struct window): Add new member window_parameters.
20862
20863 * window.c (Fwindow_parameters, Fwindow_parameter)
20864 (Fset_window_parameter): New defuns.
20865 (syms_of_window): Defsubr the new defuns.
20866 (make_window): Initialize window_parameters to nil.
20867
20868 2008-06-04 John Paul Wallington <jpw@pobox.com>
20869
20870 * eval.c (Fdefmacro): Doc fix.
20871
20872 2008-06-04 Kenichi Handa <handa@m17n.org>
20873
20874 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20875 Be sure to call setup_coding_system when we find a proper coding system.
20876 (detect_coding_system): Fix handling of coding->head_ascii.
20877
20878 2008-06-03 Andreas Schwab <schwab@suse.de>
20879
20880 * font.c (font_prop_validate_spacing): Fix last change.
20881
20882 2008-06-03 Kenichi Handa <handa@m17n.org>
20883
20884 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20885 (font_parse_fcname): Fix handling of unknown key.
20886
20887 * xfont.c (xfont_list): Try an alias.
20888
20889 * charset.c (char_charset): Return NULL if the arg charset_list is
20890 specified and C doesn't belong to any of them.
20891
20892 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20893
20894 * font.c (font_pixel_size): Don't take cdr of an integer.
20895
20896 2008-06-02 Jim Meyering <meyering@redhat.com>
20897
20898 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20899 * alloc.c (xfree): Return right away for a NULL arg.
20900 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20901 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20902 * mac.c (create_apple_event_from_event_ref): Likewise.
20903 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20904 Likewise.
20905 * doprnt.c (doprnt1): Likewise.
20906 * frame.c (frame): Likewise.
20907 * keyboard.c (wipe_kboard): Likewise.
20908 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20909 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20910 * term.c (tty_default_color_capabilities, maybe_fatal)
20911 (delete_tty): Likewise.
20912 * w16select.c (string): Likewise.
20913 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20914 * w32bdf.c (w32_free_bdf_font): Likewise.
20915 * w32fns.c (w32_unload_font): Likewise.
20916 * w32font.c (w32font_close): Likewise.
20917 * window.c (size_window): Likewise.
20918 * xselect.c (receive_incremental_selection): Likewise.
20919 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20920 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20921 * w32.c (stat): Likewise.
20922
20923 Remove useless if-before-free tests.
20924 * editfns.c (Fset_time_zone_rule): Likewise.
20925 * lread.c (nosuffix): Likewise.
20926 * ralloc.c (get_bloc): Likewise.
20927 * regex.c (reg_free): Likewise.
20928 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20929 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20930 * xsmfns.c (smc_save_yourself_CB): Likewise.
20931
20932 2008-06-02 Kenichi Handa <handa@m17n.org>
20933
20934 * font.c (font_find_for_lface): Handle float font size.
20935 (font_open_for_lface): Likewise.
20936
20937 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20938 comparing the properties.
20939
20940 2008-06-01 Jason Rumney <jasonr@gnu.org>
20941
20942 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20943 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20944 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20945 Don't add empty script list.
20946 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20947
20948 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20949
20950 * Makefile.in (dot, dotdot): Remove, update users.
20951 ".." has been used elsewhere in the file for a long time.
20952 (LIBXT_STATIC): Remove conditional based on unused variable.
20953
20954 2008-06-01 Miles Bader <miles@gnu.org>
20955
20956 * xfaces.c (Vface_remapping_alist): New variable.
20957 (syms_of_xfaces): Initialize it.
20958 (enum named_merge_point_kind): New type.
20959 (struct named_merge_point): Add `named_merge_point_kind' field.
20960 (push_named_merge_point): Make cycle detection respect different
20961 named-merge-point kinds.
20962 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20963 Remove face-name alias resolution.
20964 (lface_from_face_name): New definition using
20965 `lface_from_face_name_no_resolve'.
20966 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20967 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20968 (get_lface_attributes): New definition that layers face-remapping on
20969 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20970 (lookup_basic_face): New function.
20971 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20972 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20973 `get_lface_attributes'.
20974 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20975 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20976 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20977
20978 * xdisp.c (init_iterator): Pass base_face_id through
20979 `lookup_basic_face' when we actually use it as a face-id.
20980 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20981 DEFAULT_FACE_ID.
20982
20983 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20984 lookup the initial face-id.
20985
20986 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20987
20988 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20989
20990 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20991 (Fremove_text_properties): Fix typos in docstrings.
20992
20993 2008-05-31 Kenichi Handa <handa@m17n.org>
20994
20995 * font.c (font_list_entities): Fix the car part of data to be
20996 stored in the cache.
20997
20998 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20999
21000 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
21001
21002 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
21003 Add a `test' argument so another predicate than `equal' can be used.
21004 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
21005 (map_char_table): Remove unused vars `c' and `i'.
21006 * lisp.h (Foptimize_char_table): Adjust declaration.
21007 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
21008
21009 2008-05-30 Kenichi Handa <handa@m17n.org>
21010
21011 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
21012 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
21013 defined.
21014
21015 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
21016
21017 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21018 (Fmake_variable_frame_local): Disallow mixing buffer-local and
21019 frame-local settings for the same variable.
21020
21021 2008-05-30 Kenichi Handa <handa@m17n.org>
21022
21023 * fontset.c (Ffont_info): Move to font.c.
21024 (syms_of_fontset): Delete defsubr of Sfont_info.
21025
21026 * font.c (font_style_to_value, font_score): Delete casting of the
21027 args to xstcasecmp.
21028 (register_font_driver): Increment num_font_drivers only when
21029 registering the driver globally.
21030 (Ffont_info): Move from fontset.c. Handle a font object too.
21031 (syms_of_font): Defsubr Sfont_info.
21032
21033 2008-05-29 Kenichi Handa <handa@m17n.org>
21034
21035 * coding.h (enum define_coding_utf8_arg_index): New enum.
21036 (enum coding_attr_index): Change coding_attr_utf_16_bom to
21037 coding_attr_utf_bom.
21038 (enum utf_bom_type): Rename from utf_16_bom_type.
21039 (struct utf_16_spec): Adjust for the above change.
21040 (struct coding_system): Add utf_8_bom in `spec' union.
21041
21042 * coding.c (CODING_UTF_8_BOM): New macro.
21043 (enum coding_category): Delete coding_category_utf_8, add
21044 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
21045 coding_category_utf_8_sig.
21046 (CATEGORY_MASK_UTF_8): Delete it.
21047 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
21048 (CATEGORY_MASK_UTF_8_SIG): New macros.
21049 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
21050 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
21051 CATEGORY_MASK_UTF_8_SIG.
21052 (CATEGORY_MASK_UTF_8): New macro.
21053 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
21054 (detect_coding_utf_8): Check BOM.
21055 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
21056 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
21057 (encode_coding_utf_16): Likewise.
21058 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
21059 (detect_coding, detect_coding_system): Handle utf-8-auto.
21060 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
21061 (syms_of_coding): Fix setting up of Vcoding_category_table.
21062
21063 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
21064
21065 * process.c (Faccept_process_output): If `millisec' is non-nil,
21066 `seconds' default to 0.
21067 (wait_reading_process_output): Also return non-nil if we read output
21068 from a non-running process.
21069
21070 2008-05-29 Jason Rumney <jasonr@gnu.org>
21071
21072 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
21073 `raster' specified.
21074 (add_font_entity_to_list): Allow non-opentype truetype fonts back
21075 in the uniscribe backend, but disallow any font that has no
21076 unicode subrange support.
21077
21078 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
21079
21080 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
21081 Fix typos in docstrings.
21082
21083 2008-05-29 Kenichi Handa <handa@m17n.org>
21084
21085 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
21086 (Fx_family_fonts): Set frame correctly.
21087
21088 2008-05-28 Jason Rumney <jasonr@gnu.org>
21089
21090 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
21091
21092 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
21093
21094 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
21095 calling build_annotations.
21096
21097 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
21098
21099 * coding.c (Fdecode_coding_region, Fencode_coding_region)
21100 (Fencode_coding_string):
21101 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
21102 <latin-extra-code-table>: Fix typos in docstrings.
21103 (syms_of_coding) <coding-system-alist>: Doc fix.
21104 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
21105
21106 2008-05-28 Kenichi Handa <handa@m17n.org>
21107
21108 * fontset.c (Ffont_info): Don't call font_close_object.
21109
21110 * font.c (font_parse_family_registry): Use Ffont_put to validate
21111 foundry and family.
21112 (font_delete_unmatched): Don't check spacing.
21113 (font_list_entities): Add spacing to the spec to list fonts.
21114
21115 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
21116 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
21117
21118 * coding.c (encode_coding_raw_text): Fix previous change.
21119 (encode_coding_object): When the dst_object is a buffer and is
21120 different from src_object, move gap to PT.
21121
21122 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21123
21124 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
21125
21126 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21127
21128 * coding.c (encode_coding_raw_text): Set coding->produced_char for
21129 all branches. Compute it differently.
21130
21131 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
21132
21133 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
21134
21135 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
21136 into "else if () ... else ...".
21137
21138 2008-05-27 Jason Rumney <jasonr@gnu.org>
21139
21140 * w32font.c (w32font_open_internal): Determine if glyph indices
21141 are likely to work here.
21142
21143 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21144
21145 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
21146 draw overlap glyphs with appropriate highlighting.
21147
21148 2008-05-27 Kenichi Handa <handa@m17n.org>
21149
21150 * xfont.c (xfont_open): Fix calculation of font->average_width.
21151
21152 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21153
21154 * casefiddle.c (casify_object): Try to guess better whether the
21155 argument is a byte or a char.
21156
21157 2008-05-26 Andreas Schwab <schwab@suse.de>
21158
21159 * xselect.c (x_reply_selection_request): Properly handle format == 32.
21160 Always send multiples of format size.
21161
21162 * xterm.c (x_set_frame_alpha): Fix type mismatch.
21163
21164 2008-05-26 Jason Rumney <jasonr@gnu.org>
21165
21166 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
21167 (compute_metrics): Don't set failure if we just cleared the cache.
21168 (w32_weight_table): Remove unused variable.
21169 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
21170 backwards compatibility.
21171
21172 2008-05-25 Kenichi Handa <handa@m17n.org>
21173
21174 * w32term.c (x_draw_glyph_string):
21175 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
21176
21177 * xfaces.c: Delete unused function prototypes.
21178 (xstrlwr, font_frame): Delete them.
21179 (clear_face_cache): Delete unused variable.
21180
21181 * xftfont.c (xftfont_open): Delete unused variable.
21182 If underline_thickness is not 1, adjust underline_position.
21183
21184 * ftxfont.c (ftxfont_open): Delete unused variable.
21185
21186 * fontset.c (face_for_char): Optimize for the case of no charset
21187 property.
21188
21189 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
21190 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
21191 (otf_open, font_otf_capability, generate_otf_features)
21192 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21193 Comment out by surrounding "#if 0" and "#endif" for the moment.
21194 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
21195 (syms_of_font): Codes for accessing above commented out.
21196
21197 2008-05-24 Eli Zaretskii <eliz@gnu.org>
21198
21199 * w32proc.c: Include dispextern.h.
21200
21201 * w32.c: Include dispextern.h.
21202
21203 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
21204
21205 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
21206 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
21207 Fix typos in docstrings.
21208
21209 2008-05-23 Jason Rumney <jasonr@gnu.org>
21210
21211 * xsmfns.c: Remove includes that are already included by config.h.
21212
21213 2008-05-23 Kenichi Handa <handa@m17n.org>
21214
21215 * charset.c (Qemacs, charset_emacs): New variables.
21216 (char_charset): Fix for non-Unicode characters.
21217 (syms_of_charset): Define charset_emacs.
21218
21219 * w32term.c (x_draw_glyph_string): Be sure to update
21220 s->underline_thickness and s->underline_position. Be sure to draw
21221 underline within the current line area.
21222
21223 * xterm.c (x_draw_glyph_string): Be sure to update
21224 s->underline_thickness and s->underline_position. Be sure to draw
21225 underline within the current line area.
21226
21227 * fontset.c: Delete unused variables and add casting for char *
21228 throughout the file.
21229 (fontset_font): Try the fallback fonts of the current fontset
21230 before consulting the default fontset.
21231
21232 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
21233
21234 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
21235
21236 2008-05-22 Jason Rumney <jasonr@gnu.org>
21237
21238 * font.c: Don't include strings.h.
21239
21240 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
21241
21242 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
21243 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
21244 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
21245 to call xstrcasecmp.
21246
21247 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
21248
21249 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21250
21251 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21252
21253 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21254
21255 2008-05-22 Kenichi Handa <handa@m17n.org>
21256
21257 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21258
21259 * font.c (font_prop_validate_style): Adjust for the format
21260 change of font_style_table.
21261
21262 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21263 two args.
21264
21265 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21266 two args.
21267
21268 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21269
21270 * minibuf.c (keys_of_minibuf): Delete.
21271 * lisp.h (keys_of_minibuf): Delete.
21272 * emacs.c (main): Don't call keys_of_minibuf.
21273
21274 2008-05-22 Kenichi Handa <handa@m17n.org>
21275
21276 * ftfont.c (ftfont_resolve_generic_family): Rename from
21277 ftfont_list_generic_family. Return a single family for each
21278 generic family.
21279 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21280 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21281 Call font_add_log.
21282 (ftfont_match): Call font_add_log.
21283
21284 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21285 (FONT_DEBUG): Define it.
21286 (font_add_log): Extern it.
21287 (font_assert): Rename from xassert.
21288
21289 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21290 (xfont_list_family): Call font_add_log.
21291 (xfont_match): Likewise.
21292 (memq_no_quit): Delete.
21293
21294 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21295 call of Ffont_xlfd_name.
21296
21297 * xfaces.c (struct table_entry, slant_table, weight_table)
21298 (swidth_table): Move to font.c.
21299
21300 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21301 xassert are changed to font_assert. Delete many unused variables.
21302 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21303 New variables.
21304 (struct table_entry): Move from xfaces.c and modified.
21305 (weight_table, slant_table, width_table): Move from xfaces.c and
21306 contents adjusted for the change of struct table_entry.
21307 (font_style_to_value, font_style_symbolic): Adjust for the
21308 format change of font_style_table.
21309 (font_parse_family_registry): Don't overwrite existing foundry and
21310 family of font_spec.
21311 (font_score): Fix calculation of diff for sizes.
21312 (font_sort_entites): Call font_add_log.
21313 (font_delete_unmatched): Return a newly created list.
21314 (font_list_entities): Fix previous change. Call font_add_log.
21315 (font_matching_entity, font_open_entity, font_close_entity):
21316 Call font_add_log.
21317 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21318 (Finternal_set_font_style_table): Delete.
21319 (BUILD_STYLE_TABLE): New macro.
21320 (build_style_table): New function.
21321 (Vfont_log, font_log_env_checked): New variables.
21322 (font_add_log): New function.
21323 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21324 Declare Lisp variables "font-weight-table", "font-slant-table",
21325 "font-width-table", and "font-log". Initialize font_style_table.
21326
21327 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21328
21329 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21330
21331 2008-05-21 Seiji Zenitani <zenitani@mac.com>
21332 Ryo Yoshitake <ryo@shiftmode.net>
21333
21334 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21335 (Vframe_alpha_lower_limit): New variable.
21336 (x_set_alpha): New function.
21337
21338 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21339
21340 * xfns.c (x-create-frame, Qalpha):
21341 Initialize the frame parameter `alpha'.
21342 * xterm.c (OPAQUE, OPACITY): New.
21343 (x_set_frame_alpha): New function.
21344 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21345
21346 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21347 * w32fns.c (w32_frame_parm_handlers): Likewise.
21348
21349 2008-05-20 Jason Rumney <jasonr@gnu.org>
21350
21351 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21352 truetype fonts to opentype list.
21353
21354 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
21355
21356 * fontset.c (Ffontset_info): Doc fix.
21357 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21358 <ignore-relative-composition>: Fix typos in docstrings.
21359
21360 * font.c (syms-of-font) <font-encoding-alist>:
21361 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21362 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21363 (Ffont_otf_alternates): Doc fixes.
21364
21365 2008-05-20 Kenichi Handa <handa@m17n.org>
21366
21367 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21368 font.h through out the file.
21369 (FONT_DRIVERS): Rename from FONTOBJ.
21370 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21371 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21372
21373 * emacs.c (main): Call syms_of_font unconditionally.
21374
21375 * font.h (find_font_encoding): Extern it.
21376
21377 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21378 fontset.c.
21379 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
21380 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21381 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21382 only when HAVE_WINDOW_SYSTEM is defined.
21383 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21384 when HAVE_WINDOW_SYSTEM is defined.
21385
21386 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21387 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21388
21389 * xfaces.c: Include font.h unconditionally.
21390 (merge_face_ref, merge_face_vectors)
21391 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21392
21393 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21394
21395 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21396 indirect_variable.
21397 * eval.c (lisp_indirect_variable): New fun.
21398 (Fuser_variable_p): Use it.
21399
21400 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21401
21402 * lisp.h (indirect_variable):
21403 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21404 Use Lisp_Symbol pointers rather than Lisp_Object.
21405 Adjust callers.
21406 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21407 To this end, change calling-convention.
21408
21409 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21410 if some non-hidden buffers are selected by string&pred.
21411
21412 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
21413
21414 * process.c (wait_reading_process_output): Always check status
21415 when in batch mode.
21416
21417 2008-05-19 Kenichi Handa <handa@m17n.org>
21418
21419 * font.c (font_list_entities): Fix handling of cache.
21420 (font_matching_entity): Likewise.
21421
21422 * ftfont.c (cs_iso8859_1): Delete.
21423 (ft_face_cache): New variable.
21424 (struct ftfont_info): New member fc_charset_idx.
21425 (ftfont_build_basic_charsets): Delete.
21426 (fc_charset_table): New variable.
21427 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21428 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21429 Callers changed.
21430 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21431 (ftfont_spec_pattern): New argument fc_charset_idx.
21432 Check registry more rigidly. Change callers.
21433 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21434 change of :font-entity property of the font.
21435
21436 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21437 property of the font.
21438
21439 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
21440
21441 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21442 (Funencodable_char_position, Fcheck_coding_systems_region)
21443 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21444 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21445 (Ffind_operation_coding_system, Fset_coding_system_priority)
21446 (Fcoding_system_eol_type): Doc fixes.
21447
21448 2008-05-17 Glenn Morris <rgm@gnu.org>
21449
21450 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21451
21452 2008-05-16 Eli Zaretskii <eliz@gnu.org>
21453
21454 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21455 and st_gid.
21456
21457 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21458 HAVE_WINDOW_SYSTEM is not defined.
21459
21460 * xfaces.c (merge_face_ref, merge_face_vectors)
21461 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21462 HAVE_WINDOW_SYSTEM is defined.
21463 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21464
21465 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21466
21467 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21468
21469 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21470
21471 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21472
21473 2008-05-15 Kenichi Handa <handa@m17n.org>
21474
21475 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21476 preference.
21477
21478 2008-05-15 Glenn Morris <rgm@gnu.org>
21479
21480 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21481
21482 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
21483
21484 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21485 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21486
21487 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21488
21489 2008-05-15 Kenichi Handa <handa@m17n.org>
21490
21491 * ftfont.c (ftfont_list): Downcase family name to check generic
21492 families.
21493
21494 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21495 font-spec for QCfont value.
21496
21497 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21498 buffer. Check the return value of it.
21499
21500 2008-05-14 Jason Rumney <jasonr@gnu.org>
21501
21502 * w32term.c (w32_get_glyph_overhangs): Remove.
21503 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21504
21505 2008-05-14 Kenichi Handa <handa@m17n.org>
21506
21507 * font.c (font_prop_validate): Make nil a valid value.
21508 (font_clear_cache): Check if the cached vector of entities is nil
21509 or not.
21510
21511 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21512
21513 * emacs.c (main_thread): Conditionalize on
21514 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21515 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21516
21517 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21518 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21519 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21520
21521 2008-05-14 Kenichi Handa <handa@m17n.org>
21522
21523 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21524 has no corresponding coding system.
21525
21526 2008-05-14 Jason Rumney <jasonr@gnu.org>
21527
21528 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21529
21530 * w32font.h (w32font_open_internal): Update declaration.
21531
21532 * w32font.c (w32font_open_internal): Change last argument from
21533 w32font_info struct to font object. Fill in font object from
21534 font_entity. Get Outline metrics if possible. Use them to
21535 calculate underline position and thickness. Use xlfd name as name
21536 property. Don't set codepage.
21537 (w32font_open): Pass font_object to w32font_open_internal. Don't
21538 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21539 (w32font_draw): Use s->font.
21540 (clear_cached_metrics): Don't clear non-existent blocks.
21541
21542 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21543 font was not found.
21544 (x_draw_glyph_string): Use underline position and thickness from font.
21545
21546 * w32uniscribe.c (uniscribe_open): Pass font_object to
21547 w32font_open_internal.
21548
21549 2008-05-14 Kenichi Handa <handa@m17n.org>
21550
21551 These changes are to delete all legacy font-handling codes, and
21552 make Emacs use only font-backends.
21553
21554 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21555 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21556
21557 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21558
21559 * charset.h (Vcharset_non_preferred_head)
21560 (Vcurrent_iso639_language): Extern them.
21561
21562 * charset.c (Vcharset_non_preferred_head): New variable.
21563 (Vcurrent_iso639_language): New variable.
21564 (syms_of_charset): Declare it as a Lisp variable.
21565 (char_charset): Don't check non preferred charsets. As a last
21566 resort, return charset_unicode.
21567 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21568
21569 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21570 conditionals. Don't check enable_font_backend. Delete all codes
21571 used only when USE_FONT_BACKEND is not defined.
21572
21573 * dispextern.h (struct glyph_string): Change type of `font' to
21574 `struct font *'.
21575 (struct glyph_string): New member underline_position and
21576 underline_thickness.
21577 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21578 (struct face): Change type of `font' to `struct font *'.
21579 Remove members `font_name', `font_info_id'.
21580 (per_char_metric, encode_char): Delete externs.
21581 (calc_pixel_width_or_height): Adjust the prototype.
21582
21583 * emacs.c (enable_font_backend): Delete extern.
21584 (main): Don't set enable_font_backend. Don't check the command
21585 line argument "-disable-font-backend".
21586
21587 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21588 (enum font_property_index): New members FONT_DPI_INDEX,
21589 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21590 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21591 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21592 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21593 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21594 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21595 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21596 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21597 (struct font_spec, struct font_entity): New structs.
21598 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21599 (struct font): Many members from old "struct font_info" moved to
21600 here. Members font and entity deleted.
21601 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21602 the new font-related objects.
21603 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21604 (CHECK_FONT_GET_OBJECT): Likewise.
21605 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21606 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21607 (struct font_driver): New members case_sensitive anc check.
21608 Type of the member list and open changed.
21609 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21610 (font_symbolic_width, font_find_object, font_get_spec)
21611 (font_set_lface_from_name): Delete extern.
21612 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21613
21614 * font.c: Include <strings.h>.
21615 (enable_font_backend): Delete it.
21616 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21617 (CHECK_VALIDATE_FONT_SPEC): Delete it.
21618 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21619 (null_string): Delete it.
21620 (null_vector): Make it static.
21621 (font_family_alist): Delete it.
21622 (Qnormal): Extern it.
21623 (QCextra, QClanguage): Delete it.
21624 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21625 (font_make_spec, font_make_entity, font_make_object)
21626 (font_intern_prop): Rename from intern_downcase. Don't downcase
21627 the string. Callers changed.
21628 (font_pixel_size): Adjust for the format change of font-related
21629 objects.
21630 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21631 (font_style_to_value, font_style_symbolic): New function.
21632 (build_font_family_alist): Delete it.
21633 (font_registry_charsets): Use Fassoc_string instead of
21634 assq_no_quit.
21635 (font_prop_validate_symbol): Don't return null_string.
21636 (font_prop_validate_style): Adjust for the change of
21637 style-related values in a font vector.
21638 (font_property_table): Delete entries for QClanguage and
21639 QCantialias, add entries for QCavgwidth.
21640 (get_font_prop_index): Delete the 2nd argument FROM.
21641 (font_prop_validate): Arguments changed.
21642 (font_put_extra): Adjust for the change of font-related objects.
21643 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21644 (font_parse_fcname, font_unparse_fcname)
21645 (font_prepare_composition): Likewise.
21646 (font_parse_family_registry): Rename from font_merge_old_spec.
21647 (otf_open): Delete the 1st arg entity.
21648 (font_otf_capability): Adjust for the above change.
21649 (font_score): New arg alternate_families. Adjusted for the change
21650 of font-related objects.
21651 (font_sort_entites): New arg best_only.
21652 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21653 Delete them.
21654 (font_match_p): Check alternate families.
21655 (font_find_object): Delete it.
21656 (font_check_object): New function.
21657 (font_clear_cache): Adjust for the change of font-related objects.
21658 (font_delete_unmatched): New arg.
21659 (font_list_entities): Call font_driver->list with a spec that
21660 doesn't specify style-related properties.
21661 (font_matching_entity): Arguments changed. Caller changed.
21662 (font_open_entity): Adjust for the change of font-related objects.
21663 (font_close_object, font_has_char, font_encode_char)
21664 (font_get_name, font_get_spec): Likewise.
21665 (font_spec_from_name, font_clear_prop, font_update_lface):
21666 New functions.
21667 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21668 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21669 (font_at): Adjust for the change of font-related objects.
21670 (font_range): New function.
21671 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21672 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21673 (Fcopy_font_spec, Fmerge_font_spec): New function.
21674 (Ffont_family_list): Rename from list-families.
21675 (Finternal_set_font_style_table): Arguments changed.
21676 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21677 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21678 change of font-related objects.
21679 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21680
21681 * fontset.h (struct font_info): Delete it. Most members go to
21682 struct font.
21683 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21684 (enum FONT_SPEC_INDEX): Delete it.
21685 (font_info, list_fonts_func, load_font_func, query_font_func)
21686 (set_frame_fontset_func, find_ccl_program_func)
21687 (get_font_repertory_func, new_fontset_from_font_name):
21688 Delete externs.
21689 (fontset_from_font_name): Extern it.
21690 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21691 (FONT_INFO_FROM_FACE): Delete.
21692 (face_for_font): Adjust prototype.
21693
21694 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21695 conditionals. Don't check enable_font_backend. Delete all codes
21696 used only when USE_FONT_BACKEND is not defined.
21697 (get_font_info_func, list_font_func, load_font_func)
21698 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21699 (get_font_repertory_func): Delete them.
21700 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21701 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21702 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21703 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21704 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21705 (fontset_compare_rfontdef): New function.
21706 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21707 rfont-defs by qsort. Adjusted for the change of font-group vector.
21708 (load_font_get_repertory): Delete.
21709 (fontset_find_font): Use new macros to ref/set elements of
21710 font-def and rfont-def.
21711 (fontset_font): Fix the timing of remembering that no font for C.
21712 (free_face_fontset): Do nothing if the face has no fontset.
21713 (face_suitable_for_char_p): Use new macros to ref/set elements of
21714 rfont-def.
21715 (face_for_char): Likewise. Call face_for_char with font_object.
21716 (fs_load_font): Delete. Delete #pragma surrounding it.
21717 (fs_query_fontset): Use strcasecmp instead of strcmp.
21718 (generate_ascii_font_name): Adjust for the format change of
21719 font-spec.
21720 (Fset_fontset_font): Likewise. Use new macros to set elements of
21721 font-def.
21722 (Fnew_fontset): Use font_unparse_xlfd to generate
21723 FONTSET_ASCII (fontset).
21724 (new_fontset_from_font_name): Delete.
21725 (fontset_from_font): Rename from new_fontset_from_font. Check if
21726 a fontset is already created for the font. FIx updating of
21727 Vfontset_alias_alist.
21728 (fontset_ascii_font): Delete.
21729 (Ffont_info): Adjust for the format change of font-spec.
21730 (Finternal_char_font): Likewise.
21731 (Ffontset_info): Likewise.
21732 (syms_of_fontset): Don't check load_font_func.
21733
21734 * fns.c (internal_equal): Handle PREV_FONT.
21735
21736 * frame.h: Delete USE_FONT_BACKEND conditional.
21737
21738 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21739 conditionals. Don't check enable_font_backend. Delete all codes
21740 used only when USE_FONT_BACKEND is not defined.
21741 (x_set_font): Call x_new_font, not x_new_fontset2.
21742 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21743 already set for the frame.
21744
21745 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21746 Make a font-entity by font_make_entity. Use font_intern_prop instead
21747 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21748 font property. If a font is scalable, set avgwidth property to 0.
21749 Set font-entity property by font_put_extra.
21750 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21751 (ffont_driver): Adjust for the change of struct font_driver.
21752 (ftfont_spec_pattern): New function.
21753 (ftfont_list): Return a list, not vector.
21754 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21755 (ftfont_list_family): Don't downcase names.
21756 (ftfont_free_entity): Delete.
21757 (ftfont_open): Return a font-object. Adjusted for the change of
21758 struct font. Get underline_thickness and underline_position from
21759 font property. Don't update dpyinfo->smallest_font_height and
21760 dpyinfo->smallest_char_width.
21761 (ftfont_close): Don't free `struct font'.
21762 (ftfont_has_char): Adjust for the format change of font-entity.
21763 (ftfont_encode_char, ftfont_text_extents): Likewise.
21764
21765 * ftxfont.c (ftxfont_list): Return a list, not vector.
21766 (ftxfont_open): Return a font-object. Adjusted for the change of
21767 struct font. Get underline_thickness and underline_position from
21768 font property. Don't update dpyinfo->smallest_font_height and
21769 dpyinfo->smallest_char_width.
21770 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21771 (ftxfont_draw): Adjust for the change of struct font.
21772
21773 * image.c (image_ascent): Don't include "charset.h".
21774 Include "character.h" and "font.h".
21775
21776 * lisp.h (enum pvec_type): New member PREV_FONT.
21777 (Fassoc_string): EXFUN it.
21778
21779 * print.c: Include font.h.
21780 (print_object): Handle font-related objects.
21781
21782 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21783 conditionals. Don't check enable_font_backend. Delete all codes
21784 used only when USE_FONT_BACKEND is not defined.
21785 (handle_auto_composed_prop): Do nothing if it->f is not on a
21786 window system. Check how many following characters can be
21787 displayed by the same font.
21788 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21789 'struct font *'.
21790 (get_char_face_and_encoding): Assign the whole encoding task to
21791 the `encode-char' method of a font driver.
21792 (fill_composite_glyph_string): Adjust for the change of `struct
21793 face' and `struct glyph_string'.
21794 (fill_glyph_string): Likewise.
21795 (get_per_char_metric): Arguments changed.
21796 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21797 and `struct glyph_string'.
21798 (produce_stretch_glyph, calc_line_height_property)
21799 (x_produce_glyphs): Likewise.
21800
21801 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21802 conditionals. Don't check enable_font_backend. Delete all codes
21803 used only when USE_FONT_BACKEND is not defined.
21804 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21805 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21806 (Qp): Extern them.
21807 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21808 Delete.
21809 (struct font_name): Delete.
21810 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
21811 (compare_fonts_by_sort_order): New function.
21812 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21813 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21814 Delete.
21815 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21816 compare_fonts_by_sort_order.
21817 (Fx_font_family_list): Call Ffont_family_list.
21818 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21819 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21820 (face_symbolic_slant, face_symbolic_swidth)
21821 (split_font_name_into_vector, build_font_name_from_vector)
21822 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21823 (font_rescale_ratio, split_font_name, build_font_name)
21824 (free_font_names, sort_fonts, x_face_list_fonts)
21825 (face_font_available_p, sorted_font_list, cmp_font_names)
21826 (font_list_1, concat_font_list, font_list, remove_duplicates):
21827 Delete.
21828 (Fx_list_fonts): Use Ffont_list.
21829 (LFACE_AVGWIDTH): Delete.
21830 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21831 by FONTP.
21832 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21833 (set_lface_from_font_name): Delete it.
21834 (set_lface_from_font): Rename from
21835 set_lface_from_font_and_fontset. Caller changed. Don't set
21836 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21837 for face.
21838 (merge_face_vectors): Copy font-spec if necessary.
21839 Clear properties of the font-spec if necessary.
21840 (merge_face_ref): Clear properties of the font-spec if necessary.
21841 (Finternal_set_lisp_face_attribute): Likewise.
21842 (set_font_frame_param): Use font_load_for_lface to load a
21843 font-object, and call Fmodify_frame_parameters with it.
21844 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21845 font name by Ffont_xlfd_name.
21846 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21847 QCslant, and QCwidth.
21848 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21849 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21850 Compare fonts by EQ.
21851 (lookup_non_ascii_face): Delete.
21852 (face_for_font): The 2nd argument changed.
21853 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21854 Check atomic font properties by case insensitive.
21855 (realize_non_ascii_face): Set face->overstrike correctly.
21856 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21857 (dump_realized_face): Get font name from
21858 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21859
21860 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21861 conditionals. Don't check enable_font_backend. Delete all codes
21862 used only when USE_FONT_BACKEND is not defined.
21863 (xic_create_xfontset): Original code deleted and renamed from
21864 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21865 (x_make_gc): Don't set GCFont in GCs.
21866 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21867 opened by "fixed".
21868 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21869 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21870 get_font_repertory_func.
21871
21872 * xfont.c: Include <stdlib.h> and "ccl.h".
21873 (struct xfont_info): New structure.
21874 (xfont_query_font): Delete.
21875 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21876 moved from xterm.c.
21877 (xfont_driver): Adjust for the change of struct font_driver.
21878 (compare_font_names): New function.
21879 (xfont_list_pattern): Sort font names case insensitively.
21880 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21881 (xfont_list): Return a list, not vector.
21882 (xfont_match): If the font doesn't have QCname property, generate
21883 a name from the other font properties.
21884 (xfont_open): Return a font-object. Adjusted for the change of
21885 struct font. Get underline_thickness and underline_position from
21886 font property. Don't update dpyinfo->smallest_font_height and
21887 dpyinfo->smallest_char_width.
21888 (xfont_close): Don't free struct font.
21889 (xfont_prepare_face): Adjust for the change of struct font.
21890 (xfont_done_face): Delete.
21891 (xfont_has_char): Adjust for the change of struct font.
21892 (xfont_encode_char, xfont_draw): Likewise.
21893 (xfont_check): New function.
21894
21895 * xftfont.c (xftfont_list): Adjust for the change of `list'
21896 callback function.
21897 (xftfont_match): Adjust for the format change of font-entity.
21898 (xftfont_open): Adjust for the format change of font-entity and
21899 font-object. Adjusted for the change of struct font. Return a
21900 font-object. Don't update dpyinfo->smallest_font_height and
21901 dpyinfo->smallest_char_width.
21902 (xftfont_close): Block input while calling XftFontClose.
21903 (xftfont_prepare_face): Don't block input while calling
21904 xftfont_get_colors. Adjusted for the change of struct font.
21905 (xftfont_shape): Return value of error case fixed.
21906
21907 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21908
21909 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21910 conditionals.
21911 (FONT_WIDTH): Return (f)->max_width.
21912 (struct x_display_info): Delete member `font'.
21913 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21914 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21915 (struct x_output): Change type of `font' to `struct font *'.
21916
21917 * xterm.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. Don't include ccl.h.
21920 (x_per_char_metric, x_encode_char): Delete.
21921 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21922 (x_compute_glyph_string_overhangs): Adjust for the change of
21923 `struct face'.
21924 (x_draw_glyph_string_foreground)
21925 (x_draw_composite_glyph_string_foreground): Likewise.
21926 (x_draw_glyph_string): Likewise. Use font->underline_position and
21927 font->underline_thickness.
21928 (x_new_font): Rename from x_new_fontset2.
21929 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
21930 (x_check_font): Call `check' method of a font driver.
21931 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21932 (x_query_font, x_get_font_repertory): Delete.
21933 (x_find_ccl_program): Rename and moved to xfont.c.
21934 (x_redisplay_interface): Adjust for the change of `struct
21935 redisplay_interface'.
21936
21937 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21938 conditionals. Don't check enable_font_backend. Delete all codes
21939 used only when USE_FONT_BACKEND is not defined. Surround non-used
21940 code by "#ifdef OLD_FONT" and "endif".
21941 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21942
21943 * w32font.h (struct w32font_info): New member.
21944 (FONT_COMPAT): New macro.
21945 (w32font_open_internal): Prototype adjusted.
21946
21947 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21948 OLD_FONT" and "endif".
21949
21950 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21951 conditionals. Don't check enable_font_backend. Delete all codes
21952 used only when USE_FONT_BACKEND is not defined.
21953 (w32font_open): Return a font-object. Make a font-object by
21954 font_make_object. Adjusted for the change of struct w32font_info.
21955 (w32font_close): Don't free struct font. Adjusted for the change
21956 of struct w32font_info.
21957 (w32font_encode_char, w32font_text_extents, w32font_draw):
21958 Adjust for the change of struct w32font_info.
21959 (w32font_draw): Likewise.
21960 (w32font_list_internal): Return a list, not vector.
21961 (w32font_open_internal): Change the 4th arg to font-object.
21962 Adjusted for the change of struct w32font_info and font-object format.
21963 (add_font_name_to_list): Don't downcase names.
21964 (w32_enumfont_pattern_entity): Make a font-entity by
21965 font_make_entity. Adjusted for the format change of font-entity.
21966 Use FONT_SET_STYLE to set a style-related font property. If a
21967 font is scalable, set avgwidth property to 0. Set font-entity
21968 property by font_put_extra.
21969 (font_matches_spec): Adjust for the format change of font-entity.
21970 (w32_weight_table, w32_decode_weight): New variables.
21971 (w32_encode_weight): New function.
21972 (fill_in_logfont): Adjust for the format change of font-spec.
21973 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21974 weight value.
21975 (w32font_driver): Adjust for the change of struct font_driver.
21976
21977 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21978 conditionals. Don't check enable_font_backend. Surround non-used
21979 code by "#ifdef OLD_FONT" and "endif".
21980 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21981 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21982
21983 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21984 conditionals. Don't check enable_font_backend. Delete all codes
21985 used only when USE_FONT_BACKEND is not defined. Surround non-used
21986 code by "#ifdef OLD_FONT" and "endif".
21987
21988 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21989 (uniscribe_open): Return value changed to font-object.
21990 Adjusted for the format change of font-object.
21991 (uniscribe_otf_capability): Adjust for the change of struct font.
21992 (add_opentype_font_name_to_list): Don't downcase names.
21993 (uniscribe_font_driver): Adjust for the change of struct
21994 font_driver.
21995
21996 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21997
21998 * dispnew.c (update_frame_1): Check if tty output is still valid
21999 before flushing it.
22000
22001 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
22002
22003 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
22004 to Gtk+ menus.
22005
22006 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
22007
22008 * dired.c (file_name_completion): Tweak the code so as to always do it
22009 in a single pass. Tighten the scope of some variables.
22010
22011 * dired.c (Qdefault_directory): New var.
22012 (file_name_completion): Use it instead of Fexpand_file_name.
22013 (syms_of_dired): Initialize it.
22014
22015 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
22016
22017 * fileio.c (double_dollars): Remove dead code.
22018
22019 2008-05-10 Eli Zaretskii <eliz@gnu.org>
22020
22021 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
22022 Mention w32-get-true-file-attributes in doc string.
22023
22024 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
22025
22026 2008-05-09 Glenn Morris <rgm@gnu.org>
22027
22028 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
22029 2008-04-23.
22030
22031 2008-05-09 Eli Zaretskii <eliz@gnu.org>
22032
22033 Support for reporting owner and group of each file on MS-Windows:
22034 * dired.c (stat_uname, stat_gname): New functions, with special
22035 implementation for w32.
22036 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
22037
22038 * w32.c: Rename the_passwd_* to dflt_passwd_*.
22039 (dflt_group_name): New static variable.
22040 (dflt_group): Rename from the_group.
22041 (init_user_info): Init dflt_group fields. Get user's group name
22042 from LookupAccountSid.
22043 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
22044 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
22045 New initialization states.
22046 (globals_of_w32): Initialize them to zero. Initialize the default
22047 group name to "None".
22048 (GetFileSecurity_Name): New global var, the name of the function
22049 to call for GetFileSecurity.
22050 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
22051 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
22052 (get_file_security, get_security_descriptor_owner)
22053 (get_security_descriptor_group, is_valid_sid)
22054 (get_file_security_desc, get_rid, get_name_and_id)
22055 (get_file_owner_and_group): New functions.
22056 (stat): Use get_file_security_desc and get_file_owner_and_group to
22057 report the owner and primary group of each file. Don't ignore the
22058 high 32 bits of file's size, now that st_size is 64-bit wide.
22059 Fix test when to get true file attributes.
22060 (init_user_info): Use get_rid instead of equivalent inline code.
22061 (fstat): Don't ignore the high 32 bits of file's size.
22062
22063 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
22064
22065 * image.c (png_load): Use correct bit-depth for setting background
22066 color.
22067
22068 2008-05-08 Eli Zaretskii <eliz@gnu.org>
22069
22070 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
22071 epa-hook.elc.
22072
22073 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
22074
22075 * font.c (Ffont_match_p): Don't use `iff' in docstring.
22076
22077 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
22078
22079 * macfns.c (Fx_create_frame): Make a copy of frame parameters
22080 because the original parameters are in pure storage now.
22081 (mac_window): Remove unused params. Update callers.
22082
22083 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
22084
22085 * lread.c (substitute_object_recurse): Use lower-level primitives.
22086 Don't signal errors when traversing sub-char-tables.
22087 Don't loop over all the possible characters when traversing char-tables.
22088
22089 * print.c (print_preprocess): Add sub-char-tables to the print-table,
22090 just like we do in print.c.
22091
22092 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
22093
22094 * minibuf.c (Ftry_completion): Remove code left over from when we used
22095 scmp instead of Fcompare_strings.
22096
22097 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
22098
22099 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
22100
22101 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22102
22103 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
22104 Create bitmap context in native byte order.
22105
22106 * macterm.c (XDrawLine)
22107 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
22108 context in native byte order.
22109
22110 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22111
22112 * config.in: Regenerate.
22113
22114 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
22115 New definitions for Image I/O support.
22116 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
22117 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
22118 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22119 (mac_data_provider_release_data, image_load_image_io)
22120 [USE_MAC_IMAGE_IO]: New functions.
22121 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
22122 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
22123 (init_image_func_pointer) [MAC_OSX]: Remove function.
22124 (image_load_quartz2d) [MAC_OSX]: Check availability of
22125 CGImageCreateWithPNGDataProvider at compile time.
22126 Use lowercase `false' for boolean constant.
22127 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
22128 Use image_load_image_io.
22129 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
22130 Don't check MyCGImageCreateWithPNGDataProvider.
22131 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
22132 Don't call init_image_func_pointer.
22133
22134 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
22135
22136 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
22137 Make variable non-static.
22138 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
22139 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22140
22141 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
22142 (RED_FROM_ULONG): Mask off higher bits.
22143 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
22144
22145 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
22146 Include AvailabilityMacros.h.
22147 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
22148 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
22149
22150 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
22151
22152 * chartab.c (Fset_char_table_range): If range is t, really set all
22153 chars to that value.
22154
22155 2008-05-03 Eli Zaretskii <eliz@gnu.org>
22156
22157 * dired.c (Ffile_attributes): Don't allow the device number become
22158 negative.
22159
22160 2008-05-02 Daiki Ueno <ueno@unixuser.org>
22161
22162 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
22163
22164 2008-05-02 Juri Linkov <juri@jurta.org>
22165
22166 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
22167 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
22168 DEFAULT argument as a list of default values in docstrings.
22169
22170 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
22171
22172 * puresize.h (BASE_PURESIZE): Increase to 1210000.
22173
22174 2008-05-01 Martin Rudalics <rudalics@gmx.at>
22175
22176 * dispnew.c (change_frame_size_1): Preserve small windows when
22177 shrinking frames by calling set_window_height|width with third
22178 arg 2.
22179
22180 * window.h (struct window): Replace field too_small_ok by field
22181 resize_proportionally.
22182
22183 * window.c (make_window): Initialize resize_proportionally.
22184 (enlarge_window): Temporarily set resize_proportionally to make
22185 sure that shrink_windows does scale the window proportionally.
22186 (shrink_windows): When window has resize_proportionally set try
22187 to shrink it proportionally by stealing from other windows.
22188 (struct saved_window, Fset_window_configuration)
22189 (compare_window_configurations): Handle resize_proportionally.
22190 (WINDOW_TOTAL_SIZE): New macro.
22191 (window_min_size, shrink_windows, size_window): Use it.
22192 (check_min_window_sizes): Remove. Invalid values of
22193 window-min-height|width are handled by window_min_size_2 now.
22194 (size_window, Fsplit_window, enlarge_window)
22195 (adjust_window_trailing_edge, grow_mini_window): Don't call
22196 check_min_window_sizes.
22197 (window_min_size_2, window_min_size_1, window_min_size):
22198 New argument safe_p for retrieving "safe" minimum sizes.
22199 (Fdisplay_buffer, Fsplit_window, enlarge_window)
22200 (adjust_window_trailing_edge, grow_mini_window):
22201 Adjust arguments of window_min_size... functions.
22202 (shrink_windows): Argument min_size removed. New argument
22203 safe_p allows shrinking windows to their safe minimum sizes.
22204 Calculate minimum size and decide whether a window shall be
22205 deleted for each window individually.
22206 (size_window): When nodelete_p equals 2, tell shrink_windows to
22207 delete windows only if their new minimum size is no more safe.
22208 (shrink_window_lowest_first): Call window_min_size_1 to make
22209 sure to preserve modeline of bottom-most window when resizing
22210 the minibuffer.
22211 (Fset_window_configuration, Fcurrent_window_configuration)
22212 (compare_window_configurations): Do not handle
22213 window-min-height|width any more.
22214 (syms_of_window): Clarify window-min-height|width doc-strings.
22215
22216 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
22217
22218 * dired.c (file_name_completion): Fix up the encoding/decoding issue
22219 some more. Copy some of the code from Ftry_completions.
22220 Remove special case code that dates back to initial revision when the
22221 slash was only added when necessary and that can't trigger nowadays.
22222
22223 2008-04-27 Kenichi Handa <handa@m17n.org>
22224
22225 * font.c (font_prop_validate): Signal `error' instead of `font'.
22226
22227 2008-04-29 Jason Rumney <jasonr@gnu.org>
22228
22229 * w32fns.c (Fw32_battery_status): New defun.
22230 (syms_of_w32fns): Defsubr it.
22231
22232 2008-04-28 Andreas Schwab <schwab@suse.de>
22233
22234 * dired.c (file_name_completion): Fix another mixing of encoded
22235 and decoded names.
22236
22237 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
22238
22239 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
22240
22241 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
22242
22243 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
22244
22245 2008-04-27 Andreas Schwab <schwab@suse.de>
22246
22247 * dired.c (file_name_completion): Fix inappropriate mixing of
22248 encoded and decoded names.
22249
22250 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22251
22252 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22253
22254 2008-04-26 Eli Zaretskii <eliz@gnu.org>
22255
22256 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22257 2008-03-31, it's not needed anymore with `struct stat' definition
22258 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22259 for the same reasons.
22260
22261 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22262
22263 * m/sparc.h: Additional redefinitions for GNU/Linux.
22264
22265 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22266
22267 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22268 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22269 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22270 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22271 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22272 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22273 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22274 Likewise.
22275
22276 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22277 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22278 (mac_ax_number_of_characters): Add externs.
22279 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22280 [USE_MAC_TSM]: Likewise.
22281 (mac_handle_text_input_event) [MAC_OSX]:
22282 Handle kEventTextInputOffsetToPos for no active input area case.
22283 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22284 (mac_handle_document_access_event)
22285 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22286 (install_application_handler) [MAC_OSX]: Register handlers for
22287 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22288 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22289 Register mac_handle_document_access_event.
22290
22291 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22292 Make functions non-static.
22293
22294 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22295
22296 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22297 (read_file_name_completion_ignore_case, insert_default_directory)
22298 (Qdefault_directory): Move to minibuffer.el.
22299 (Fread_file_name): Call the new `read-file-name' instead.
22300
22301 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22302
22303 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22304 Make function non-static.
22305 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22306 Remove function.
22307 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22308 Move to mactoolbox.c.
22309 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22310
22311 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22312 (mac_rect_make): New macro.
22313
22314 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22315 instead of float.
22316 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22317 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22318 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22319 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22320 CGRectMake.
22321 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22322 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22323 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22324 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22325 instead of WindowRef in argument type.
22326 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22327 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22328 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22329 instead of DISPLAY. All uses changed.
22330 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22331 (x_calc_absolute_position): Simplify so as not to use
22332 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22333
22334 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22335 instead of WindowRef in argument type.
22336 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22337 [TARGET_API_MAC_CARBON]: Remove externs.
22338 (create_apple_event, mac_event_parameters_to_lisp)
22339 [TARGET_API_MAC_CARBON]: Add externs.
22340
22341 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22342 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22343 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22344 is clicked.
22345 (x_activate_menubar): Remove extern for saved_menu_event_location.
22346 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22347 Move from mac.c.
22348
22349 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22350
22351 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22352 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22353
22354 2008-04-23 Jason Rumney <jasonr@gnu.org>
22355
22356 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22357 attributes only for local files.
22358
22359 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22360 default to Qlocal.
22361
22362 2008-04-22 Juri Linkov <juri@jurta.org>
22363
22364 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22365 read-buffer-to-switch instead of using the letter "B".
22366
22367 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22368
22369 * fileio.c (Qdefault_directory): New variable.
22370 (Fread_file_name): Use it to pass `dir' to the completion functions.
22371
22372 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
22373
22374 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22375
22376 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22377
22378 * keyboard.c (Vpre_help_message): Remove.
22379 (show_help_echo): Remove default C code.
22380
22381 * dired.c (directory_files_internal, file_name_completion):
22382 Only call ENCODE_FILE if the string is indeed decoded.
22383
22384 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22385
22386 * Makefile.in (TOOLKIT_DEFINES): Remove.
22387 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22388
22389 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22390
22391 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22392 (mactoolbox.o): New target.
22393
22394 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22395 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22396
22397 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22398 Use mac_set_frame_window_background instead of XSetWindowBackground.
22399 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22400 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22401 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22402 instead of SetWindowTitleWithCFString.
22403 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22404 Move function to mactoolbox.c.
22405 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22406 Use mac_set_window_modified instead of SetWindowModified.
22407 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22408 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22409 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22410 FrontNonFloatingWindow. Use mac_activate_window instead of
22411 ActivateWindow. Use mac_active_non_floating_window instead of
22412 ActiveNonFloatingWindow.
22413 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22414 Use mac_show_hourglass and mac_hide_hourglass.
22415 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22416 instead of GetGlobalMouse.
22417 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22418 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22419 Use mac_bring_window_to_front instead of BringToFront.
22420 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22421 mactoolbox.c.
22422 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22423 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22424 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22425 mactoolbox.c.
22426
22427 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22428 (XtPointer): Move typedef from macmenu.c.
22429 (enum button_type): Move enum from macmenu.c.
22430 (widget_value): Move typedef from macmenu.c.
22431 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22432 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22433 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22434 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22435 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22436 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22437 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22438 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22439 (Selection): Move typedef from macselect.c.
22440 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22441 macterm.c.
22442 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22443 (mac_is_window_collapsed, mac_bring_window_to_front)
22444 (mac_send_window_behind, mac_hide_window, mac_show_window)
22445 (mac_collapse_window, mac_front_non_floating_window)
22446 (mac_active_non_floating_window, mac_activate_window)
22447 (mac_move_window_structure, mac_move_window, mac_size_window)
22448 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22449
22450 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22451 (enum mac_menu_kind): Move enum to mactoolbox.c.
22452 (min_menu_id): Move variable to mactoolbox.c.
22453 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22454 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22455 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22456 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22457 [TARGET_API_MAC_CARBON]: Likewise.
22458 (XtPointer): Move typedef to macgui.h.
22459 (enum button_type): Move enum to macgui.h.
22460 (widget_value): Move typedef to macgui.h.
22461 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22462 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22463 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22464 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22465 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22466 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22467 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22468 (popup_activated_flag): Make variable non-static.
22469 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22470 (add_menu_item, fill_menu, dispose_menus):
22471 Move functions to mactoolbox.c.
22472 (restore_show_help_function, menu_target_item_handler)
22473 (install_menu_target_item_handler, mac_handle_dialog_event)
22474 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22475 [TARGET_API_MAC_CARBON]: Likewise.
22476 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22477 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22478 (find_and_call_menu_selection, name_is_separator): Make function
22479 non-static.
22480 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22481 to mactoolbox.c.
22482 (set_frame_menubar): Don't call install_menu_quit_handler.
22483 (menu_item_selection): New variable.
22484 (mac_menu_show): Use create_and_show_popup_menu.
22485 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22486 selection but set variable menu_item_selection. All uses changed.
22487 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22488 Call install_menu_quit_handler. Move to mactoolbox.c.
22489
22490 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22491 (Selection): Move typedef to macgui.h.
22492 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22493 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22494 Make variables non-static.
22495 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22496 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22497 Make functions non-static.
22498 (Vmac_service_selection) [MAC_OSX]: Likewise.
22499 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22500 (mac_valid_selection_target_p, mac_clear_selection)
22501 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22502 (mac_put_selection_value, mac_selection_has_target_p)
22503 (mac_get_selection_value, mac_get_selection_target_list)
22504 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22505 Move functions to mactoolbox.c.
22506 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22507 Likewise.
22508 (copy_scrap_flavor_data, mac_handle_service_event)
22509 (install_service_handler) [MAC_OSX]: Likewise.
22510 (syms_of_macselect) <Vmac_dnd_known_types>:
22511 Use mac_dnd_default_known_types.
22512
22513 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22514 Move to mactoolbox.c.
22515 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22516 (Fx_selection_owner_p): Add EXFUN.
22517 (install_window_handler, remove_window_handler, XSetWindowBackground):
22518 Remove externs.
22519 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22520 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22521 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22522 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22523 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22524 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22525 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22526 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22527 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22528 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22529 (mac_valid_selection_target_p, mac_clear_selection)
22530 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22531 (mac_put_selection_value, mac_selection_has_target_p)
22532 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22533 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22534 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22535 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22536 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22537 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22538 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22539 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22540 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22541
22542 * mactoolbox.c: New file.
22543
22544 2008-04-18 Jason Rumney <jasonr@gnu.org>
22545
22546 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22547
22548 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22549
22550 * character.c (Fmultibyte_char_to_unibyte):
22551 Return latin1 chars unchanged.
22552
22553 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22554 relocated if it points to `name'.
22555
22556 2008-04-17 Kenichi Handa <handa@m17n.org>
22557
22558 * data.c (Faset): Allow setting a multibyte character in an
22559 ASCII-only unibyte string.
22560
22561 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22562
22563 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22564
22565 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22566 done in config.h.
22567
22568 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
22569
22570 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22571 (Fchar_direction): Add usage in the docstring.
22572
22573 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
22574
22575 * keyboard.c (read_key_sequence): Remove always-true checks.
22576
22577 2008-04-14 Jason Rumney <jasonr@gnu.org>
22578
22579 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22580 compatibility struct, for better underline positioning.
22581
22582 2008-04-13 David Hansen <david.hansen@gmx.net>
22583
22584 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22585 string.
22586
22587 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22588
22589 * m/hp800.h (XUINT, XSET): Remove.
22590
22591 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
22592
22593 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22594 previous change.
22595
22596 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22597
22598 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22599 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22600
22601 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22602
22603 * keymap.h (map_keymap_canonical): Declare.
22604 * xmenu.c (single_keymap_panes): Use it.
22605
22606 2008-04-11 Glenn Morris <rgm@gnu.org>
22607
22608 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22609 set the target's value to that of the alias.
22610
22611 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22612
22613 * term.c (set_tty_color_mode): Left over typo.
22614
22615 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
22616
22617 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22618 only after check for file name handler functions. Signal, when
22619 native functionality is not supported.
22620 (syms_of_fileio): Declare it unconditionally.
22621
22622 2008-04-10 Jason Rumney <jasonr@gnu.org>
22623
22624 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22625 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22626
22627 * w32.c (logon_network_drive): Also logon to remote drives that
22628 are mapped to drive letters.
22629
22630 2008-04-10 Glenn Morris <rgm@gnu.org>
22631
22632 * xdisp.c (truncate-partial-width-windows): Doc fix.
22633
22634 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22635
22636 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22637 Move functions to minibuffer.el.
22638 (syms_of_fileio): Don't declare them.
22639
22640 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22641
22642 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22643 (syms_of_minibuf): Remove its initialization.
22644
22645 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22646
22647 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22648
22649 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22650
22651 2008-04-09 Jason Rumney <jasonr@gnu.org>
22652
22653 * makefile.w32-in (distclean): Delete makefile too.
22654 (maintainer-clean): New target.
22655
22656 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22657
22658 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22659 for new font backend and composite cases.
22660
22661 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22662
22663 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22664 Most of the code moved to run_timers.
22665 (do_pending_atimers): Call run_timers.
22666 (run_timers): New function.
22667
22668 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22669 run atimers.
22670
22671 * process.c (wait_reading_process_output): The same as above.
22672
22673 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22674
22675 * minibuf.c (last_exact_completion): Remove variable.
22676 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22677 (complete_and_exit_1, complete_and_exit_2)
22678 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22679 (Fdisplay_completion_list, display_completion_list_1)
22680 (Fminibuffer_completion_help, Fself_insert_and_exit)
22681 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22682 minibuffer.el.
22683 (syms_of_minibuf): Remove corresponding initializations.
22684
22685 * keyboard.c (Qdeactivate_mark): New var.
22686 (command_loop_1): Use it to call `deactivate-mark'.
22687 (syms_of_keyboard): Initialize it.
22688
22689 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22690 to another frame.
22691 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22692 Don't call set_tty_color_mode.
22693 (store_frame_param): Reset previous_frame rather than call
22694 set_tty_color_mode.
22695 * term.c (set_tty_color_mode): Rewrite.
22696 * dispextern.h (set_tty_color_mode): New type.
22697 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22698
22699 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22700
22701 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22702 for generic chars, which do not exist any more in emacs-unicode.
22703
22704 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22705
22706 * coding.c (detect_coding_emacs_mule)
22707 (Ffind_operation_coding_system): Fix typo.
22708
22709 2008-04-08 Jason Rumney <jasonr@gnu.org>
22710
22711 * w32uniscribe.c (SNAME): Extract only symbol name.
22712
22713 * w32font.h (struct w32_metric_cache): New struct.
22714 (w32font_info): Use it.
22715 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22716 (CACHE_BLOCKSIZE): New constants.
22717
22718 * w32font.c (Qja, Qko, Qzh): New symbols.
22719 (syms_of_w32font): Initialise them.
22720 (font_matches_spec): Use them to filter by language.
22721 (recompute_cached_metrics): Remove function.
22722 (compute_metrics, clear_cached_metrics): New functions.
22723 (w32font_encode_char): Use them to manage metric cache.
22724 (w32font_text_extents): Cache metrics for all glyphs on demand.
22725 Delay converting glyph indices to WORD until needed.
22726 (w32font_open_internal): Initialize metric cache to empty.
22727 (registry_to_w32_charset): Charset should always be a symbol.
22728 (fill_in_logfont, list_all_matching_fonts): Family should
22729 always be a symbol.
22730
22731 2008-04-06 Jason Rumney <jasonr@gnu.org>
22732
22733 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22734 Give up if glyph indices not supported. Use uniscribe obtained
22735 ABC widths for individual metrics. Map glyph clusters back to
22736 characters using fClusterStart flag. Return number of glyphs
22737 produced, not chars processed.
22738 (uniscribe_shape): Map char at FROM to current glyph.
22739
22740 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22741
22742 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22743 Use SetMenuItemHierarchicalMenu.
22744
22745 2008-04-05 Jason Rumney <jasonr@gnu.org>
22746
22747 * image.c (pbm_load): Allow color values up to 65535.
22748 Throw an error if max_color_idx is outside the supported range.
22749 Report an error when image size is invalid.
22750 Read two bytes at a time when raw images have max_color_idx above 255.
22751
22752 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22753
22754 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22755 append "CCL: Quitted" when the CCL program is quitted.
22756 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22757
22758 * ccl.h (struct ccl_program): New member quit_silently.
22759
22760 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22761
22762 * search.c (compile_pattern_1): Treat non-nil and non-string of
22763 search-spaces-regexp as nil.
22764
22765 * minibuf.c (Fassoc_string): Tweak docstring.
22766
22767 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22768
22769 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22770 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22771 2008-03-14 to force inode be positive.
22772
22773 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22774 _S_* ones, since we now use our own sys/stat.h.
22775 (stat, fstat): Don't mangle the inode number.
22776 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22777
22778 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22779
22780 * frame.h (struct frame): Give one more bit to `visible' since we use
22781 values larger than 1 to indicate obscured frames on ttys.
22782
22783 * keymap.c (Qkeymap_canonicalize): New var.
22784 (Fmap_keymap_internal): New fun.
22785 (describe_map): Use keymap-canonicalize.
22786
22787 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22788 (Fundo_boundary): Set them.
22789 (syms_of_undo): Initialize them.
22790 (record_point): Use them instead of last_point_position*.
22791 (last_undo_buffer): Change type.
22792
22793 2008-04-04 Jason Rumney <jasonr@gnu.org>
22794
22795 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22796 (recompute_cached_metrics): Don't set ascent and descent per char.
22797
22798 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22799 (uniscribe_check_otf): Add GC protection before consing.
22800 Rearrange loop for counting features.
22801
22802 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22803
22804 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22805 buffer with byte-size of source buffer.
22806
22807 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22808
22809 * callint.c (Fcall_interactively): Handle temporary region even
22810 when shift-select-mode is off.
22811
22812 2008-04-03 Jason Rumney <jasonr@gnu.org>
22813
22814 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22815
22816 2008-04-03 Kenichi Handa <handa@m17n.org>
22817
22818 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22819 (CATEGORY_MASK_UTF_16): Likewise.
22820 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22821 binary file.
22822 (detect_coding): Add null-byte detection for a binary file.
22823 (detect_coding_system): Likewise.
22824
22825 2008-04-03 Jason Rumney <jasonr@gnu.org>
22826
22827 * w32uniscribe.c: New file.
22828
22829 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22830
22831 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22832
22833 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22834 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22835 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22836 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22837 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22838 (Qphonetic): New symbols.
22839 (syms_of_w32font): Initialize them.
22840 (font_supported_scripts): Use them.
22841 (w32font_list_family): List all charsets.
22842 (w32font_text_extents, recompute_cached_metrics): Fix metric
22843 calculations.
22844 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22845 Give opentype fonts their own format.
22846 (font_matches_spec): New arguments backend and logfont.
22847 Handle :otf spec for uniscribe backend.
22848 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22849 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22850
22851 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22852 font backend.
22853 (globals_of_w32fns): Initialize uniscribe font backend.
22854
22855 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22856 dependencies.
22857 (w32uniscribe.$(O)): New file to build.
22858 (FONT_OBJ): Include w32uniscribe.$(O).
22859 (LIBS): Add uniscribe libraries.
22860
22861 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22862
22863 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22864
22865 * callint.c (Vshift_select_mode): New var.
22866 (Finteractive): Document new ^ spec.
22867 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22868 is present.
22869
22870 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22871 (command_loop_1): Avoid running the direct display versions of
22872 forward-char and backward-char if shift-selection may occur.
22873 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22874 shift-translation takes place.
22875
22876 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22877 avoid clobbering by define-minor-mode.
22878
22879 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22880 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22881
22882 * syntax.c (Fforward_word): Add ^ interactive spec.
22883
22884 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22885 (Fscroll_right): Add ^ interactive spec.
22886
22887 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22888
22889 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22890
22891 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22892
22893 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22894
22895 2008-03-31 Juri Linkov <juri@jurta.org>
22896
22897 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22898
22899 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22900
22901 * gtkutil.c (xg_set_geometry): Fix indentation.
22902 (xg_resize_outer_widget): Remove.
22903 (x_wm_size_hint_off): Fix indentation.
22904 (xg_frame_set_char_size): Call flush_and_sync after
22905 gtk_window_resize.
22906 (x_wm_set_size_hint): Pass NULL as geometry window to
22907 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22908 Add menu bar and tool bar height to base height.
22909 (xg_update_frame_menubar, free_frame_menubar)
22910 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22911 (update_frame_tool_bar, free_frame_tool_bar):
22912 Change xg_resize_outer_widget to xg_frame_set_char_size.
22913
22914 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22915
22916 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22917 (Fdbus_call_method): New parameter TIMEOUT.
22918 (dbus-send-signal): Optimize UNGCPRO call.
22919
22920 2008-03-29 Juri Linkov <juri@jurta.org>
22921
22922 * window.c (Fdisplay_buffer): Move call to
22923 Vsplit_window_preferred_function out of conditions that check
22924 if window is eligible for vertical splitting.
22925 When Vsplit_window_preferred_function is non-nil, call it and use
22926 its non-nil return value as window. Otherwise, continue doing
22927 vertical splitting using Fsplit_window with arg horflag=nil.
22928 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22929 default value from `split-window' to nil.
22930
22931 2008-03-29 Juri Linkov <juri@jurta.org>
22932
22933 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22934 for interactive code letters 'b' and 'B'.
22935
22936 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22937
22938 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22939 multibyte string.
22940
22941 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22942
22943 * keyboard.c (pending_funcalls): New var.
22944 (timer_check): Run it.
22945 (syms_of_keyboard): Initialize it.
22946 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22947 (Vdelete_terminal_functions): New vars.
22948 (syms_of_terminal): Initialize them.
22949 (Fdelete_terminal): Run delete-terminal-functions.
22950 * xdisp.c (safe_eval): Rewrite.
22951 (safe_call2): New fun.
22952 * frame.c (Qdelete_frame_functions): New var.
22953 (syms_of_frame): Initialize it.
22954 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22955 * lisp.h (safe_call2, pending_funcalls): Declare.
22956
22957 2008-03-28 Andreas Schwab <schwab@suse.de>
22958
22959 * indent.c (Fmove_to_column): Move declaration before statements.
22960
22961 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22962
22963 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22964 (struct frame): Use bit fields for boolean vars.
22965
22966 * process.c (server_accept_connection): Simplify naming.
22967 (emacs_get_tty_pgrp): Use SDATA.
22968
22969 * coding.c (decode_coding_object): Fix last change.
22970
22971 2008-03-27 Jason Rumney <jasonr@gnu.org>
22972
22973 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22974
22975 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22976
22977 * charset.c (Fdefine_charset_internal): Change the way of
22978 registering charsets in Vcharset_order_list.
22979 (syms_of_charset): Make the charset `eight-bit' supplementary.
22980
22981 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22982
22983 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22984 operations, to avoid having the difference between pointers
22985 overflow.
22986
22987 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22988
22989 * indent.c (check_display_width): New fun.
22990 (scan_for_column): Use it.
22991
22992 * data.c (syms_of_data): Mark most-positive-fixnum and
22993 most-negative-fixnum as constants.
22994
22995 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22996
22997 * indent.c (scan_for_column): Extract from current_column_1.
22998 Merge with the same code from Fmove_to_column.
22999 (current_column_1, Fmove_to_column): Use it.
23000
23001 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
23002
23003 * keymap.c (map_keymap_internal): New fun.
23004 (map_keymap): Use it.
23005 (Fmap_keymap_internal): New fun.
23006 (Fmap_keymap): Remove left-out test from before make_save_value.
23007
23008 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
23009
23010 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
23011 Use XCAR/XCDR.
23012
23013 * process.h (struct Lisp_Process): Remove filter_multibyte.
23014 * process.c (QCfilter_multibyte): Remove.
23015 (setup_process_coding_systems): Don't use filter_multibyte.
23016 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
23017 (read_process_output): Don't adjust multibyteness to filter_multibyte.
23018 (Fset_process_filter_multibyte): Change the coding-system to
23019 approximate the previous behavior.
23020 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
23021 coding-system.
23022
23023 * coding.c (decode_coding_object): When not decoding into a buffer,
23024 obey the coding system's preference of (uni|multi)byte.
23025
23026 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
23027
23028 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
23029 every char is changed and has a different byte-length.
23030 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
23031 Fix int -> EMACS_INT.
23032
23033 2008-03-23 David Hansen <david.hansen@gmx.net>
23034
23035 * dbusbind.c (xd_read_message): Remove extra copying of message
23036 strings. Check for NULL `interface' or `member'.
23037
23038 2008-03-22 Eli Zaretskii <eliz@gnu.org>
23039
23040 * w32.c (readdir): If FindFirstFile/FindNextFile return in
23041 cFileName a file name that includes `?' characters, use the 8+3
23042 alias in cAlternateFileName instead.
23043
23044 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
23045
23046 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
23047
23048 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23049
23050 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
23051 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
23052 work on current_buffer only instead (that was already the case
23053 for some of the code anyway).
23054 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
23055 (temp_set_point, temp_set_point_both): Use EMACS_INT.
23056 (SET_PT, SET_PT_BOTH): Adjust.
23057 * intervals.h (set_point, temp_set_point, set_point_both)
23058 (temp_set_point_both): Remove redundant declarations.
23059
23060 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23061
23062 * fileio.c (Finsert_file_contents):
23063 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
23064 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
23065 when buffer != current_buffer anyway.
23066
23067 2008-03-20 Andreas Schwab <schwab@suse.de>
23068
23069 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
23070 as default.
23071
23072 2008-03-19 Jason Rumney <jasonr@gnu.org>
23073
23074 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
23075 (syms_of_w32fns): Initialize them.
23076 (HOURGLASS_ID): New constant.
23077 (x_window_to_frame): Don't check hourglass_window.
23078 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
23079 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
23080 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
23081 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
23082 Only change the cursor if hourglass is not active.
23083 (Fx_create_frame): Initialize frame's current_cursor.
23084 (hourglass_atimer): Remove.
23085 (hourglass_started): New function.
23086 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
23087 (show_hourglass): Adapt to w32, changing argument to frame.
23088
23089 * w32term.h (struct w32_output): Remove hourglass_window.
23090 Add current_cursor.
23091
23092 * eval.c (call_debugger, Fsignal):
23093 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
23094 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
23095 (Fexecute_extended_command, cancel_hourglass_unwind):
23096 * minibuf.c (read_minibuf):
23097 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
23098
23099 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
23100
23101 * window.c (run_funs): New fun.
23102 (run_window_configuration_change_hook): Use it to run the buffer-local
23103 and the global part of the hook.
23104
23105 * xdisp.c (format_mode_line_unwind_data): Add window argument.
23106 (unwind_format_mode_line): Restore selected window.
23107 (x_consider_frame_title, Fformat_mode_line): Set selected window.
23108
23109 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
23110
23111 * editfns.c (Fchar_equal): Check they are valid characters.
23112
23113 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
23114
23115 2008-03-17 Andreas Schwab <schwab@suse.de>
23116
23117 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
23118 against a charset.
23119
23120 * lisp.h (Fbuffer_list): Declare.
23121
23122 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
23123
23124 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
23125 handlebox_widget is != 0.
23126
23127 2008-03-16 Juri Linkov <juri@jurta.org>
23128
23129 * callint.c (Fcall_interactively): For interactive code letters
23130 'b' and 'B' put the buffer list into the list of default "future"
23131 values of the minibuffer.
23132
23133 2008-03-16 Andreas Schwab <schwab@suse.de>
23134
23135 * keyboard.c (read_key_sequence): Fix downcasing of letters with
23136 modifiers.
23137
23138 * regex.c (re_match_2_internal): Correct matching of a charset
23139 against latin-1 characters.
23140
23141 2008-03-16 Kenichi Handa <handa@m17n.org>
23142
23143 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
23144 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
23145 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
23146 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
23147 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
23148 CHAR_STRING_ADVANCE.
23149 (produce_chars): Fix for the case that the source and the
23150 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
23151 instead of CHAR_STRING_ADVANCE.
23152 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
23153 STRING_CHAR_ADVANCE.
23154
23155 2008-03-15 Andreas Schwab <schwab@suse.de>
23156
23157 * regex.c (re_match_2_internal): Correct matching of eight bit
23158 characters in unibyte strings.
23159
23160 2008-03-15 Martin Rudalics <rudalics@gmx.at>
23161
23162 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
23163 at end of range when it coincides with the end of the buffer.
23164
23165 2008-03-14 Eli Zaretskii <eliz@gnu.org>
23166
23167 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
23168
23169 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
23170
23171 2008-03-14 Jason Rumney <jasonr@gnu.org>
23172
23173 * editfns.c (initial_tz): New variable.
23174 (syms_of_editfns): Initialize it.
23175 (Fset_time_zone_rule): Set it when first called.
23176 Use it when TZSTRING is nil.
23177
23178 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
23179 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
23180 (monitor_from_point_fn, get_monitor_info_fn): New globals.
23181 (globals_of_w32fns): Initialize them.
23182 (compute_tip_xy): Use them to position tooltips.
23183
23184 2008-03-14 Glenn Morris <rgm@gnu.org>
23185
23186 * emacs.c (main): Revert previous change.
23187 (standard_args): Revert -internal-script back to -scriptload,
23188 and remove the long-option form.
23189
23190 2008-03-13 Glenn Morris <rgm@gnu.org>
23191
23192 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
23193 Remove option -enable-font-backend.
23194
23195 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
23196
23197 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
23198
23199 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
23200
23201 * xterm.c (x_connection_closed): For GTK: If this is the last
23202 terminal just exit without closing the display.
23203
23204 2008-03-11 Jason Rumney <jasonr@gnu.org>
23205
23206 * w32font.c (w32font_full_name): Use floor to round.
23207
23208 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23209
23210 * sound.c (alsa_configure): Declare vol at beginning of block.
23211
23212 * fontset.c (Ffontset_info): Remove extra semicolon.
23213
23214 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
23215
23216 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
23217 size of resulting string.
23218
23219 2008-03-10 Jason Rumney <jasonr@gnu.org>
23220
23221 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
23222
23223 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23224
23225 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
23226 Don't pretend as if characters with display property haven't been
23227 consumed for string-replacing-string case.
23228
23229 2008-03-08 Kim F. Storm <storm@cua.dk>
23230
23231 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
23232 (get_next_display_element, next_element_from_string)
23233 (next_element_from_ellipsis, next_element_from_buffer): Use it.
23234
23235 2008-03-08 Andreas Schwab <schwab@suse.de>
23236
23237 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
23238
23239 2008-03-06 Jason Rumney <jasonr@gnu.org>
23240
23241 * w32font.c (w32_registry): Take font_type argument. Use ANSI
23242 when charset not specified. Only translate ANSI to unicode when
23243 font_type is truetype.
23244 (w32font_coverage_ok): New function.
23245 (add_font_entity_to_list): Use it to filter unsuitable fonts.
23246
23247 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
23248
23249 * lread.c (Fread_char): Resolve modifiers.
23250 (Fread_char_exclusive): Likewise.
23251
23252 * character.c (char_resolve_modifier_mask): New function.
23253 (char_string): Use char_resolve_modifier_mask.
23254 (Fchar_resolve_modifiers): New function.
23255 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23256 function.
23257
23258 2008-03-04 Jason Rumney <jasonr@gnu.org>
23259
23260 * makefile.w32-in: Always include w32font.c in the build.
23261 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23262
23263 2008-03-04 Andreas Schwab <schwab@suse.de>
23264
23265 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23266 (versionclean): Likewise.
23267
23268 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
23269
23270 * .cvsignore: Add oo.
23271
23272 2008-03-03 Andreas Schwab <schwab@suse.de>
23273
23274 * coding.c (decode_coding_object): Inhibit gap shrinking while
23275 decoding in place.
23276
23277 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23278
23279 * w32term.c: Remove unused include "gnu.h".
23280 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23281
23282 * gnu.h: Rename to ...
23283 * emacs-icon.h: ... this.
23284 * xterm.c: Use emacs-icon.h instead of gnu.h.
23285 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23286
23287 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
23288
23289 * w32font.c: Include math.h.
23290
23291 2008-03-03 Jason Rumney <jasonr@gnu.org>
23292
23293 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23294 Compute options separately.
23295 (w32font_open_internal): Set glyph_idx before caching metrics.
23296
23297 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23298 Define if system headers don't.
23299 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23300 (w32font_encode_char): Don't declare here.
23301
23302 * w32font.c (Quniscribe, QCformat): New symbols.
23303 (syms_of_w32font): Define them.
23304 (w32font_has_char): Indicate uncertainty.
23305 (w32font_encode_char): Encode as glyph point. Make static.
23306 (recompute_cached_metrics): New function.
23307 (w32font_open_internal): Use it. Set font to use glyph points
23308 initially. Set format based on type of font.
23309 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23310 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23311 on it. Set format based on information available here.
23312 (add_font_entity_to_list): Identify backend based on opentype_only.
23313
23314 2008-03-02 Andreas Schwab <schwab@suse.de>
23315
23316 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23317
23318 * coding.c (decode_coding_big5, produce_chars):
23319 Fix typos in last change.
23320
23321 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23322
23323 * gnu.h: New icon.
23324
23325 2008-03-02 Kenichi Handa <handa@m17n.org>
23326
23327 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23328 `dos', don't decode '\r' if that is the last in the source.
23329 (decode_coding_utf_16, decode_coding_emacs_mule)
23330 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23331 (decode_coding_raw_text, decode_coding_charset): Likewise.
23332 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23333
23334 2008-03-01 Jason Rumney <jasonr@gnu.org>
23335
23336 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23337
23338 2008-03-01 Kim F. Storm <storm@cua.dk>
23339
23340 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23341
23342 2008-03-01 Jason Rumney <jasonr@gnu.org>
23343
23344 * w32font.c (w32font_full_name): New function.
23345 (w32font_open_internal): Use it.
23346
23347 2008-03-01 Kim F. Storm <storm@cua.dk>
23348
23349 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23350
23351 2008-03-01 Jason Rumney <jasonr@gnu.org>
23352
23353 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23354
23355 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23356
23357 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23358 xg_frame_resized when the event is for the edit widget.
23359
23360 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
23361
23362 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23363 set_char_size.
23364 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
23365 operations on widgets here. Just set frame size if needed.
23366 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23367 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23368 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23369 the whole frame.
23370 (xg_create_tool_bar): Move attachment of the tool bar to
23371 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23372 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23373
23374 2008-03-01 Jason Rumney <jasonr@gnu.org>
23375
23376 * w32fns.c (w32_msg_pump): Disable debug code.
23377
23378 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23379
23380 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23381
23382 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23383
23384 * xdisp.c (next_overlay_string): Don't set
23385 overlay_strings_at_end_processed_p if we're currently reading from
23386 a display string.
23387
23388 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23389
23390 * xdisp.c (get_overlay_strings_1): Fix typo.
23391
23392 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23393
23394 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23395
23396 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23397
23398 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23399
23400 * xdisp.c (display_mode_element): Cancel the previous change.
23401 (decode_mode_spec): Likewise.
23402 (handle_auto_composed_prop): Don't make composition if it->string
23403 is a string.
23404
23405 2008-02-27 Kim F. Storm <storm@cua.dk>
23406
23407 * lisp.h (GLYPH): Change type from int to struct with separate char
23408 and face_id members.
23409 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23410 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23411 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23412 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23413 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23414 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23415 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23416 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23417 handle new Lisp glyph code encoding, either an integer or a cons.
23418
23419 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23420 (GLYPH_ALIAS): Delete.
23421 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23422 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23423 (GLYPH_FROM_CHAR): Replace macro by ...
23424 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23425
23426 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23427 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23428 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23429 (GLYPH_INVALID_P): New macro.
23430 (spec_glyph_lookup_face): Update prototype.
23431
23432 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23433 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23434 new glyph code encoding.
23435 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23436 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23437
23438 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23439 Adapt to new glyph type and new glyph code encoding.
23440
23441 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23442
23443 * indent.c (current_column, current_column_1, Fmove_to_column)
23444 (compute_motion): Adapt to new glyph code encoding.
23445
23446 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23447
23448 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
23449
23450 * process.c (wait_reading_process_output): Check for window
23451 changes caused by timers.
23452 Suggested by Johan Bockgård.
23453
23454 2008-02-27 Glenn Morris <rgm@gnu.org>
23455
23456 * emacs.c (USAGE1): Add `--disable-font-backend'.
23457
23458 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23459
23460 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23461 is made to the buffer.
23462
23463 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23464
23465 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23466 (face_at_string_position):
23467 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23468 (face_at_string_position):
23469 * xdisp.c (display_string, next_overlay_change):
23470 * buffer.h (overlays_at):
23471 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23472 Update callers.
23473
23474 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
23475
23476 * editfns.c (Fformat): Doc fix.
23477
23478 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
23479
23480 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23481 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23482 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23483
23484 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23485
23486 * buffer.c (Fbuffer_swap_text): New function.
23487 (syms_of_buffer): Defsubr it.
23488
23489 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
23490
23491 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23492
23493 2008-02-25 Jason Rumney <jasonr@gnu.org>
23494
23495 * w32font.c (w32font_draw): Draw one character at a time when padding.
23496
23497 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23498
23499 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23500 Handle a nil arg. Use run_window_configuration_change_hook.
23501 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23502 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23503 Use run_window_configuration_change_hook.
23504
23505 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23506
23507 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23508 1-pixel width.
23509
23510 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23511
23512 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23513 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23514 if the glyph in the font is zero pixel with.
23515
23516 * dispextern.h (struct glyph_string): New member padding_p.
23517
23518 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23519
23520 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23521
23522 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23523
23524 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23525
23526 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23527
23528 2008-02-25 Jason Rumney <jasonr@gnu.org>
23529
23530 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23531
23532 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23533
23534 Allow fine-grained image-cache flushing.
23535 * dispextern.h (struct image): Add `dependencies' field.
23536 (clear_image_caches): Change arg to Lisp_Object.
23537 * image.c (make_image): Initialize `dependencies' field.
23538 (clear_image_cache): Change arg to allow fine-grained flushing.
23539 Perform the flush even if image-cache-eviction-delay is nil.
23540 (clear_image_caches): Change arg to Lisp_Object.
23541 (Fclear_image_cache): Expand meaning of the argument.
23542 (mark_image): Mark `dependencies' field.
23543 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23544 (lface_hash): Use XHASH rather than XFASTINT.
23545 (face_at_buffer_position): Fix int -> EMACS_INT position.
23546 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23547 (select_frame_for_redisplay): Remove code duplication.
23548 (redisplay_internal): Adapt arg to call to clear_image_caches.
23549
23550 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23551
23552 * s/vms4-0.h:
23553 * s/vms4-2.h:
23554 * s/vms4-4.h:
23555 * s/vms5-5.h: Remove, unused.
23556
23557 * s/irix5-2.h:
23558 * s/irix6-0.h:
23559 * s/riscos5.h:
23560 * s/mach-bsd4-3.h:
23561 * m/mips4.h: Remove files for obsolete systems.
23562
23563 * Makefile.in:
23564 * filelock.c:
23565 * unexmips.c:
23566 * m/hp9000s300.h:
23567 * m/iris4d.h:
23568 * s/aix3-1.h:
23569 * s/hpux.h:
23570 * s/msdos.h:
23571 * s/usg5-0.h:
23572 * s/usg5-2-2.h:
23573 * s/usg5-2.h:
23574 * s/usg5-3.h: Remove references to obsolete variables.
23575
23576 * s/irix5-0.h: Remove, move all the contents ...
23577 * s/irix6-5.h: ... here. Simplify.
23578 * config.in: Regenerate.
23579
23580 2008-02-24 Jason Rumney <jasonr@gnu.org>
23581
23582 * w32term.c (x_draw_glyph_string_background): Clear the background
23583 manually when cleartype is in use.
23584 (x_draw_glyph_string_foreground): Draw text transparently when
23585 cleartype is in use.
23586
23587 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23588 a font into it unless we have to.
23589
23590 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23591
23592 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23593 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23594
23595 2008-02-18 Jason Rumney <jasonr@gnu.org>
23596
23597 * w32fns.c (Fw32_shell_execute): Encode parameters.
23598
23599 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23600
23601 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23602
23603 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
23604
23605 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23606
23607 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23608
23609 * xterm.c (x_set_offset): Don't change the gravity if
23610 CHANGE_GRAVITY is -1.
23611
23612 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
23613
23614 * fileio.c (auto_save_error_occurred): New var.
23615 (auto_save_error): Set it.
23616 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23617 error occurred.
23618
23619 2008-02-23 Eli Zaretskii <eliz@gnu.org>
23620
23621 * w32.c (globals_of_w32): Add initializations for
23622 g_b_init_get_sid_sub_authority and
23623 g_b_init_get_sid_sub_authority_count.
23624
23625 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23626
23627 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23628 (font_parse_xlfd): Use them for sanity check.
23629 (Finternal_set_font_style_table): Make sure the table is bijective.
23630
23631 Consolidate the image_cache to the terminal struct.
23632 * termhooks.h (P_): Remove redundant def.
23633 (struct terminal): New field `image_cache'.
23634 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23635 of FRAME_X_IMAGE_CACHE.
23636 * xterm.h (struct x_display_info): Remove image_cache field.
23637 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23638 * w32term.h (struct w32_display_info): Remove image_cache field.
23639 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23640 * macterm.h (struct mac_display_info): Remove image_cache field.
23641 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23642 * xterm.c (x_term_init):
23643 * w32term.c (w32_term_init):
23644 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23645 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23646 Remove declarations.
23647 (clear_image_caches, mark_image_cache): New declarations.
23648 * xfaces.c (clear_face_cache):
23649 * xdisp.c (redisplay_internal): Use clear_image_caches.
23650 * image.c (clear_image_cache): Don't check that a frame is on
23651 a window-system before checking if it shares the same cache.
23652 (clear_image_caches): New function.
23653 (Fclear_image_cache): Use it.
23654 (mark_image): Move from allo.c.
23655 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23656 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23657 (mark_object): Don't call mark_image_cache for frames.
23658 (mark_terminals): Call mark_image_cache.
23659
23660 * lisp.h (Fdelete_terminal): Declare.
23661
23662 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23663 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23664 wrong_type_argument.
23665
23666 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23667
23668 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23669 malayalam.el, and tamil.el. Add sinhala.el.
23670
23671 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23672
23673 * xterm.c (x_connection_closed): Consolidate identical tests.
23674 (x_delete_terminal): Don't crash if called via x_connection_closed.
23675
23676 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23677
23678 * xdisp.c (decode_mode_spec): New arg string.
23679 (display_mode_element): Adjust for the above change.
23680
23681 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23682
23683 * callint.c (Fcall_interactively): Use AREF.
23684
23685 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23686
23687 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23688
23689 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23690
23691 * xfns.c (Fx_show_tip): Set string to " " if empty.
23692
23693 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23694
23695 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23696 with Qt.
23697
23698 2008-02-17 Kenichi Handa <handa@m17n.org>
23699
23700 * ftfont.c (ftfont_shape): Return Lispy number.
23701
23702 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23703 for GCs.
23704 (Finternal_set_font_selection_order): Call font_update_sort_order
23705 only when enable_font_backend is set.
23706 (realize_x_face): Set face->font_info to that of default face only
23707 when enable_font_backend is set.
23708
23709 * xdisp.c (handle_composition_prop): Set it->c to the fist
23710 character of the composed region.
23711 (fill_composite_glyph_string): Set base_face->font_info to
23712 s->font_info. Get a face for ascii from base_face->ascii_face.
23713 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23714 with a face already decided.
23715 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23716 non-negative.
23717 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23718 call font_prepare_composition unconditionally.
23719
23720 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23721
23722 * xterm.h (struct x_display_info): New member font.
23723
23724 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23725 (x_set_mouse_face_gc, x_new_font): Likewise.
23726 (x_term_init): Setup display_info->font.
23727 (x_delete_terminal): Free display_info->font.
23728
23729 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23730
23731 * ftxfont.c (ftxfont_default_fid): Delete it.
23732 (ftxfont_open): Set xfont->fid to 0.
23733 (ftxfont_end_for_frame): Clear data specific to the frame and the
23734 font-driver.
23735
23736 * xftfont.c (xftfont_default_fid): Delete it.
23737 (xftfont_open): Set xfont->fid to 0.
23738
23739 * fontset.c (FONTSET_OBJLIST): New macro.
23740 (fontset_find_font): Update font-object list of the fontset.
23741 (free_realized_fontset): New function.
23742 (free_face_fontset): Call free_realized_fontset.
23743 (Ffont_info): Call font_close_object only when enable_font_backend
23744 is set.
23745
23746 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23747 [HAVE_NTGUI]: Include w32term.h.
23748 [MAC_OS]: Include macterm.ch.
23749 (font_otf_ValueRecord): Use make_number.
23750 (font_finish_cache): Fix handling of reference count.
23751 (font_clear_cache): Update num_fonts.
23752 (font_open_entity): Update smallest_char_width and
23753 smallest_font_height of the frame.
23754 (font_close_object): Update num_fonts.
23755 (Fclear_font_cache): Fix finding the target cache data.
23756
23757 2008-02-16 Glenn Morris <rgm@gnu.org>
23758
23759 * fontset.c (Finternal_char_font): Fix compilation warning.
23760
23761 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23762
23763 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23764 instead of char arrays. Enlarge the size of array passed to
23765 get_token_information.
23766
23767 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23768 warnings.
23769
23770 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23771
23772 * .gdbinit: Don't set `args', it breaks gdb --args.
23773
23774 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23775
23776 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23777 within a narrowed buffer.
23778
23779 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23780
23781 * coding.c (decode_coding_object, encode_coding_object):
23782 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23783
23784 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23785
23786 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23787 hardcoding 1.
23788 (detect_coding_system):
23789 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23790 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23791 * insdel.c (insert_from_gap):
23792 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23793 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23794 (string_to_multibyte):
23795 * character.c (chars_in_text, multibyte_chars_in_text):
23796 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23797
23798 * character.h (FETCH_STRING_CHAR_ADVANCE)
23799 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23800 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23801 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23802
23803 * casefiddle.c (casify_region): Only call after-change and composition
23804 functions on the part of the region that was changed.
23805
23806 * keyboard.c (read_avail_input):
23807 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23808
23809 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23810
23811 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23812 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23813
23814 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23815
23816 * w32menu.c (push_submenu_start, push_submenu_end)
23817 (push_left_right_boundary, push_menu_pane, push_menu_item):
23818 * keyboard.c (read_key_sequence): Don't pass args with side effects
23819 to AREF, it fails when compiling with -DENABLE_CHECKING.
23820
23821 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23822
23823 * Makefile.in (${lispsource}international/charprop.el):
23824 Delete this target.
23825
23826 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23827 emacs-unicode-2.
23828
23829 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23830
23831 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23832
23833 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23834
23835 * frame.c (Qnoelisp): New symbol.
23836 (syms_of_frame): Initialize it.
23837 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23838 harmless Elisp code, from a strong `force' from x_connection_closed.
23839 * frame.h (Qnoelisp): Declare.
23840 * xterm.c (x_connection_closed): Pass `noelisp'.
23841
23842 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23843 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23844 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23845 rather than `int' for the type of `type'.
23846
23847 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23848
23849 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23850
23851 * Makefile.in (GNUC): Remove support for gcc-1.x.
23852
23853 2008-02-10 Richard Stallman <rms@gnu.org>
23854
23855 * lisp.h (ASET): Use AREF, not ASLOT.
23856
23857 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23858
23859 * lisp.h (ASET): Check bounds.
23860
23861 2008-02-10 Glenn Morris <rgm@gnu.org>
23862
23863 * buffer.c (mode-name): Doc fix.
23864
23865 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23866
23867 * Makefile.in:
23868 * emacs.c:
23869 * gmalloc.c:
23870 * keyboard.c:
23871 * lisp.h:
23872 * m/ibm370aix.h:
23873 * process.c:
23874 * regex.c:
23875 * s/hpux.h:
23876 * sysdep.c:
23877 * sysselect.h:
23878 * systty.h:
23879 * unexec.c:
23880 * w32term.c:
23881 * xsmfns.c:
23882 * xterm.c: Remove code that deals with obsolete variables.
23883
23884 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23885
23886 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23887 nothing else needs it anymore.
23888
23889 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23890
23891 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23892 instead of unibyte_char_to_multibyte.
23893
23894 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23895
23896 * s/gnu-linux.h: Remove commented out code.
23897
23898 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23899
23900 * Makefile.in: Update what RMS says about using autoconf.
23901 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23902 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23903 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23904 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23905
23906 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23907
23908 * keymap.c (Fkey_description): Move side effect outside of macro call.
23909
23910 * xfaces.c (Finternal_make_lisp_face):
23911 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23912
23913 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23914 (syms_of_fontset): Use ASET.
23915
23916 * fns.c (concat): Move side effect outside of macro call.
23917 (hash_clear): Use ASET.
23918
23919 2008-02-08 Richard Stallman <rms@gnu.org>
23920
23921 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23922 If FORCE, and frame has a surrogate minibuffer for another frame,
23923 delete the other frame first.
23924
23925 2008-02-07 Timo Savola <timo.savola@iki.fi>
23926
23927 * xterm.c (x_detect_focus_change): Handle embed client message.
23928 (handle_one_xevent): Ditto.
23929 (handle_one_xevent): If embedded and we get a button press/release,
23930 request focus.
23931 (xembed_set_info, xembed_send_message): New functions.
23932 (x_make_frame_visible): Call xembed_set_info if embedded.
23933 (x_make_frame_invisible): Call xembed_set_info if embedded.
23934 (x_term_init): Initialize Xatom_XEMBED.
23935 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23936 (x_iconify_frame): Ditto.
23937
23938 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23939 (enum xembed_info, enum xembed_message, enum xembed_focus)
23940 (enum xembed_modifier, enum xembed_accelerator): New.
23941 (xembed_set_info, xembed_send_message): Declare.
23942 (FRAME_X_EMBEDDED_P): New.
23943
23944 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23945 gtk_plug_new.
23946
23947 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23948 window ID of a frame.
23949 (x_window): Reparent frame if embedded.
23950 (Fx_create_frame): Don't set border width if embedded.
23951
23952 * emacs.c (USAGE3): Add --parent-id.
23953 (standard_args): Ditto.
23954
23955 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23956
23957 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23958
23959 2008-02-07 Jim Meyering <meyering@redhat.com>
23960
23961 Use "do...while (0)", not "if (1)...else" in macro definitions.
23962 The latter provokes a warning from gcc about the empty else, when
23963 followed by ";". Also, without that trailing semicolon, it would
23964 silently swallow up any following statement.
23965 * syntax.h (SETUP_SYNTAX_TABLE)
23966 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23967 * buffer.h (DECODE_POSITION): Likewise.
23968 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23969 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23970 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23971 (FETCH_CHAR_ADVANCE): Likewise.
23972 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23973
23974 2008-02-07 Jim Meyering <meyering@redhat.com>
23975
23976 * lread.c [lint]: Don't include <sys/inode.h>.
23977
23978 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23979
23980 * xselect.c (x_handle_dnd_message):
23981 * xmenu.c (digest_single_submenu, xmenu_show):
23982 * xdisp.c (with_echo_area_buffer_unwind_data)
23983 (format_mode_line_unwind_data, unwind_format_mode_line)
23984 (display_menu_bar):
23985 * eval.c (Ffetch_bytecode):
23986 * doc.c (store_function_docstring):
23987 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23988 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23989 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23990
23991 2008-02-07 Kenichi Handa <handa@m17n.org>
23992
23993 * ftxfont.c (ftxfont_open): Don't set
23994 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23995
23996 * ftfont.c (ftfont_open): Fix previous change.
23997
23998 2008-02-06 Jason Rumney <jasonr@gnu.org>
23999
24000 * w32font.c (w32font_text_extents): Fill in lbearing metric.
24001 Use cached metrics for ASCII characters.
24002 (w32font_open_internal): Don't set font's owning_frame.
24003 Cache metrics for ASCII characters.
24004
24005 * w32font.h (struct w32font_info): Add ascii_metrics.
24006 Remove owning_frame.
24007
24008 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
24009
24010 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
24011 to negative value.
24012
24013 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
24014
24015 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
24016
24017 * charset.c (syms_of_charset): Set QCtest and Qeq.
24018
24019 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
24020
24021 * process.c (Fstart_process):
24022 * callproc.c (Fcall_process): Handle the case where
24023 Funhandled_file_name_directory returns nil.
24024
24025 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
24026 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
24027 * font.c (check_gstring): Use them and AREF to access the vector before
24028 we know it's really a gstring.
24029 (Ffont_shape_text): Fix typo.
24030 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
24031
24032 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
24033 Declare.
24034
24035 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
24036
24037 2008-02-05 Jason Rumney <jasonr@gnu.org>
24038
24039 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
24040 Set smallest_font_height and smallest_char_width in display info.
24041
24042 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
24043
24044 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
24045
24046 2008-02-05 Miles Bader <miles@gnu.org>
24047
24048 * xfaces.c (get_lface_attributes, merge_named_face)
24049 (lookup_named_face, lookup_derived_face, realize_named_face):
24050 Revert 2008-02-01 change by cyd@stupidchicken.com.
24051
24052 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
24053
24054 * fontset.c (Ffontset_info): Handle the case of inhibitting the
24055 fallback fonts.
24056 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
24057
24058 2008-02-04 Jason Rumney <jasonr@gnu.org>
24059
24060 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
24061 set full_name.
24062 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
24063
24064 2008-02-03 Jason Rumney <jasonr@gnu.org>
24065
24066 * makefile.w32-in (OBJ1): Include font.o here.
24067 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
24068
24069 2008-02-02 Jason Rumney <jasonr@gnu.org>
24070
24071 * makefile.w32-in (temacs): Bump EMHEAP to 21.
24072
24073 2008-02-01 Jason Rumney <jasonr@gnu.org>
24074
24075 * s/cygwin.h: Define VIRT_ADDR_VARIES.
24076
24077 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
24078
24079 2008-02-01 Andreas Schwab <schwab@suse.de>
24080
24081 * Makefile.in (shortlisp, lisp): Update for rename of
24082 ../lisp/language/myanmar.el.
24083
24084 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
24085
24086 * xfaces.c (get_lface_attributes): Delete function.
24087 (merge_named_face, lookup_named_face, lookup_derived_face)
24088 (realize_named_face): Call lface_from_face_name directly, and use
24089 the fact that merge_face_vectors does not alter its FROM argument.
24090
24091 2008-02-01 Jason Rumney <jasonr@gnu.org>
24092
24093 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
24094 input in the default locale. Handle non-Unicode multibyte input.
24095
24096 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24097
24098 * fontset.c (reorder_font_vector): Exclude nil elements from the
24099 font group. Don't try multiple fonts.
24100 (fontset_font): Adjust for the above change.
24101 (Finternal_char_font): Return nil if the found font doesn't
24102 contain the character ch.
24103
24104 * Makefile.in (lisp, shortlisp): Add cham.el.
24105
24106 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24107
24108 * font.h (FONTP): Make it return 1 also for a font-object.
24109
24110 * .gdbinit (xfontset): New function.
24111
24112 * font.c (font_find_for_lface): Check if the character C is
24113 supported or not only for the first font.
24114
24115 * fontset.c (reorder_font_vector): Fix typo.
24116 (fontset_find_font): Don't add a font-spec specifying a script.
24117 Use 0 (not Qt) for the indication of empty font-group. Change the
24118 format of RFONT-DEF. Return Qt if no font in the font-group
24119 support the character.
24120 (fontset_font): Adjust for the above change. If no font was
24121 found the character, remember that.
24122 (face_for_char): Adjust for the change of RFONT-DEF.
24123 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
24124 no font for the target.
24125 (Finternal_char_font): Adjust for the change of RFONT-DEF.
24126
24127 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24128
24129 * font.c (font_load_for_face): Handle the case that the font in
24130 face->lface is a string.
24131
24132 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24133
24134 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
24135
24136 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24137
24138 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
24139 Fix previous change. If the frame is not on a window system,
24140 signal an error.
24141
24142 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24143
24144 * coding.c (decode_coding_object, encode_coding_object):
24145 Adjust marker positions after conversion.
24146
24147 * lisp.h (struct Lisp_Marker): New member need_adjustment.
24148
24149 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24150
24151 * font.c (font_find_for_lface): Fix the handling of the return
24152 value of font_has_char.
24153 (Ffont_shape_text): Fix previous change.
24154
24155 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
24156 (fontset_ref_and_range): Delete it.
24157 (fontset_find_font): Call char_table_ref_and_range instead of
24158 FONTSET_REF_AND_RANGE.
24159 (make_fontset): Don't setup font groups of Latin here.
24160 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
24161 (new_fontset_from_font): Make the specified font the default for
24162 all Latin characters.
24163
24164 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24165
24166 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
24167 is on a window system before accessing the fontset of the frame.
24168
24169 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24170
24171 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
24172
24173 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
24174 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
24175
24176 * font.c (Ffont_shape_text): If the font driver doesn't have a
24177 shaper function, make zero-width glyphs to have at least one-pixel
24178 width. Fix setting of `to' field of glyphs.
24179
24180 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24181
24182 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
24183 glyphs.
24184
24185 * font.h (struct font_driver): Improve docstring of member `shape'.
24186
24187 2008-02-01 Kenichi Handa <handa@m17n.org>
24188
24189 * composite.c (syms_of_composite): Fix docstring of
24190 auto-composition-function.
24191
24192 * font.h (LGLYPH_SIZE): New macro.
24193
24194 * font.c (Ffont_fill_gstring): Stop filling when a character not
24195 supported by the font is found.
24196 (Ffont_shape_text): When a shape callback function returns nil,
24197 try at most two more times with larger gstring.
24198 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
24199
24200 * xdisp.c (handle_auto_composed_prop): Change the argument to
24201 auto-composition-function.
24202
24203 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
24204 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
24205 Lispy glyph and store it in the lgstring.
24206
24207 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
24208
24209 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
24210
24211 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24212
24213 * font.c (Ffont_shape_text): Avoid unnecessary composition.
24214
24215 * fontset.c (Vfont_encoding_charset_alist): New variable.
24216 (syms_of_fontset): DEFVAR it.
24217 (reorder_font_vector, fontset_find_font): Optimize for the case of
24218 no need of reordering.
24219 (face_for_char): Map the charset property by
24220 Vfont_encoding_charset_alist.
24221
24222 2008-02-01 Jason Rumney <jasonr@gnu.org>
24223
24224 * w32font.c (logfonts_match): Don't check adstyle here.
24225 (font_matches_spec): Check here against physical font instead.
24226 (add_font_entity_to_list): Avoid some substitutions.
24227
24228 * font.c (font_parse_fcname): Default weight and slant to normal.
24229 (font_score): Prefer normal fonts if weight or slant unspecified.
24230 (font_score) [WINDOWSNT]: Scale weight difference down to closer
24231 match freetype scores.
24232
24233 2008-02-01 Jason Rumney <jasonr@gnu.org>
24234
24235 * w32font.c (w32font_text_extents): Don't use the frame stored in the
24236 font, as it may have been deleted.
24237 (w32_enumfont_pattern_entity): Map generic family to adstyle using
24238 most common hyphenless variation.
24239 (logfonts_match): Check generic family.
24240 (font_matches_spec): Don't check generic family here.
24241 (fill_in_logfont): Set generic family based on adstyle.
24242
24243 * w32font.h (w32font_get_cache): Update declaration.
24244
24245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24246
24247 * ftfont.c (ftfont_get_cache): Adjust the argument type.
24248
24249 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24250 If none of the new drivers are available, call font_update_drivers
24251 with the old drivers.
24252
24253 * w32font.c (w32font_get_cache): Adjust the argument type.
24254
24255 * xfont.c (xfont_get_cache): Adjust the argument type.
24256
24257 * font.h (struct font_driver): Change argument type of get_cache.
24258
24259 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24260
24261 * font.c (Ffont_get): Fix arguments to Fassoc.
24262 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24263 (font_clear_cache): New function.
24264 (font_list_entities, font_matching_entity): Use font_get_cache.
24265 (font_update_drivers): Call font_clear_cache when finishing a driver.
24266
24267 * fontset.c (fontset_find_font): Fix previous change.
24268
24269 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24270
24271 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24272 dpyinfo->font_table.
24273 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24274 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24275
24276 * font.c (font_at): Handle the case that the arg C is negative.
24277 Handle the unibyte case.
24278 (Ffont_at): Call font_at with the arg C -1.
24279
24280 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24281 the position here, and call font_at with the arg C -1.
24282 Don't check the range of the existing composition at the point.
24283
24284 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24285
24286 * fontset.c (fontset_add): New args charset_id and family.
24287 Change caller.
24288 (load_font_get_repertory, fontset_find_font): Assume that
24289 font_spec is always a font-spec object.
24290 (Fset_fontset_font): Always store a font-spec object in a fontset.
24291
24292 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24293 instead of get_property_and_range.
24294
24295 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24296
24297 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24298 (xftfont_open): Don't keep locking face.
24299 (xftfont_close): Don't unlock face.
24300 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24301
24302 * fontset.c (fontset_find_font): Don't prefer a font of
24303 supplementary charset.
24304
24305 2008-02-01 Kenichi Handa <handa@m17n.org>
24306
24307 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24308 script, langsys_tag to langsys, new member script.
24309 (OTF_TAG_STR): Terminate by '\0'.
24310 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
24311 listing to the script specified in that property. Fix arg to
24312 OTF_check_features.
24313
24314 2008-02-01 Jason Rumney <jasonr@gnu.org>
24315
24316 * w32font.h: New file.
24317
24318 * w32font.c: Include it.
24319 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24320 (w32font_open): Set owning_frame.
24321 (w32font_text_extents): Use owning_frame.
24322 (struct font_callback_data): Add opentype_only field.
24323 (add_font_entity_to_list): Use it to filter fonts.
24324 Don't check against full name.
24325 (w32font_list_internal): New function.
24326 (w32font_list): Use it.
24327 (w32font_match_internal): New function.
24328 (w32font_match): Use it.
24329 (w32font_open_internal): New function.
24330 (w32font_open): Use it.
24331 (w32font_get_cache, w32font_close, w32font_has_char)
24332 (w32font_encode_char, w32font_text_extents, w32font_draw):
24333 Make non-static.
24334
24335 * makefile.w32-in (w32font.o): Depend on w32font.h.
24336
24337 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24338
24339 * charset.c (Fdefine_charset_internal): Record a supplementary
24340 charset at the tail of Vcharset_order_list.
24341
24342 * font.c (Ffont_shape_text): Fix the return value.
24343
24344 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24345
24346 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24347
24348 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24349
24350 * ftfont.c (struct OpenTypeSpec): New struct.
24351 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24352 (ftfont_get_open_type_spec): New function.
24353 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24354
24355 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24356
24357 2008-02-01 Jason Rumney <jasonr@gnu.org>
24358
24359 * w32font.c (add_font_entity_to_list): Compare only the beginning
24360 of full name.
24361
24362 2008-02-01 Kenichi Handa <handa@m17n.org>
24363
24364 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24365 Never return HANDLED_RECOMPUTE_PROPS.
24366
24367 2008-02-01 Kenichi Handa <handa@m17n.org>
24368
24369 * font.c (font_gstring_produce): Delete it.
24370
24371 * composite.h (COMPOSITION_METHOD):
24372 Handle COMPOSITION_WITH_GLYPH_STRING.
24373
24374 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24375
24376 * xfont.c (Qx): Delete.
24377 (syms_of_xfont): Don't initialize Qx.
24378
24379 * composite.h (enum composition_method):
24380 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24381
24382 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24383
24384 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24385 (choose_face_font): Accept new form of font-spec.
24386
24387 * frame.h (font_driver_list): Declare it unconditionally.
24388 (struct frame): Define members font_driver_list and font_data_list
24389 unconditionally.
24390
24391 * fontset.c: Include "font.h" unconditionally.
24392 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24393 (Fset_fontset_font): Accept a font-spec object.
24394
24395 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24396 PIXEL_SIZE part a wild card.
24397
24398 * dispextern.h (struct glyph_string): Define members clip and
24399 num_clips unconditionally.
24400 (struct face): Define members font_info and extra unconditionally.
24401
24402 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24403 ftfont_info only when HAVE_LIBOTF is defined.
24404
24405 2008-02-01 Andreas Schwab <schwab@suse.de>
24406
24407 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24408 and end.
24409
24410 2008-02-01 Jason Rumney <jasonr@gnu.org>
24411
24412 * w32font.c (w32font_driver): Add new fields.
24413
24414 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24415
24416 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24417 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24418 (LIBES): Add @M17N_FLT_CFLAGS@.
24419
24420 * composite.c (compose_text): Don't treat the new style
24421 composition specially.
24422
24423 * emacs.c (main): Call syms_of_font unconditionally.
24424
24425 * font.h (FONT_ENTITY_NOT_LOADABLE)
24426 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24427 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24428 (struct font_driver): New member shape.
24429 (font_registry_charsets): Extern it.
24430 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24431 (font_otf_capability, font_drive_otf): Delete their externs.
24432
24433 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24434 (font_charset_alist, font_registry_charsets): Move from xfont.c
24435 and rename.
24436 (font_prop_validate_otf): New function.
24437 (font_property_table): Register it for QCotf.
24438 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24439 (font_drive_otf): Delete.
24440 (font_prepare_composition): New arg F. Adjust for the change of
24441 lispy gstring.
24442 (font_find_for_lface): New arg C.
24443 (font_load_for_face): Adjust for the change of font_find_for_lface.
24444 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24445 lispy gstring.
24446 (Ffont_shape_text): New function.
24447 (Fopen_font): If the font size is not given, use 12-pixel.
24448 (Ffont_at): New arg STRING.
24449 (syms_of_font): Initialize font_charset_alist.
24450 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24451 conditionally.
24452
24453 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24454 fonts of the same font-spec. Change the format of RFONT-DEF.
24455 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24456 Adjust for the change of RFONT-DEF.
24457 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24458
24459 * ftfont.h: New file.
24460
24461 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24462 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24463 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24464 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24465 font_otf_capability and font_drive_otf, set ftfont_shape.
24466 (ftfont_list): Adjust for the change of :otf property value.
24467 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24468 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24469 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24470 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24471 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24472 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24473
24474 * w32term.c (x_draw_composite_glyph_string_foreground):
24475 Adjust for the change of lispy gstring.
24476
24477 * xdisp.c (handle_composition_prop): Adjust for the change of
24478 lispy gstring. Call a function for auto-composition with the
24479 third arg it->window.
24480 (fill_composite_glyph_string): Adjust for the change of lispy string.
24481 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24482
24483 * xfaces.c (set_font_frame_param): Adjust for the change of
24484 font_find_for_lface.
24485
24486 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24487 (xfont_registry_charsets): Likewise. Change caller.
24488 (syms_of_xfont): Don't handle x_font_charset_alist.
24489
24490 * xftfont.c: Include "ftfont.h".
24491 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24492 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24493 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24494 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24495 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24496 Set xftfont_driver.shape to xftfont_shape.
24497
24498 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24499 the change of lispy gstring.
24500
24501 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24502
24503 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24504
24505 2008-02-01 Jason Rumney <jasonr@gnu.org>
24506
24507 * w32font.c (w32font_draw): Fill background manually.
24508
24509 2008-02-01 Jason Rumney <jasonr@gnu.org>
24510
24511 * font.c (Qfontp): Remove unused symbol.
24512 (QCantialias): New symbol.
24513 (syms_of_font): Define it.
24514 (font_property_table): Set a validator for QCantialias.
24515
24516 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24517 Define if not already.
24518 (QCfamily): Share with xfaces.c.
24519 (Qstandard, Qsubpixel, Qnatural): New symbols.
24520 (syms_of_w32font): Define them. Don't define QCfamily here.
24521 (w32_antialias_type, lispy_antialias_type): New functions.
24522 (w32_enumfont_pattern_entity): New arg requested_font.
24523 Set antialias parameter if non-default was requested.
24524 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24525
24526 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24527
24528 * lread.c (read1): Undo the previous change.
24529
24530 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24531
24532 * frame.c (Fdelete_frame): Call font_update_drivers only when
24533 USE_FONT_BACKEND is defined.
24534
24535 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24536
24537 * font.h (struct font_bitmap): New member bits_per_pixel.
24538 (struct font_driver): New members start_for_frame and end_for_frame.
24539 (struct font_data_list): New struct.
24540 (font_put_frame_data, font_get_frame_data): Extern them.
24541
24542 * frame.h (struct frame): New member font_data_list.
24543
24544 * font.c (font_update_drivers): Call driver->start_for_frame and
24545 driver->end_for_frame at proper timings.
24546 (font_put_frame_data, font_get_frame_data): New functions.
24547 (Ffont_spec): Add usage in the docstring.
24548
24549 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24550 (Fdelete_frame): Call font_update_drivers.
24551
24552 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24553 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24554 (xftfont_get_xft_draw): New function.
24555 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24556 (xftfont_end_for_frame): New function.
24557 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24558
24559 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24560 Change argument. Cache GCs in the per-frame data.
24561 (struct ftxfont_frame_data): New struct.
24562 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24563 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24564 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24565 (ftxfont_end_for_frame): New function.
24566 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24567
24568 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24569
24570 2008-02-01 Kenichi Handa <handa@m17n.org>
24571
24572 * xselect.c (Vselection_coding_system)
24573 (Vnext_selection_coding_system): Delete them.
24574 (syms_of_xselect): Don't declare selection-coding-system and
24575 next-selection-coding-system. They are declared in select.el.
24576
24577 2008-02-01 Jason Rumney <jasonr@gnu.org>
24578
24579 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24580
24581 * w32fns.c: Include imm.h.
24582 (get_composition_string_fn, get_ime_context_fn): New optional
24583 system functions.
24584 (globals_of_w32fns): Load them from imm32.dll.
24585 (ignore_ime_char): New flag.
24586 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24587 WM_IME_ENDCOMPOSITION messages.
24588
24589 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24590 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24591
24592 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24593
24594 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24595 (READCHAR_REPORT_MULTIBYTE): New macro.
24596 (readchar): New 2nd arg MULTIBYTE.
24597 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24598 Make symbol's name multibyte according to the multibyteness of the
24599 source.
24600
24601 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24602
24603 * xfaces.c (face_for_overlay_string): Call lookup_face with
24604 correct arguments (fix of synching with the trunk).
24605
24606 2008-02-01 Kenichi Handa <handa@m17n.org>
24607
24608 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24609 (font_prop_validate_non_neg, font_prop_validate_spacing):
24610 Delete argument prop_index.
24611 (font_property_table): Change arguments to validater. Change Callers.
24612 (font_lispy_object): Delete.
24613 (font_at): Use font_find_object instead fo font_lispy_object.
24614
24615 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24616
24617 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24618 and file names.
24619
24620 2008-02-01 Jason Rumney <jasonr@gnu.org>
24621
24622 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24623 (font_matches_spec): Remove debug output.
24624 (add_font_entity_to_list): Avoid using substituted fonts.
24625
24626 2008-02-01 Jason Rumney <jasonr@gnu.org>
24627
24628 * doc.c (Fsnarf_documentation):
24629 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24630
24631 2008-02-01 Miles Bader <miles@gnu.org>
24632
24633 * dispextern.h (struct glyph_row): Only define "clip" field if
24634 HAVE_WINDOW_SYSTEM is defined.
24635
24636 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24637
24638 Fix up multi-tty merge.
24639
24640 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24641 and indentation.
24642
24643 * xfaces.c (free_realized_face, clear_face_gcs):
24644 Include font_done_for_face in the input_blocked section, just in case.
24645
24646 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24647 (get_char_face_and_encoding): Undo last change and remove the *other*
24648 duplicate definition (i.e. keep the one that's better scoped and that
24649 includes code for the font-backend).
24650
24651 * terminal.c (create_terminal): Default keyboard_coding to
24652 `no-conversion' and terminal_coding to `undecided'.
24653
24654 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24655
24656 * fontset.c (free_realized_fontsets): Check that the table entry does
24657 contain a fontset before trying to compare it to `base'.
24658
24659 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24660 syms_of_charset, and syms_of_coding earlier because init_window_once
24661 now needs Vcoding_system_hash_table to be setup.
24662
24663 * coding.h (default_buffer_file_coding): Remove.
24664
24665 * coding.c (default_buffer_file_coding): Remove.
24666 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24667 than ->symbol, and use the terminal-local coding system.
24668 (syms_of_coding): Don't setup the coding-systems that are not
24669 terminal-local.
24670 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24671
24672 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24673 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24674
24675 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24676 in chartab.c and were re-added here by mistake.
24677 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24678
24679 * doc.c (Fsnarf_documentation):
24680 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24681 src to etc.
24682
24683 * ChangeLog.10: Add mistakenly removed entry.
24684
24685 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24686
24687 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24688
24689 2008-02-01 Miles Bader <miles@gnu.org>
24690
24691 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24692 Add extra args to FACE_FOR_CHAR.
24693
24694 2008-02-01 Kenichi Handa <handa@m17n.org>
24695
24696 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24697 in sequence.
24698
24699 * chartab.c (map_sub_char_table, map_char_table): If the range
24700 contains just one character, call the function with that character
24701 even if the depth is not 3.
24702
24703 2008-02-01 Jason Rumney <jasonr@gnu.org>
24704
24705 * w32font.c (w32font_text_extents): Calculate metrics for the
24706 whole string.
24707
24708 2008-02-01 Jason Rumney <jasonr@gnu.org>
24709
24710 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24711
24712 2008-02-01 Jason Rumney <jasonr@gnu.org>
24713
24714 * w32term.c (x_set_glyph_string_clipping):
24715 Use get_glyph_string_clip_rects.
24716 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24717 Adjust for the change of struct glyph_string.
24718
24719 * w32font.c (w32font_draw): Do clipping here.
24720
24721 2008-02-01 Kenichi Handa <handa@m17n.org>
24722
24723 * xftfont.c (xftfont_draw): Adjust for the change of struct
24724 glyph_string.
24725
24726 * xterm.c (x_set_glyph_string_clipping):
24727 Use get_glyph_string_clip_rects.
24728 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24729 Adjust for the change of struct glyph_string.
24730
24731 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24732 the resulting clip(s}.
24733 (expose_overlaps): Add arg r. Change callers. Set it to
24734 row->clip temporarily.
24735 (expose_window): Redraw rows overlapping the exposed area.
24736
24737 * dispextern.h (struct glyph_row): New member clip.
24738 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24739 clip_height, new member clip, and num_clips.
24740
24741 2008-02-01 Kenichi Handa <handa@m17n.org>
24742
24743 * data.c (Fchar_or_string_p): Fix docstring.
24744
24745 2008-02-01 Kenichi Handa <handa@m17n.org>
24746
24747 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24748 create a temporary XftDraw object.
24749
24750 2008-02-01 Kenichi Handa <handa@m17n.org>
24751
24752 * font.c (Ffontp): Fix docstring.
24753
24754 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24755 strong evidence of ISO-2022.
24756
24757 2008-02-01 Kenichi Handa <handa@m17n.org>
24758
24759 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24760 SYNTAX_ENTRY_FOLLOW_PARENT.
24761
24762 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24763
24764 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24765 its type.
24766 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24767 Update to the new type of weak_hash_tables and next_weak.
24768
24769 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24770 a plain C pointer to Lisp_Hash_Table.
24771
24772 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24773 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24774 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24775 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24776 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24777 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24778 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24779 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24780 (GC_EQ): Remove since they've been identical to their non-GC_
24781 alter-egos ever since the markbit was eradicated.
24782
24783 * alloc.c:
24784 * buffer.c:
24785 * buffer.h:
24786 * data.c:
24787 * fileio.c:
24788 * filelock.c:
24789 * fns.c:
24790 * frame.h:
24791 * lisp.h:
24792 * macterm.c:
24793 * print.c:
24794 * process.c:
24795 * w32fns.c:
24796 * w32menu.c:
24797 * w32term.c:
24798 * xfns.c:
24799 * xmenu.c:
24800 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24801
24802 2008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * chartab.c (map_sub_char_table): Make it work for the top-level
24805 char-table. Fix handling of parent char-table.
24806 (map_char_table): Adjust for the above change.
24807
24808 2008-02-01 Jason Rumney <jasonr@gnu.org>
24809
24810 * w32font.c (Qgdi): Rename from Qw32.
24811
24812 2008-02-01 Jason Rumney <jasonr@gnu.org>
24813
24814 * w32bdf.c (get_quoted_string): Make function static.
24815
24816 2008-02-01 Kenichi Handa <handa@m17n.org>
24817
24818 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24819 bigger ascent and descent than those of the font, use them as
24820 font's ascent and descent.
24821
24822 2008-02-01 Kenichi Handa <handa@m17n.org>
24823
24824 * Makefile.in (${lispsource}international/charprop.el): Move this
24825 target within "#ifdef HAVE_UNIDATA" and "#endif".
24826
24827 2008-02-01 Kenichi Handa <handa@m17n.org>
24828
24829 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24830 (shortlisp): Add ../lisp/language/tai-viet.el.
24831
24832 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24833
24834 * Makefile.in (${lispsource}international/charprop.el): Depend on
24835 temacs${EXEEXT}.
24836
24837 2008-02-01 Jason Rumney <jasonr@gnu.org>
24838
24839 * w32font.c (w32font_close): Delete the GDI font object.
24840
24841 * w32menu.c: Include character.h.
24842
24843 * w32proc.c: Likewise.
24844
24845 * w32select.c: Likewise.
24846
24847 * makefile.w32-in (w32proc.o): Depend on character.h.
24848
24849 2008-02-01 Jason Rumney <jasonr@gnu.org>
24850
24851 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24852
24853 * w32menu.c (syms_of_w32menu): Likewise.
24854
24855 * w32proc.c (syms_of_ntproc): Likewise.
24856
24857 * w32select.c (syms_of_w32select): Likewise.
24858
24859 * w32term.c (syms_of_w32term): Likewise.
24860
24861 2008-02-01 Jason Rumney <jasonr@gnu.org>
24862
24863 * w32font.c (w32font_draw): Delete brush after using it.
24864
24865 2008-02-01 Jason Rumney <jasonr@gnu.org>
24866
24867 * w32font.c (w32font_open): Don't set font_idx.
24868 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24869 to font settings.
24870 (w32font_draw): Fill background explicitly.
24871
24872 2008-02-01 Jason Rumney <jasonr@gnu.org>
24873
24874 * w32term.c (w32_initialize): Don't call w32font_initialize.
24875
24876 * w32font.c (w32font_info): Remove subranges.
24877 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24878 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24879 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24880 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24881 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24882 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24883 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24884 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24885 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24886 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24887 New symbols.
24888 (font_callback_data): New struct.
24889 (w32font_list, w32font_match): Use it.
24890 (w32font_open): Don't populate subranges.
24891 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24892 (w32font_encode_char): Always return unicode code-point as-is.
24893 (w32font_text_extents): Supply a transformation matrix to
24894 GetGlyphOutline. Never look up by glyph index. Avoid looping
24895 twice. Use unicode version of GetTexExtentPoint32 instead of
24896 glyph index version.
24897 (set_fonts_frame): Remove.
24898 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24899 set frame parameter. Use backward compatible fake foundries.
24900 Save generic family in extra slot under QCfamily. Make width slot
24901 constant. Save QCspacing value. Save list of scripts instead of
24902 binary subranges.
24903 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24904 (add_font_entity_to_list): Use font_callback_data struct.
24905 Filter unwanted fonts.
24906 (add_one_font_entity_to_list): Use font_callback_data struct.
24907 (w32_registry): Default to iso10646_1.
24908 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24909 string font registries. Don't fill in font name if it is a generic
24910 family name, fill family instead. Use spacing, family and script
24911 extra info to fill pitch, family and charset fields.
24912 (list_all_matching_fonts): Use font_callback_data struct.
24913 (unicode_range_for_char): Remove.
24914 (font_supported_scripts): New function.
24915 (w32font_initialize): Remove.
24916 (syms_of_w32font): Update which symbols are defined.
24917
24918 2008-02-01 Jason Rumney <jasonr@gnu.org>
24919
24920 * font.c (font_pixel_size): Reverse assq_no_quit args.
24921
24922 * w32term.h (FONT_WIDTH): Report max width, not average.
24923 (FONT_MAX_WIDTH): Remove.
24924 (FONT_AVG_WIDTH): New macro.
24925
24926 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24927 redefinition of FONT_WIDTH.
24928
24929 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24930 (w32_cache_char_metrics): Use FONT_WIDTH.
24931
24932 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24933
24934 2008-02-01 Jason Rumney <jasonr@gnu.org>
24935
24936 * w32font.c (w32font_open): Make lfHeight negative.
24937
24938 * w32fns.c (x_default_font_parameter): Use new style font name.
24939 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24940
24941 2008-02-01 Jason Rumney <jasonr@gnu.org>
24942
24943 * w32font.c (QCsubranges): New symbol.
24944 (w32font_open, w32font_has_char): Get subranges from subproperty
24945 of extra.
24946 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24947 (syms_of_w32font): Define :subranges symbol.
24948
24949 * font.c (font_put_extra): Expose externally.
24950
24951 * font.h (font_put_extra): Move declaration from font.c.
24952
24953 * font.c (Ffont_get): Use font driver to determine otf capability.
24954 (adjust_anchor): Check if driver defines anchor_point before using.
24955
24956 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24957 (w32font_draw): Use options.
24958 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24959 Fix detection of truetype fonts.
24960 (registry_to_w32_charset): Handle charsets other than iso8859-1
24961 expressed as lisp symbols.
24962 (w32_registry): Express charset as lisp symbol.
24963 (fill_in_logfont): Reverse pixel and point height logic.
24964 Don't set width here. Set quality to default.
24965
24966 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24967 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24968
24969 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24970 Remove redundant loop and allocation.
24971
24972 * makefile.w32-in (font.o, w32font.o): New objects.
24973 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24974 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24975
24976 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24977 STORE_XCHARB a valid l-value.
24978
24979 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24980 calculations for non-Truetype fonts.
24981 (x_draw_glyph_string): Sync with xterm.c.
24982 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24983 Remove redundant code.
24984 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24985
24986 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24987 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24988
24989 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24990 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24991
24992 * w32font.c: New file for w32 font backend.
24993
24994 2008-02-01 Kenichi Handa <handa@m17n.org>
24995
24996 * term.c: Don't include "buffer.h" twice.
24997
24998 2008-02-01 Kenichi Handa <handa@m17n.org>
24999
25000 * character.c (Funibyte_string): New function.
25001 (syms_of_character): Defsubr it.
25002
25003 2008-02-01 Jason Rumney <jasonr@gnu.org>
25004
25005 * w32term.c [USE_FONT_BACKEND]:
25006 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
25007 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
25008 (x_draw_glyph_string, x_draw_glyph_string_foreground)
25009 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
25010 (x_free_frame_resources): Sync with xterm.c.
25011
25012 2008-02-01 Andreas Schwab <schwab@suse.de>
25013
25014 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
25015 char-table size.
25016
25017 2008-02-01 Kenichi Handa <handa@m17n.org>
25018
25019 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
25020
25021 2008-02-01 Kenichi Handa <handa@m17n.org>
25022
25023 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
25024 font_otf_gpos, add font_drive_otf.
25025
25026 * fontset.c (fontset_find_font): Pay attention to font size
25027 specified for a font.
25028 (reorder_font_vector): Check contents of font_def.
25029
25030 * font.c (struct otf_list): Delete it.
25031 (otf_list): Make it a lisp variable.
25032 (otf_open): Use lispy otf_list.
25033 (generate_otf_features): Rename from parse_gsub_gpos_spec.
25034 (check_otf_features): New function.
25035 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
25036 New functions.
25037 (font_drive_otf): New function merging font_otf_gsub and
25038 font_otf_gpos.
25039 (font_open_for_lface): New arg spec. Change argument order.
25040 (font_load_for_face): Adjust for the change of font_open_for_lface.
25041 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
25042 Ffont_otf_gpos.
25043 (syms_of_font): Staticpro otf_list. Delete defsubr of
25044 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
25045
25046 * xfaces.c (set_font_frame_param): Adjust for the change of
25047 font_open_for_lface.
25048
25049 * font.h (font_open_for_lface): Adjust prototype.
25050 (struct font_driver): Delete members otf_gsub and otf_gpos, add
25051 member otf_drive.
25052 (font_otf_gsub, font_otf_gpos): Delete externs.
25053 (font_drive_otf): Extern it.
25054
25055 2008-02-01 Kenichi Handa <handa@m17n.org>
25056
25057 * font.c (font_at): If the window W is not on a window system,
25058 return Qnil.
25059
25060 * coding.c (produce_chars, encode_coding): Don't call
25061 insert_from_gap if no characters to produce.
25062
25063 2008-02-01 Kenichi Handa <handa@m17n.org>
25064
25065 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
25066 Fclear_face_cache.
25067
25068 * xfaces.c (face_for_font): Check also face->font==font->font.font.
25069
25070 2008-02-01 Miles Bader <miles@gnu.org>
25071
25072 * emacs.c (main): Change default value of `enable_font_backend' to 1.
25073 Parse "--disable-font-backend" option.
25074 (standard_args): Add "--disable-font-backend" option.
25075
25076 2008-02-01 Kenichi Handa <handa@m17n.org>
25077
25078 * fontset.c (fontset_find_font): New function.
25079 (fontset_font): Use fontset_find_font.
25080 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
25081 Register the specified font for all Latin characters.
25082 (new_fontset_from_font): Register the specified font for all Latin
25083 characters.
25084 (dump_fontset): For a realized fontset, include the base fontset
25085 name in the returned vector.
25086
25087 2008-02-01 Kenichi Handa <handa@m17n.org>
25088
25089 * character.h (CHAR_STRING): Cast C to unsigned on calling
25090 char_string.
25091
25092 * character.c (char_string): Type of arg C changed to unsigned.
25093 Signal an error if C is an invalid character code.
25094
25095 * editfns.c (general_insert_function, Fchar_to_string):
25096 Use CHARACTERP, not INTEGERP.
25097
25098 2008-02-01 Kenichi Handa <handa@m17n.org>
25099
25100 * character.h (MIN_MULTIBYTE_LEADING_CODE)
25101 (MAX_MULTIBYTE_LEADING_CODE): New macros.
25102
25103 * regex.c (analyse_first): Fix for multibyte characters in "case
25104 charset:" and "case categoryspec:".
25105
25106 2008-02-01 Andreas Schwab <schwab@suse.de>
25107
25108 * Makefile.in (LIBES): Move standard libraries to the end.
25109
25110 2008-02-01 Kenichi Handa <handa@m17n.org>
25111
25112 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
25113 nonzero, don't shrink the buffer nextb.
25114
25115 * buffer.h (struct buffer_text): New member inhibit_shrinking.
25116
25117 * coding.c (coding_alloc_by_making_gap): New arg offset.
25118 (alloc_destination): Call coding_alloc_by_making_gap with the arg
25119 offset.
25120 (decode_coding_iso_2022): Update coding->safe_charsets.
25121 (decode_coding_gap): Temporarily set
25122 current_buffer->text->inhibit_shrinking to 1.
25123
25124 2008-02-01 Kenichi Handa <handa@m17n.org>
25125
25126 * xterm.c (x_draw_composite_glyph_string_foreground):
25127 Fix indexing into elements of s->cmp and s->char2b.
25128
25129 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
25130
25131 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
25132
25133 2008-02-01 Kenichi Handa <handa@m17n.org>
25134
25135 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
25136 target_multibyte instead of multibyte.
25137 (re_match_2_internal): Call bcmp_translate with target_multibyte.
25138 (bcmp_translate): Change the argument name from multibyte to
25139 target_multibyte.
25140
25141 2008-02-01 Kenichi Handa <handa@m17n.org>
25142
25143 These changes are to compile a regexp into a pattern that can be
25144 used both for multibyte and unibyte targets.
25145
25146 * Makefile.in (search.o): Depend on charset.h.
25147
25148 * character.c (multibyte_char_to_unibyte_safe): New function.
25149
25150 * search.c: Include "charset.h".
25151 (compile_pattern_1): Delete argument multibyte. Don't set
25152 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
25153 (compile_pattern): Don't compare cp->buf.target_multibyte.
25154 Compare cp->buf.charset_unibyte.
25155 (compile_pattern): Set cp->buf.target_multibyte.
25156
25157 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
25158
25159 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
25160
25161 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
25162 multibyte. Change callers.
25163 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
25164 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
25165 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
25166 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
25167 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
25168 (regex_compile): Make the compiled pattern usable both for
25169 multibyte and unibyte targets.
25170 (analyse_first): Make the fastmap usable both for multibyte and
25171 unibyte targets.
25172 (TRANSLATE_VIA_MULTIBYTE): Delete.
25173 (re_match_2_internal): Pay attention to the case that the
25174 multibyteness of bufp and target may be different.
25175
25176 2008-02-01 Kenichi Handa <handa@m17n.org>
25177
25178 * xdisp.c (x_produce_glyphs): When a font is not found, make the
25179 empty box occupy at least one column width.
25180
25181 2008-02-01 Miles Bader <miles@gnu.org>
25182
25183 * Makefile.in: Remove redundant HAVE_XFT clause.
25184
25185 2008-02-01 Kenichi Handa <handa@m17n.org>
25186
25187 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
25188
25189 2008-02-01 Kenichi Handa <handa@m17n.org>
25190
25191 * fontset.c (Finternal_char_font): Fix for the case of POSITION
25192 being nil.
25193
25194 2008-02-01 Kenichi Handa <handa@m17n.org>
25195
25196 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
25197
25198 2008-02-01 Kenichi Handa <handa@m17n.org>
25199
25200 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
25201
25202 2008-02-01 Kenichi Handa <handa@m17n.org>
25203
25204 * search.c (simple_search): Fix previous change.
25205
25206 2008-02-01 Kenichi Handa <handa@m17n.org>
25207
25208 * xftfont.c (ftfont_font_format): Extern declaration.
25209
25210 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
25211
25212 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
25213 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
25214
25215 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
25216 (ftfont_font_format): Fix previous change.
25217
25218 * font.h (Ffont_xlfd_name): EXFUN it.
25219
25220 * font.c (font_parse_xlfd): Fix the array size of `f'.
25221 (register_font_driver): Use EQ to compare driver->type.
25222
25223 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
25224 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
25225 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
25226
25227 2008-02-01 Kenichi Handa <handa@m17n.org>
25228
25229 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
25230 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
25231
25232 2008-02-01 Kenichi Handa <handa@m17n.org>
25233
25234 * xfont.c (xfont_open): Set font->format.
25235
25236 * xftfont.c (xftfont_open): Set font->format.
25237
25238 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
25239 (ftfont_list): Include FC_FONTFORMAT in FcObject.
25240 (ftfont_open): Set font->format.
25241 (ftfont_font_format): New function.
25242
25243 * font.h (struct font): New member format.
25244
25245 * font.c (Qopentype): New variable.
25246 (syms_of_font): Defsym it.
25247 (Fquery_font): Change the format of the last element of the return
25248 value.
25249
25250 2008-02-01 Kenichi Handa <handa@m17n.org>
25251
25252 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25253 last resort.
25254
25255 2008-02-01 Kenichi Handa <handa@m17n.org>
25256
25257 * coding.c (detect_coding_charset): Fix detection of multi-byte
25258 charset.
25259
25260 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25261
25262 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25263
25264 2008-02-01 Kenichi Handa <handa@m17n.org>
25265
25266 * xdisp.c (get_next_display_element): Set it->face_id for the
25267 first component of a composition.
25268 (x_produce_glyphs): Check if the font is changed or not for composition.
25269
25270 2008-02-01 Kenichi Handa <handa@m17n.org>
25271
25272 * fontset.c (Qlatin): New variable.
25273 (syms_of_fontset): Define it as a lisp symbol.
25274 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25275
25276 2008-02-01 Kenichi Handa <handa@m17n.org>
25277
25278 * font.c (font_unparse_fcname): Pay attention to the case that
25279 some of font property is a null string.
25280
25281 2008-02-01 Kenichi Handa <handa@m17n.org>
25282
25283 * term.c: Include "composite.h".
25284 (encode_terminal_code): Output all components of composition.
25285 Check the size of encode_terminal_src.
25286 (produce_glyphs): For composition, call produce_composite_glyph.
25287 (append_composite_glyph, produce_composite_glyph): New functions.
25288
25289 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25290 is not found, get font_info from the current ascii face.
25291
25292 2008-02-01 Kenichi Handa <handa@m17n.org>
25293
25294 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25295 buffer-file-name to Qnil before calling insert_from_buffer.
25296
25297 * font.c (font_unparse_fcname): Pay attention to the case that
25298 foundry is a null string.
25299
25300 2008-02-01 Kenichi Handa <handa@m17n.org>
25301
25302 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25303
25304 * font.c (Qunicode_sip): New variable.
25305 (syms_of_font): Declare it as a Lisp symbol.
25306
25307 * font.h (Qunicode_sip): Extern it.
25308
25309 2008-02-01 Kenichi Handa <handa@m17n.org>
25310
25311 * composite.c (get_composition_id): Pay attention to TAB component.
25312
25313 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25314 TAB. Adjust for the change of s->char2b which always points to
25315 the first element of allocated memory.
25316
25317 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25318
25319 * xdisp.c (handle_composition_prop): Set it->c to the first
25320 non-TAB component.
25321 (fill_composite_glyph_string): Change argument.
25322 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25323 (x_produce_glyphs): Fix handling of left/right padding.
25324
25325 2008-02-01 Kenichi Handa <handa@m17n.org>
25326
25327 * coding.c (detect_coding_system): Fix for handling off
25328 inhibit_iso_escape_detection. Fix for the case that no coding
25329 system is defined for a specific coding category.
25330
25331 2008-02-01 Kenichi Handa <handa@m17n.org>
25332
25333 * font.c (font_matching_entity): Delete unused local var.
25334
25335 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25336 opening a font.
25337
25338 * fileio.c (Finsert_file_contents): On recovering a file, assume
25339 Unix-like eol.
25340 (choose_write_coding_system): On auto-saving a file, force
25341 Unix-like eol.
25342
25343 * coding.c (setup_coding_system): Fix setting of
25344 coding->common_flags based on eol_type.
25345 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25346 inherit from it.
25347
25348 2008-02-01 Kenichi Handa <handa@m17n.org>
25349
25350 * alloc.c (NSTATICS): Increas to 0x600.
25351
25352 2008-02-01 Kenichi Handa <handa@m17n.org>
25353
25354 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25355 (ftfont_list): Don't check :name property.
25356 (ftfont_match): New function.
25357 (ftfont_pattern_entity): If the pattern doesn't contain
25358 FC_SPACING, don't assume FC_MONO.
25359
25360 * font.h (struct font_driver): New member `match'.
25361 (font_update_drivers): Adjust prototype.
25362
25363 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25364 property of FONT.
25365 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25366 Define them unconditionally.
25367 (font_matching_entity): New function.
25368 (font_open_by_name): Try font_matching_entity if exact match is
25369 not found.
25370 (font_update_drivers): Delete the arg FONT. Return a list of
25371 actually used backends. Don't free faces, font caches here.
25372 Don't store data in frame parameters. Don't call x_set_font.
25373 (Ffont_spec): Store :name property as is.
25374 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25375 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25376 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25377 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25378 Call font->driver->otf_gsub instead of font_otf_gsub.
25379
25380 * frame.c (x_set_font_backend): Do more works that were done in
25381 font_update_drivers before.
25382
25383 * xfont.c (xfont_match): New function.
25384 (xfont_driver): Set xfont_driver.match to xfont_match.
25385 (xfont_draw): Set font in GC if necessary.
25386
25387 * ftxfont.c (ftxfont_match): New function.
25388 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25389
25390 * xftfont.c (xftfont_match): New function.
25391 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25392
25393 2008-02-01 Kenichi Handa <handa@m17n.org>
25394
25395 * font.h (struct font): New member scalable.
25396 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25397 (font_otf_gsub): Adjust prototype.
25398
25399 * font.c (font_otf_capability): Fix handling of the default langsys.
25400 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25401 Check the contents of SPEC.
25402 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25403 (check_gstring): New function.
25404 (REPLACEMENT_CHARACTER): New macro.
25405 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25406 glyph codes of GSTRING.
25407 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25408 (font_prepare_composition): Set cmp->glyph_len.
25409 (font_open_entity): Set font->scalable.
25410 (Ffont_get): Handle :otf property.
25411 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25412 New functions.
25413 (Fquery_font): Use font->font.full_name.
25414 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25415 Sfont_otf_alternates.
25416
25417 * ftfont.c (ftfont_open): Set font->font.full_name and
25418 font->font.name properly. Fix calculation of font->font.height
25419 and font->min_width.
25420
25421 * ftxfont.c (ftxfont_create_gcs): New function.
25422 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25423 (ftxfont_draw_backgrond): Fix filling region.
25424 (ftxfont_default_fid): New function.
25425 (ftxfont_open): Set xfont->fid to the return value of
25426 ftxfont_default_fid.
25427 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25428 (ftxfont_done_face): Free only GCs that are created by
25429 ftxfont_create_gcs.
25430 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25431
25432 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25433 Clip to src->width, etc (not src->clip_XXX).
25434
25435 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25436 FontBackend frame parameter.
25437
25438 2008-02-01 Kenichi Handa <handa@m17n.org>
25439
25440 * font.h (struct font_driver_list): New member `on'.
25441 (Fclear_font_cache): EXFUN it.
25442 (font_update_drivers): Extern it.
25443
25444 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25445 (font_list_entities): Check driver_list->on.
25446 (register_font_driver): Initialize `on' member to 0.
25447 (font_update_drivers): New function.
25448 (Fclear_font_cache): Check driver_list->on.
25449
25450 * frame.h (Qfont_backend): Extern it.
25451 (x_set_font_backend): Extern it.
25452
25453 * frame.c (Qfont_backend): New variable.
25454 (frame_parms): New element for font-backend.
25455 (x_set_font_backend): New function.
25456
25457 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25458 FontBackend frame parameter.
25459 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25460 x_set_font_backend.
25461
25462 * xfont.c (xfont_list): Don't try listing by :name property if the
25463 name is not for XLFD.
25464
25465 2008-02-01 Kenichi Handa <handa@m17n.org>
25466
25467 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25468 (LGLYPH_SET_TO): New macros.
25469 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25470 element of G is vector or not.
25471 (font_at): Extern it.
25472
25473 * font.c: Include window.h.
25474 (font_lispy_object): New function.
25475 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25476 end of valid glyph.
25477 (font_close_object): Fix getting (struct font *).
25478 (font_at): New function.
25479 (Ffont_get): If FONT is a font-object, get entity from it.
25480 (Ffont_make_gstring): Initialize elements of glyphs with nil.
25481 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25482 Fix range check.
25483 (Ffont_at): New function.
25484 (syms_of_font): Defsubr Sfont_at.
25485
25486 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25487 before the entry for Qcomposition.
25488 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25489 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25490 the font in gstring.
25491 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25492 LGLYPH_FORM (g) to detect the end of valid glyph.
25493 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25494 we are composing with gstring.
25495
25496 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25497 Check if adjustment is vector or not.
25498
25499 * Makefile.in (font.o): Make it depends on window.h.
25500
25501 2008-02-01 Kenichi Handa <handa@m17n.org>
25502
25503 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25504 adjustment is vector or not.
25505
25506 2008-02-01 Miles Bader <miles@gnu.org>
25507
25508 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25509
25510 2008-02-01 Kenichi Handa <handa@m17n.org>
25511
25512 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25513 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25514 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25515
25516 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25517 (DEVICE_DELTA): Fix typo.
25518 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25519 LGLYPH format.
25520
25521 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25522 the change of LGLYPH format.
25523
25524 2008-02-01 Kenichi Handa <handa@m17n.org>
25525
25526 * ftfont.c (ftfont_list): Fix typo.
25527 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25528
25529 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25530
25531 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25532
25533 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25534 xftface_info is non-NULL.
25535
25536 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25537
25538 * ftfont.c (ftfont_list): Move misplaced #endif.
25539
25540 2008-02-01 Kenichi Handa <handa@m17n.org>
25541
25542 * ftfont.c (ftfont_list): Pay attention to the case that
25543 FC_CAPABILITY is not defined.
25544
25545 2008-02-01 Kenichi Handa <handa@m17n.org>
25546
25547 * xftfont.c (xftfont_open): Set charset related members to -1.
25548
25549 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25550 QCname.
25551 (ftfont_open): Set charset related members to -1.
25552
25553 * fontset.c (Votf_script_alist): New variable.
25554 (syms_of_fontset): Initialize it.
25555 (fontset_font): Delete unused variable.
25556
25557 * fontset.h (Votf_script_alist): Extern it.
25558
25559 * font.c (font_find_for_lface): Optimize code.
25560
25561 * font.h (font_close_object, font_merge_old_spec): Extern them.
25562
25563 2008-02-01 Kenichi Handa <handa@m17n.org>
25564
25565 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25566 (syms_of_font): Initialize them.
25567 (font_pixel_size): Allow float value in dpi.
25568 (font_prop_validate_type): Delete.
25569 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25570 Change caller.
25571 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25572 (font_prop_validate_extra): Delete.
25573 (font_prop_validate_spacing): New function.
25574 (font_property_table): Add elements for all known properties.
25575 (get_font_prop_index): Rename from check_font_prop_name.
25576 New argument FROM. Change caller.
25577 (font_prop_validate): Validate all known properties.
25578 (font_put_extra): Delete argument force. Change caller.
25579 (font_expand_wildcards): Make it static. Fix the way of shrinking
25580 the possible range.
25581 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25582 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25583 Change caller.
25584 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25585 (font_parse_fcname): Delete argument merge. Fix parsing of point
25586 size. Don't validate properties values here. Change caller.
25587 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25588 (font_open_by_name): Delete unused variable.
25589 (Ffont_spec): Likewise. Validate property values.
25590 (Ffont_match_p): New function.
25591
25592 * font.h (QCscalable): Extern it.
25593 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25594
25595 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25596
25597 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25598 (xfont_list_pattern): New function.
25599 (xfont_list): Use xfont_list_pattern.
25600
25601 2008-02-01 Kenichi Handa <handa@m17n.org>
25602
25603 * font.h (Flist_fonts): EXFUN it.
25604
25605 2008-02-01 Jason Rumney <jasonr@gnu.org>
25606
25607 * w32term.c (w32_initialize): Add back smoothing_type and
25608 smoothing_enabled definitions.
25609
25610 2008-02-01 Kenichi Handa <handa@m17n.org>
25611
25612 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25613 s->face->font on determining underline position.
25614
25615 2008-02-01 Kenichi Handa <handa@m17n.org>
25616
25617 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25618 (font_has_char): Accept font-object too.
25619 (font_find_for_lface): Try at first with a size specified in face.
25620
25621 2008-02-01 Kenichi Handa <handa@m17n.org>
25622
25623 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25624 font_open_by_name.
25625
25626 2008-02-01 Kenichi Handa <handa@m17n.org>
25627
25628 * font.h (QCspacing, QCdpi): Extern them.
25629 (enum font_spacing): New enum.
25630 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25631
25632 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25633 (QCspacing, QCdpi): New variables.
25634 (syms_of_font): Initialize them.
25635 (font_pixel_size): New function.
25636 (font_put_extra): New function.
25637 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25638 in FONT_EXTRA.
25639 (font_parse_fcname): Handle enumerated values (e.g. bold).
25640 Fix handling font size. Add QCname property that contains only
25641 unknown properties.
25642 (font_score): Change argument. Change caller. Pay attention to
25643 FONT_PIXEL_SIZE_QUANTUM.
25644 (font_sort_entites, font_list_entities, font_find_for_lface)
25645 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25646 (Ffont_spec): Add QCname property that contains only unknown properties.
25647
25648 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25649 Don't include weight in listing pattern, instead check weight of each
25650 listed font. Don't include scalable in pattern. Pay attention to
25651 FONT_PIXEL_SIZE_QUANTUM.
25652
25653 2008-02-01 Kenichi Handa <handa@m17n.org>
25654
25655 * font.c (font_parse_fcname): Fix parsing of point-size.
25656 (font_unparse_fcname): Produce symbolic names for style properties.
25657 (font_list_entities): Handle float size correctly.
25658 (font_open_by_name): Prefer `normal' property values if the name
25659 doesn't specify them.
25660
25661 * fontset.c (Finternal_char_font): Use font_get_name, not
25662 Ffont_xlfd_name.
25663
25664 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25665 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25666 pattern. Don't force scalable.
25667
25668 * xftfont.c (xftfont_open): For generating a name, start from
25669 96-byte buffer.
25670
25671 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25672
25673 * frame.h (x_new_fontset2): Fix prototype.
25674
25675 2008-02-01 Kenichi Handa <handa@m17n.org>
25676
25677 * font.h (struct font_driver): Delete member parse_name.
25678 (font_match_p, font_get_spec, font_parse_fcname)
25679 (font_unparse_fcname): Extern them.
25680 (font_get_name): Adjust prototype.
25681
25682 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25683 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25684 (font_expand_wildcards): Fix handling ENCODING field.
25685 Avoid unnecessary checks for weight, slant, and swidth.
25686 (font_parse_fcname): New function.
25687 (font_unparse_fcname): New function.
25688 (font_parse_name): New function.
25689 (font_match_p): New function.
25690 (font_get_name): Change return value to Lisp string.
25691 (font_get_spec): New function.
25692 (Qunspecified, Qignore_defface): Don't extern them.
25693 (font_find_for_lface): Assume that LFACE is fully specified.
25694 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25695 object, use it for FACE.
25696 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25697 driver->parse_name.
25698 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25699
25700 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25701 prototype.
25702
25703 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25704 argument F. Don't call Fnew_fontset. Instead, directly call
25705 make_fontset.
25706
25707 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25708
25709 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25710 of x_new_fontset2.
25711
25712 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25713 (Qsans__serif): New variables.
25714 (ftfont_generic_family_list): New variable.
25715 (syms_of_ftfont): Initialize the above variables.
25716 (ftfont_pattern_entity): Delete argument NAME.
25717 (ftfont_list_generic_family): New function.
25718 (ftfont_parse_name): Delete this function.
25719 (ftfont_list): Try generic family only when FcFontList found no font.
25720 (ftfont_list_family): Fix args to FcObjectSetBuild.
25721
25722 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25723 object in attrs[LFACE_FONT_INDEX].
25724 (set_lface_from_font_name): Cancel all changes for font-backend.
25725 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25726 function.
25727 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25728 font object in QCfont attribute.
25729 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25730 (realize_default_face) [USE_FONT_BACKEND]: Call
25731 set_lface_from_font_and_fontset.
25732
25733 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25734 "fixed", and signal error here if no suitable font was found.
25735
25736 * xfont.c (xfont_parse_name): Delete this function.
25737
25738 * xftfont.c (xftfont_open): Change coding style of error
25739 handling. Generate fontconfig's fontname pattern.
25740
25741 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25742 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25743
25744 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25745 Both args FONTSET and FONT_OBJECT must be existing ones.
25746
25747 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25748
25749 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25750
25751 2008-02-01 Kenichi Handa <handa@m17n.org>
25752
25753 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25754
25755 * font.h (struct font): Fix typo.
25756
25757 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25758 XLFD_XXX_INDEX.
25759 (enum xlfd_field_mask): New enum.
25760 (intern_font_field): Change argument. Change caller. If digits
25761 are followed by non-digits, return a symbol.
25762 (font_expand_wildcards): New function.
25763 (font_parse_xlfd): Fix wildcard handling.
25764 (Ffont_spec): If :name is specified, reflect the info in the other
25765 properties.
25766
25767 * ftfont.c (ftfont_pattern_entity): Fix typo.
25768 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25769 locale.
25770
25771 2008-02-01 Kenichi Handa <handa@m17n.org>
25772
25773 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25774
25775 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25776 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25777 registry doesn't specify encoding part.
25778 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25779 (font_open_by_name): At first try parsing the name.
25780 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25781 as Lisp symbols.
25782
25783 * fontset.c (reorder_font_vector): Pay attention to the case that
25784 the 3rd element of font_def is nil.
25785 (fontset_font): For the default fontset, append one more fontset
25786 elements for a script-based font specification. Don't add script
25787 attribute on finding a font.
25788 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25789 font name.
25790 (fontset_ascii_font): If a font can't be opened, return nil.
25791
25792 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25793 (ftfont_pattern_entity): New function.
25794 (ftfont_get_cache): Assume that freetype_font_cache is already
25795 initialized.
25796 (ftfont_list): Handle the case that a file is specified in font
25797 name. Use ftfont_pattern_entity to generate entities.
25798 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25799 (syms_of_ftfont): Initialize freetype_font_cache.
25800
25801 * xftfont.c (xftfont_open): Make the font name fontconfig's
25802 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25803 (xftfont_close): Free font->font.name if not NULL.
25804
25805 * xfont.c (xfont_list): If script is specified for a font, return
25806 null_vector.
25807 (xfont_list_family): Declare argument type.
25808
25809 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25810 name, set LFACE_FONT (lface) to nil.
25811
25812 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25813 return Qnil.
25814
25815 2008-02-01 Kenichi Handa <handa@m17n.org>
25816
25817 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25818 (standard_args): Add "-enable-font-backend".
25819
25820 2008-02-01 Kenichi Handa <handa@m17n.org>
25821
25822 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25823 (struct xftdraw_list, xftdraw_list): Delete them.
25824 (register_xftdraw, check_xftdraw): Delete them.
25825 (xftfont_prepare_face): Don't call register_xftdraw.
25826 (xftfont_done_face): Don't call check_xftdraw.
25827 (xftfont_draw): Get background color only when with_background is
25828 nonzero.
25829
25830 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25831
25832 2008-02-01 Kenichi Handa <handa@m17n.org>
25833
25834 These changes are for the new font handling codes.
25835
25836 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25837 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25838 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25839 (FONTSRC, FONTOBJ): New variables.
25840 (obj): Add $(FONTOBJ).
25841 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25842 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25843 @LIBOTF_LIBS@.
25844 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25845 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25846
25847 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25848
25849 * character.h (Vscript_representative_chars): Extern it.
25850
25851 * character.c (Vscript_representative_chars): New variable.
25852 (syms_of_character): Declare it as a Lisp variable.
25853
25854 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25855 enable_font_backend is nonzero, accept the composition method
25856 COMPOSITION_WITH_GLYPH_STRING.
25857
25858 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25859 enumeration COMPOSITION_WITH_GLYPH_STRING.
25860
25861 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25862 members clip_x, clip_y, clip_width, and clip_height.
25863 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25864
25865 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25866 --enable-font-backend. Call syms_of_font.
25867
25868 * fns.c (assoc_no_quit): New function.
25869
25870 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25871 (face_for_font, new_fontset_from_font)
25872 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25873
25874 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25875 (fontset_font, fontset_ascii, face_for_char)
25876 (make_fontset_for_ascii_face, Ffont_info)
25877 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25878 is nonzero, use font-backend mechanism.
25879 (find_font_encoding): Make it non-static.
25880 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25881 New functions.
25882
25883 * frame.h (struct frame): New members resx and resy.
25884 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25885 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25886
25887 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25888 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25889
25890 * lisp.h (assoc_no_quit): Extern it.
25891
25892 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25893 Through out the file, use FONT_INFO_FROM_FACE instead of
25894 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25895 rif->per_char_metric.
25896 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25897 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25898 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25899 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25900 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25901 nonzero, use font-backend mechanism.
25902 (get_per_char_metric): New function.
25903
25904 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25905 (set_lface_from_font_name)
25906 (set_font_frame_param, free_realized_face)
25907 (prepare_face_for_display, clear_face_gcs)
25908 (Finternal_set_font_selection_order, realize_x_face)
25909 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25910 font-backend mechanism.
25911 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25912 (load_face_font) [USE_FONT_BACKEND]: Abort.
25913 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25914 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25915
25916 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25917 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25918 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25919 nonzero, register all available font drivers.
25920 Call x_default_font_parameter for deciding a font.
25921 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25922
25923 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25924 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25925 (x_set_glyph_string_clipping_exactly)
25926 (x_compute_glyph_string_overhangs)
25927 (x_draw_glyph_string_foreground)
25928 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25929 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25930 enable_font_backend is nonzero, use font-backend mechanism.
25931 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25932
25933 2008-02-01 Kenichi Handa <handa@m17n.org>
25934
25935 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25936 system_eol_type.
25937 (syms_of_coding): Initialize system_eol_type.
25938
25939 * process.c (Fset_process_coding_system): Inherit system's eol
25940 format if necessary.
25941
25942 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25943
25944 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25945
25946 2008-02-01 Kenichi Handa <handa@m17n.org>
25947
25948 * coding.c (decode_eol): Pay attention to buffer relocation in
25949 del_range_2.
25950 (decode_coding): Call decode_eol before restoring undo_list.
25951
25952 2008-02-01 Kenichi Handa <handa@m17n.org>
25953
25954 * charset.c (Fdefine_charset_internal): Fix setting of
25955 emacs_mule_bytes.
25956
25957 2008-02-01 Kenichi Handa <handa@m17n.org>
25958
25959 * keyboard.c (read_char): Check if C is a character or not before
25960 looking up Vkeyboard_translate_table.
25961
25962 2008-02-01 Kenichi Handa <handa@m17n.org>
25963
25964 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25965 Fix condition to terminate the loop.
25966
25967 2008-02-01 Kenichi Handa <handa@m17n.org>
25968
25969 * coding.c (produce_composition): Compare charbuf[i] instead of
25970 args[i] against 0.
25971 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25972
25973 2008-02-01 Kenichi Handa <handa@m17n.org>
25974
25975 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25976 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25977 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25978 detect_coding.
25979 (emacs_mule_char): Handle old style (Emacs 20) component character
25980 of a composition.
25981 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25982 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25983 composition rule.
25984 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25985
25986 2008-02-01 Kenichi Handa <handa@m17n.org>
25987
25988 * coding.c (encode_coding_ccl): Allocate destination dynamically
25989 when necessary.
25990
25991 2008-02-01 Kenichi Handa <handa@m17n.org>
25992
25993 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25994 the loop. When quitted, show a proper error message.
25995
25996 2008-02-01 Kenichi Handa <handa@m17n.org>
25997
25998 * xterm.c (x_set_glyph_string_clipping_exactly):
25999 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
26000
26001 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
26002 character sequence.
26003 (Fccl_execute_on_string): Use ASET, not XSET.
26004
26005 2008-02-01 Kenichi Handa <handa@m17n.org>
26006
26007 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
26008
26009 2008-02-01 Kenichi Handa <handa@m17n.org>
26010
26011 * coding.c (decode_coding): Fix the condition of terminating the
26012 decoding loop.
26013
26014 2008-02-01 Kenichi Handa <handa@m17n.org>
26015
26016 * data.c (Faset): On setting a character bigger than 255 in a
26017 unibyte string, signal an error instead of make the string multibyte.
26018
26019 2008-02-01 Kenichi Handa <handa@m17n.org>
26020
26021 * charset.c (map_charset_chars): Fix for ascii-compatible charset
26022 made by a mapping table.
26023
26024 2008-02-01 Kenichi Handa <handa@m17n.org>
26025
26026 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
26027 not.
26028 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
26029 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
26030
26031 * xterm.c (x_draw_composite_glyph_string_foreground):
26032 Check s->face is NULL or not.
26033
26034 2008-02-01 Kenichi Handa <handa@m17n.org>
26035
26036 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
26037 (x_draw_glyph_string): Fix drawing of right_overhang and
26038 left_overhang around/on cursor.
26039
26040 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
26041
26042 2008-02-01 Kenichi Handa <handa@m17n.org>
26043
26044 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
26045
26046 2008-02-01 Kenichi Handa <handa@m17n.org>
26047
26048 * coding.c (Fdefine_coding_system_internal)
26049 (Fdefine_coding_system_alias): Avoid a duplicated element in
26050 Vcoding_system_alist.
26051
26052 2008-02-01 Kenichi Handa <handa@m17n.org>
26053
26054 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
26055
26056 * coding.c (Qcoding_system_define_form): New variable.
26057 (syms_of_coding): Intern and staticpro it.
26058 (Fcoding_system_p): Check Qcoding_system_define_form.
26059 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
26060
26061 * coding.h (CODING_SYSTEM_P): If ID is not available, call
26062 Fcoding_system_p.
26063 (CHECK_CODING_SYSTEM): If ID is not available, call
26064 Fcheck_coding_system.
26065 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
26066 Try also Fcheck_coding_system.
26067
26068 2008-02-01 Kenichi Handa <handa@m17n.org>
26069
26070 * coding.c (code_conversion_restore): GCPRO arg.
26071
26072 2008-02-01 Kenichi Handa <handa@m17n.org>
26073
26074 * character.c (lisp_string_width): Check multibyteness of STRING.
26075
26076 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26077
26078 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
26079 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
26080 (decode_mac_font_name): Use decode_coding_c_string instead of
26081 decode_coding.
26082 (x_load_font): Initialize fontp->fontset to -1.
26083 Set fontp->encoding_type.
26084
26085 2008-02-01 Kenichi Handa <handa@m17n.org>
26086
26087 * search.c (search_buffer): Give up BM search on case-fold-search
26088 if one of a target character has a case-equivalence of different
26089 byte length even if that target character is an ASCII.
26090 (simple_search): Fix calculation of byte length of matched text.
26091 (boyer_moore): Fix handling of case-equivalent multibyte characters.
26092
26093 2008-02-01 Kenichi Handa <handa@m17n.org>
26094
26095 * coding.c (decode_coding): Fix handling of invalid bytes.
26096
26097 2008-02-01 Kenichi Handa <handa@m17n.org>
26098
26099 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
26100 Unicode characters.
26101
26102 2008-02-01 Kenichi Handa <handa@m17n.org>
26103
26104 * coding.c (encode_coding_object): If a pre-write-conversion
26105 function makes a new buffer, kill it.
26106
26107 2008-02-01 Kenichi Handa <handa@m17n.org>
26108
26109 * coding.c (QCascii_compatible_p): New variable.
26110 (syms_of_coding): Initialize it.
26111 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
26112 calling string_char.
26113 (record_conversion_result): Add `default:' case.
26114 (coding_charset_list): Delete unused variable `coding_type'.
26115 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
26116 property in the plist of the coding system.
26117 (Fcoding_system_put): Check QCascii_compatible_p.
26118
26119 2008-02-01 Miles Bader <miles@gnu.org>
26120
26121 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
26122 removed calculation of frame `f', as it's now used.
26123
26124 2008-02-01 Kenichi Handa <handa@m17n.org>
26125
26126 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
26127 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
26128 (UNIDATA): New variable.
26129 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
26130 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
26131 Run $(RUN_TEMACS) unconditionally.
26132
26133 2008-02-01 Kenichi Handa <handa@m17n.org>
26134
26135 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
26136 (admindir): New variable.
26137 ($(lispsource)international/charprop.el): New target.
26138
26139 2008-02-01 Miles Bader <miles@gnu.org>
26140
26141 * character.c (chars-in-region): Remove obsolete function.
26142 (syms_of_character): Remove its initialization.
26143
26144 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
26145
26146 * w32select.c (validate_coding_system)
26147 (setup_windows_coding_system): New functions.
26148 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
26149 Use setup_windows_coding_system.
26150 (setup_config, Fw32_get_clipboard_data):
26151 Use validate_coding_system.
26152 (Fx_selection_exists): Move call to setup_config to a place
26153 where signals are allowed.
26154
26155 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
26156 (Fcheck_coding_system): Add declarations.
26157
26158 2008-02-01 Kenichi Handa <handa@m17n.org>
26159
26160 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
26161
26162 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26163
26164 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
26165 string as the second argument for x_new_fontset.
26166
26167 2008-02-01 Kenichi Handa <handa@m17n.org>
26168
26169 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
26170 (encode_coding_object): Use safe_call instead of call2.
26171
26172 2008-02-01 Kenichi Handa <handa@m17n.org>
26173
26174 * fontset.c (Fset_fontset_font): Check family element of a given vector.
26175
26176 * Makefile.in (lisp): Include charprop.el.
26177
26178 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26179
26180 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
26181 Not sure if it's unnecessary.
26182
26183 2008-02-01 Steven Tamm <steventamm@mac.com>
26184
26185 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
26186 some possibly unnecessary fontset checking code that crashed
26187 when creating a new frame.
26188
26189 2008-02-01 Kenichi Handa <handa@m17n.org>
26190
26191 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
26192 lookup_face.
26193
26194 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
26195
26196 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
26197
26198 2008-02-01 Kenichi Handa <handa@m17n.org>
26199
26200 * coding.c: Cancel the change done in HEAD on 2008-02-01.
26201 (coding_charset_list): New function.
26202
26203 * coding.h (coding_charset_list): Extern it.
26204
26205 2008-02-01 Kenichi Handa <handa@m17n.org>
26206
26207 * fontset.c (Fset_fontset_font): Call find_font_encoding with
26208 concatenation of family and registry.
26209
26210 2008-02-01 Kenichi Handa <handa@m17n.org>
26211
26212 * character.h (BYTE8_STRING): Fix typo.
26213
26214 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
26215 string to multibyte (sync to HEAD).
26216
26217 * casefiddle.c (casify_region): Handle changes in byte-length
26218 using replace_range_2 (sync to HEAD).
26219
26220 2008-02-01 Andreas Schwab <schwab@suse.de>
26221
26222 * chartab.c (map_char_table): GCPRO table and arg.
26223
26224 2008-02-01 Kenichi Handa <handa@m17n.org>
26225
26226 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
26227 already at limit.
26228
26229 2008-02-01 Kenichi Handa <handa@m17n.org>
26230
26231 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
26232 instead of fast_c_string_match_ignore_case.
26233 (find_font_encoding): Change argument to Lisp_Object.
26234 Use fast_string_match_ignore_case instead of
26235 fast_c_string_match_ignore_case. Change caller.
26236
26237 2008-02-01 Kenichi Handa <handa@m17n.org>
26238
26239 * xdisp.c (get_next_display_element): In unibyte case, decide to
26240 display in octal form by checking a character by
26241 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
26242
26243 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
26244
26245 * character.c (unibyte_has_multibyte_table): New variable.
26246
26247 * character.h (unibyte_has_multibyte_table): Extern it.
26248 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
26249
26250 2008-02-01 Kenichi Handa <handa@m17n.org>
26251
26252 * coding.c (encode_coding_iso_2022): Fix handling of charset
26253 annotation.
26254
26255 2008-02-01 Kenichi Handa <handa@m17n.org>
26256
26257 * coding.c (setup_coding_system): If coding_system is nil, use
26258 Qundecided.
26259 (Fterminal_coding_system): Return nil if terminal coding system is
26260 `undecided'.
26261 (syms_of_coding): Define coding-system `undecided' here.
26262 Setup terminal_coding as `undecided'.
26263
26264 2008-02-01 Kenichi Handa <handa@m17n.org>
26265
26266 * xdisp.c (message_dolog, set_message_1):
26267 Call unibyte_char_to_multibyte with arg type int.
26268
26269 * lread.c (read1): Fix reading of a char-table.
26270
26271 * print.c (print_object): Include sub char-table in circularities
26272 detection.
26273
26274 2008-02-01 Kenichi Handa <handa@m17n.org>
26275
26276 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26277 Append the found sequences in car of ARGS instead of prepending.
26278
26279 2008-02-01 Kenichi Handa <handa@m17n.org>
26280
26281 * fileio.c (report_file_error): Make a unibyte string from
26282 strerror (errorno).
26283 (Fsubstitute_in_file_name): Fix the arg to
26284 unibyte_char_to_multibyte. It is evaluated twice.
26285
26286 2008-02-01 Kenichi Handa <handa@m17n.org>
26287
26288 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26289
26290 2008-02-01 Kenichi Handa <handa@m17n.org>
26291
26292 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26293 BOM is not found.
26294 (detect_coding, detect_coding_system): Optimization for ISO-2022
26295 when no 8-bit data is found.
26296
26297 2008-02-01 Jason Rumney <jasonr@gnu.org>
26298
26299 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26300
26301 2008-02-01 Kenichi Handa <handa@m17n.org>
26302
26303 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26304 CHARS.
26305
26306 2008-02-01 Steven Tamm <steventamm@mac.com>
26307
26308 * macterm.c (mac_encode_char): Add charset argument and update
26309 to use encoding_type.
26310 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26311 switch to pure fontset.
26312 (decode_mac_font_name): Temporarily remove decoding.
26313 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26314 (x_load_font): Temporarily remove encoding.
26315
26316 2008-02-01 Kenichi Handa <handa@m17n.org>
26317
26318 * xfaces.c (Fface_font): If frame is not on a window system,
26319 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26320 refer to face->font.
26321 (split_font_name_into_vector, build_font_name_from_vector)
26322 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26323 when HAVE_WINDOW_SYSTEM is defined.
26324
26325 2008-02-01 Kenichi Handa <handa@m17n.org>
26326
26327 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26328 (x_produce_glyphs): Fix setting of members of cmp in case
26329 cmp->glyph_len is zero.
26330
26331 * fontset.c (Fset_fontset_font): Fix docstring.
26332 (Ffontset_info): Make it backward compatible. New arg ALL.
26333
26334 2008-02-01 Kim F. Storm <storm@cua.dk>
26335
26336 * process.c (read_process_output): Grow decoding_buf when needed;
26337 this could cause a crash in allocate_string and compact_small_strings.
26338
26339 2008-02-01 Kenichi Handa <handa@m17n.org>
26340
26341 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26342
26343 2008-02-01 Kenichi Handa <handa@m17n.org>
26344
26345 * coding.c (setup_coding_system): Set coding->common_flags
26346 correctly for raw-text.
26347 (consume_chars): On encoding unibyte text by raw-text, don't check
26348 multibyte form.
26349 (encode_coding): On encoding by raw-text, never use translation tables.
26350
26351 * fileio.c (e_write): Short cut for the case of no encoding.
26352
26353 2008-02-01 Kenichi Handa <handa@m17n.org>
26354
26355 * coding.c (detect_coding, detect_coding_system): Delete unused
26356 variables.
26357
26358 2008-02-01 Kenichi Handa <handa@m17n.org>
26359
26360 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26361 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26362
26363 2008-02-01 Kenichi Handa <handa@m17n.org>
26364
26365 * coding.c (Ffind_coding_systems_region_internal):
26366 Include raw-text and no-conversion in the result.
26367
26368 2008-02-01 Kenichi Handa <handa@m17n.org>
26369
26370 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26371 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26372 FONT_DEF.
26373 (font_def_arg, add_arg, from_arg, to_arg): New args.
26374 (set_fontset_font): Change argument.
26375 (Fset_fontset_font): Fix for the case that TARGET is a script
26376 name and charset name.
26377 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26378
26379 2008-02-01 Kenichi Handa <handa@m17n.org>
26380
26381 * fontset.c (fontset_font): Rename from fontset_face. Change return
26382 value.
26383 (face_suitable_for_char_p, face_for_char): Adjust for the change
26384 of fontset_font.
26385 (make_fontset_for_ascii_face): Fix setting of the fontset element
26386 for ASCII.
26387 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26388 to get a font name.
26389 (Ffontset_info): Adjust for the change of fontset_font.
26390
26391 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26392
26393 * character.h (LEADING_CODE_LATIN_1_MIN)
26394 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26395
26396 2008-02-01 Kenichi Handa <handa@m17n.org>
26397
26398 * editfns.c (check_translation): New function.
26399 (Ftranslate_region_internal): Handle M:N mapping.
26400
26401 2008-02-01 Kenichi Handa <handa@m17n.org>
26402
26403 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26404
26405 2008-02-01 Kenichi Handa <handa@m17n.org>
26406
26407 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26408 goto invalid_code.
26409 (decode_coding_iso_2022): Fix handling of invalid designation.
26410
26411 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26412 after calling code_conversion_save.
26413
26414 2008-02-01 Kenichi Handa <handa@m17n.org>
26415
26416 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26417
26418 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26419
26420 * fontset.c: Include "intervals.h".
26421 (fontset_face): Fix comparing of Lisp_Objects.
26422 (free_face_fontset, new_fontset_from_font_name):
26423 Fix Lisp_Object/int mixup.
26424
26425 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26426
26427 * coding.c: Add many prototypes for static functions.
26428 (get_translation_table): Allow max_lookup to be NULL.
26429 (decode_coding, Ffind_coding_systems_region_internal)
26430 (Funencodable_char_position, Fcheck_coding_systems_region):
26431 Call get_translation_table with max_lookup NULL.
26432
26433 2008-02-01 Kenichi Handa <handa@m17n.org>
26434
26435 * coding.c (get_translation_table): Declare it as Lisp_Object.
26436 (LOOKUP_TRANSLATION_TABLE): New macro.
26437 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26438 instead of CHAR_TABLE_REF.
26439
26440 2008-02-01 Kenichi Handa <handa@m17n.org>
26441
26442 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26443 annotation data format.
26444 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26445 Change arguments FROM and TO to single argument NCHARS. Change caller.
26446 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26447 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26448 (decode_coding_ccl, decode_coding_charset): Pay attention to
26449 coding->charbuf_used.
26450 (get_translation): New function.
26451 (produce_chars): New arguments translation_table and last_block.
26452 Translate characters here. Return number of carryover chars.
26453 Change caller.
26454 (produce_composition): New argument pos. Change caller.
26455 Adjust for the change of annotation data format.
26456 (produce_charset, produce_annotation): Likewise.
26457 (decode_coding, encode_coding): Don't call translate_chars.
26458 (consume_chars): New arg translation_table. Change caller.
26459 (translate_chars): Delete.
26460 (syms_of_coding): Make translation-table's number of extra slots 2.
26461
26462 2008-02-01 Kenichi Handa <handa@m17n.org>
26463
26464 * search.c (simple_search): Fix setting this_pos_byte in backward
26465 search.
26466
26467 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26468 byte sequence.
26469 (detect_coding_ccl): Fix setting of the variable valids.
26470
26471 2008-02-01 Kenichi Handa <handa@m17n.org>
26472
26473 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26474
26475 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26476
26477 * editfns.c (Ftranslate_region_internal): Rename from
26478 Ftranslate_region. Accept a char-table in TABLE.
26479 (syms_of_editfns): Defsubr Stranslate_region_internal.
26480
26481 * xfaces.c (set_lface_from_font_name): If a font is specified for
26482 a frame, generate a fontset from the font.
26483 (build_scalable_font_name): If the scalable font is requested for
26484 a specific size, don't change that size.
26485 (try_font_list): Try a scalable font also in the case that a
26486 pattern string is specified.
26487
26488 2008-02-01 Kenichi Handa <handa@m17n.org>
26489
26490 * xfaces.c (Fface_font): New optional arg CHARACTER.
26491
26492 2008-02-01 Kenichi Handa <handa@m17n.org>
26493
26494 * charset.h (CHARSET_OFFSET): New macro.
26495
26496 2008-02-01 Kenichi Handa <handa@m17n.org>
26497
26498 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26499
26500 * fontset.c (fontset_face): Handle the case that repertory is a
26501 char-table.
26502 (find_font_encoding): Return nil for unknown encoding.
26503 (Fset_fontset_font): Ignore a font of unknown encoding.
26504
26505 2008-02-01 Kenichi Handa <handa@m17n.org>
26506
26507 * keymap.c (describe_vector): Handle default value of a char table.
26508
26509 * fontset.c (fontset_face): Handle fallback fonts correctly.
26510 (Ffontset_info): Return infomation about fallback fonts.
26511
26512 2008-02-01 Kenichi Handa <handa@m17n.org>
26513
26514 * fontset.c (FONTSET_DEFAULT): New macro.
26515 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26516 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26517 the case that it is nil.
26518 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26519 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26520
26521 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26522 subset or superset.
26523
26524 2008-02-01 Kenichi Handa <handa@m17n.org>
26525
26526 * emacs.c (main): Call init_charset after syms_of_XXX.
26527
26528 * charset.c (Vcharset_map_directory): Delete.
26529 (Vcharset_map_path): New variable.
26530 (load_charset_map_from_file): Use Vcharset_map_path instead.
26531 (init_charset): Initialize Vcharset_map_path.
26532 (syms_of_charset): Delete declaration of "charset-map-directory",
26533 add declaration of "charset-map-path".
26534
26535 2008-02-01 Kenichi Handa <handa@m17n.org>
26536
26537 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26538 ASCII only string.
26539
26540 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26541
26542 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26543 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26544
26545 2008-02-01 Kenichi Handa <handa@m17n.org>
26546
26547 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26548
26549 * coding.c (QCmnemonic, QCdefalut_char)
26550 (QCdecode_translation_table, QCencode_translation_table)
26551 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26552 (get_translation_table): Return a list of translation tables if
26553 necessary.
26554 (decode_coding): Call get_translation_table with ENCODEP 0.
26555 (char_encodable_p): If translation_table is non-nil, always call
26556 translate_char.
26557 (Fdefine_coding_system_internal): Accept list of translation
26558 tables as :encode-translation-table and :decode-translation-table.
26559 (Fcoding_system_put): New function.
26560 (syms_of_coding): Declare new symbols.
26561 Defsubr Scoding_system_put.
26562 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26563 typically JISX0212.
26564
26565 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26566 when the charset is superset type.
26567
26568 * character.c (translate_char): Accept list of translation tables.
26569
26570 2008-02-01 Kenichi Handa <handa@m17n.org>
26571
26572 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26573 (CODING_ATTR_TRANS_TBL): New macro.
26574
26575 * coding.c (get_translation_table): New function.
26576 (translate_chars): Fix the bug of skipping annotation data.
26577 (decode_coding, encode_coding): Utilize get_translation_table.
26578 (char_encodable_p, Funencodable_char_position): Translate char if
26579 necessary.
26580 (Ffind_coding_systems_region_internal)
26581 (Fcheck_coding_systems_region): Setup translation table for encode
26582 in a coding system attribute vector in advance.
26583 (Fdefine_coding_system_internal): Allow a symbol as translation
26584 table. For shift-jis type coding system, allow 4th charset.
26585
26586 2008-02-01 Kenichi Handa <handa@m17n.org>
26587
26588 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26589
26590 * xdisp.c (get_next_display_element): Pass -1 as POS to
26591 FACE_FOR_CHAR if displaying a C-string.
26592
26593 2008-02-01 Kenichi Handa <handa@m17n.org>
26594
26595 * composite.c (get_composition_id): Handle xoff and yoff in a
26596 composition rule.
26597
26598 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26599 (struct composition): New member lbearing and rbearing.
26600
26601 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26602 (x_get_glyph_overhangs): Handle a composition glyph.
26603 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26604
26605 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26606 composition glyph.
26607
26608 2008-02-01 Kenichi Handa <handa@m17n.org>
26609
26610 * print.c: Include charset.h.
26611 (Vprint_charset_text_property): New variable.
26612 (Qdefault): Extern it.
26613 (PRINT_STRING_NON_CHARSET_FOUND)
26614 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26615 (print_check_string_result): New variable.
26616 (print_check_string_charset_prop): New function.
26617 (print_prune_charset_plist): New variable.
26618 (print_prune_string_charset): New function.
26619 (print_object): Call print_prune_string_charset if
26620 Vprint_charset_text_property is not t.
26621 (print_interval): Print nothing if interval->plist is nil.
26622 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26623 variable. Init and staticpro print_prune_charset_plist.
26624
26625 2008-02-01 Kenichi Handa <handa@m17n.org>
26626
26627 * fontset.c (new_fontset_from_font_name): Use the specified font
26628 for all characters in the new fontset.
26629
26630 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26631 OBJECT args.
26632
26633 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26634 OBJECT args for composition too.
26635
26636 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26637 OBJECT args.
26638
26639 2008-02-01 Kenichi Handa <handa@m17n.org>
26640
26641 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26642
26643 * fontset.c (reorder_font_vector): Adjust for the change of
26644 FONT_DEF format.
26645 (fontset_face): New arg id. Change caller.
26646 (face_for_char): New args pos and object.
26647 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26648 (fs_query_fontset): Check NAME by Fassoc too.
26649 (Fset_fontset_font): Allow non-XLFD font name.
26650 (Ffontset_info): Adjust for the change of FONT_DEF format.
26651
26652 * fontset.h (face_for_char): Adjust prototype.
26653
26654 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26655 (append_space, extend_face_to_end_of_line)
26656 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26657 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26658
26659 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26660 POS and OBJECT args.
26661
26662 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26663 POS and OBJECT args.
26664
26665 2008-02-01 Jason Rumney <jasonr@gnu.org>
26666
26667 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26668 of GlobalAlloc'ed memory.
26669
26670 2008-02-01 Kenichi Handa <handa@m17n.org>
26671
26672 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26673
26674 * charset.h (charset_table_used): Delete extern.
26675
26676 * charset.c (charset_table_used): Make it static.
26677 (map_charset_chars): Fix args to c_function with.
26678
26679 * chartab.c (map_sub_char_table_for_charset): Fix args to
26680 c_function with.
26681
26682 * coding.h (enum coding_result_code):
26683 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26684
26685 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26686 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26687 (Vlast_code_conversion_error): New variables.
26688 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26689 (ONE_MORE_BYTE): Record error if any instead of signaling an
26690 error. If non-ASCII multibyte char is found, return the negative
26691 value of the code. All callers changed to check it.
26692 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26693 (record_conversion_result): New function. Change all codes setting
26694 coding->result to call this function.
26695 (detect_coding_utf_8, decode_coding_utf_8)
26696 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26697 Don't use the local variable incomplete.
26698 (emacs_mule_char): Change the second arg to `const'.
26699 (decode_coding): Fix of flushing out unprocessed data.
26700 (make_conversion_work_buffer): Fix making of a work buffer.
26701 (decode_coding_object): Return coding->dst_object.
26702
26703 * fontset.c (set_fontset_font): Fix args.
26704
26705 * lisp.h (CHARACTERBITS): Define as 22.
26706
26707 * process.c (send_process): Be sure to set coding->src_multibyte.
26708
26709 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26710
26711 2008-02-01 Kenichi Handa <handa@m17n.org>
26712
26713 * xdisp.c (handle_auto_composed_prop): Give limit to
26714 Fnext_single_char_property_change.
26715
26716 2008-02-01 Kenichi Handa <handa@m17n.org>
26717
26718 * composite.c (syms_of_composite): Don't make the composition hash
26719 table weak.
26720
26721 * fontset.c (Fset_fontset_font): Fix docstring.
26722
26723 * lisp.h (detect_coding_system): Adjust prototype.
26724
26725 * fileio.c (kill_workbuf_unwind): Delete this function.
26726 (Finsert_file_contents): Adjust the call of detect_coding_system.
26727 Get conversion_buffer by code_conversion_save. Use the macro
26728 CODING_MAY_REQUIRE_DECODING. After decoding, update
26729 coding_system.
26730
26731 * coding.h (make_conversion_work_buffer): Delete extern.
26732 (code_conversion_save): Extern it.
26733
26734 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26735 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26736 (decode_coding_utf_8): Don't do eol converion.
26737 (detect_coding_utf_16): Check coding->src_chars, not
26738 coding->src_bytes. Add heuristics for those that have no signature.
26739 (decode_coding_emacs_mule, decode_coding_iso_2022)
26740 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26741 Don't do eol converion.
26742 (adjust_coding_eol_type): Return a new coding system.
26743 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26744 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26745 each change.
26746 (decode_coding): Pay attention to undo_list. Do eol conversion for
26747 all types of coding-systems (if necessary).
26748 (Vcode_conversion_work_buf_list): Delete it.
26749 (Vcode_conversion_reused_workbuf): Rename from
26750 Vcode_conversion_reused_work_buf.
26751 (Vcode_conversion_workbuf_name): New variable.
26752 (reused_workbuf_in_use): New variable.
26753 (make_conversion_work_buffer): Delete the arg DEPTH.
26754 (code_conversion_restore): Change argument to cons.
26755 (code_conversion_save): Delete the argument BUFFER. Change callers.
26756 (detect_coding_system): New argument src_chars. Change callers.
26757 Fix for utf-16 detection.
26758 (init_coding_once): Don't use ISO_carriage_return.
26759 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26760 reused_workbuf_in_use.
26761
26762 2008-02-01 Kenichi Handa <handa@m17n.org>
26763
26764 * keymap.c (store_in_keymap): Pay attention to the case that idx
26765 is a cons specifying a character range.
26766
26767 2008-02-01 Kenichi Handa <handa@m17n.org>
26768
26769 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26770 HANDLED_RECOMPUTE_PROPS.
26771
26772 * coding.c (Fdefine_coding_system_internal): Fix checking of
26773 ascii compatibility.
26774
26775 2008-02-01 Kenichi Handa <handa@m17n.org>
26776
26777 * charset.c (find_charsets_in_text): Delete unused locale variable.
26778 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26779
26780 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26781 Resync charset_list to Vemacs_mule_charset_list.
26782
26783 * keymap.c (store_in_keymap): Pay attention to the case that idx
26784 is a cons specifying a character range.
26785
26786 2008-02-01 Kenichi Handa <handa@m17n.org>
26787
26788 * composite.c (update_compositions): Bind inhibit-read-only, etc
26789 to t before calling remove-list-of-text-properties.
26790
26791 * print.c (print_object): Always print ASCII chars as is.
26792
26793 2008-02-01 Kenichi Handa <handa@m17n.org>
26794
26795 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26796
26797 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26798 is a char table.
26799
26800 2008-02-01 Kenichi Handa <handa@m17n.org>
26801
26802 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26803
26804 2008-02-01 Kenichi Handa <handa@m17n.org>
26805
26806 * xfaces.c (set_lface_from_font_name): Fix for the case that
26807 FONTNAME is not fontset name.
26808
26809 2008-02-01 Kenichi Handa <handa@m17n.org>
26810
26811 * fns.c (base64_encode_1): Fix previous change.
26812
26813 2008-02-01 Kenichi Handa <handa@m17n.org>
26814
26815 * fontset.c (set_fontset_font): New function.
26816 (Fset_fontset_font): If a font is specified for a charset, use
26817 map_charset_chars to store the font spec in a fontset.
26818
26819 2008-02-01 Kenichi Handa <handa@m17n.org>
26820
26821 * fontset.c (fontset_face): Create a fallback fontset on demand.
26822 (make_fontset): Don't create a fallback fontset here.
26823 (free_face_fontset): Free a fallback fontset (if any) too.
26824 (n_auto_fontsets): Delete this variable.
26825 (auto_fontset_alist): New variable.
26826 (new_fontset_from_font_name): Check auto_fontset_alist.
26827 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26828 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26829 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26830 Defsubr Sfontset_list_all.
26831
26832 2008-02-01 Kenichi Handa <handa@m17n.org>
26833
26834 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26835
26836 2008-02-01 Kenichi Handa <handa@m17n.org>
26837
26838 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26839
26840 2008-02-01 Kenichi Handa <handa@m17n.org>
26841
26842 * editfns.c (Fgoto_char): Fix docstring.
26843
26844 2008-02-01 Kenichi Handa <handa@m17n.org>
26845
26846 * insdel.c (insert_from_gap): Adjust intervals correctly.
26847
26848 2008-02-01 Jason Rumney <jasonr@gnu.org>
26849
26850 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26851 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26852 (w32_initialize): Try to load it.
26853 (x_get_font_repertory): Use it if available.
26854 (w32_encode_char): Add shortcut for unicode output.
26855
26856 * w32fns.c (w32_load_system_font): Default charset to -1.
26857 (x_to_w32_charset): Match all fonts for unicode.
26858 (w32_to_x_charset): New parameter matching. Don't return partial
26859 or wildcard charsets.
26860 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26861 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26862 (w32_to_x_font): Match charset to real charset.
26863 (enum_font_cb2): Always list unicode versions.
26864
26865 * makefile.w32-in (temacs): Increase EMHEAP.
26866
26867 2008-02-01 Jason Rumney <jasonr@gnu.org>
26868
26869 * w32term.c (w32_encode_char): New charset parameter.
26870 font_info.encoding becomes encoding_type.
26871 (x_get_font_repertory): New function. Warning: stub only!
26872 (x_new_font): Return quickly if font already set.
26873 (x_new_fontset): fontsetname parameter is Lisp_Object.
26874 Use new fs_query_fontset. Try new_fontset_from_font_name.
26875 Use fontset_name for return value.
26876
26877 * w32term.h: Declare x_get_font_repertory.
26878
26879 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26880 place of find_charset_in_text. Use encode_coding_object in place
26881 of encode_coding.
26882 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26883 decode_coding.
26884
26885 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26886 of x_new_fontset.
26887 (w32_load_system_font): Initialize charset as unicode.
26888 font_info.encoding becomes encoding_type.
26889 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26890 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26891 (syms_of_w32fns): Set get_font_repertory_func.
26892
26893 * w32console.c: Include character.h. Use terminal_encode_buffer
26894 from term.c.
26895 (write_glyphs): Use new version of encode_terminal_code.
26896 Use encode_coding_object in place of encode_coding.
26897
26898 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26899 encoding becomes encoding_type.
26900
26901 * term.c (terminal_encode_buffer): Make externally visible.
26902
26903 * makefile.w32-in: Add character.h dependancies.
26904 (character.o, chartab.o): New targets.
26905
26906 2008-02-01 Kenichi Handa <handa@m17n.org>
26907
26908 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26909 CODING_ID_EOL_TYPE.
26910
26911 2008-02-01 Andreas Schwab <schwab@suse.de>
26912
26913 * coding.c (produce_chars): Revert last change.
26914
26915 2008-02-01 Kenichi Handa <handa@m17n.org>
26916
26917 * charset.h (charset_unicode): Extern it.
26918
26919 * charset.c (string_xstring_p): Check by (C >= 0x100).
26920 (find_charsets_in_text): Change format of the arc CHARSETS.
26921 New arg MULTIBYTE.
26922 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26923 change of find_charsets_in_text.
26924 (Fsplit_char): Fix doc. Never return unknown.
26925
26926 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26927
26928 * coding.c (Fdefine_coding_system_alias):
26929 Update Vcoding_system_list.
26930
26931 * fontset.c (load_font_get_repertory): Pay attention to the case
26932 that ENCODING of a font is specified by a char-table.
26933
26934 * xterm.c (x_get_font_repertory): Handle the case that the
26935 encoding of font is other than Unicode.
26936
26937 2008-02-01 Kenichi Handa <handa@m17n.org>
26938
26939 * term.c (encode_terminal_code): Don't handle glyph-table.
26940 Check if a character is encodable by the terminal coding system.
26941 If not, produces proper number of `?'s. Update
26942 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26943 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26944
26945 2008-02-01 Kenichi Handa <handa@m17n.org>
26946
26947 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26948 New variables.
26949 (encode_terminal_code): Change argument. Encode multiple
26950 characters at once. Store the result of encoding in
26951 terminal_encode_buffer.
26952 (write_glyphs, insert_glyphs): Adjust for the change of
26953 encode_terminal_code.
26954 (term_init): Initialize terminal_encode_buffer and
26955 terminal_encode_buf_size.
26956
26957 * coding.c (consume_chars): If coding->src_object is nil, don't
26958 check annotation.
26959
26960 2008-02-01 Kenichi Handa <handa@m17n.org>
26961
26962 * character.c (char_string): Use ASCII_CHAR_P instead of
26963 SINGLE_BYTE_CHAR_P.
26964
26965 2008-02-01 Kenichi Handa <handa@m17n.org>
26966
26967 * xdisp.c (handle_auto_composed_prop): Check if the last
26968 characters of auto-composed region is newly composed with the
26969 following characters.
26970 (handle_composition_prop): Fix checking of point being inside
26971 composition.
26972
26973 2008-02-01 Kenichi Handa <handa@m17n.org>
26974
26975 * fns.c (concat): Don't change multibyteness of the result by
26976 concatenating an 8-bit character.
26977
26978 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26979 multibyteness of the result when newelt is an 8-bit character.
26980
26981 2008-02-01 Dave Love <fx@gnu.org>
26982
26983 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26984 EMACS_INT.
26985
26986 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26987
26988 * xfaces.c (face_numeric_value): Declare dim size_t.
26989 (Finternal_lisp_face_equal_p): Remove unused f.
26990
26991 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26992 (MATRIX_ROW): Remove unused vars.
26993 (draw_glyphs, x_insert_glyphs, fast_find_position)
26994 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26995 byte/char counts.
26996
26997 * regex.c (regex_compile): Remove unused var.
26998
26999 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27000
27001 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
27002 (Faccessible_keymaps, where_is_internal): Remove unused vars.
27003
27004 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
27005
27006 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
27007
27008 * fileio.c (Fwrite_region): Remove unused var.
27009
27010 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
27011 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
27012
27013 * composite.c (Fremove_list_of_text_properties): Declare.
27014
27015 * coding.c (inhibit_pre_post_conversion): Remove (unused).
27016 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
27017 (coding_inherit_eol_type): Remove unused attrs.
27018 (detect_coding): Cast arg of detect_eol.
27019
27020 * charset.c (syms_of_charset): Remove unused var p.
27021 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
27022 byte/char counts.
27023
27024 * casetab.c (set_case_table): Remove unused var.
27025
27026 * window.c (Fdisplay_buffer, Fframe_selected_window):
27027 Remove unused vars.
27028
27029 2008-02-01 Dave Love <fx@gnu.org>
27030
27031 * xterm.c (x_bitmap_mask): Declare.
27032
27033 2008-02-01 Dave Love <fx@gnu.org>
27034
27035 * xterm.c (x_term_init): Fix type error.
27036
27037 * lisp.h: Add Funibyte_char_to_multibyte.
27038
27039 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
27040 (Fset_coding_system_priority): Doc fix.
27041
27042 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
27043
27044 * indent.c (check_composition): Make start and end EMACS_INT.
27045
27046 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
27047
27048 * xdisp.c (handle_composition_prop, check_point_in_composition):
27049 Make buffer positions EMACS_INT.
27050
27051 * composite.c (find_composition, run_composition_function)
27052 (update_compositions, Ffind_composition_internal): Make buffer
27053 positions EMACS_INT.
27054
27055 * composite.h (find_composition, update_compositions):
27056 Make position args EMACS_INT.
27057
27058 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
27059
27060 * intervals.c (get_property_and_range):
27061 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
27062
27063 * unexalpha.c: Don't include varargs.h.
27064
27065 2008-02-01 Dave Love <fx@gnu.org>
27066
27067 * coding.h (ENCODE_UTF_8): New.
27068
27069 * Makefile.in (gtkutil.o): Depend on coding.h.
27070
27071 * coding.c (Fset_coding_system_priority): Doc fix.
27072
27073 2008-02-01 Kenichi Handa <handa@m17n.org>
27074
27075 * fileio.c (Finsert_file_contents): Call setup_coding_system in
27076 the case of auto saving.
27077
27078 2008-02-01 Andreas Schwab <schwab@suse.de>
27079
27080 * chartab.c (map_char_table, map_char_table_for_charset):
27081 Protect `range' from GC.
27082
27083 2008-02-01 Kenichi Handa <handa@m17n.org>
27084
27085 * coding.c (decode_coding_sjis): Check bytes more rigidly.
27086
27087 2008-02-01 Kenichi Handa <handa@m17n.org>
27088
27089 * fileio.c (choose_write_coding_system): Return a decided coding system.
27090 (Fwrite_region): Set Vlast_coding_system_used to the return value
27091 of choose_write_coding_system.
27092
27093 2008-02-01 Kenichi Handa <handa@m17n.org>
27094
27095 * charset.c (Fset_charset_priority): Pay attention to duplicated
27096 arguments.
27097
27098 * coding.c (QCcategory): New variable.
27099 (syms_of_coding): Defsym it. Set all elements of
27100 Vcoding_category_table and their symbol values.
27101 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
27102 coding-category-XXX, and coding-category-list.
27103 (Fdefine_coding_system_internal): Add category in the plist.
27104
27105 2008-02-01 Kenichi Handa <handa@m17n.org>
27106
27107 * callproc.c (Fcall_process): Handle carryover correctly.
27108
27109 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
27110 (raw_text_coding_system): Check NILP (coding_system).
27111 (coding_inherit_eol_type): Check NILP (coding_system) and
27112 NILP (parent).
27113 (consume_chars): Fix for the case of raw-text.
27114
27115 * process.c (read_process_output): Handle carryover correctly.
27116
27117 2008-02-01 Dave Love <fx@gnu.org>
27118
27119 * regex.c (re_search_2): Fix last change.
27120
27121 2008-02-01 Kenichi Handa <handa@m17n.org>
27122
27123 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
27124 target_multibyte. Even in a unibyte case, return a converted
27125 multibyte char.
27126 (GET_CHAR_AFTER): New macro.
27127 (PATFETCH): Translate via multibyte char.
27128 (HANDLE_UNIBYTE_RANGE): Delete this macro.
27129 (SETUP_MULTIBYTE_RANGE): New macro.
27130 (regex_compile): Setup compiled code so that its multibyteness
27131 matches that of a target. Fix the handling of "[X-YZ]" using
27132 SETUP_MULTIBYTE_RANGE.
27133 (analyse_first) <charset>: For filling fastmap for all multibyte
27134 characters, don't check by BASE_LEADING_CODE_P.
27135 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
27136 the same as RE_MULTIBYTE_P (bufp) now.
27137 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
27138 (TARGET_CHAR_AND_LENGTH): Delete this macro.
27139 (TRANSLATE_VIA_MULTIBYTE): New macro.
27140 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
27141 It is the same as RE_MULTIBYTE_P (bufp) now.
27142 <exactn>: Translate via multibyte.
27143 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
27144 Don't translate it.
27145 <charset, charset_not>: Fetch a character by
27146 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
27147 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
27148 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
27149 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
27150 by GET_CHAR_AFTER.
27151 (bcmp_translate): Likewise.
27152
27153 * search.c (compile_pattern): Check the member target_multibyte,
27154 not the member multibyte of buf.
27155
27156 * lread.c (read1): While reading a string, set force_singlebyte
27157 and force_multibyte correctly.
27158
27159 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
27160 up of unibyte_to_multibyte_table.
27161
27162 2008-02-01 Kenichi Handa <handa@m17n.org>
27163
27164 * coding.c (setup_coding_system): If coding has
27165 post-read-conversion or pre-write-conversion, set
27166 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
27167 respectively.
27168 (decode_coding_gap): Run post-read-conversion if any.
27169
27170 * fileio.c (Finsert_file_contents): Even if we read into a
27171 unibyte buffer, check if we must decode the result or not.
27172
27173 2008-02-01 Kenichi Handa <handa@m17n.org>
27174
27175 * coding.c (make_conversion_work_buffer): Change the work buffer
27176 name to the same one as that of Emacs 21.
27177
27178 2008-02-01 Kenichi Handa <handa@m17n.org>
27179
27180 * coding.h (make_conversion_work_buffer): Adjust prototype.
27181 (code_conversion_restore): Don't extern it.
27182
27183 * coding.c (detected_mask): Delete unused variable.
27184 (decode_coding_iso_2022): Pay attention to the byte sequence of
27185 CTEXT extended segment, and retain those bytes as is.
27186 (decode_coding_ccl): Delete unused variable `valids'.
27187 (setup_coding_system): Delete unused variable `category'.
27188 (consume_chars): Delete unused variable `category'. Make it work
27189 for non-multibyte case.
27190 (make_conversion_work_buffer): Change argument.
27191 (saved_coding): Delete unused variable.
27192 (code_conversion_restore): Don't check saved_coding->destination.
27193 (code_conversion_save): New function.
27194 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
27195 instead of record_unwind_protect.
27196 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
27197 (detect_coding_system): Delete unused variable `mask'.
27198 (Fdefine_coding_system_internal): Delete unused variable id.
27199
27200 * fileio.c (kill_workbuf_unwind): New function.
27201 (Finsert_file_contents): On replacing, call
27202 make_conversion_work_buffer with correct args, and call
27203 record_unwind_protect with the first arg kill_workbuf_unwind.
27204
27205 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
27206
27207 2008-02-01 Kenichi Handa <handa@m17n.org>
27208
27209 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
27210 (fontset_add): Fix for the case that TO is less than TO1.
27211 (Ffontset_info): Don't use fallback fontset on checking the
27212 default fontset.
27213 (dump_fontset): New function for debugging.
27214
27215 * coding.c (Fdefine_coding_system_internal): Fix for the case that
27216 coding_type is Qcharset.
27217
27218 2008-02-01 Kenichi Handa <handa@m17n.org>
27219
27220 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
27221 (map_char_table): Don't inherit the value from the parent on
27222 initializing VAL. Adjust for the above change.
27223
27224 2008-02-01 Kenichi Handa <handa@m17n.org>
27225
27226 * coding.c (Qsignature, Qendian): Delete these variables.
27227 (syms_of_coding): Don't initialize them.
27228 (CATEGORY_MASK_UTF_16_AUTO): New macro.
27229 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
27230 detect_info->found.
27231 (decode_coding_utf_16): Don't detect BOM here.
27232 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
27233 is NOT utf_16_without_bom.
27234 (setup_coding_system): For a coding system of type utf-16, check
27235 if the attribute :endian is Qbig or not (not nil or not), and set
27236 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
27237 (detect_coding): If coding type is utf-16 and BOM detection is
27238 required, detect it.
27239 (Fdefine_coding_system_internal): For a coding system of type
27240 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
27241
27242 2008-02-01 Kenichi Handa <handa@m17n.org>
27243
27244 * coding.c (coding_set_source): Fix for the case that the current
27245 buffer is different from coding->src_object.
27246 (decode_coding_object): Don't use the conversion work buffer if
27247 DST_OBJECT is a buffer.
27248
27249 2008-02-01 Dave Love <fx@gnu.org>
27250
27251 * lread.c (read_emacs_mule_char) [len==2]: Index
27252 emacs_mule_charset correctly.
27253
27254 2008-02-01 Dave Love <fx@gnu.org>
27255
27256 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27257 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27258 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27259 treated specially.)
27260 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27261 (detected_mask): Remove Big5 bits.
27262
27263 2008-02-01 Kenichi Handa <handa@m17n.org>
27264
27265 The following changes are to make the font rescaling facility
27266 compatible with Emacs 21.
27267
27268 * xfaces.c (Vface_font_rescale_alist): Rename from
27269 Vface_resizing_fonts.
27270 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27271 (font_rescale_ratio): Rename from font_resizing_ratio.
27272 (split_font_name): Set font->rescale_ratio.
27273 (better_font_p): Pay attention to font->rescale_ratio.
27274 (build_scalable_font_name): Likewise. Change RESX, and RESY
27275 fields.
27276 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27277
27278 2008-02-01 Kenichi Handa <handa@m17n.org>
27279
27280 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27281 (Qutf_16_le): Remove these variables.
27282 (syms_of_coding): Don't DEFSYM them.
27283 (decode_coding_utf_16): Fix handling of BOM.
27284 (encode_coding_utf_16): Fix handling of BOM.
27285
27286 2008-02-01 Kenichi Handa <handa@m17n.org>
27287
27288 * fileio.c (Finsert_file_contents): On replacing, before decoding
27289 the file into the work buffer, set point of the work buffer to the end.
27290
27291 2008-02-01 Dave Love <fx@gnu.org>
27292
27293 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27294
27295 2008-02-01 Dave Love <fx@gnu.org>
27296
27297 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27298 and fix C types.
27299
27300 2008-02-01 Kenichi Handa <handa@m17n.org>
27301
27302 * xdisp.c (SKIP_GLYPHS): New macro.
27303 (set_cursor_from_row): Pay attention to string display properties.
27304
27305 * category.c (copy_category_entry): Fix for the case that RANGE
27306 is an integer.
27307
27308 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27309
27310 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27311
27312 2008-02-01 Kenichi Handa <handa@m17n.org>
27313
27314 * charset.c (Fcharset_id_internal): New function.
27315 (syms_of_charset): Defsubr it.
27316
27317 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27318 with the last arg charset_list acquired from coding.
27319 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27320 the attribute coding_attr_ccl_valids.
27321
27322 * coding.h (enum define_coding_ccl_arg_index): Set the first
27323 member coding_arg_ccl_decoder to coding_arg_max.
27324
27325 * ccl.h (ccl_driver): Adjust prototype.
27326
27327 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27328 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
27329 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
27330 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27331 last arg Qnil.
27332
27333 2008-02-01 Kenichi Handa <handa@m17n.org>
27334
27335 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27336 call encode_char.
27337
27338 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27339
27340 2008-02-01 Dave Love <fx@gnu.org>
27341
27342 * composite.c (syms_of_composite): Make composition_hash_table weak.
27343
27344 2008-02-01 Kenichi Handa <handa@m17n.org>
27345
27346 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27347 (font_name_registry): Don't extern them.
27348 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27349
27350 * fontset.h (Qfontset): Don't extern it.
27351 (new_fontset_from_font_name): Extern it.
27352
27353 * fontset.c: Give 8 extra slots to fontset objects.
27354 (Qfontset_info): New variable.
27355 (syms_of_fontset): Defsym it.
27356 (FONTSET_FALLBACK): New macro.
27357 (fontset_face): Try also the default fontset.
27358 (make_fontset): Realize a fallback fontset from the default fontset.
27359 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27360 using split_font_name_into_vector and build_font_name_from_vector.
27361 (Fset_fontset_font): Access the elements of font_spec by enum
27362 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27363 name by using split_font_name_into_vector.
27364 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
27365 generate a proper font name from the fontset name.
27366 Update Vfontset_alias_alist.
27367 (n_auto_fontsets): New variable.
27368 (new_fontset_from_font_name): New function.
27369 (Ffont_info): Store the information about fonts generated from the
27370 default fontset in the first extra slot of the returned char-table.
27371
27372 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27373 (font_name_registry): Delete function.
27374 (split_font_name_into_vector): New function.
27375 (build_font_name_from_vector): New function.
27376 (font_list): The argument REGISTRY is now a list of registry names.
27377 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27378 specifies an explicit font name, return the name as is. Make a
27379 list of registy names.
27380
27381 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27382 of x_new_fontset.
27383 (Fx_create_frame): Don't call x_new_fontset here. Just use
27384 x_list_fonts to check the existence of fonts.
27385
27386 * xterm.h (x_new_fontset): Adjust prototype.
27387
27388 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27389 string. Use new_fontset_from_font_name to create a fontset from a
27390 font name.
27391
27392 2008-02-01 Kenichi Handa <handa@m17n.org>
27393
27394 * syntax.c (Vfind_word_boundary_function_table): New name for
27395 Vnext_word_boundary_function_table.
27396 (find-word-boundary-function-table): New name for
27397 next-word-boundary-function-table.
27398
27399 2008-02-01 Dave Love <fx@gnu.org>
27400
27401 * Makefile.in: Fix some dependencies.
27402
27403 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27404 set it to nil before returning.
27405
27406 * composite.c (update_compositions): Fix type error.
27407
27408 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27409
27410 2008-02-01 Kenichi Handa <handa@m17n.org>
27411
27412 * xterm.c (x_new_font): Optimize for the case that the font is
27413 already set for the frame.
27414
27415 2008-02-01 Kenichi Handa <handa@m17n.org>
27416
27417 * chartab.c (char_table_ascii): Check if the char table contents
27418 is sub-char-table or not.
27419 (char_table_set, char_table_set_range): Fix argument to
27420 char_table_ascii.
27421
27422 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27423 (detect_coding_utf_8, detect_coding_utf_16)
27424 (detect_coding_emacs_mule, detect_coding_iso_2022)
27425 (detect_coding_sjis, detect_coding_big5)
27426 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27427 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27428 sequence is valid in this coding system. Change callers.
27429 (MAX_ANNOTATION_LENGTH): New macro.
27430 (ADD_ANNOTATION_DATA): New macro.
27431 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27432 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
27433 (ADD_CHARSET_DATA): New macro.
27434 (emacs_mule_char): New argument ID. Change callers.
27435 (decode_coding_emacs_mule, decode_coding_iso_2022)
27436 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27437 Produce charset annotation data in coding->charbuf.
27438 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27439 to charset annotation data in coding->charbuf.
27440 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27441 coding->common_flags if the coding system is iso-2022 based and
27442 uses designation.
27443 (produce_composition): Adjust for the new annotation data format.
27444 (produce_charset): New function.
27445 (produce_annotation): Handle charset annotation.
27446 (handle_composition_annotation, handle_charset_annotation):
27447 New functions.
27448 (consume_chars): Handle charset annotation. Utilize the above two
27449 functions.
27450 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27451 buffer, get the deleted text as a string and set
27452 coding->src_object to that string.
27453 (detect_coding, detect_coding_system): Use the new struct
27454 coding_detection_info.
27455
27456 * coding.h (struct coding_detection_info): New structure.
27457 (struct coding_system): Adjust prototype of the member `detector'.
27458 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27459
27460 2008-02-01 Kenichi Handa <handa@m17n.org>
27461
27462 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27463
27464 2008-02-01 Dave Love <fx@gnu.org>
27465
27466 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27467 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27468 to new local and nullify apropos_accumulate before returning.
27469 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27470
27471 2008-02-01 Kenichi Handa <handa@m17n.org>
27472
27473 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27474 correctly.
27475
27476 2008-02-01 Dave Love <fx@gnu.org>
27477
27478 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27479
27480 2008-02-01 Kenichi Handa <handa@m17n.org>
27481
27482 The following changes are to make character composition happen
27483 automatically on displaying.
27484
27485 * Makefile.in (lisp, shortlisp): Add composite.elc.
27486
27487 * composite.h (Qauto_composed, Vauto_composition_function)
27488 (Qauto_composition_function): Extern them.
27489
27490 * composite.c (Vcomposition_function_table)
27491 (Qcomposition_function_table): Delete variables.
27492 (Qauto_composed, Vauto_composition_function)
27493 (Qauto_composition_function): New variables.
27494 (run_composition_function): Don't call
27495 compose-chars-after-function.
27496 (update_compositions): Clear `auto-composed' text property.
27497 (compose_chars_in_text): Delete this function.
27498 (syms_of_composite): Staticpro Qauto_composed and
27499 Qauto_composition_function. Declare Vauto_composition_function as
27500 a Lisp variable.
27501
27502 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27503
27504 * xdisp.c (it_props): Add an entry for Qauto_composed.
27505 (handle_auto_composed_prop): New function.
27506
27507 * xselect.c (selection_data_to_lisp_data): Don't call
27508 compose_chars_in_text.
27509
27510 2008-02-01 Dave Love <fx@gnu.org>
27511
27512 * keyboard.c (read_char): Modify checking around use of
27513 Vkeyboard_translate_table.
27514
27515 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27516 and fix C types.
27517
27518 2008-02-01 Kenichi Handa <handa@m17n.org>
27519
27520 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27521 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27522 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27523 the case that the last byte is '\r' correctly.
27524 (decode_coding): Flush out the unprocessed data correctly.
27525 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27526
27527 2008-02-01 Dave Love <fx@gnu.org>
27528
27529 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27530 Add XK_ISO... case.
27531 (xaw_scroll_callback): Revert last change.
27532
27533 2008-02-01 Kenichi Handa <handa@m17n.org>
27534
27535 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27536
27537 2008-02-01 Kenichi Handa <handa@m17n.org>
27538
27539 * xfaces.c (Vface_resizing_fonts): New variable.
27540 (struct font_name): New member `resizing_ratio'.
27541 (font_resizing_ratio): New function.
27542 (split_font_name): Set font->resizing_ratio.
27543 (better_font_p): Pay attention to font->resizing_ratio.
27544 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27545 RESX, and RESY fields.
27546 (try_alternative_families): Try scalable fonts if
27547 Vscalable_fonts_allowed is not Qt.
27548 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27549
27550 2008-02-01 Dave Love <fx@gnu.org>
27551
27552 * xterm.c (xaw_scroll_callback): Cast correctly.
27553
27554 2008-02-01 Dave Love <fx@gnu.org>
27555
27556 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27557 (lispy_kana_keys): Comment out.
27558 (make_lispy_event) [XK_kana_A]: Comment out.
27559
27560 * xterm.c (xaw_scroll_callback): Cast call_data.
27561 (XTread_socket): Deal with ASCII keysyms.
27562 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27563
27564 2008-02-01 Dave Love <fx@gnu.org>
27565
27566 * xterm.c (Vx_keysym_table): New.
27567 (syms_of_xterm): Initialize it.
27568 (XTread_socket): Use it.
27569 From head: Eliminate incorrect optimization that tried to avoid
27570 decoding the output of X*LookupString.
27571 (x_get_font_repertory): Delete charset declaration.
27572
27573 2008-02-01 Kenichi Handa <handa@m17n.org>
27574
27575 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27576 return 0.
27577 (Fdefine_coding_system_internal):
27578 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27579
27580 2008-02-01 Dave Love <fx@gnu.org>
27581
27582 * coding.c (Fcheck_coding_system): Doc fix.
27583
27584 * editfns.c (Finsert_byte): Return a proper value.
27585
27586 2008-02-01 Kenichi Handa <handa@m17n.org>
27587
27588 * coding.c (decode_coding): Fix args to translate_chars.
27589 Pay attention to Vstandard_translation_table_for_decode.
27590 (encode_coding): Fix args to translate_chars. Pay attention to
27591 Vstandard_translation_table_for_encode.
27592
27593 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27594 SINGLE_BYTE_CHAR_P.
27595
27596 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27597 not by SINGLE_BYTE_CHAR_P.
27598
27599 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27600 SINGLE_BYTE_CHAR_P.
27601
27602 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27603 SINGLE_BYTE_CHAR_P.
27604
27605 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27606 by SINGLE_BYTE_CHAR_P.
27607
27608 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27609 SINGLE_BYTE_CHAR_P.
27610
27611 2008-02-01 Dave Love <fx@gnu.org>
27612
27613 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27614
27615 2008-02-01 Dave Love <fx@gnu.org>
27616
27617 * fns.c (Flanginfo): Fix typo.
27618
27619 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27620
27621 2008-02-01 Kenichi Handa <handa@m17n.org>
27622
27623 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27624 (detect_coding_emacs_mule, detect_coding_iso_2022)
27625 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27626 incomplete byte sequence. Don't update *mask when correctly detected.
27627 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27628 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27629 (detect_coding, detect_coding_system): Adjust for the changes above.
27630
27631 2008-02-01 Kenichi Handa <handa@m17n.org>
27632
27633 * character.c (char_string): Rename from
27634 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27635 (string_char): Rename from string_char.
27636
27637 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27638 if C is greater than MAX_3_BYTE_CHAR.
27639 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27640 Call string_char instead of string_char_with_unification.
27641
27642 2008-02-01 Dave Love <fx@gnu.org>
27643
27644 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27645
27646 2008-02-01 Kenichi Handa <handa@m17n.org>
27647
27648 * keymap.c (push_key_description): Pay attention to force_multibyte.
27649
27650 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27651
27652 2008-02-01 Dave Love <fx@gnu.org>
27653
27654 * charset.c (define_charset_internal): Rename `supprementary'.
27655
27656 * Makefile.in (lisp, shortlisp): Remove latin-N.
27657
27658 2008-02-01 Dave Love <fx@gnu.org>
27659
27660 * xfns.c (x_window, x_window): Use use_xim.
27661
27662 * xterm.c (use_xim): Initialize.
27663 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27664 (x_term_init): Maybe set use_xim.
27665
27666 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27667
27668 2008-02-01 Kenichi Handa <handa@m17n.org>
27669
27670 * search.c (search_buffer): Fix case-fold-search of multibyte
27671 characters.
27672 (boyer_moore): Rename the last argument to char_high_bits.
27673
27674 2008-02-01 Kenichi Handa <handa@m17n.org>
27675
27676 * xdisp.c (display_string): Fix for the case of zero width glyph.
27677
27678 * xfns.c (x_set_font): Change the error message of the case that
27679 x_new_fontset returns Qt.
27680
27681 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27682 (Finternal_set_lisp_face_attribute): Use signal_error for the
27683 error of invalid fontset.
27684
27685 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27686 fontset, return Qt.
27687
27688 2008-02-01 Dave Love <fx@gnu.org>
27689
27690 * unexelf.c (unexec): Make .got handling not SGI-specific.
27691
27692 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27693
27694 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27695
27696 * keyboard.c (read_key_sequence): Fix type error.
27697
27698 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27699 Fix type error.
27700
27701 * fontset.c (fontset_add): Return Lisp_Object.
27702
27703 2008-02-01 Dave Love <fx@gnu.org>
27704
27705 * charset.h (charset_ordered_list_tick): Declare extern.
27706
27707 2008-02-01 Kenichi Handa <handa@m17n.org>
27708
27709 The following changes (and some of 2008-02-01 changes of mine) are
27710 for handling syntax, category, and case conversion for unibyte
27711 characters by converting them to multibyte on the fly. With these
27712 changes, we don't have to setup syntax and case tables for unibyte
27713 characters in each language environment.
27714
27715 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27716 multibyte if necessary.
27717
27718 * bytecode.c (Fbyte_code): Likewise.
27719
27720 * character.h (LEADING_CODE_LATIN_1_MIN)
27721 (LEADING_CODE_LATIN_1_MAX): New macros.
27722 (unibyte_to_multibyte_table): Extern it.
27723 (unibyte_char_to_multibyte): New macro.
27724 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27725 (CHAR_LEADING_CODE): New macro.
27726 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27727
27728 * character.c (unibyte_to_multibyte_table): New variable.
27729 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27730 (multibyte_char_to_unibyte): If C is an eight-bit character,
27731 convert it to the corresponding byte value.
27732
27733 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27734 not 1, signals an error. Update the elements of
27735 unibyte_to_multibyte_table.
27736 (init_charset_once): Initialize unibyte_to_multibyte_table.
27737 (syms_of_charset): Define the charset `iso-8859-1'.
27738
27739 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27740 as is without converting it to unibyte. In a unibyte buffer,
27741 convert C to multibyte before checking the syntax.
27742
27743 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27744
27745 * minibuf.c (Fminibuffer_complete_word): Use the macro
27746 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27747
27748 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27749
27750 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27751 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27752 If that is zero, convert an eight-bit char to multibyte.
27753 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27754 non-emacs case.
27755 (PATFETCH): Convert an eight-bit char to multibyte.
27756 (HANDLE_UNIBYTE_RANGE): New macro.
27757 (regex_compile): Setup the compiled pattern for multibyte chars
27758 even if the given regex string is unibyte. Use PATFETCH_RAW
27759 instead of PATFETCH in many places. To handle `charset'
27760 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27761 only for ASCII chars.
27762 (analyse_first) <exactn>: Simplify because the compiled pattern
27763 is multibyte.
27764 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27765 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27766 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27767 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27768 multibyte always 1.
27769 (re_search_2): In emacs, set the locale variable multibyte to 1,
27770 otherwise to 0. New local variable target_multibyte. Check it
27771 to decide the multibyteness of STR1 and STR2.
27772 If target_multibyte is zero, convert unibyte chars to multibyte
27773 before translating and checking fastmap.
27774 (TARGET_CHAR_AND_LENGTH): New macro.
27775 (re_match_2_internal): In emacs, set the locale variable multibyte
27776 to 1, otherwise to 0. New local variable target_multibyte.
27777 Check it to decide the multibyteness of STR1 and STR2.
27778 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27779 <charset, charset_not>: If multibyte is nonzero, check fastmap
27780 only for ASCII chars. Call bcmp_translate with
27781 target_multibyte, not with multibyte.
27782 <begline>: Declare the local variable C as `unsigned'.
27783 (bcmp_translate): Change the last arg name to target_multibyte.
27784
27785 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27786 the regexp pattern and the matching target. Set cp->buf.multibyte
27787 to the multibyteness of the regexp pattern. Set
27788 cp->but.target_multibyte to the multibyteness of the matching target.
27789 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27790 FETCH_STRING_CHAR_ADVANCE.
27791 (Freplace_match): Convert unibyte chars to multibyte.
27792
27793 * syntax.c (char_quoted, back_comment, scan_words)
27794 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27795 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27796 unibyte chars to multibyte.
27797 (skip_chars): Delete the arg syntaxp, and move the code for
27798 handling syntaxes to skip_syntaxes. Change callers.
27799 Fix the case that the multibyteness of STRING and the current
27800 buffer doesn't match.
27801 (skip_syntaxes): New function.
27802 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27803 SINGLE_BYTE_CHAR_P.
27804
27805 2008-02-01 Kenichi Handa <handa@m17n.org>
27806
27807 * xfaces.c (QCfontset): New variable.
27808 (LFACE_FONTSET): New macro.
27809 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27810 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27811 (Finternal_set_lisp_face_attribute)
27812 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27813 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27814 check also LFACE_FONTSET_INDEX.
27815 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27816 attrs[LFACE_FONT_INDEX].
27817 (syms_of_xfaces): Intern and staticpro QCfontset.
27818
27819 * dispextern.h (enum lface_attribute_index): New member
27820 LFACE_FONTSET_INDEX.
27821
27822 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27823
27824 2008-02-01 Kenichi Handa <handa@m17n.org>
27825
27826 * coding.c (coding_set_destination): Fix coding->destination for
27827 the case converting a region.
27828 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27829 (encode_coding_object): Fix coding->dst_pos and
27830 coding->dst_pos_byte for the case converting a region.
27831
27832 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27833
27834 * character.h (BYTE8_STRING): New macro.
27835
27836 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27837
27838 2008-02-01 Kenichi Handa <handa@m17n.org>
27839
27840 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27841 characters by octal form.
27842
27843 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27844
27845 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27846 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27847 _fetch_multibyte_char_len.
27848 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27849
27850 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27851
27852 * casefiddle.c (casify_object): Simplify. Handle the case that
27853 the case conversion change the byte length.
27854 (casify_region): Likewise.
27855
27856 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27857
27858 * character.c (_fetch_multibyte_char_len): Delete this variable.
27859 (syms_of_character): Setup Vprintable_chars.
27860
27861 * editfns.c (Fchar_equal): Fix for the unibyte case.
27862 (Finsert_byte): New function.
27863 (syms_of_editfns): Defsubr it.
27864
27865 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27866 of direct code 0x3ffff.
27867
27868 * search.c (Freplace_match): Fix for the unibyte case.
27869
27870 2008-02-01 Kenichi Handa <handa@m17n.org>
27871
27872 * lread.c (safe_to_load_p): Fix the logic.
27873
27874 * syntax.c (scan_words): Don't treat characters belonging to
27875 different scripts as constituting a word.
27876
27877 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27878
27879 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27880
27881 * emacs.c (main): In the case of --unibyte, instead of aborting on
27882 finding non-empty buffer, make it unibyte.
27883
27884 2008-02-01 Kenichi Handa <handa@m17n.org>
27885
27886 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27887 to create a fontset.
27888
27889 2008-02-01 Dave Love <fx@gnu.org>
27890
27891 * character.c (Funibyte_char_to_multibyte): Doc fix.
27892
27893 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27894
27895 2008-02-01 Kenichi Handa <handa@m17n.org>
27896
27897 * fontset.c (fontset_add): Make the type `int'.
27898 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27899
27900 * character.c (unibyte_char_to_multibyte)
27901 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27902 charset_unibyte, not charset_primary.
27903
27904 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27905
27906 * charset.c (charset_unibyte): Rename from charset_primary.
27907 (Funibyte_charset): Rename from Fprimary_charset.
27908 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27909 (syms_of_charset): Adjust for the above changes.
27910
27911 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27912 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27913 it->multibyte_p is zero.
27914
27915 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27916 Delete extern.
27917
27918 2008-02-01 Kenichi Handa <handa@m17n.org>
27919
27920 * coding.c (Fdefine_coding_system_internal): Fix category setting
27921 for a coding system of type iso-2022.
27922
27923 2008-02-01 Kenichi Handa <handa@m17n.org>
27924
27925 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27926
27927 2008-02-01 Kenichi Handa <handa@m17n.org>
27928
27929 * syntax.c (Vnext_word_boundary_function_table): New variable.
27930 (next-word-boundary-function-table): Declare it as a Lisp variable
27931 in syms_of_syntax.
27932 (scan_words): Call functions in Vnext_word_boundary_function_table
27933 if any.
27934
27935 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27936
27937 * fontset.c (fs_load_font): If fontp->charset is not negative,
27938 return fontp without setting its members.
27939
27940 2008-02-01 Dave Love <fx@gnu.org>
27941
27942 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27943
27944 * m/sparc.h (HAVE_ALLOCA): Delete.
27945
27946 * s/irix6-5.h: Don't include strings.h.
27947 (bcopy, bzero, bcmp): Don't undef.
27948
27949 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27950
27951 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27952 (TIOCSIGSEND): Don't test IRIX6.
27953 (bcopy, bzero, bcmp): Define conditionally.
27954
27955 2008-02-01 Kenichi Handa <handa@m17n.org>
27956
27957 * buffer.c (Qas, Qmake, Qto): New variables.
27958 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27959 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27960
27961 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27962 we are inserting a process output into a multibyte buffer.
27963
27964 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27965 multibyte_char_to_unibyte.
27966
27967 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27968 by the primary charset, make it eight-bit char.
27969 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27970
27971 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27972 (charset_8_bit__control, charset_8_bit_graphic)
27973 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27974 (define_charset_internal): New function.
27975 (syms_of_charset): Call define_charset_internal for pre-defined
27976 charsets.
27977
27978 * charset.h (charset_8_bit): Extern it.
27979
27980 * coding.c (make_conversion_work_buffer): Adjust for the change
27981 of Fset_buffer_multibyte.
27982 (encode_coding_raw_text): Increment p0 in the loop.
27983
27984 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27985
27986 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27987 Adjust for the change of Fset_buffer_multibyte.
27988
27989 * fns.c (Fstring_to_multibyte): New function.
27990 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27991
27992 2008-02-01 Dave Love <fx@gnu.org>
27993
27994 * xfns.c (x_put_x_image): Declare args.
27995
27996 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27997 (try_font_list): Declare an arg.
27998
27999 * xdisp.c (message2_nolog, set_message): Declare an arg.
28000
28001 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
28002
28003 * syntax.c (scan_sexps_forward): Declare an arg.
28004
28005 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
28006 Declare an arg.
28007
28008 * lisp.h (Fnew_fontset): Declare.
28009
28010 * keymap.c (push_key_description): Call CHARACTERP correctly.
28011
28012 * fontset.c (fontset_add): Declare args. Call make_number correctly.
28013 (face_for_char): Delete unused vars.
28014 (Fset_fontset_font): Doc fix. Delete unused vars.
28015
28016 * doc.c (Fsubstitute_command_keys): Delete unused vars.
28017
28018 * composite.c (update_compositions): Declare arg.
28019
28020 * cm.c (calccost, cmgoto): Declare args.
28021
28022 * charset.c: Remove `emacs' conditional. Doc fixes.
28023 (map_char_table_for_charset): Declare.
28024
28025 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
28026
28027 * ccl.c: Remove `emacs' conditional.
28028
28029 2008-02-01 Kenichi Handa <handa@m17n.org>
28030
28031 The following changes are to allow specifying multiple font
28032 patterns for a character range (specified by script or charset).
28033
28034 * Makefile.in (abbrev.o): Depend on syntax.h.
28035 (xfaces.o): Depend on charset.h.
28036
28037 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
28038 SINGLE_BYTE_CHAR_P.
28039
28040 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
28041
28042 * character.h (Vchar_script_table): Extern it.
28043
28044 * character.c (Vscript_alist): Delete.
28045 (Vchar_script_table, Qchar_script_table): New variable.
28046 (syms_of_character): Declare Vchar_script_table as a lisp variable
28047 and initialize it.
28048
28049 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
28050 have property char-table-extra-slots, make no extra slot.
28051
28052 * dispextern.h (struct face): Delete member `charset'.
28053 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
28054 SINGLE_BYTE_CHAR_P.
28055 (choose_face_font, lookup_non_ascii_face, font_name_registry):
28056 Add prototypes.
28057 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
28058 (generate_ascii_font_name): Rename from generate_ascii_font.
28059
28060 * fontset.h (get_font_repertory_func): New prototype.
28061 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
28062 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
28063
28064 * fontset.c (Qprepend, Qappend): New variables.
28065 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
28066 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
28067 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
28068 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
28069 (fontset_ref_and_range, fontset_add, reorder_font_vector)
28070 (load_font_get_repertory): New functions.
28071 (fontset_set): Delete.
28072 (fontset_face): New arg FACE. Return face ID, not face.
28073 Complete re-write to handle new fontset structure. Change caller.
28074 (free_face_fontset): Use ASET istead of AREF (X) = Y.
28075 (face_for_char): Don't call lookup_face.
28076 (make_fontset_for_ascii_face): New arg FACE.
28077 (fs_load_font): New arg CHARSET_ID. Don't check
28078 Vfont_encoding_alist here.
28079 (find_font_encoding): New function.
28080 (list_fontsets): Use STRINGP, not ! NILP.
28081 (accumulate_script_ranges): New function.
28082 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
28083 Completely re-written to handle new fontset structure.
28084 (Ffontset_font): Return a copy of element.
28085 (syms_of_fontset): Define symbols Qprepend and Qappend.
28086 Fix docstring of font-encoding-alist.
28087
28088 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
28089 (Fset_fotset_font): Fix arguments to 5.
28090
28091 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
28092
28093 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
28094 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28095 (highlight_trailing_whitespace): Adjust for the change of
28096 lookup_named_face.
28097
28098 * xfaces.c: Include charset.h.
28099 (load_face_font): Delete argument C. Change caller.
28100 (generate_ascii_font_name): Rename from generate_ascii_font.
28101 (font_name_registry): New function.
28102 (cache_face): Store ascii faces before non-ascii faces in buckets.
28103 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
28104 Lookup only ascii faces.
28105 (lookup_non_ascii_face): New function.
28106 (lookup_named_face): Delete argument C. Change caller.
28107 (lookup_derived_face): Delete argument C. Change caller.
28108 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
28109 a string, just call font_list with it.
28110 (choose_face_font): Delete arguments FACE and C. New arg
28111 FONT_SPEC. Change caller.
28112 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
28113 Change caller.
28114 (realize_non_ascii_face): New function.
28115 (realize_x_face): Call load_face_font here.
28116 (realize_tty_face): Delete argument C. Change caller.
28117 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
28118 get a face ID.
28119 (dump_realized_face): Don't print charset of FACE.
28120
28121 * xfns.c (x_set_font): Always call x_new_fontset and
28122 store_frame_parameter.
28123 (Fx_create_frame): Call x_new_fontset, not x_new_font.
28124 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
28125
28126 * xterm.h (x_get_font_repertory): Extern it.
28127
28128 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
28129 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
28130 it->multibyte_p is zero.
28131 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28132 (x_new_fontset): If FONTSETNAME doesn't match any existing
28133 fontsets, create a new one.
28134 (x_get_font_repertory): New function.
28135
28136 2008-02-01 Kenichi Handa <handa@m17n.org>
28137
28138 * coding.c (Ffind_coding_systems_region_internal): Detect an
28139 ASCII only string correctly.
28140
28141 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
28142 version is 0.
28143
28144 2008-02-01 Kenichi Handa <handa@m17n.org>
28145
28146 * lread.c: Include "coding.h".
28147 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
28148 (load_each_byte, unread_char): New variables.
28149 (readchar_backlog): Delete.
28150 (readchar): Return a character unless load_each_byte is nonzero.
28151 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
28152 cons. If unread_char is not -1, simply return it.
28153 (unreadchar): Handle the case that readcharfun is
28154 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
28155 (read_multibyte): Delete.
28156 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
28157 (read_emacs_mule_char): New functions.
28158 (Fload): Even if the file doesn't have the extension ".elc", if
28159 safe_to_load_p returns a positive version number, assume that the
28160 file contains bytecompiled code. If the version is less than 22,
28161 load the file while decoding multibyte sequences by emacs-mule.
28162 (readevalloop): Don't use readchar_backlog.
28163 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
28164 (Fread_from_string): Pay attention to the case that STREAM is a cons.
28165 (read_escape): Delete the arg BYTEREP.
28166 (read1): Set load_each_byte to 1 temporarily while handling
28167 #@NUMBER. Don't call read_multibyte.
28168 (read_vector): Call Fread with a cons. If readcharfun is
28169 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
28170 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
28171 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
28172 and Qload_force_doc_strings.
28173
28174 2008-02-01 Kenichi Handa <handa@m17n.org>
28175
28176 * xdisp.c (face_before_or_after_it_pos):
28177 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
28178
28179 2008-02-01 Kenichi Handa <handa@m17n.org>
28180
28181 * character.h (TRAILING_CODE_P): New macro.
28182 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
28183 (string_char_with_unification): Fix prototype.
28184 (Vscript_alist): Extern it.
28185
28186 * character.c (Vscript_alist): New variable.
28187 (string_char_with_unification, str_as_unibyte)
28188 (string_escape_byte8): Add `const' to local variables.
28189 (syms_of_character): Declare script-alist as a Lisp variable.
28190
28191 * charset.h (Vcharset_ordered_list): Extern it.
28192 (charset_ordered_list_tick): Extern it.
28193 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
28194 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
28195 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
28196 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
28197 (Funify_charset): Adjust for the change of Funify_charset.
28198
28199 * charset.c (charset_ordered_list_tick): New variable.
28200 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
28201 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
28202 deunify instead of unify a charset.
28203 (string_xstring_p): Add `const' to local variables.
28204 (find_charsets_in_text): Add `const' to arguments and local variables.
28205 (encode_char): Adjust for the change of Funify_charset.
28206 Fix detecting of invalid code.
28207 (Fset_charset_priority): Increment charset_ordered_list_tick.
28208 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
28209 and TO_CODE.
28210
28211 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
28212 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
28213 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
28214 (decode_coding_ccl, consume_chars)
28215 (Ffind_coding_systems_region_internal)
28216 (Fcheck_coding_systems_region): Add `const' to local variables.
28217
28218 * print.c (print_object): Use octal form for printing the
28219 contents of a bool vector.
28220
28221 2008-02-01 Dave Love <fx@gnu.org>
28222
28223 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
28224 <version == 20>: Refuse to load.
28225
28226 2008-02-01 Dave Love <fx@gnu.org>
28227
28228 * fns.c: Move coding.h.
28229 (Qcodeset, Qdays, Qmonths): New.
28230 (concat): Use CHARACTERP instead of INTEGERP.
28231 (Flocale_codeset): Delete.
28232 (Flanginfo): New function.
28233 (syms_of_fns): Change accordingly.
28234
28235 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
28236
28237 2008-02-01 Dave Love <fx@gnu.org>
28238
28239 * casetab.c (init_casetab_once, init_casetab_once):
28240 Fix CHAR_TABLE_SET call.
28241
28242 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
28243
28244 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
28245
28246 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
28247 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
28248 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
28249
28250 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28251
28252 * coding.c (ENCODE_DESIGNATION, decode_eol)
28253 (make_conversion_work_buffer, code_conversion_restore)
28254 (Fdefine_coding_system_internal): Convert Lisp types.
28255 (code_conversion_restore): Use EQ, not ==.
28256 (Fencode_coding_string): Fix code_convert_string call.
28257
28258 * coding.h (code_convert_region): Fix prototype.
28259
28260 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28261
28262 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28263 (Ffontset_info): Convert Lisp types.
28264
28265 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28266
28267 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28268
28269 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28270
28271 * chartab.c: Include "...h", not <...h> in some cases.
28272
28273 * callproc.c (Fcall_process): Remove unused variables.
28274
28275 2008-02-01 Dave Love <fx@gnu.org>
28276
28277 * coding.c (Fset_coding_system_priority): Allow null arg list.
28278
28279 2008-02-01 Dave Love <fx@gnu.org>
28280
28281 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28282 (Fself_insert_and_exit): Use CHARACTERP.
28283
28284 * callproc.c (Fcall_process): Remove unused vars.
28285
28286 * xterm.c (XTread_socket): Add extra dead keysyms.
28287
28288 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28289
28290 * dispextern.h: Remove prototypes for redraw_frame,
28291 redraw_garbaged_frames.
28292
28293 * cmds.c (Fself_insert_command): Use CHARACTERP.
28294
28295 * chartab.c (make_sub_char_table): Remove unused var.
28296 (Fset_char_table_default, Fmap_char_table): Doc fix.
28297
28298 * keymap.c (access_keymap): Remove generic char code.
28299 (push_key_description): Use CHARACTERP.
28300
28301 2008-02-01 Dave Love <fx@gnu.org>
28302
28303 * charset.c: Doc fixes.
28304 (Funify_charset): Extra checking.
28305
28306 2008-02-01 Dave Love <fx@gnu.org>
28307
28308 * lread.c: Remove some unused variables.
28309 (safe_to_load_p): If safe, return the magic number version byte.
28310 (Fload): Maybe use load-with-code-conversion.
28311
28312 2008-02-01 Kenichi Handa <handa@m17n.org>
28313
28314 * category.c (Fmodify_category_entry): Don't modify the contents
28315 of category_set for characters out of the range.
28316 Avoid unnecessary modification.
28317
28318 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28319 Vchar_unify_table. The default value of the table is now nil.
28320
28321 * character.c (syms_of_character): Setup Vchar_width_table for
28322 eight-bit-control and raw-byte chars.
28323
28324 * charset.h (enum define_charset_arg_index):
28325 Delete charset_arg_parents and add charset_arg_subset and
28326 charset_arg_superset.
28327 (enum charset_attr_index): Delete charset_parents and add
28328 charset_subset and charset_superset.
28329 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28330 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28331 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28332 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28333 (CHARSET_SUPERSET): New macros.
28334 (charset_work): Extern it.
28335 (ENCODE_CHAR): Use charset_work.
28336 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28337 (map_charset_chars): Extern it.
28338
28339 * charset.c (load_charset_map): Set the default value of encoder
28340 and deunifier char-tables to nil.
28341 (map_charset_chars): Change argument. Change callers.
28342 Use map_char_table_for_charset instead of map_char_table.
28343 (Fmap_charset_chars): New optional args from_code and to_code.
28344 (Fdefine_charset_internal): Adjust for the change of
28345 `define-charset' (:parents -> :subset or :superset).
28346 (charset_work): New variable.
28347 (encode_char, syms_of_charset): Adjust for the change of
28348 Fdefine_charset_internal.
28349 (Ffind_charset_string): Setup the vector `charsets' correctly.
28350
28351 * chartab.c (sub_char_table_ref_and_range): New arg default.
28352 Fix the previous change.
28353 (char_table_ref_and_range): Adjust for the above change.
28354 (map_sub_char_table_for_charset): New function.
28355 (map_char_table_for_charset): New function.
28356
28357 * keymap.c (describe_vector): Handle a char-table directly here.
28358 (describe_char_table): Delete.
28359
28360 * lisp.h (map_charset_chars): Delete.
28361
28362 2008-02-01 Dave Love <fx@gnu.org>
28363
28364 * fns.c (count_combining): Comment out (unused).
28365 (Flocale_codeset): New.
28366 (syms_of_fns): Defsubr it.
28367
28368 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28369 (size_t): Remove.
28370
28371 2008-02-01 Dave Love <fx@gnu.org>
28372
28373 * Makefile.in (chartab.o): Depend on charset.h.
28374
28375 2008-02-01 Kenichi Handa <handa@m17n.org>
28376
28377 * character.c (syms_of_character): Set the default value of
28378 Vprintable_chars to Qnil.
28379
28380 2008-02-01 Dave Love <fx@gnu.org>
28381
28382 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28383
28384 2008-02-01 Kenichi Handa <handa@m17n.org>
28385
28386 * charset.c (load_charset_map): Handle the case that from < to
28387 correctly.
28388
28389 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28390 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28391 Pay attention to raw-8-bit chars.
28392
28393 2008-02-01 Kenichi Handa <handa@m17n.org>
28394
28395 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28396 It is not bytecompiled now.
28397
28398 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28399 (charset_jisx0208): New variables.
28400 (Fdefine_charset_internal): Setup them if appropriate.
28401 (init_charset_once): Initialize them to -1.
28402
28403 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28404 (charset_jisx0208): Extern them.
28405
28406 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28407 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28408 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28409 (setup_iso_safe_charsets): Fix arguments to Fassq.
28410 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28411 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28412 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28413 (encode_coding_iso_2022): Change the 1st arg to
28414 ENCODE_ISO_CHARACTER to a variable.
28415
28416 2008-02-01 Kenichi Handa <handa@m17n.org>
28417
28418 * charset.h (enum define_charset_arg_index): New enums
28419 charset_arg_min_code and charset_arg_max_code.
28420 (struct charset): New member char_index_offset.
28421
28422 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28423 Take charset->char_index_offset into account.
28424 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28425 args[charset_arg_max_code]. Setup charset.char_index_offset.
28426 (syms_of_charset): Fix args to Fdefine_charset_internal.
28427
28428 2008-02-01 Dave Love <fx@gnu.org>
28429
28430 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28431
28432 2008-02-01 Dave Love <fx@gnu.org>
28433
28434 * coding.c: Doc fixes.
28435 (Fcoding_system_aliases): Fix return value.
28436 (Qmac): Remove (duplicated) definition.
28437
28438 2008-02-01 Dave Love <fx@gnu.org>
28439
28440 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28441 New functions.
28442
28443 * character.c (Fstring): Doc fix.
28444
28445 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28446
28447 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
28448 (font-encoding-alist): Doc fix.
28449
28450 2008-02-01 Dave Love <fx@gnu.org>
28451
28452 * term.c (costs_set): Declare static, non-initialized for pcc.
28453 (encode_terminal_code): Remove unused var.
28454
28455 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28456 for K&R.
28457
28458 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28459
28460 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28461 (suffixes): Move out of make_subsidiaries for K&R.
28462
28463 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28464
28465 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28466
28467 2008-02-01 Dave Love <fx@gnu.org>
28468
28469 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28470
28471 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28472
28473 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28474
28475 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28476
28477 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28478
28479 2008-02-01 Kenichi Handa <handa@m17n.org>
28480
28481 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28482 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28483
28484 2008-02-01 Kenichi Handa <handa@m17n.org>
28485
28486 * coding.c (decode_coding_charset): Adjust for the change of
28487 Fdefine_coding_system_internal.
28488 (Fdefine_coding_system_internal): For a coding system of
28489 `charset' type, store a list of charset IDs in
28490 `charset_attr_charset_valids' element of coding attributes.
28491
28492 2008-02-01 Kenichi Handa <handa@m17n.org>
28493
28494 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28495 (emacs_mule_char): New arg src. Delete arg `composition'.
28496 Change caller. Handle 2-byte and 3-byte charsets correctly.
28497 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28498 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28499 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28500 (DECODE_EMACS_MULE_21_COMPOSITION):
28501 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
28502 sequence.
28503 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28504 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28505 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28506 and alt&rule composition.
28507 (decode_coding_iso_2022): Handle composition correctly.
28508 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28509
28510 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28511 re-defining a charset. If the charset has :emacs-mule-id, setup
28512 emacs_mule_bytes.
28513 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28514
28515 2008-02-01 Kenichi Handa <handa@m17n.org>
28516
28517 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28518 (encode_coding_big5, encode_coding_charset): If coding requires safe
28519 encoding, produce a character specified by
28520 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28521
28522 2008-02-01 Dave Love <fx@gnu.org>
28523
28524 * xterm.c (XSetIMValues): Declare.
28525
28526 * process.c: Conditionally include sys/wait.h, pty.h.
28527
28528 * print.c (print_object): Fix print format for 64-bit systems.
28529
28530 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28531
28532 * buffer.c (emacs_strerror): Declare.
28533
28534 * fontset.c (Fclear_face_cache): Declare.
28535 (accumulate_font_info): Comment-out (unused).
28536 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28537 variables.
28538
28539 * character.h (string_escape_byte8): Declare.
28540
28541 * charset.c (load_charset_map, load_charset_map_from_file):
28542 Remove unused vars.
28543 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28544 (Fmap_charset_chars): Doc fix.
28545
28546 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28547 (Fset_coding_system_priority, Fset_coding_system_priority)
28548 (Fdefine_coding_system_internal): Doc fix.
28549
28550 2008-02-01 Dave Love <fx@gnu.org>
28551
28552 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28553
28554 2008-02-01 Kenichi Handa <handa@m17n.org>
28555
28556 * character.c (string_escape_byte8): Make multibyte string with
28557 correct size.
28558
28559 * charset.c (Fmake_char): Delete unnecessary code.
28560
28561 2008-02-01 Kenichi Handa <handa@m17n.org>
28562
28563 * xfns.c (x_encode_text): Allocate coding.destination here, and
28564 call encode_coding_object with dst_object Qnil.
28565
28566 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28567 multibyte form correctly.
28568
28569 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28570 against Vfont_encoding_alist.
28571
28572 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28573 handling of charset list.
28574 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28575 (decode_coding_object): Move point to coding->dst_pos before
28576 calling post-read-conversion function.
28577 (encode_coding_object): Give correct arguments to
28578 pre-write-conversion. Ignore the return value of
28579 pre-write-conversion function. Pay attention to the case that
28580 pre-write-conversion changes the current buffer. If dst_object is
28581 Qt, even if coding->src_bytes is zero, allocate at least one byte
28582 to coding->destination.
28583
28584 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28585
28586 * charset.c (Fmake_char): Make it more backward compatible.
28587 (Fmap_charset_chars): Fix docstring.
28588
28589 2008-02-01 Dave Love <fx@gnu.org>
28590
28591 * coding.c: Doc fixes.
28592 (Fdefine_coding_system_alias): Use names, not symbols, in
28593 coding-system-alist.
28594
28595 2008-02-01 Kenichi Handa <handa@m17n.org>
28596
28597 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28598 of calling free_realized_face.
28599
28600 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28601
28602 * charset.c (read_hex): Don't treat SPC as a comment starter.
28603 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28604 (Fdecode_char): Fix typo.
28605
28606 2008-02-01 Kenichi Handa <handa@m17n.org>
28607
28608 * charset.h (struct charset): New member `code_space_mask'.
28609
28610 * coding.c (coding_set_source): Delete the local variable beg_byte.
28611 (encode_coding_charset, Fdefine_coding_system_internal):
28612 Delete the local variable charset.
28613 (Fdefine_coding_system_internal):
28614 Setup attrs[coding_attr_charset_valids] correctly.
28615
28616 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28617 member to check if CODE is valid or not.
28618 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28619 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28620 is within the range of charset->min_code and carset->max_code.
28621
28622 2008-02-01 Dave Love <fx@gnu.org>
28623
28624 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28625
28626 * dispextern.h (generate_ascii_font): Fix return type.
28627
28628 * xfaces.c (generate_ascii_font): Fix arg declaration.
28629
28630 * coding.c (coding_inherit_eol_type)
28631 (Fset_terminal_coding_system_internal)
28632 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28633
28634 2008-02-01 Kenichi Handa <handa@m17n.org>
28635
28636 * coding.c (decode_coding_charset, encode_coding_charset):
28637 Handle multiple charsets correctly.
28638
28639 2008-02-01 Kenichi Handa <handa@m17n.org>
28640
28641 * search.c (boyer_moore): Fix handling of multibyte character
28642 translation.
28643
28644 * xdisp.c (display_mode_element): When the variable `elt' is
28645 changed, update `this' and `lisp_string'.
28646
28647 2008-02-01 Kenichi Handa <handa@m17n.org>
28648
28649 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28650
28651 * callproc.c (Fcall_process): Be sure to give the current buffer
28652 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28653
28654 * charset.c (struct charset_map_entries): New struct.
28655 (load_charset_map): Rename from parse_charset_map. New args
28656 entries and n_entries. Change caller.
28657 (load_charset_map_from_file): Rename from load_charset_map.
28658 Change caller. New arg control_flag. Call load_charset_map at
28659 the tail.
28660 (load_charset_map_from_vector): New function.
28661 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28662 (encode_char): If the charset is compact, change a character index
28663 to a code point.
28664
28665 * coding.c (coding_alloc_by_making_gap): Check the case that the
28666 source and destination are the same correctly.
28667 (decode_coding_raw_text): Set coding->consumed_char and
28668 coding->consumed to 0.
28669 (produce_chars): If coding->chars_at_source is nonzero, update
28670 coding->consumed_char and coding->consumed before calling
28671 alloc_destination.
28672 (Fdefine_coding_system_alias): Register ALIAS in
28673 Vcoding_system_alist.
28674 (syms_of_coding): Define `no-conversion' coding system at the tail.
28675
28676 * fileio.c (Finsert_file_contents): Set coding_system instead of
28677 val. If the current buffer is multibyte, always call
28678 decode_coding_gap.
28679
28680 * xfaces.c (try_font_list): Give higher priority to fontset's
28681 family than face's family.
28682
28683 2008-02-01 Kenichi Handa <handa@m17n.org>
28684
28685 * callproc.c (Fcall_process): Be sure to give the current buffer
28686 to decode_coding_c_string.
28687
28688 * xfaces.c (try_font_list): Give a family specified in a fontset
28689 higher priority than a family specified in a face.
28690
28691 2008-02-01 Kenichi Handa <handa@m17n.org>
28692
28693 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28694 Fix arguments to insert_from_buffer.
28695
28696 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28697
28698 2008-02-01 Kenichi Handa <handa@m17n.org>
28699
28700 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28701 (decode_coding_gap): Set coding->dst_multibyte correctly.
28702
28703 2008-02-01 Kenichi Handa <handa@m17n.org>
28704
28705 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28706 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28707 (encode_coding_utf_16): Substitute coding->default_char for
28708 non-Unicode characters.
28709 (decode_coding): Don't call record_insert here.
28710 (setup_coding_system): Initialize `surrogate' of
28711 coding->spec.utf_16 to 0.
28712 (EMIT_ONE_BYTE): Fix for multibyte case.
28713
28714 * insdel.c (insert_from_gap): Call record_insert.
28715
28716 2008-02-01 Kenichi Handa <handa@m17n.org>
28717
28718 * casefiddle.c (casify_region): Fix multibyte case.
28719
28720 * character.c (c_string_width): Add return type `int'.
28721 (char_string_with_unification): Delete arg ADVANCED.
28722
28723 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28724 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28725 (CHAR_STRING_ADVANCE): Make it do-while statement.
28726
28727 * chartab.c (sub_char_table_set_range): Optimize for the case
28728 DEPTH == 3. Add workaround code for a GCC optimization bug.
28729
28730 * charset.c (parse_charset_map): Remove an unused variable.
28731
28732 * coding.c: Delete unused variables.
28733
28734 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28735 earlier. If inserted is zero and the coding system doesn't
28736 require flushing, don't call decode_coding_gap.
28737
28738 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28739
28740 2008-02-01 Kenichi Handa <handa@m17n.org>
28741
28742 The following changes are for using Unicode as an internal
28743 character model, and use UTF-8 format for buffer/string
28744 representation.
28745
28746 * .gdbinit (xchartable): Adjust for the change of char table structure.
28747 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28748
28749 * Makefile.in (obj): Add character.o and chartab.o.
28750 (lisp, shortlisp): Remove utf-8.elc.
28751 (*.o): For many files, change dependency on charset.h to
28752 character.h, and add dependency on character.h.
28753 (character.o, chartab.o): New targets.
28754
28755 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28756 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28757 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28758 of "charset.h".
28759
28760 * dired.c, filelock.c: Include "character.h".
28761
28762 * alloc.c: Include "character.h" instead of "charset.h".
28763 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28764 (syms_of_alloc): Remove defsubr for Smake_char_table.
28765
28766 * buffer.c: Include "character.h" instead of "charset.h", don't
28767 include "coding.h".
28768 (Fset_buffer_multibyte): Adjust for UTF-8.
28769
28770 * buffer.h: EXFUN Fbuffer_live_p.
28771
28772 * callproc.c: Include "character.h" instead of "charset.h".
28773 (Fcall_process): Big change for the new code-conversion APIs.
28774
28775 * casetab.c: Include "character.h" instead of "charset.h".
28776 (set_canon, set_identity, shuffle): Adjust for the new
28777 map_char_table spec.
28778 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28779 accessing the char table structure.
28780
28781 * chartab.c: New file that implements char table.
28782
28783 * category.c: Include "character.h".
28784 (copy_category_entry): New function.
28785 (copy_category_table): Call map_char_table and copy_category_entry.
28786 (Fmake_category_table): Initialize all top-level slots.
28787 (char_category_set): New function.
28788 (modify_lower_category_set): Delete.
28789 (Fmodify_category_entry): Call char_table_ref_and_range.
28790
28791 * category.h (CATEGORY_SET): Just call char_category_set.
28792
28793 * ccl.c: Include "character.h".
28794 (Qccl, Qcclp): New variables.
28795 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28796 it's less than 256.
28797 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28798 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28799 and DST type.
28800 (ccl_driver): Change types of argument, adjust code accordingly.
28801 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28802 ccl_driver.
28803 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28804
28805 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28806 New members src_multibyte, dst_multibyte, consumed, and produced.
28807 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28808 (CODING_SPEC_CCL_PROGRAM): New macro.
28809 (ccl_driver): Update prototype.
28810 (Qccl, Qcclp, Fccl_program_p): Extern them.
28811 (CHECK_CCL_PROGRAM): New macro.
28812
28813 * character.c, character.h, chartab.c: New files.
28814
28815 * charset.c: Mostly re-written. Move character and multibyte sequence
28816 handling codes to character.c.
28817
28818 * charset.h: Mostly re-written. Move character and multibyte sequence
28819 handling codes to character.h.
28820
28821 * coding.c, coding.h: Mostly re-written.
28822
28823 * composite.c: Include "character.h" instead of "charset.h".
28824 (CHAR_WIDTH): Move to character.h.
28825 (HASH_KEY, HASH_VALUE): Delete.
28826
28827 * composite.h (enum composition_method): Change order of enumeration
28828 symbols.
28829
28830 * data.c: Include "character.h" instead of "charset.h".
28831 (Faref): Call CHAR_TABLE_REF for a char table.
28832 (Faset): Call CHAR_TABLE_SET for a char table.
28833
28834 * dispextern.h (free_realized_face, check_face_attribytes)
28835 (generate_ascii_font): Extern them.
28836 (free_realized_multibyte_face): Delete extern.
28837
28838 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28839 table structure.
28840
28841 * editfns.c: Include "character.h" instead of "charset.h".
28842 (Fchar_to_string): Always call CHAR_STRING.
28843
28844 * emacs.c (main): Call init_charset_once, init_charset,
28845 syms_of_chartab, and syms_of_character.
28846
28847 * fileio.c: Include "character.h" instead of "charset.h".
28848 (Finsert_file_contents): Big change for the new code-conversion API.
28849 (choose_write_coding_system, Fwrite_region): Likewise.
28850 (build_annotations_2): Delete.
28851 (e_write): Big change for the new code-conversion API.
28852
28853 * fns.c: Include "character.h" instead of "charset.h".
28854 (copy_sub_char_table): Move to chartab.c.
28855 (Fcopy_sequence): Call copy_char_table for a char table.
28856 (concat): Delete codes calling count_multibyte.
28857 (string_char_to_byte, string_byte_to_char): Adjust for the new
28858 multibyte form.
28859 (internal_equal): Adjust for the change of char table structure.
28860 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28861 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28862 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28863 (char_table_translate, optimize_sub_char_table)
28864 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28865 chartab.c.
28866 (char_table_ref_and_index): Delete.
28867 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28868 (Fmd5): Call preferred_coding_system instead of accessing
28869 Vcoding_category_list. Adjust for the new code-conversion API.
28870 (syms_of_fns): Move defsubr for char table related functions to
28871 chartab.c.
28872
28873 * fontset.c: Mostly re-written.
28874
28875 * fontset.h (struct font_info): Change type of the member encoding_type.
28876 (enum FONT_SPEC_INDEX): New enum.
28877 (fontset_font_pattern, fs_load_font): Update prototype.
28878 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28879
28880 * indent.c: Include "character.h" instead of "charset.h".
28881 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28882
28883 * insdel.c: Include "character.h" instead of "charset.h".
28884 (copy_text): Don't refer to Vnonascii_translation_table.
28885 (insert_from_gap): New function.
28886
28887 * keyboard.c: Include "character.h" instead of "charset.h".
28888 (command_loop_1): Never call direct_output_forward_char before
28889 a non-ASCII character.
28890 (read_char): If Vkeyboard_translate_table is a char table, always
28891 translate a character.
28892
28893 * keymap.c: Include "character.h".
28894 (store_in_keymap): Handle the case that IDX is a cons.
28895 (Fdefine_key): Handle the case that KEY is a cons and the car part
28896 is also a cons (range).
28897 (push_key_description): Adjust for the new character code.
28898 (describe_vector): Call describe_char_table for a char table.
28899 (describe_char_table): New function.
28900
28901 * keymap.h (describe_char_table): Extern it.
28902
28903 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28904 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28905 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28906 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28907 Delete.
28908 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28909 structure.
28910 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28911 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28912 (CHARTAB_SIZE_BITS_3): New macros.
28913 (chartab_size): Extern it.
28914 (struct Lisp_Char_Table): Re-design.
28915 (struct Lisp_Sub_Char_Table): New structure.
28916 (HASH_KEY, HASH_VALUE): Move from fns.c.
28917 (CHARACTERBITS): Define as 22.
28918 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28919 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28920 (GC_SUB_CHAR_TABLE_P): New macro.
28921 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28922 (code_convert_string_norecord): Delete extern.
28923 (init_character_once, syms_of_character, init_charset)
28924 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28925
28926 * lread.c: Include "character.h".
28927 (read_multibyte): New arg NBYTES.
28928 (read_escape): Change the meaning of returned *BYTEREP.
28929 (to_multibyte): Delete.
28930 (read1): Adjust the handling of char table and string.
28931
28932 * print.c: Include "character.h" instead of "charset.h".
28933 (print_string): Convert 8-bit raw bytes to octal form by
28934 string_escape_byte8.
28935 (print_object): Adjust for the new multibyte form. Print 8-bit
28936 raw bytes always in octal form. Handle sub char table correctly.
28937
28938 * process.c: Include "character.h" instead of "charset.h".
28939 (read_process_output, send_process): Adjust for the new
28940 code-conversion API.
28941
28942 * puresize.h (BASE_PURESIZE): Increase.
28943
28944 * regex.c: Include "character.h" instead of "charset.h".
28945 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28946 (regex_compile): Accept a range whose starting and ending
28947 character have different leading bytes.
28948 (analyse_first): Adjust for the above change.
28949
28950 * search.c: Include "character.h" instead of "charset.h".
28951 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28952 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28953
28954 * syntax.c: Include "character.h" instead of "charset.h".
28955 (syntax_parent_lookup): Delete.
28956 (Fmodify_syntax_entry): Accept a cons as CHAR.
28957 (skip_chars): Adjust for the new multibyte form.
28958 (init_syntax_once): Call char_table_set_range instead of directly
28959 accessing the structure of a char table.
28960
28961 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28962 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28963 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28964 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28965
28966 * term.c: Include "buffer.h" and "character.h".
28967 (encode_terminal_code, write_glyphs): Adjust for the new
28968 code-conversion API.
28969 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28970
28971 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28972
28973 * xdisp.c: Include "character.h".
28974 (get_next_display_element): Adjust for the new multibyte form.
28975 (disp_char_vector): Adjust for the new char table structure.
28976 (decode_mode_spec_coding): Adjust for the new structure of
28977 coding system.
28978 (decode_mode_spec): Adjust for the new code-conversion API.
28979
28980 * xfaces.c: Include "character.h" instead of "charset.h".
28981 (load_face_font): Adjust for the change of choose_face_font and
28982 FS_LOAD_FONT.
28983 (generate_ascii_font): New function.
28984 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28985 (set_font_frame_param): Adjust for the change of choose_face_font.
28986 (free_realized_face): Make it public.
28987 (free_realized_faces_for_fontset): Rename from
28988 free_realized_multibyte_face. Free also faces realized for ASCII.
28989 (choose_face_font): Change arguments. Adjust for the change of
28990 fontset_font_pattern and FS_LOAD_FONT.
28991
28992 * xfns.c: Include "character.h".
28993 (x_encode_text): Adjust for the new code-conversion API.
28994
28995 * xselect.c: Don't include "charset.h".
28996 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28997
28998 * xterm.c: Include "character.h".
28999 (x_encode_char): New argument CHARSET. Change caller.
29000 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
29001 Call ENCODE_CHAR instead of SPLIT_CHAR.
29002 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
29003 CHAR_WIDTH instead of CHARSET_WIDTH.
29004 (XTread_socket): Adjust for the new code-conversion API.
29005 (x_new_font): Adjust for the change of FS_LOAD_FONT.
29006 (x_load_font): Adjust for the change of struct font.
29007
29008 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
29009
29010 * xfaces.c (face_at_buffer_position): Remove unused vars.
29011
29012 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
29013
29014 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
29015 Fix overflow checking.
29016
29017 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
29018
29019 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
29020 Cancel previous change.
29021
29022 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29023
29024 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
29025 ccl->eight_bit_control. Fix check for buffer overflow.
29026 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
29027 (ccl_driver): Initialize extra_bytes to 0.
29028
29029 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29030
29031 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
29032 return it ORed with ctrl_modifier.
29033
29034 2008-01-29 Miles Bader <miles@gnu.org>
29035
29036 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
29037
29038 2008-01-28 Jason Rumney <jasonr@gnu.org>
29039
29040 * w32.c (stat): Don't double check for networked drive.
29041
29042 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
29043
29044 * window.c (run_window_configuration_change_hook): New function.
29045 Code extracted from set_window_buffer. Set the selected frame.
29046 (set_window_buffer): Use it.
29047 * window.h (run_window_configuration_change_hook): Declare.
29048 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
29049
29050 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
29051
29052 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
29053
29054 * Makefile.in: Remove references to unused macros.
29055
29056 2008-01-26 Eli Zaretskii <eliz@gnu.org>
29057
29058 * w32.c (g_b_init_get_sid_sub_authority)
29059 (g_b_init_get_sid_sub_authority_count): New static variables.
29060 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
29061 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
29062 (init_user_info): Use them to retrieve uid and gid.
29063 Use 500/513, the Windows defaults, as Administrator's uid/gid.
29064 (fstat): Use pw_uid and pw_gid from the_passwd structure for
29065 st_uid and st_gid of the file.
29066
29067 2008-01-26 Jason Rumney <jasonr@gnu.org>
29068
29069 * w32.c (logon_network_drive): New function.
29070 (stat): Use it.
29071
29072 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
29073
29074 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
29075 invisible text covered with an ellipsis.
29076
29077 2008-01-25 Richard Stallman <rms@gnu.org>
29078
29079 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
29080 jump back to beginning. Move some other initializations after that.
29081 (Qwindow_text_change_functions, Vwindow_text_change_functions):
29082 New variables.
29083 (syms_of_xdisp): Init them.
29084
29085 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
29086
29087 * buffer.c (reset_buffer_local_variables):
29088 Implement `permanent-local-hook'.
29089 (Qpermanent_local_hook): New variable.
29090 (syms_of_buffer): Init and staticpro it.
29091
29092 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
29093
29094 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
29095
29096 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
29097
29098 * fns.c (Fclrhash): Return TABLE.
29099
29100 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29101
29102 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
29103 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
29104 is set even without positional changes.
29105 (x_scroll_bar_clear): Set bar->redraw_needed_p.
29106
29107 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
29108
29109 2008-01-23 Jason Rumney <jasonr@gnu.org>
29110
29111 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
29112
29113 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
29114 the unicode range available in MULE by locale-coding-system.
29115 Improve dbcs lead byte detection. Set event timestamp and modifiers
29116 earlier.
29117
29118 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29119
29120 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
29121 [MAC_OSX] (init_mac_osx_environment): Initialize it.
29122 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
29123 when used on child processes.
29124
29125 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
29126
29127 * dbusbind.c (Fdbus_method_return_internal): Rename from
29128 Fdbus_method_return.
29129 (Fdbus_unregister_object): Move to dbus.el.
29130 (Fdbus_call_method, Fdbus_method_return_internal)
29131 (Fdbus_send_signal): Improve debug messages.
29132
29133 2008-01-20 Martin Rudalics <rudalics@gmx.at>
29134
29135 * undo.c (undo_inhibit_record_point): New variable.
29136 (syms_of_undo): Initialize it.
29137 (record_point): Don't record point when undo_inhibit_record_point
29138 is set.
29139
29140 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
29141
29142 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
29143
29144 * xdisp.c (Qauto_hscroll_mode): New var.
29145 (syms_of_xdisp): Initialize it.
29146 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
29147 window's buffer.
29148 (hscroll_windows): Don't check automatic_hscrolling_p here.
29149
29150 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
29151 vscroll if we're setting window-buffer to the value it already has.
29152
29153 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
29154
29155 * m/intel386.h: Remove references to XENIX.
29156
29157 2008-01-17 Andreas Schwab <schwab@suse.de>
29158
29159 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
29160 instead of HAVE_X86_64_LIB64_DIR.
29161 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
29162
29163 2008-01-17 Glenn Morris <rgm@gnu.org>
29164
29165 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
29166 to HAVE_X86_64_LIB64_DIR.
29167
29168 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
29169
29170 * s/irix3-3.h:
29171 * s/irix4-0.h:
29172 * s/386-ix.h:
29173 * s/domain.h:
29174 * s/hpux9-x11r4.h:
29175 * s/hpux9shxr4.h: Remove files for systems no longer supported.
29176
29177 * sysdep.c: Remove code containing references to symbols defined
29178 by unsupported systems.
29179
29180 2008-01-16 Glenn Morris <rgm@gnu.org>
29181
29182 * coding.c (select-safe-coding-system-function): Doc fix.
29183
29184 2008-01-15 Glenn Morris <rgm@gnu.org>
29185
29186 * config.in: Revert 2008-01-13 change: this is a generated file.
29187
29188 2008-01-13 Tom Tromey <tromey@redhat.com>
29189
29190 * lisp.h: Fix typo.
29191
29192 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29193
29194 * m/sequent-ptx.h:
29195 * m/sequent.h:
29196 * s/ptx.h:
29197 * s/ptx4-2.h:
29198 * s/ptx4.h: Remove files for systems no longer supported.
29199
29200 * callproc.c (Fcall_process): Fix previous change.
29201
29202 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29203
29204 * unexsunos4.c: Remove file, system not supported anymore.
29205
29206 * m/mips.h:
29207 * m/intel386.h:
29208 * callproc.c:
29209 * config.in:
29210 * ecrt0.c:
29211 * emacs.c:
29212 * fileio.c:
29213 * frame.c:
29214 * getpagesize.h:
29215 * keyboard.c:
29216 * lread.c:
29217 * process.c:
29218 * puresize.h:
29219 * sysdep.c:
29220 * systty.h:
29221 * syswait.h:
29222 * unexec.c:
29223 * xdisp.c:
29224 * alloc.c: Remove code containing references to symbols defined by
29225 unsupported systems.
29226
29227 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
29228
29229 * coding.c (detect_coding_mask): Fix previous change.
29230
29231 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
29232
29233 * coding.c (detect_coding_iso2022): New arg
29234 latin_extra_code_state. Allow Latin extra codes only
29235 when *latin_extra_code_state is nonzero.
29236 (detect_coding_mask): If there is a NULL byte, detect the encoding
29237 as UTF-16 or binary. If Latin extra codes exist, detect the
29238 encoding as ISO-2022 only when there's no other proper encoding is
29239 found.
29240
29241 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29242
29243 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
29244 #ifdef MAC_OS.
29245
29246 2008-01-08 Richard Stallman <rms@gnu.org>
29247
29248 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
29249
29250 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
29251
29252 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29253 menu bar in parentheses.
29254
29255 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29256
29257 * m/7300.h:
29258 * m/acorn.h:
29259 * m/alliant-2800.h:
29260 * m/alliant.h:
29261 * m/alliant1.h:
29262 * m/alliant4.h:
29263 * m/altos.h:
29264 * m/amdahl.h:
29265 * m/apollo.h:
29266 * m/att3b.h:
29267 * m/aviion-intel.h:
29268 * m/aviion.h:
29269 * m/celerity.h:
29270 * m/clipper.h:
29271 * m/cnvrgnt.h:
29272 * m/convex.h:
29273 * m/cydra5.h:
29274 * m/delta88k.h:
29275 * m/dpx2.h:
29276 * m/dual.h:
29277 * m/elxsi.h:
29278 * m/f301.h:
29279 * m/gould-np1.h:
29280 * m/gould.h:
29281 * m/i860.h:
29282 * m/ibmps2-aix.h:
29283 * m/ibmrt-aix.h:
29284 * m/ibmrt.h:
29285 * m/irist.h:
29286 * m/is386.h:
29287 * m/isi-ov.h:
29288 * m/mega68.h:
29289 * m/mg1.h:
29290 * m/news-r6.h:
29291 * m/news-risc.h:
29292 * m/news.h:
29293 * m/nh3000.h:
29294 * m/nh4000.h:
29295 * m/ns16000.h:
29296 * m/ns32000.h:
29297 * m/nu.h:
29298 * m/orion.h:
29299 * m/orion105.h:
29300 * m/paragon.h:
29301 * m/pfa50.h:
29302 * m/plexus.h:
29303 * m/pyramid.h:
29304 * m/pyrmips.h:
29305 * m/sh3el.h:
29306 * m/sps7.h:
29307 * m/sr2k.h:
29308 * m/stride.h:
29309 * m/sun1.h:
29310 * m/sun2.h:
29311 * m/sun3-68881.h:
29312 * m/sun3-fpa.h:
29313 * m/sun3-soft.h:
29314 * m/sun3.h:
29315 * m/sun386.h:
29316 * m/symmetry.h:
29317 * m/tad68k.h:
29318 * m/tahoe.h:
29319 * m/targon31.h:
29320 * m/tek4300.h:
29321 * m/tekxd88.h:
29322 * m/tower32.h:
29323 * m/tower32v3.h:
29324 * m/ustation.h:
29325 * m/wicat.h:
29326 * m/xps100.h:
29327 * s/cxux.h:
29328 * s/cxux7.h:
29329 * s/dgux.h:
29330 * s/dgux4.h:
29331 * s/dgux5-4-3.h:
29332 * s/dgux5-4r2.h:
29333 * s/esix.h:
29334 * s/esix5r4.h:
29335 * s/hiuxmpp.h:
29336 * s/hiuxwe2.h:
29337 * s/iris3-5.h:
29338 * s/iris3-6.h:
29339 * s/isc2-2.h:
29340 * s/isc3-0.h:
29341 * s/isc4-0.h:
29342 * s/isc4-1.h:
29343 * s/newsos5.h:
29344 * s/newsos6.h:
29345 * s/osf1.h:
29346 * s/osf5-0.h:
29347 * s/riscix1-1.h:
29348 * s/riscix12.h:
29349 * s/sco4.h:
29350 * s/sco5.h:
29351 * s/sunos4-0.h:
29352 * s/sunos4-1.h:
29353 * s/sunos413.h:
29354 * s/sunos4shr.h:
29355 * s/umax.h:
29356 * s/unipl5-2.h:
29357 * s/xenix.h:
29358 * cxux-crt0.s:
29359 * unexapollo.c:
29360 * unexconvex.c:
29361 * unexenix.c:
29362 * unexsni.c: Remove files for systems no longer supported.
29363
29364 * m/intel386.h: Remove references to unsupported systems.
29365
29366 * w32.c (get_emacs_configuration): Remove reference to i860.
29367
29368 * sysdep.c: Remove dead code.
29369
29370 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29371
29372 * s/rtu.h:
29373 * m/masscomp.h: Remove files. Platform is obsolete.
29374
29375 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
29376
29377 * dbusbind.c (Fdbus_method_return): New function.
29378 (xd_read_message): Add the serial number to the event.
29379 (Fdbus_register_method): Activate the function.
29380
29381 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29382
29383 * keyboard.c (read_key_sequence): Fix typo.
29384
29385 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
29386
29387 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29388 (xd_signature, xd_append_arg): Handle element type detection for
29389 empty arrays.
29390 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29391 SDATA () calls; this must be solved more general.
29392 (Fdbus_register_signal): Use SBYTES instead of strlen.
29393
29394 2008-01-03 Magnus Henoch <magnus@zemdatav>
29395
29396 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29397 unsigned int for byte values (necessary for big-endian platform).
29398 (Fdbus_call_method): Handle the case of no returned arguments.
29399
29400 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29401
29402 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29403
29404 2007-12-31 Magnus Henoch <mange@freemail.hu>
29405
29406 * dbusbind.c (xd_signature): Signature of variant is just "v".
29407
29408 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
29409
29410 * dbusbind.c: Fix several errors and compiler warnings.
29411 Reported by Tom Tromey <tromey@redhat.com>.
29412 (XD_ERROR, XD_DEBUG_MESSAGE)
29413 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29414 (xd_append_arg): Part for basic D-Bus types rewritten.
29415 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29416 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29417 appropriate.
29418 (xd_read_message): Return Qnil. Don't signal an error; it is not
29419 useful during event reading.
29420 (Fdbus_register_signal): Signal an error if the check for
29421 FUNCTIONP fails.
29422 (Fdbus_register_method): New function. The implementation is not
29423 complete, the call of the function signals an error therefore.
29424 (Fdbus_unregister_object): New function, renamed from
29425 Fdbus_unregister_signal. The initial check signals an error, if
29426 the object is not well formed.
29427
29428 2007-12-30 Richard Stallman <rms@gnu.org>
29429
29430 * textprop.c (get_char_property_and_overlay):
29431 Signal error if POSITION is out of range in a buffer.
29432
29433 2007-12-29 Martin Rudalics <rudalics@gmx.at>
29434
29435 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29436 because the original parameters are in pure storage now.
29437
29438 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29439
29440 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29441
29442 2007-12-22 Eli Zaretskii <eliz@gnu.org>
29443
29444 * callint.c (syms_of_callint) <command-history>: Add reference to
29445 history-length in the doc string.
29446
29447 2007-12-17 Jason Rumney <jasonr@gnu.org>
29448
29449 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29450 before passing as wParam.
29451
29452 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
29453
29454 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29455 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29456 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29457 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29458 as number.
29459 (Fdbus_call_method): Fix docstring.
29460
29461 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
29462
29463 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29464 New macros.
29465 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29466 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29467 Simplify.
29468 (xd_signature): New function.
29469 (xd_append_arg): Compute also signatures. Major rewrite.
29470 (xd_retrieve_arg): Make debug messages friendly.
29471 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29472 Check for signatures of arguments.
29473
29474 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
29475
29476 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29477 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29478 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29479 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29480 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29481 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29482 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29483 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29484 (xd_retrieve_value): Remove. Functionality included in ...
29485 (xd_append_arg): New function.
29486 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29487
29488 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
29489
29490 * dbusbind.c (top): Include <stdio.h>.
29491 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29492 dbus_message_new_method_call and dbus_message_new_signal.
29493 (Fdbus_register_signal): Rename unique_name to uname.
29494 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29495 non-existing unique name. Fix typos in matching rule. Return an
29496 object which is useful in Fdbus_unregister_signal.
29497 (Fdbus_unregister_signal): Reimplementation, in order to remove
29498 only the corresponding entry.
29499 (Vdbus_registered_functions_table): Change the order of entries.
29500 Apply these changes in xd_read_message and Fdbus_register_signal.
29501
29502 2007-12-16 Andreas Schwab <schwab@suse.de>
29503
29504 * fileio.c (Finsert_file_contents): Fix overflow check to not
29505 depend on undefined integer overflow.
29506
29507 2007-12-14 Jason Rumney <jasonr@gnu.org>
29508
29509 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29510 for characters above 127.
29511
29512 2007-12-13 Jason Rumney <jasonr@gnu.org>
29513
29514 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29515 before dereferencing array.
29516 (lookup_vk_code): Remove zero comparison.
29517
29518 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
29519
29520 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29521 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29522 Use `unsigned int' instead of `uint'.
29523 (xd_read_message, Fdbus_register_signal): Split expressions into
29524 multiple lines before operators "&&" and "||", according to the
29525 GNU Coding Standards.
29526
29527 2007-12-14 Eli Zaretskii <eliz@gnu.org>
29528
29529 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29530
29531 2007-12-12 Juri Linkov <juri@jurta.org>
29532
29533 * buffer.c (Frename_buffer): In interactive spec replace
29534 `read-buffer' with `read-string' that uses `buffer-name-history'
29535 as history, and the current buffer's name as default.
29536
29537 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29538
29539 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29540 manipulating the backtrace manually.
29541 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29542 (struct backtrace, backtrace_list): Remove.
29543 (command_loop_1): Remove dead var `no_direct'.
29544
29545 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29546 preserve non-built-in buffer-local variables.
29547 (Fkill_all_local_variables): Don't re-create&re-set permanent
29548 buffer-local variables.
29549
29550 2007-12-09 Juri Linkov <juri@jurta.org>
29551
29552 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29553 Lisp code that uses `read-buffer' with current buffer as default.
29554
29555 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
29556
29557 * dbusbind.c (xd_read_message): Generate an event for every
29558 registered handler. There might be several handlers registered
29559 for the same signal.
29560 (Fdbus_register_signal): Don't overwrite a registration for the
29561 same signal. Add a new registration if handlers are different.
29562 (Vdbus_registered_functions_table): Rework doc string.
29563
29564 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
29565
29566 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29567 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29568 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29569 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29570 Unify argument lists.
29571 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29572 arguments and hash table keys. Use unique name for service.
29573 (Fdbus_unregister_signal): Remove checks.
29574 (Vdbus_registered_functions_table): Fix doc string.
29575
29576 2007-12-05 Magnus Henoch <mange@freemail.hu>
29577
29578 * process.c (make_process): Initialize pty_flag to 0.
29579
29580 2007-12-05 Jason Rumney <jasonr@gnu.org>
29581
29582 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29583 specified XBMs.
29584
29585 2007-12-05 Richard Stallman <rms@gnu.org>
29586
29587 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29588
29589 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29590
29591 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29592 New variable.
29593 (mac_try_close_socket) [MAC_OSX]: New function.
29594 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29595 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29596
29597 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29598 Use mac_try_close_socket.
29599
29600 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29601
29602 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29603 reloc_base.
29604 (copy_dysymtab): Compute relocation base here.
29605 (rebase_reloc_address) [__ppc64__]: New function.
29606 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29607 changed.
29608
29609 2007-12-05 Jason Rumney <jasonr@gnu.org>
29610
29611 * w32proc.c (sys_spawnve): Quote args with wildcards.
29612
29613 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29614
29615 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29616 __objc_* sections.
29617 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29618
29619 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
29620
29621 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29622 Move check for Vdbus_registered_functions_table to
29623 xd_read_queued_messages.
29624 (xd_read_queued_messages): Protect xd_read_message calls by
29625 internal_condition_case_1.
29626
29627 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
29628
29629 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29630 Qdbus_system_bus and Qdbus_session_bus, respectively.
29631 (Vdbus_intern_symbols): Remove.
29632 (Vdbus_registered_functions_table): New hash table.
29633 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29634 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29635 Rewrite in order to manage registered functions by hash table
29636 Vdbus_registered_functions_table.
29637
29638 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29639
29640 * xterm.c: Update URL to Window Manager Specification in comment.
29641
29642 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29643
29644 * config.in (HAVE_DBUS): Add.
29645
29646 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29647 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29648 (obj): Add $(DBUS_OBJ).
29649 (LIBES): Add $(DBUS_LIBS).
29650 (dbusbind.o): New target.
29651
29652 * dbusbind.c: New file.
29653
29654 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29655
29656 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29657 (Qdbus_event): New Lisp symbol.
29658 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29659 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29660 (keys_of_keyboard): Define dbus-event.
29661
29662 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29663
29664 2007-12-01 Richard Stallman <rms@gnu.org>
29665
29666 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29667
29668 2007-11-30 Jason Rumney <jasonr@gnu.org>
29669
29670 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29671 (w32con_reset_terminal_modes): Clear screen buffer.
29672 (w32_face_attributes): Don't use color indexes that are out of range.
29673 Only reverse the default colors.
29674
29675 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29676 WINDOWSNT.
29677
29678 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29679
29680 2007-11-29 Jason Rumney <jasonr@gnu.org>
29681
29682 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29683 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29684 if the terminal colors are initialized.
29685 (unspecified_fg, unspecified_bg): Remove unused declarations.
29686
29687 2007-11-29 Andreas Schwab <schwab@suse.de>
29688
29689 * keyboard.c (apply_modifiers): Fix typo.
29690
29691 2007-11-29 Richard Stallman <rms@gnu.org>
29692
29693 * keymap.c (Fcurrent_local_map): Doc fix.
29694
29695 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29696
29697 * s/gnu-kfreebsd.h: New file.
29698
29699 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29700
29701 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29702 Don't cast redundantly.
29703
29704 * keyboard.c (KEY_TO_CHAR): New macro.
29705 (parse_modifiers, apply_modifiers): Accept integer arguments.
29706 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29707 for chars and symbol keys.
29708 After doing such remapping, apply function-key-map again.
29709
29710 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29711
29712 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29713 compiled anymore.
29714
29715 2007-11-26 Andreas Schwab <schwab@suse.de>
29716
29717 * process.c (list_processes_1): Fix indentation level of the
29718 command column.
29719
29720 2007-11-23 Andreas Schwab <schwab@suse.de>
29721
29722 * editfns.c (Fformat): Handle %c specially since it requires the
29723 argument to be of type int.
29724
29725 2007-11-23 Markus Triska <markus.triska@gmx.at>
29726
29727 * emacs.c (main): Call init_editfns before init_process, since
29728 init_process sets Vprocess_connection_type depending on OS release.
29729
29730 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29731
29732 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29733 (find_symbol_value): Use do_symval_forwarding.
29734
29735 * data.c (set_internal): Set the value in the `cons-cell' (for
29736 Buffer_Local_values) not only for frame-local variables.
29737
29738 2007-11-22 Andreas Schwab <schwab@suse.de>
29739
29740 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29741 values to sprintf.
29742 * keymap.c (Fsingle_key_description): Likewise.
29743 * print.c (print_object): Likewise.
29744
29745 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29746
29747 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29748 file for image is nil.
29749
29750 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29751
29752 * term.c: Include stdarg.h.
29753 (fatal): Implement using varargs.
29754 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29755
29756 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29757
29758 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29759 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29760 Update call to buffer_slot_type_mismatch.
29761 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29762 (buffer_slot_type_mismatch): Update.
29763 * buffer.c (buffer_local_types): Remove.
29764 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29765 (defvar_per_buffer): Set the type in the buffer_objfwd.
29766
29767 2007-11-21 Jason Rumney <jasonr@gnu.org>
29768
29769 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29770 CreateFileMapping returns NULL on failure.
29771
29772 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29773
29774 * search.c (Fset_match_data): Remove the `evaporate' feature.
29775 (unwind_set_match_data): Don't use the `evaporate' feature.
29776
29777 2007-11-21 Jason Rumney <jasonr@gnu.org>
29778
29779 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29780
29781 * w32console.c (w32con_write_glyphs): Remove unused variables.
29782
29783 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29784
29785 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29786
29787 * s/darwin.h (MULTI_KBOARD): Remove.
29788
29789 * macfns.c (x_create_tip_frame, Fx_create_frame)
29790 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29791
29792 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29793
29794 * buffer.c (Fbuffer_local_value): Remove redundant test.
29795 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29796 than in `current-buffer' to match the comment.
29797 Do the swap using swap_in_global_binding.
29798
29799 * data.c (store_symval_forwarding, set_internal):
29800 * eval.c (specbind): Remove dead code.
29801
29802 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29803 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29804 Since we do not want to see internal Lisp_*fwd objects here.
29805
29806 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29807
29808 * sysdep.c (init_system_name): Use getaddrinfo if available.
29809
29810 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29811 (x_scroll_bar_note_movement): start, end, with, height in struct
29812 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29813
29814 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29815
29816 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29817
29818 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29819
29820 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29821 This undoes Richard's change of 14-Oct-2002.
29822
29823 * alloc.c (allocate_other_vector):
29824 * lisp.h (allocate_other_vector): Remove.
29825
29826 * window.c (struct save_window_data): Move non-lisp data to the end
29827 and make it `int' rather than Lisp_Object.
29828 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29829 Done wrap/unwrap integer values.
29830 (Fset_window_configuration, compare_window_configurations):
29831 Update use of fields to their new types.
29832
29833 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29834 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29835 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29836 (SET_SCROLL_BAR_X_WINDOW): Remove.
29837 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29838 Access the new x_window field directly.
29839 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29840 Don't wrap/unwrap integers into Lisp_Objects.
29841 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29842 (x_scroll_bar_report_motion):
29843 Don't wrap/unwrap integers into Lisp_Objects.
29844 (x_term_init): Use SDATA.
29845 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29846 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29847 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29848 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29849 * xfns.c (x_set_background_color):
29850 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29851 Access the new x_window field directly.
29852
29853 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29854 (allocate_pseudovector): Make non-static.
29855
29856 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29857 (allocate_pseudovector): Declare.
29858 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29859
29860 2007-11-15 Andreas Schwab <schwab@suse.de>
29861
29862 * editfns.c (Fformat): Correctly format EMACS_INT values.
29863 Also take precision into account when formatting an integer.
29864
29865 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29866
29867 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29868
29869 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29870 (syms_of_keyboard): Defsubr it.
29871
29872 * data.c (swap_in_global_binding): Fix longstanding bug where
29873 store_symval_forwarding was not called with the right second argument,
29874 thus causing objfwd-ing from being dropped.
29875
29876 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29877
29878 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29879 (Fx_display_pixel_height, Fx_display_planes)
29880 (Fx_display_color_cells, Fx_server_max_request_size)
29881 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29882 (Fx_display_visual_class, Fx_display_save_under):
29883 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29884 (Fx_display_pixel_height, Fx_display_planes)
29885 (Fx_display_color_cells, Fx_server_max_request_size)
29886 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29887 (Fx_display_mm_height, Fx_display_mm_width)
29888 (Fx_display_backing_store, Fx_display_visual_class)
29889 (Fw32_select_font, Fx_display_save_under):
29890 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29891 (Fx_display_pixel_height, Fx_display_planes)
29892 (Fx_display_color_cells, Fx_server_max_request_size)
29893 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29894 (Fx_display_save_under): Fix typos in docstrings.
29895
29896 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29897
29898 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29899 corresponding to deleted entries; they are an implementation detail.
29900 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29901 Remove variables.
29902 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29903 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29904 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29905 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29906 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29907 (Fw32_define_rgb_color, Fw32_load_color_file)
29908 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29909 Fix typos in docstrings.
29910 (Fx_server_version): Reflow docstring.
29911 (Fw32_shell_execute): Doc fixes.
29912
29913 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29914
29915 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29916 if w32_parse_hot_key returned nil.
29917
29918 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29919
29920 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29921
29922 2007-11-09 Jason Rumney <jasonr@gnu.org>
29923
29924 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29925
29926 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29927
29928 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29929 Remove W32_SCROLL_BAR_CLICK_EVENT.
29930
29931 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29932 Add MULTIMEDIA_KEY_EVENT.
29933
29934 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29935 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29936 (make_lispy_event) [WINDOWSNT]: Use it to translate
29937 MULTIMEDIA_KEY_EVENT.
29938
29939 * w32term.h (WM_APPCOMMAND): Define if not already.
29940 (GET_APPCOMMAND_LPARAM): Likewise.
29941
29942 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29943 WM_APPCOMMAND.
29944
29945 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29946 (syms_of_w32fns): Export and initialize it.
29947 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29948
29949 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29950
29951 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29952 twice.
29953
29954 * xdisp.c (handle_face_prop): Fix last change.
29955
29956 2007-11-09 Richard Stallman <rms@gnu.org>
29957
29958 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29959 not just for after-strings and before-strings.
29960 Call face_for_overlay_string and pass the overlay to it.
29961 (handle_display_prop): Determine whether property came from an overlay.
29962 Pass OVERLAY arg to handle_single_display_spec.
29963 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29964 (load_overlay_strings): Fill in it->string_overlays.
29965 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29966
29967 * xfaces.c (face_for_overlay_string): Function renamed from
29968 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29969
29970 * dispextern.h (struct it): New elt string_overlays.
29971 New elt from_overlay, also in stack.
29972 Rearrange a few elements.
29973 (face_for_overlay_string): Decl renamed from
29974 face_at_buffer_position_no_overlays, and add argument.
29975
29976 2007-11-09 Richard Stallman <rms@gnu.org>
29977
29978 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29979 to get the base face for an overlay string.
29980
29981 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29982
29983 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29984
29985 * xdisp.c (handle_stop): Move some code out of loop.
29986
29987 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29988
29989 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29990 Fix conversion from Lisp object to ATSUFontID.
29991
29992 2007-11-09 Jason Rumney <jasonr@gnu.org>
29993
29994 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29995
29996 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29997
29998 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29999 Don't assume regions are aligned to page boundary.
30000 (print_load_command_name): Add LC_UUID if defined.
30001
30002 2007-11-09 Richard Stallman <rms@gnu.org>
30003
30004 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
30005
30006 2007-11-07 Jason Rumney <jasonr@gnu.org>
30007
30008 * s/windows95.h: Remove.
30009
30010 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
30011
30012 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
30013 abort with a message on unhandled store_type values.
30014
30015 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
30016
30017 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
30018 Remove HAVE_X11R5 and HAVE_X11R4.
30019
30020 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30021
30022 * Makefile.in: Remove references to sunfns.c and sunfns.o.
30023
30024 2007-11-01 Johan Bockgård <bojohan@gnu.org>
30025
30026 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
30027 Don't set s->stippled_p here, since it has already been set by
30028 x_set_glyph_string_gc from x_draw_glyph_string.
30029
30030 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30031
30032 * sunfns.c: Remove file.
30033
30034 * m/sun386.h:
30035 * m/sun2.h:
30036 * m/sparc.h: Remove Sun windows code.
30037
30038 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
30039
30040 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
30041 (init_keyboard): Set current_kboard's window-system to nil.
30042 (tty_read_avail_input): Typo.
30043 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
30044
30045 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
30046
30047 * s/usg5-4.h:
30048 * s/usg5-3.h:
30049 * s/ptx.h:
30050 * m/is386.h:
30051 * m/ibmps2-aix.h:
30052 * Makefile.in: Remove all mentions of X10.
30053
30054 * dispnew.c (syms_of_display): Don't mention version 10.
30055
30056 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
30057
30058 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
30059 ($(BLD)/abbrev.$(O)): Remove.
30060
30061 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
30062
30063 Rewrite abbrev.c in Elisp.
30064 * image.c (Qcount): Don't declare as extern.
30065 (syms_of_image): Initialize and staticpro `Qcount'.
30066 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
30067 * emacs.c (main): Don't call syms_of_abbrev.
30068 * Makefile.in (obj): Remove abbrev.o.
30069 (abbrev.o): Remove.
30070 * abbrev.c: Remove.
30071
30072 2007-10-26 Martin Rudalics <rudalics@gmx.at>
30073
30074 * window.c (window_min_size_2): Don't count header-line.
30075
30076 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
30077
30078 * frame.h (struct frame): Move all bit fields after the first bit
30079 field to take advantage of the available space. Group all the
30080 chars together to reduce wasted space due to padding.
30081
30082 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
30083
30084 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
30085
30086 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
30087 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
30088 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
30089 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
30090 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
30091 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
30092 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
30093 (last_marked, mark_object_loop_halt): Make static.
30094
30095 * frame.c (syms_of_frame) <delete-frame-functions>:
30096 Fix typo in docstring.
30097
30098 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
30099
30100 * w32.c (init_environment): Fix tiny memory leak.
30101 (w32_get_resource): Remove unused variable `ok'.
30102
30103 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
30104
30105 Make `window-system' into a keyboard-local variable (rather than
30106 frame-local as done originally by multi-tty).
30107
30108 * keyboard.h (struct kboard): Add Vwindow_system.
30109 * keyboard.c (init_kboard): Set a default for Vwindow_system.
30110 (mark_kboards): Mark Vwindow_system.
30111
30112 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
30113 (init_display): Don't set the obsolete `window-system' frame-param.
30114
30115 * xterm.c (x_term_init):
30116 * w32term.c (w32_create_terminal):
30117 * term.c (init_tty): Set Vwindow_system.
30118 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
30119 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
30120
30121 * xfns.c (Fx_create_frame, x_create_tip_frame):
30122 * w32fns.c (Fx_create_frame, x_create_tip_frame):
30123 * macfns.c (Fx_create_frame):
30124 Don't set the obsolete `window-system' frame-param.
30125
30126 * frame.h (Qwindow_system): Remove.
30127 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
30128 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
30129
30130 2007-10-24 Richard Stallman <rms@gnu.org>
30131
30132 * frame.c (x_figure_window_size): For fullscreen case,
30133 set USPosition | PPosition without clobbering rest of window_prompting.
30134
30135 * keyboard.c (Fcurrent_idle_time): Doc fix.
30136
30137 * print.c (Fwith_output_to_temp_buffer): Doc fix.
30138
30139 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
30140
30141 * process.c (unwind_request_sigio): Only define if __ultrix__.
30142
30143 * callproc.c (child_setup): Remove spurious *.
30144
30145 * lisp.h (Fget_text_property): Declare.
30146 (have_menus_p): Declare it here rather than in sys-dep header files.
30147 * macterm.h (have_menus_p):
30148 * msdos.h (have_menus_p):
30149 * xterm.h (have_menus_p): Remove.
30150
30151 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
30152 (Fmake_variable_frame_local): Just check the variable's const-ness
30153 rather than checking nil or t.
30154
30155 2007-10-22 Jason Rumney <jasonr@gnu.org>
30156
30157 * w32fns.c: Include math.h.
30158 (w32_abort): Declaration moved to nt/config.nt.
30159
30160 * s/ms-w32.h (HAVE_STDLIB_H): Define.
30161 (abort): Redefinition moved to nt/config.nt.
30162
30163 * m/windowsnt.h: Remove.
30164
30165 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
30166
30167 * emacs.c (Fdump_emacs): Fix typo in message.
30168 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
30169 <installation-directory>: Reflow docstring.
30170
30171 2007-10-22 Juri Linkov <juri@jurta.org>
30172
30173 * minibuf.c: Allow minibuffer default to be a list of default values.
30174 With empty input use the first element of this list as returned default.
30175 (string_to_object)
30176 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
30177 (read_minibuf): If defalt is cons, set histstring to its car.
30178 (Fread_string): If default_value is cons, set val to its car.
30179 (Fread_buffer): If def is cons, use its car.
30180 (Fcompleting_read): If defalt is cons, set val to its car.
30181
30182 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
30183
30184 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
30185
30186 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
30187
30188 * doc.c (Fdocumentation): Check for advice in all cases.
30189
30190 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
30191
30192 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
30193
30194 2007-10-19 Richard Stallman <rms@gnu.org>
30195
30196 * doc.c (Fdocumentation): Check for and handle an advised function.
30197
30198 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
30199
30200 * process.c (Fset_process_filter): Doc fix.
30201
30202 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
30203
30204 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
30205 which caused key-translation-map to applied repeatedly (thus breaking
30206 double-mode).
30207
30208 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30209
30210 * xselect.c (x_own_selection, x_handle_selection_clear)
30211 (x_clear_frame_selections):
30212 * w32menu.c (list_of_panes, list_of_items):
30213 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
30214 * textprop.c (validate_plist, interval_has_all_properties)
30215 (interval_has_some_properties, interval_has_some_properties_list)
30216 (add_properties, text_property_list):
30217 * process.c (Fget_buffer_process, list_processes_1, status_notify):
30218 * minibuf.c (Fassoc_string):
30219 * macselect.c (x_own_selection, x_clear_frame_selections)
30220 (Fx_disown_selection_internal):
30221 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
30222 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
30223
30224 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
30225
30226 * process.c: Link to libs for calling res_init() if available.
30227 (Fmake_network_process): Call res_init() before getaddrinfo or
30228 gethostbyname, if possible.
30229
30230 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30231
30232 * lread.c (read1): Set pvectype for char_tables.
30233
30234 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
30235 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
30236 Add type checks.
30237 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
30238
30239 * alloc.c (free_misc): Use XMISCTYPE.
30240 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
30241
30242 2007-10-17 Glenn Morris <rgm@gnu.org>
30243
30244 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
30245 (syms_of_minibuf): Add Qcompletion_ignore_case.
30246 * dired.c (Qcompletion_ignore_case): Change to external.
30247 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
30248 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
30249 (Fread_file_name): Use it rather than intern'ing.
30250
30251 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30252 (Fread_coding_system): Ignore case of user input.
30253
30254 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30255
30256 * xdisp.c (handle_display_prop): Ignore display specs after
30257 replacing one when string text is being replaced.
30258 (handle_single_display_spec): Pretend as if characters with display
30259 property haven't been consumed only when buffer text is being replaced.
30260
30261 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30262
30263 * xfns.c (Fx_create_frame, Fx_display_list):
30264 * window.c (window_fixed_size_p, enlarge_window)
30265 (shrink_window_lowest_first):
30266 * macterm.c (init_font_name_table):
30267 * macfns.c (Fx_create_frame, Fx_display_list):
30268 * lread.c (close_load_descs):
30269 * keyboard.c (read_char_x_menu_prompt):
30270 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30271 * coding.c (code_convert_region_unwind): Test the type of an object
30272 rather than just !NILP before extracting data from it.
30273
30274 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30275
30276 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30277 (XMISCANY): New macro.
30278 (XMISCTYPE): Use it.
30279 (struct Lisp_Misc_Any): New type.
30280 (union Lisp_Misc): Use it.
30281 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30282 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30283 (find_symbol_value, set_internal, default_value, Fset_default)
30284 (Fmake_variable_buffer_local, Fmake_local_variable)
30285 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30286 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30287 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30288 * alloc.c (allocate_buffer): Set the size and tag.
30289 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30290 Use XMISCANY.
30291 (die): Follow the GNU convention for error messages.
30292 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30293 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30294 tag any more.
30295 (set_buffer_internal_1):
30296 * frame.c (store_frame_param):
30297 * eval.c (specbind):
30298 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30299
30300 * doc.c (Fsnarf_documentation): Simplify.
30301
30302 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30303
30304 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30305 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30306
30307 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30308
30309 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30310
30311 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30312
30313 * eval.c (do_autoload): Don't save autoloads.
30314
30315 * data.c (Ffset): Save autoload of the function being set.
30316
30317 2007-10-07 John Paul Wallington <jpw@pobox.com>
30318
30319 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30320 parameter before setting up faces.
30321
30322 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30323
30324 * ccl.c (Fregister_code_conversion_map):
30325 * keyboard.c (append_tool_bar_item): Reformat last change.
30326
30327 * lisp.h (eabs): Rename from `abs'. All callers changed.
30328
30329 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30330
30331 * buffer.c (add_overlay_mod_hooklist):
30332 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30333 * fontset.c (make_fontset):
30334 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30335 (append_tool_bar_item):
30336 * macmenu.c (grow_menu_items):
30337 * w32menu.c (grow_menu_items):
30338 * xmenu.c (grow_menu_items): Use larger_vector.
30339
30340 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30341
30342 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30343 selected frame'' on MSDOS).
30344
30345 2007-10-12 Martin Rudalics <rudalics@gmx.at>
30346
30347 * frame.c (Qexplicit_name): New variable.
30348 (x_report_frame_params): Report it in parameter alist.
30349 (syms_of_frame): Intern and staticpro it.
30350
30351 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30352
30353 * macfns.c (x_create_tip_frame): Set terminal for frame.
30354
30355 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30356
30357 * frame.c (Qenvironment): Remove.
30358 (syms_of_frame) <Qenvironment>: Don't initialize.
30359 (Fdelete_frame): Don't treat the `environment' param specially.
30360 * frame.h (Qenvironment): Don't declare.
30361 * callproc.c (set_initial_environment): Don't set unused frame param.
30362
30363 * frame.c (Fframe_with_environment): Remove.
30364 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30365
30366 * lisp.h (Fframe_with_environment): Don't declare.
30367
30368 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
30369
30370 * indent.c (indent_tabs_mode, last_known_column)
30371 (last_known_column_modified): Make static.
30372 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30373
30374 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30375
30376 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30377
30378 2007-10-09 Jason Rumney <jasonr@gnu.org>
30379
30380 * w32term.c (x_set_window_size): Disable code that attempts to tell
30381 Lisp code about a size change before it actually happens.
30382
30383 2007-10-09 Richard Stallman <rms@gnu.org>
30384
30385 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30386 return HANDLED_RETURN.
30387
30388 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30389
30390 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30391 when there's an unread command event.
30392
30393 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30394 window autoselection act appropriately when leaving selected frame.
30395 (syms_of_frame): Initialize focus_follows_mouse.
30396 * frame.h (focus_follows_mouse): Extern it.
30397 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30398 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30399 * msdos.c (dos_rawgetc): Likewise.
30400 * w32term.c (w32_read_socket): Likewise.
30401 * xterm.c (handle_one_xevent): Likewise.
30402 * xdisp.c (syms_of_xdisp): In doc-string of
30403 mouse-autoselect-window mention focus-follows-mouse.
30404
30405 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30406
30407 * macterm.c (mac_load_query_font): Fix missing return value.
30408 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30409 Add BLOCK_INPUT.
30410
30411 2007-10-08 Richard Stallman <rms@gnu.org>
30412
30413 * xdisp.c (get_window_cursor_type): Implement documented behavior
30414 for cursor-in-non-selected-windows = t.
30415
30416 2007-10-08 Jason Rumney <jasonr@gnu.org>
30417
30418 * w32.c (w32_get_resource): Always close registry keys.
30419
30420 2007-10-08 Jason Rumney <jasonr@gnu.org>
30421
30422 * makefile.w32-in (LIBS): Add COMCTL32.
30423
30424 * w32fns.c (globals_of_w32fns): Init common controls.
30425
30426 2007-10-08 Richard Stallman <rms@gnu.org>
30427
30428 * image.c (our_memory_buffer): Rename from omfib_buffer.
30429
30430 2007-10-08 Richard Stallman <rms@gnu.org>
30431
30432 * buffer.c (Foverlays_at): Doc fix.
30433
30434 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30435
30436 * fns.c (Fplist_put): Preserve uneven tail data.
30437
30438 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30439
30440 * termhooks.h (enum event_kind): Remove trailing comma.
30441
30442 * frame.h (enum): Remove trailing comma.
30443
30444 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30445
30446 * w32proc.c (delete_child): Don't terminate threads of zombies.
30447
30448 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30449
30450 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30451
30452 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30453 last-repeatable-command.
30454 (init_kboard): Initialize Vlast_repeatable_command.
30455 (command_loop_1): Set it to real_this_command unless that was
30456 bound to an input event.
30457 (mark_kboards): Mark it.
30458
30459 2007-10-08 Richard Stallman <rms@gnu.org>
30460
30461 * eval.c (condition-case): Doc fix.
30462
30463 2007-10-08 Masatake YAMATO <jet@gyve.org>
30464
30465 * xfaces.c (tty_supports_face_attributes_p): Fix code
30466 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30467 was copied and not edited.
30468
30469 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30470
30471 Add new `input-decode-map' keymap and use it for terminal
30472 escape sequences.
30473 * keyboard.h (struct kboard): Add Vinput_decode_map.
30474 Remove Vlocal_key_translation_map.
30475 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30476 (init_kboard): Init input-decode-map.
30477 Replace local-key-translation-map back with key-translation-map.
30478 (syms_of_keyboard): Declare input-decode-map.
30479 Remove local-key-translation-map. Update docstrings.
30480 (mark_kboards): Mark Vinput_decode_map.
30481 Don't mark Vlocal_key_translation_map.
30482 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30483 Replace local-key-translation-map back with key-translation-map.
30484 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30485 Bind in input-decode-map rather than function-key-map.
30486
30487 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30488 This was made redundant by the previous introduction of XSETPVECTYPE.
30489
30490 2007-10-09 Richard Stallman <rms@gnu.org>
30491
30492 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30493
30494 2007-09-29 Richard Stallman <rms@gnu.org>
30495
30496 * eval.c (internal_condition_case_2, internal_condition_case_1)
30497 (internal_condition_case): Reenable abort if x_catching_errors ()
30498 to see if that really happens and why.
30499
30500 2007-10-06 Andreas Schwab <schwab@suse.de>
30501
30502 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30503
30504 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
30505
30506 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30507
30508 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30509
30510 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30511
30512 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30513
30514 * window.h (struct window):
30515 * window.c (struct save_window_data, struct saved_window):
30516 * termhooks.h (struct terminal):
30517 * process.h (struct Lisp_Process):
30518 * frame.h (struct frame):
30519 * buffer.h (struct buffer):
30520 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30521 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30522 The size field of (pseudo)vectors is now unsigned.
30523 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30524
30525 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30526 Turn `count' into an integer.
30527
30528 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30529 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30530 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30531 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30532 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30533
30534 * alloc.c (allocate_pseudovector): New fun.
30535 (ALLOCATE_PSEUDOVECTOR): New macro.
30536 (allocate_window, allocate_terminal, allocate_frame)
30537 (allocate_process): Use it.
30538 (mark_vectorlike): New function.
30539 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30540 (mark_terminals): Use it.
30541 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30542 (Fmake_byte_code): Use XSETPVECTYPE.
30543
30544 * frame.c (Fframe_parameters): Minor simplification.
30545
30546 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30547
30548 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30549
30550 * buffer.c (Fget_buffer_create, init_buffer_once):
30551 * lread.c (defsubr):
30552 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30553
30554 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30555 defined differently in the m/*.h files.
30556 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30557 (XSETPVECTYPE): New macro.
30558 (XSETPSEUDOVECTOR): Use it.
30559
30560 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30561 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30562
30563 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30564 * lread.c (defvar_per_buffer):
30565 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30566
30567 * window.c (candidate_window_p): Only consider as visible frames that
30568 are on the same terminal.
30569
30570 * m/ibms390x.h (MARKBIT): Remove unused macro.
30571
30572 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
30573
30574 * lread.c (Fload): Fix typo in docstring.
30575
30576 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30577
30578 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30579 of a non-zero value can't yield zero.
30580
30581 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30582
30583 * term.c (term_clear_mouse_face, term_mouse_highlight)
30584 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30585
30586 * print.c (safe_debug_print): Use XHASH.
30587
30588 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30589 Lisp elements such as tags.
30590 (XHASH): New macro.
30591 (EQ): Use it.
30592 (SREF, SSET, STRING_COPYIN): Use SDATA.
30593 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30594
30595 * alloc.c (mark_terminal): Remove left-over declaration.
30596 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30597 (allocate_vectorlike): Remove type argument. Adjust callers.
30598 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30599 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30600
30601 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30602 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30603 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30604 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30605 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30606 Use them.
30607
30608 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30609 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30610 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30611
30612 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30613
30614 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30615 loaded by default.
30616
30617 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30618
30619 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30620 on this tty.
30621 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30622
30623 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30624 Update all users.
30625 (handle_one_term_event): Use Gpm_DrawPointer.
30626 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30627 Signal errors instead of returning nil. Always return nil.
30628 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30629 Make it a noop if gpm-mouse was not activated.
30630 (syms_of_term): Update names.
30631
30632 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30633
30634 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30635 (init_sys_modes): Check that gpm_tty is the current tty.
30636
30637 * alloc.c (allocate_terminal): Set the vector size to only count the
30638 lisp fields. Initialize those to nil.
30639 (mark_object): Don't treat terminals specially.
30640 (mark_terminal): Remove.
30641 (mark_terminals): Use mark_object instead.
30642
30643 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30644 the GC to the beginning.
30645
30646 * indent.h:
30647 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30648
30649 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30650
30651 2007-09-25 Jason Rumney <jasonr@gnu.org>
30652
30653 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30654
30655 * w32console.c (create_w32cons_output): Remove.
30656
30657 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30658
30659 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30660 (reset_sys_modes): Use reset_terminal_modes_hook.
30661
30662 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30663
30664 * eval.c (do_autoload): Don't output any message.
30665
30666 2007-09-24 Juri Linkov <juri@jurta.org>
30667
30668 * emacs.c (standard_args): Change priority of "--no-splash"
30669 from 40 to 3. Add "--no-desktop" with the same priority.
30670
30671 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30672
30673 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30674 and optimize the case where they are all 1.
30675
30676 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30677
30678 * lisp.h (abs): Define if not defined.
30679 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30680 Don't define `abs', since it's defined in lisp.h.
30681
30682 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30683
30684 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30685 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30686 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30687 (init_tty): Use DEV_TTY instead of "/dev/tty".
30688 [WINDOWSNT]: No need to protect from NAME arg being null.
30689
30690 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30691
30692 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30693 up the tty state.
30694
30695 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30696
30697 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30698 (gpm_tty): Change its type.
30699 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30700 (gpm_tty): Change its type and initialize it.
30701 (Fterm_open_connection): Check the frame is indeed a tty.
30702 Use the new gpm_tty.
30703 (Fterm_close_connection): Use the new gpm_tty.
30704 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30705 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30706
30707 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30708
30709 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30710 underline_color, to draw strike-through.
30711
30712 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30713
30714 * lisp.h (allocate_terminal): Declare.
30715
30716 * window.c (candidate_window_p): Consider frames that are being placed
30717 by the user as somewhere between visible and iconified.
30718 (window_loop): Prefer windows on the current frame.
30719 (Fselect_window): Move the use of select-frame to the beginning so we
30720 can just delegate all the work (it'll call us back anyway).
30721
30722 * frame.c (Qdisplay_environment_variable):
30723 * frame.h (Qdisplay_environment_variable): Delete.
30724
30725 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30726 of the first arg, since that value may be a union.
30727
30728 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30729 parameter rather than Qdisplay_environment_variable. If all else
30730 fails, look for DISPLAY in initial-environment.
30731
30732 2007-09-21 Glenn Morris <rgm@gnu.org>
30733
30734 * Makefile.in (emacstool): Remove target.
30735 (lisp, shortlisp): Remove termdev.elc.
30736
30737 2007-09-21 Markus Triska <markus.triska@gmx.at>
30738
30739 * xterm.c (x_delete_display): Compile session management conditionally.
30740
30741 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30742
30743 * callproc.c (getenv_internal_1): New function.
30744 (getenv_internal): Use it.
30745 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30746
30747 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30748 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30749 (Fset_terminal_parameter): Work with dead terminals as well.
30750 (Fmodify_terminal_parameters): Remove.
30751
30752 * terminal.c (get_terminal): Handle terminals.
30753 Make sure the terminal returned is live.
30754 (create_terminal): Use allocate_terminal.
30755 (mark_terminals): Move to alloc.c.
30756 (delete_terminal): Use terminal->name as liveness status.
30757 NULL out fields after freeing their contents.
30758 Don't deallocate the object.
30759 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30760 rather than an int.
30761 (Fterminal_live_p): Accept non-integer arguments.
30762 (Fterminal_list): Return terminal objects rather than an ints.
30763
30764 * alloc.c (enum mem_type): New member for `terminal' objects.
30765 (allocate_terminal): New function.
30766 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30767 Handle terminals.
30768 (mark_terminal): New fun.
30769 (mark_terminals): Move from terminal.c.
30770
30771 * term.c (get_tty_terminal): Don't treat output_initial specially.
30772 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30773 (delete_tty): Use terminal->name as liveness status.
30774
30775 * termhooks.h (struct terminal): Make it into a pseudovector.
30776 Remove `deleted' replaced by checking `name's nullness.
30777
30778 * print.c (print_object): Handle terminals.
30779
30780 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30781 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30782
30783 * frame.c (make_terminal_frame):
30784 * keyboard.c (tty_read_avail_input):
30785 * w32term.c (x_delete_terminal):
30786 * xfns.c (Fx_create_frame, x_create_tip_frame):
30787 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30788
30789 2007-09-20 Glenn Morris <rgm@gnu.org>
30790
30791 * process.c (Fmake_network_process): Doc fix.
30792
30793 2007-09-19 Jason Rumney <jasonr@gnu.org>
30794
30795 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30796
30797 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30798
30799 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30800 Fix a C warning regarding variable constness.
30801
30802 * xterm.c (handle_one_xevent): Fix a C warning.
30803
30804 2007-09-18 Jason Rumney <jasonr@gnu.org>
30805
30806 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30807
30808 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30809
30810 * gtkutil.c (gdpy_def): New variable.
30811 (xg_initialize): Initialize gdpy_def.
30812 (xg_display_close): If no other display exists, set gdpy_def to a
30813 new connection.
30814
30815 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30816
30817 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30818 when we have no file name for the icon.
30819 (xg_tool_bar_expose_callback): Remove.
30820 (xg_create_tool_bar): Don't connect expose signal to
30821 xg_tool_bar_expose_callback.
30822 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30823
30824 2007-09-16 Andreas Schwab <schwab@suse.de>
30825
30826 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30827 values instead of zapping them.
30828
30829 2007-09-14 Glenn Morris <rgm@gnu.org>
30830
30831 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30832 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30833 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30834 scope and rename to omfib_buffer for clarity.
30835 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30836
30837 2007-09-14 Kenichi Handa <handa@m17n.org>
30838
30839 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30840
30841 2007-09-13 Jason Rumney <jasonr@gnu.org>
30842
30843 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30844
30845 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30846
30847 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30848 (mac_term_init): Call here instead, passing rif.
30849
30850 2007-09-13 Glenn Morris <rgm@gnu.org>
30851
30852 * s/hpux.h: No longer define `static' as nothing.
30853
30854 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30855
30856 * callint.c (Fcall_interactively): Remove unused var `fun'.
30857
30858 2007-09-12 Romain Francoise <romain@orebokech.com>
30859
30860 * window.c (prefer_window_split_horizontally, display_buffer):
30861 Revert 2007-09-08 change.
30862
30863 2007-09-12 Glenn Morris <rgm@gnu.org>
30864
30865 * alloca.c: Remove file.
30866 * Makefile.in (alloca): Do not undef.
30867 (allocaobj, alloca.o): Remove.
30868 (otherobj): Remove allocaobj.
30869 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30870 * regex.c (C_ALLOCA): Remove all references and code that was only
30871 used when this was defined.
30872 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30873 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30874 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30875
30876 * Makefile.in (SOURCES, unlock, relock): Delete.
30877
30878 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30879 (menu_grab_callback): All uses changed.
30880
30881 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30882 (x_reply_selection_request): All uses changed.
30883
30884 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30885
30886 * lread.c (load_warn_old_style_backquotes): Change message to look
30887 better when it appears in the middle of byte-compiler messages.
30888
30889 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30890
30891 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30892
30893 * xterm.c (x_create_terminal): Add comment.
30894
30895 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30896
30897 2007-09-10 Richard Stallman <rms@gnu.org>
30898
30899 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30900
30901 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30902
30903 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30904 (DEFUN): Document `intspec', use it instead of `prompt'.
30905
30906 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30907
30908 * data.c (Finteractive_form): If the interactive specification starts
30909 with a `(', use it as a Lisp form.
30910
30911 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30912 name and file modes.
30913
30914 * callint.c (Fcall_interactively): Comment fixes.
30915
30916 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30917
30918 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30919 and compiled functions.
30920
30921 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30922
30923 * window.c (prefer_window_split_horizontally): New variable.
30924 (display_buffer): Consider splitting window horizontally depending
30925 on prefer_window_split_horizontally.
30926
30927 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30928
30929 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30930
30931 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30932
30933 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30934
30935 * frame.c (x_set_frame_parameters): Check number is positive before
30936 using XFASTINT.
30937
30938 * window.c (freeze_window_start): Don't presume selected_window holds
30939 a window object.
30940 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30941
30942 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30943
30944 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30945
30946 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30947
30948 * window.c (Vsplit_window_preferred_function): New var.
30949 (Fdisplay_buffer): Use it.
30950 (syms_of_window): Export, and initialize it.
30951
30952 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30953
30954 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30955
30956 2007-09-06 Glenn Morris <rgm@gnu.org>
30957
30958 * gtkutil.c (menu_grab_callback) <cnt>:
30959 * xselect.c (x_reply_selection_request) <cnt>: Move static
30960 variable to file scope.
30961
30962 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30963
30964 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30965 consistent values of selected_frame and selected_window.
30966
30967 2007-09-04 Jason Rumney <jasonr@gnu.org>
30968
30969 * w32console.c (initialize_w32_display): Zero unused hooks.
30970
30971 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30972
30973 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30974 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30975
30976 2007-09-04 Jason Rumney <jasonr@gnu.org>
30977
30978 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30979 in w32console.c. Set up input. Remove XXX comments that have been
30980 confirmed as correct.
30981
30982 * s/ms-w32.h (MULTI_KBOARD): Define.
30983
30984 * w32console.c (one_and_only_w32cons): Remove.
30985 (initialize_w32_display): Take terminal argument.
30986
30987 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30988 initialize_w32_display.
30989 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30990
30991 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30992
30993 * keyboard.c (discard_mouse_events): Discard it.
30994 (make_lispy_event): Translate it to a lisp event.
30995 (lispy_wheel_names): Add wheel-left and right events.
30996 (syms_of_keyboard): Enlarge wheel_syms.
30997
30998 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30999 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
31000
31001 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
31002
31003 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
31004 from WM_MOUSEHWHEEL.
31005 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
31006
31007 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
31008 terminal.
31009
31010 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
31011 keyboard for the terminal.
31012
31013 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
31014
31015 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
31016 (Vresume_tty_hook): Rename from Vresume_tty_functions.
31017 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
31018 and resume-tty-function to resume-tty-hook.
31019 (Fsuspend_tty, Fresume_tty): Use new names.
31020
31021 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
31022
31023 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
31024 if it starts with "n:".
31025
31026 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
31027
31028 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
31029
31030 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
31031
31032 * frame.h:
31033 * frame.c (Qterm_environment_variable): Remove.
31034 (syms_of_frame): Don't init and staticpro it.
31035
31036 * callproc.c (getenv_internal): Remove special case for $TERM.
31037
31038 * callproc.c (Vinitial_environment): New variable.
31039 (set_initial_environment): Initialize it.
31040 (syms_of_callproc): Declare it.
31041 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
31042 TERM under which a process runs is never related to the TERM in which
31043 Emacs is running.
31044
31045 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31046
31047 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
31048 * s/darwin.h: ... do it here.
31049
31050 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
31051
31052 * lisp.h (set_initial_environment): Rename from set_global_environment.
31053
31054 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
31055 removed by mistake on the multi-tty branch.
31056
31057 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
31058 (Fmodify_frame_parameters): Return a value.
31059
31060 * image.c (png_load): Comment-out var only used in commented-out code.
31061
31062 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
31063 before passing it to mark_object.
31064
31065 * xfaces.c (internal_resolve_face_name): Return a value.
31066 (internal_resolve_face_name, resolve_face_name_error): Comment out.
31067
31068 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
31069 (x_icon): Comment-out var only used in commented-out code.
31070
31071 2007-08-29 Romain Francoise <romain@orebokech.com>
31072
31073 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
31074 QUIT hasn't been provided.
31075
31076 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31077
31078 * callproc.c (child_setup, getenv_internal): Use the
31079 display-environment-variable and term-environment-variable frame params.
31080 (set_initial_environment): Initialise Vprocess_environment.
31081
31082 * config.in: Disable multi-keyboard support on a mac.
31083
31084 * frame.c (Qterm_environment_variable)
31085 (Qdisplay_environment_variable): New variables.
31086 (syms_of_frame): Intern and staticpro them.
31087 (Fmake_terminal_frame): Disable output method test.
31088
31089 * frame.h: Declare them here.
31090
31091 * macfns.c (x_set_mouse_color): Get rif from the frame.
31092 (x_set_tool_bar_lines): Don't use updating_frame.
31093 (mac_window): Add 2 new parameters for consistency with other systems.
31094 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
31095 frame parameters following what is done in X11 and w32. Don't use
31096 FRAME_MAC_DISPLAY_INFO.
31097 (Fx_open_connection, start_hourglass): Remove window-system check.
31098 (x_create_tip_frame): Get the keyboard from the terminal.
31099
31100 * macmenu.c: Reorder includes.
31101 (Fx_popup_menu): Use terminal specific mouse_position_hook.
31102
31103 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
31104 terminal parameter.
31105 (x_clear_frame): Add a frame parameter.
31106 (note_mouse_movement): Get rif from the frame.
31107 (mac_term_init): Initialize the terminal.
31108 (mac_initialize): Make static and move terminal initialization ...
31109 (mac_create_terminal): ... to this new function.
31110
31111 * macterm.h (struct mac_display_info): Add terminal.
31112 (mac_initialize): Delete declaration.
31113
31114 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
31115
31116 * sysdep.c: Comment out text after #endif.
31117
31118 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
31119 is defined. Better initialize ttys in windows. Use terminal
31120 specific mouse_position_hook.
31121
31122 * termhooks.h (union display_info): Add mac_display_info.
31123
31124 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
31125 Set the default minibuffer frame, window_system and the rest of the
31126 frame parameters following what is done in X11.
31127
31128 * w32term.c (w32_initialize): Make static.
31129
31130 * xselect.c (x_handle_selection_clear): Only access
31131 terminal->kboard when MULTI_KBOARD is defined.
31132
31133 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
31134 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
31135
31136 2007-08-29 Jason Rumney <jasonr@gnu.org>
31137
31138 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
31139 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
31140
31141 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
31142 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
31143
31144 * keyboard.c (restore_kboard_configuration): Only define when
31145 MULTI_KBOARD defined.
31146
31147 * makefile.w32-in: Update dependancies from Makefile.in.
31148 (OBJ1): Add terminal.$(O)
31149
31150 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
31151 Don't define function body.
31152 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
31153
31154 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
31155
31156 * w32.c (request_sigio, unrequest_sigio): Remove.
31157
31158 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
31159 (w32con_clear_frame, w32con_clear_end_of_line)
31160 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
31161 (w32con_delete_glyphs, w32con_set_terminal_window)
31162 (scroll_line, w32_sys_ring_bell): Add frame arg.
31163 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
31164 Add terminal arg.
31165 (PICK_FRAME): Remove.
31166 (w32con_write_glyphs): Use frame specific terminal coding.
31167 (one_and_only_w32cons): New global variable.
31168 (initialize_w32_display): Use it for storing hooks.
31169 (create_w32cons_output): New function.
31170
31171 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
31172 arg a frame.
31173
31174 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
31175 Set window_system.
31176 (x_set_tool_bar_lines): Don't use updating_frame.
31177 (Fx_create_frame): Set terminal and ref count.
31178 (Fx_open_connection): Remove window-system check.
31179
31180 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
31181
31182 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
31183 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
31184 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
31185 Add frame arg.
31186 (x_delete_terminal, w32_create_terminal): New functions.
31187 (w32_term_init): Create a terminal.
31188 (w32_initialize): Move terminal specific initialization to
31189 w32_create_terminal.
31190
31191 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
31192 (w32_clear_rect, w32_clear_area): Use background from frame.
31193 (w32_display_info): Add terminal.
31194 (w32_sys_ring_bell, x_delete_display): Declare here.
31195
31196 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
31197
31198 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
31199
31200 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
31201
31202 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
31203 Fix get_named_tty calls for the controlling tty.
31204
31205 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
31206
31207 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
31208
31209 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
31210
31211 * term.c (tty_insert_glyphs): Add missing first parameter.
31212
31213 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
31214
31215 * buffer.c (Fbuffer_list, Fbury_buffer):
31216 Take frame->buried_buffer_list into account.
31217
31218 * cm.c (current_tty): New variable, for cmputc().
31219 (cmputc): Use it.
31220 (cmcheckmagic): Add tty parameter, look up terminal streams there.
31221 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
31222 (cmgoto): Add tty parameter. Pass it on to calccost().
31223 Use emacs_tputs() instead of tputs().
31224
31225 * cm.h (emacs_tputs): New macro to set current_tty, and then call
31226 tputs().
31227 (current_tty): New variable, for cmputc().
31228 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
31229
31230 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
31231 (internal_condition_case, internal_condition_case_1)
31232 (internal_condition_case_2): Don't abort when x_catching_errors.
31233
31234 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
31235 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
31236 prevent crashes caused by bogus longjmps in read_char.
31237
31238 * keymap.h (Fset_keymap_parent): Add EXFUN.
31239
31240 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
31241 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31242 Remove redundant definition.
31243
31244 * macfns.c (x_set_mouse_color, x_make_gc):
31245 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31246
31247 * w32term.c (x_free_frame_resources):
31248 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31249 (w32_initialize): Use the accessor macros for terminal characteristics.
31250
31251 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31252 Use the accessor macros for terminal characteristics.
31253 * msdos.c (internal_terminal_init): Use the accessor macros for
31254 terminal characteristics.
31255 (ScreenVisualBell, internal_terminal_init):
31256 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31257
31258 * termopts.h (no_redraw_on_reenter): Declare.
31259
31260 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31261 (mark_terminals, mark_ttys): Declare.
31262 (Fgarbage_collect): Call them.
31263 (mark_object): Mark buried_buffer_list.
31264
31265 * prefix-args.c: Include stdlib.h for exit.
31266
31267 * syssignal.h: Add comment.
31268
31269 * indent.c: Include stdio.h.
31270
31271 * window.h (Vinitial_window_system): Declare.
31272 (Vwindow_system): Delete declaration.
31273
31274 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31275
31276 * image.c (lookup_image): Don't initialize `c' until the xasserts
31277 have been run.
31278
31279 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31280 FRAME_FOREGROUND_PIXEL.
31281
31282 * print.c (print_preprocess): Don't lose print_depth levels while
31283 iterating.
31284
31285 * widget.c (update_from_various_frame_slots):
31286 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31287
31288 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31289 frames.
31290 (window_internal_height): Remove bogus make_number call.
31291 (init_window_once): Call make_terminal_frame with two zero parameters.
31292
31293 * fileio.c (Fread_file_name): Update comment.
31294
31295 * callint.c (Fcall_interactively):
31296 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31297 Make sure it is correctly unwound.
31298
31299 * xsmfns.c (x_session_close): New function.
31300
31301 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31302 Delete declarations.
31303
31304 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31305 (x_output): Remove background_pixel and foreground_pixel fields.
31306 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31307 (x_delete_device, x_session_close): Declare.
31308
31309 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31310 (read_filtered_event): Call `read_char' with a local
31311 `wrong_kboard_jmpbuf'.
31312
31313 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31314 Don't call single_kboard_state. Use FRAME_RIF.
31315
31316 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31317 systems.
31318
31319 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31320 (Fframe_with_environment, Fset_input_meta_mode)
31321 (Fset_quit_char): EXFUN.
31322 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31323 (init_sys_modes, reset_sys_modes): Update prototypes.
31324 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31325
31326 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31327 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31328 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31329 Delete declarations.
31330 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31331 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31332 New declarations.
31333
31334 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31335 already does that during init_display(). Call syms_of_keymap
31336 before syms_of_keyboard. Call `syms_of_terminal'.
31337 Call set_initial_environment, not set_process_environment.
31338 (shut_down_emacs): Call reset_all_sys_modes() instead of
31339 reset_sys_modes().
31340
31341 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31342 (internal_resolve_face_name, resolve_face_name_error): New functions.
31343 (resolve_face_name): Protect against loops and errors thrown by Fget.
31344 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31345 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31346
31347 * scroll.c: Replace CURTTY() with local variables throughout the
31348 file (where applicable).
31349 (calculate_scrolling, calculate_direct_scrolling)
31350 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31351 characteristics.
31352
31353 * keymap.c (Vfunction_key_map): Remove.
31354 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31355 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31356 (Vkey_translation_map): Remove.
31357 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31358 (Fdescribe_buffer_bindings)
31359 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31360 Update for terminal-local key-translation-map.
31361
31362 * Makefile.in (callproc.o): Update dependencies.
31363 (lisp, shortlisp): Add termdev.elc.
31364 (obj): Add terminal.o.
31365 (terminal.o): Add dependencies.
31366 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31367 (data.o, fns.o): Add termhooks.h dependency.
31368 (SOME_MACHINE_LISP): Add dnd.elc.
31369 (minibuf.o): Fix typo.
31370 Update dependencies.
31371
31372 * data.c (do_symval_forwarding, store_symval_forwarding)
31373 (find_symbol_value): Use the selected frame's keyboard, not
31374 current_kboard.
31375
31376 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31377 Vwindow_system.
31378
31379 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31380 Fmenu_bar_open.
31381 (syms_of_xmenu): Update defsubr.
31382 (mouse_position_for_popup, Fx_popup_menu)
31383 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31384 (set_frame_menubar, free_frame_menubar)
31385 (create_and_show_popup_menu, xmenu_show)
31386 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31387 an X frame.
31388
31389 * xselect.c (x_own_selection): Abort if not an X frame.
31390 (some_frame_on_display): Check if it is an X frame.
31391 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31392
31393 * coding.c: Include frame.h and termhooks.h.
31394 (terminal_coding, keyboard_coding): Delete.
31395 (Fset_terminal_coding_system_internal)
31396 (Fset_keyboard_coding_system_internal)
31397 (Fkeyboard_coding_system)
31398 (Fterminal_coding_system): Add a terminal parameter.
31399 Get terminal_coding from the terminal.
31400 (init_coding_once): Don't call setup_coding_system here.
31401
31402 * dispextern.h (set_scroll_region, turn_off_insert)
31403 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31404 (tty_clear_end_of_line, tty_setup_colors)
31405 (delete_tty, updating_frame)
31406 (produce_special_glyphs, produce_glyphs, write_glyphs)
31407 (insert_glyphs): Remove.
31408 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31409 (tty_turn_off_highlight, get_tty_size): Add declaration.
31410 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31411
31412 * frame.h (enum output_method): Add output_initial.
31413 (struct x_output): Delete.
31414 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31415 Access foreground_pixel and background_pixel directly from the frame.
31416 (tty_display): Delete.
31417 (struct frame): Add buried_buffer_list, foreground_pixel,
31418 background_pixel and terminal. Delete kboard.
31419 (union output_data): Add tty.
31420 (FRAME_KBOARD): Get the kboard from the terminal.
31421 (FRAME_INITIAL_P): New macro.
31422 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31423 (Qterm_environment_variable, Qdisplay_environment_variable)
31424 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31425 New declarations.
31426
31427 * termchar.h (tty_output, tty_display_info): New structures.
31428 (tty_list): Declare.
31429 (FRAME_TTY, CURTTY): New macros.
31430 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31431 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31432 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31433 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31434
31435 * callproc.c: Include frame.h and termhooks.h, for terminal
31436 parameters.
31437 (add_env): New function.
31438 (child_setup): Use it.
31439 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31440 (getenv_internal): Fix get_terminal_param call.
31441 (Fgetenv_internal, egetenv): Update doc.
31442 (syms_of_callproc): Initialize Vprocess_environment to nil.
31443 Register and initialize them. Remove obsolete defvars. Update doc
31444 strings.
31445 (child_setup): Handle Vlocal_environment_variables.
31446 (getenv_internal): Add terminal parameter.
31447 Handle Vlocal_environment_variables.
31448 (Fgetenv_internal): Add terminal parameter.
31449 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31450 environment in a frame (not terminal) parameter. Update doc strings.
31451 (set_initial_environment): Rename from set_global_environment.
31452 Store Emacs environment in initial frame parameter.
31453
31454 * xdisp.c (redisplay_internal): Update references to
31455 `previous_terminal_frame'.
31456 (display_mode_line, Fformat_mode_line): Replace calls to
31457 `push_frame_kboard' with `push_kboard'.
31458 (get_glyph_string_clip_rects): Add extra parentheses and
31459 braces to prevent compiler warnings.
31460 (calc_pixel_width_or_height): Add xassert to check that the
31461 frame is alive. Don't call `lookup_image' on a termcap frame.
31462 (message2_nolog, message3_nolog, redisplay_internal)
31463 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31464 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31465 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31466 (Fx_display_pixel_width, Fx_display_pixel_height)
31467 (Fx_display_planes, Fx_display_color_cells)
31468 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31469 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31470 (Fx_display_backing_store, Fx_display_visual_class)
31471 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31472 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31473
31474 * xfns.c (x_set_foreground_color x_set_background_color)
31475 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31476 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31477 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31478 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31479 terminal that is being deleted.
31480 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31481 frame parameter, and make sure it overrides any user-supplied setting.
31482 (Fx_close_connection, Fx_synchronize): Unify argument names with
31483 the rest of the DEFUNs.
31484
31485 * dispnew.c (Fsend_string_to_terminal): Update call to
31486 `get_tty_terminal'.
31487 (Fredraw_frame, Fsend_string_to_terminal)
31488 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31489 FRAME_TERMCAP_P and FRAME_TTY.
31490 (window_change_signal): Don't believe width/height values that are
31491 impossibly small.
31492 (Vinitial_window_system): Rename from Vwindow_system.
31493 (termscript, Wcm, rif): Delete.
31494
31495 * termhooks.h (struct terminal): New struct containing the
31496 previously global text display hooks and new members NAME,
31497 DELETED and PARAM_ALIST.
31498 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31499 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31500 (FRAME_RIF): New macros.
31501 (get_terminal_param, get_device): New declarations.
31502 (termscript): Delete declaration.
31503
31504 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31505 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31506 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31507 FRAME_FOREGROUND_PIXEL.
31508 (x_fully_uncatch_errors): Disable definition.
31509 (x_scroll_bar_expose): Fix reference to foreground pixel.
31510 (XTread_socket): Disable loop on all X displays.
31511 (x_delete_terminal): Don't set terminal->deleted and let
31512 delete_terminal delete the frames on the terminal.
31513 (x_delete_display): Doc update to reflect changes in
31514 delete_terminal.
31515 (x_display_info) <terminal>: Move member earlier in the struct.
31516 (deleting_tty): Remove old variable.
31517 (Fsuspend_tty): Call clear_tty_hooks.
31518 (Fresume_tty, init_tty): Call set_tty_hooks.
31519 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31520 errors on X frames.
31521 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31522 (handle_one_xevent): Initialize `f' to NULL.
31523 (x_delete_terminal, x_create_terminal): New functions.
31524 (XTset_terminal_modes, XTreset_terminal_modes)
31525 (XTread_socket, x_connection_closed, x_term_init)
31526 (x_term_init, x_delete_display): Add terminal parameter.
31527 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31528 X connections.
31529
31530 * frame.c: Include termchar.h.
31531 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31532 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31533 (Qdisplay_environment_variable): New vars.
31534 (Fframep): Deal with output_initial.
31535 (Fframe-live-p): Doc fix.
31536 (Fwindow-system): New function.
31537 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31538 (make_terminal_frame): Don't create frames on a terminal that is
31539 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31540 (store_frame_param): Check for found_for_frame before calling XFRAME.
31541 (Fmake_terminal_frame): Handle NULL tty names correctly.
31542 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31543 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31544 frames to refer to a deleted frame in their 'environment parameter.
31545 (Fframe_with_environment): New function.
31546 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31547 (get_future_frame_param): New function.
31548 (Fmake_terminal_frame): Use it.
31549 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31550
31551 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31552 * sysdep.c (reset_sys_modes): Update for renames.
31553
31554 * keyboard.c (tty_read_avail_input): New function.
31555 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31556 (syms_of_keyboard): Defsubr them.
31557 (Fset_input_meta_mode, Fset_quit_char): New functions.
31558 (Fset_input_mode): Split to above functions.
31559 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31560 parameter. Use it in call to `read_char'.
31561 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31562 Set wrong_kboard_jmpbuf correctly in recursive calls.
31563 Use current_kboard to access Vkeyboard_translate_table.
31564 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31565 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31566 Update longjmp invocations. Remember the original current_kboard,
31567 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31568 changes it. Comment out unnecessary calls to
31569 `record_single_kboard_state' and `any_kboard_state'.
31570 Update recursive calls.
31571 (wrong_kboard_jmpbuf): Remove global variable.
31572 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31573 Handle deleted interrupted_kboards correctly; that is a legal
31574 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31575 and read_char calls. Abort if interrupted_kboard died in read_char.
31576 (any_kboard_state, single_kboard_state)
31577 (push_frame_kboard): Remove function.
31578 (pop_kboard): Switch out of single_kboard mode if the kboard has
31579 been deleted. Remove unused variable. Help debugging by not
31580 changing current_kboard unnecessarily. Set current_kboard to the
31581 kboard of the selected frame when the stored kboard object has
31582 been deleted before pop_kboard.
31583 (temporarily_switch_to_single_kboard): Change first parameter to a
31584 frame pointer. Throw an error when caller wants to change kboards
31585 while in single_kboard mode. Don't push_kboard if we weren't in
31586 single kboard state. Don't pop_kboard if we popped into any
31587 kboard state.
31588 (restore_kboard_configuration): Abort if pop_kboard changed the
31589 kboard in single_kboard mode. Call pop_kboard only after setting
31590 up single_kboard mode.
31591 (Frecursive_edit): Switch to single_kboard mode only in nested
31592 command loops.
31593 (cmd_error, command_loop, command_loop_1, timer_check):
31594 Comment out unnecessary call to `any_kboard_state' and
31595 `record_single_kboard_state'.
31596 (delete_kboard): Exit single_kboard mode if we have just deleted
31597 that kboard. Use FRAME_KBOARD.
31598 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31599 `fatal_error_signal'.
31600 (record_single_kboard_state): Don't push_kboard if we weren't in
31601 single kboard state. Don't pop_kboard if we popped into any
31602 kboard state.
31603 (push_frame_kboard): Rename to push_kboard.
31604 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31605 (read_avail_input): Read input from all terminals.
31606 (mark_kboards): Also mark Vkeyboard_translate_table.
31607 (kbd_buffer_store_event_hold): Simplify condition.
31608 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31609 (Vkeyboard_translate_table): Move to struct kboard.
31610 (init_kboard): Initialize Vkeyboard_translate_table.
31611 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31612 Vkeyboard_translate_table. Update doc strings. Update docs of
31613 local-function-key-map and function-key-map.
31614
31615 * terminal.c: New file.
31616
31617 * term.c: Include errno.h.
31618 (Vring_bell_function, device_list, initial_device)
31619 (next_device_id, ring_bell, update_begin, update_end)
31620 (set_terminal_window, cursor_to, raw_cursor_to)
31621 (clear_to_end, clear_frame, clear_end_of_line)
31622 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31623 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31624 (syms_of_term): Move their initialization to terminal.c.
31625 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31626 (Ftty_display_color_cells)
31627 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31628 (clear_tty_hooks, set_tty_hooks)
31629 (init_tty, maybe_fatal): New functions.
31630 (Ftty_type): Return nil if terminal is not on a tty instead of
31631 throwing an error. Doc update.
31632 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31633 Doc update. Initialize new subrs and variables.
31634 (delete_tty): Use terminal->deleted.
31635 (tty_set_terminal_modes): Rename from set_terminal_modes.
31636 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31637 (set_scroll_region): Rename to `tty_set_scroll_region'.
31638 (turn_on_insert): Rename to `tty_turn_on_insert'.
31639 (turn_off_insert): Rename to `tty_turn_off_insert'.
31640 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31641 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31642 (toggle_highligh): Rename to `tty_toggle_highlight'.
31643 (background_highlight): Rename to `tty_background_highlight'.
31644 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31645 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31646 (tty_set_scroll_region, tty_background_highlight)
31647 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31648 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31649 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31650 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31651 Add static modifier.
31652 (tty_reset_terminal_modes, tty_set_terminal_window)
31653 (tty_set_scroll_region, tty_background_highlight)
31654 (tty_highlight_if_desired, tty_cursor_to)
31655 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31656 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31657 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31658 renames.
31659
31660 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31661
31662 * keyboard.c: Qrtl is new.
31663 (parse_tool_bar_item): Handle :rtl keyword.
31664 (syms_of_keyboard): Intern :rtl keyword.
31665
31666 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31667
31668 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31669 so no Lisp code is executed.
31670 (file_for_image, find_rtl_image): New functions.
31671 (xg_get_image_for_pixmap): Use file_for_image.
31672 (update_frame_tool_bar): If direction is RTL, use RTL image if
31673 defined. Use Gtk stock images if defined.
31674
31675 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31676
31677 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31678 for nonexistent or zero-width glyph in composition glyph.
31679
31680 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31681
31682 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31683
31684 * xdisp.c (Finvisible_p): New function.
31685 (syms_of_xdisp): defsubr it.
31686
31687 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31688
31689 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31690 Doc fixes.
31691
31692 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31693
31694 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31695
31696 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31697
31698 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31699 whether decoding has modified buffer contents.
31700
31701 2007-08-24 Jason Rumney <jasonr@gnu.org>
31702
31703 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31704 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31705 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31706 (init_svg_functions) [HAVE_NTGUI]: New function.
31707 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31708 (svg_load_image): Use them.
31709 (svg_load_image) [HAVE_NTGUI]: Implement background.
31710
31711 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31712
31713 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31714 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31715 (LIBX): Remove @RSVG_LIBS@.
31716 (LIBES): Add $(RSVG_LIBS).
31717
31718 * image.c (svg_load_image): Blend with specified background if exists.
31719 Use IMAGE_BACKGROUND. Add Mac OS Support.
31720
31721 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31722 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31723 Remove macros.
31724 [MAC_OSX] (socket_callback): Do nothing.
31725 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31726 ReceiveNextEvent.
31727 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31728 socket_callback.
31729 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31730
31731 2007-08-22 Glenn Morris <rgm@gnu.org>
31732
31733 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31734
31735 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31736
31737 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31738
31739 * image.c: Add support for SVG images. Some additional comments
31740 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31741 (svg_image_p): New function to test for SVG image.
31742 (svg_load): New function to load SVG image.
31743 (svg_load_image): New function, helper for svg_load.
31744 (Qsvg): New Lisp_object.
31745 (svg_keyword_index): New enum.
31746 (svg_format): New static `image_keyword' struct.
31747 (svg_type): New static `image_type' struct.
31748 (librsvg/rsvg.h): Include it.
31749
31750 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31751
31752 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31753
31754 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31755
31756 * lread.c (Qold_style_backquotes): New var.
31757 (syms_of_lread): Init and staticpro it.
31758 (load_warn_old_style_backquotes): New fun.
31759 (Fload): Use them to warn about old style backquotes.
31760 (end_of_file_error, Fload): Remove unused vars.
31761
31762 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31763
31764 * lread.c (Vold_style_backquotes): New var.
31765 (syms_of_lread): Init and export it to Elisp.
31766 (read1): Set it when we find an old-style (back)quote.
31767
31768 2007-08-22 Jason Rumney <jasonr@gnu.org>
31769
31770 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31771
31772 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31773
31774 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31775
31776 2007-08-19 Richard Stallman <rms@gnu.org>
31777
31778 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31779
31780 2007-08-19 Andreas Schwab <schwab@suse.de>
31781
31782 * alloc.c (pure): Round PURESIZE up.
31783
31784 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31785
31786 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31787 active frame.
31788
31789 2007-08-16 Richard Stallman <rms@gnu.org>
31790
31791 * eval.c (Fcommandp): Add parens to clarify.
31792
31793 * minibuf.c (Fall_completions): Use enum for type of table.
31794
31795 * emacs.c (USAGE2): Improve text.
31796
31797 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31798
31799 * term.c (tty_default_color_capabilities): Declare static
31800 variables in file scope, to avoid HPUX compiler problem.
31801
31802 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31803
31804 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31805 to gtk_toolbar_insert.
31806
31807 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31808
31809 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31810
31811 * insdel.c (reset_var_on_error): New fun.
31812 (signal_before_change, signal_after_change):
31813 Use it to reset (after|before)-change-functions to nil in case of error.
31814 Bind inhibit-modification-hooks to t.
31815 Don't bind (after|before)-change-functions to nil while they run.
31816
31817 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31818
31819 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31820 filling pixmap with stippled background.
31821
31822 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31823
31824 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31825 Don't use invisible frame as parent window for repositioning.
31826
31827 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31828
31829 * print.c (new_backquote_output): Rename from old_backquote_output.
31830 (print): Inverse its logic (according to its name) so as to match the
31831 behavior of new_backquote_flag in lread.c.
31832
31833 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31834
31835 * gmalloc.c (posix_memalign): New function.
31836
31837 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31838 ActivateControl/DeactivateControl here.
31839 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31840 frame-notice-user-settings is non-nil.
31841 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31842 for kEventParamFMFontStyle.
31843 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31844 mac_pass_command_to_system and mac_pass_control_to_system here.
31845 (XTread_socket): Call ActivateControl/DeactivateControl here.
31846 (XTread_socket) [TARGET_API_MAC_CARBON]:
31847 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31848 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31849 for window repositioning.
31850
31851 2007-08-08 Glenn Morris <rgm@gnu.org>
31852
31853 * Replace `iff' in doc-strings and comments.
31854
31855 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31856
31857 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31858
31859 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31860
31861 * fileio.c (Finsert_file_contents): Run format-decode and
31862 after_insert_file_functions on entire buffer when REPLACE is
31863 non-nil and inhibit modification_hooks and point_motion_hooks.
31864 For consistency, run after_insert_file_functions iff something
31865 got inserted. Move signal_after_change and update_compositions
31866 after code running after_insert_file_functions. Make sure that
31867 undo_list doesn't record intermediate steps of the decoding process.
31868
31869 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31870
31871 * emacs.c (main)
31872 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31873 Call malloc_enable_thread on interactive startup.
31874
31875 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31876 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31877 [USE_PTHREAD]: Conditionalize with it.
31878 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31879 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31880 New functions.
31881
31882 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31883
31884 * xdisp.c (redisplay_window): When restoring original buffer
31885 position, make sure it is still valid.
31886
31887 * image.c (png_load): Ignore png-supplied background color.
31888
31889 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31890
31891 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31892 Use kCFAbsoluteTimeIntervalSince1970.
31893
31894 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31895 New variable.
31896 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31897 event loop should be quit.
31898 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31899 Quit dialog event loop if quit_dialog_event_loop is set.
31900
31901 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31902 (Selection): New typedef. Use instead of ScrapRef.
31903 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31904 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31905 (mac_clear_selection): Rename from clear_scrap.
31906 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31907 scrap_has_target_type. All uses changed.
31908 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31909 (mac_selection_has_target_p): New functions.
31910 (mac_put_selection_value): Rename from put_scrap_string.
31911 (mac_get_selection_value): Rename from get_scrap_string.
31912 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31913 (put_scrap_private_timestamp, scrap_has_target_type)
31914 (get_scrap_private_timestamp): Remove functions.
31915 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31916 (x_own_selection, x_get_local_selection):
31917 Use mac_valid_selection_value_p.
31918 (x_own_selection): Don't use put_scrap_private_timestamp.
31919 Record OWNERSHIP-INFO into Vselection_alist instead.
31920 (x_get_local_selection): Don't check type if request is local.
31921 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31922 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31923
31924 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31925
31926 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31927 add comment explaining why.
31928
31929 2007-08-03 Richard Stallman <rms@gnu.org>
31930
31931 * fileio.c (Fvisited_file_modtime): Use make_time.
31932
31933 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31934
31935 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31936 build.
31937
31938 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31939
31940 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31941
31942 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31943
31944 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31945
31946 2007-07-30 Richard Stallman <rms@gnu.org>
31947
31948 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31949
31950 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31951
31952 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31953
31954 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31955
31956 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31957 remote default-directory.
31958
31959 * buffer.c (mode-line-format): Update doc string.
31960
31961 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31962
31963 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31964 scroll bar gap.
31965 (x_scroll_bar_create): Set bar->fringe_extended_p.
31966 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31967 on frame edge. Check fringe background extension. Don't clear
31968 extended fringe background area.
31969
31970 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31971 (w32_fill_area): Enclose multiple statements with do ... while (0).
31972
31973 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31974 Extend fringe background to scroll bar gap.
31975 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31976 Set bar->fringe_extended_p.
31977 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31978 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31979 background extension. Don't clear extended fringe background area.
31980
31981 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31982 New member fringe_extended_p.
31983
31984 2007-07-25 Glenn Morris <rgm@gnu.org>
31985
31986 * Relicense all FSF files to GPLv3 or later.
31987
31988 * COPYING: Switch to GPLv3.
31989
31990 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31991
31992 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31993
31994 * data.c (Finteractive_form): Check for the presence of an
31995 `interactive-form' symbol property more thoroughly.
31996
31997 * data.c (Finteractive_form): Use an `interactive-form' property if
31998 present, analogous to the function-documentation property.
31999
32000 2007-07-24 Jason Rumney <jasonr@gnu.org>
32001
32002 * w32fns.c (x_real_positions): Get real position from OS instead of
32003 calculating it.
32004
32005 2007-07-23 Jason Rumney <jasonr@gnu.org>
32006
32007 * filelock.c (current_lock_owner): Allow for @ sign in username.
32008
32009 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
32010
32011 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
32012 remote default-directory.
32013
32014 * buffer.c (mode-line-format): Describe above case in doc string.
32015
32016 2007-07-20 Eli Zaretskii <eliz@gnu.org>
32017
32018 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
32019 Define if not defined.
32020
32021 2007-07-18 Jason Rumney <jasonr@gnu.org>
32022
32023 * w32proc.c (w32_executable_type): Handle 64 bit executables.
32024
32025 2007-07-18 Richard Stallman <rms@gnu.org>
32026
32027 * data.c (Fsetq_default): Doc fix.
32028
32029 * eval.c (Fsetq): Doc fix.
32030
32031 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
32032
32033 * coding.c (Ffind_operation_coding_system):
32034 * eval.c (For, Fand): Doc fixes.
32035 Reported by Johan Bockgård.
32036
32037 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
32038
32039 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
32040
32041 * xterm.h: Declare x_ewmh_activate_frame.
32042
32043 * xterm.c (x_ewmh_activate_frame): New function.
32044 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
32045
32046 2007-07-17 Martin Rudalics <rudalics@gmx.at>
32047
32048 * window.c (Fdisplay_buffer): If largest or LRU window is the
32049 only window, split it even if it is not eligible for splitting.
32050 This restores the original behavior broken by the 2007-07-15
32051 change.
32052
32053 2007-07-17 Glenn Morris <rgm@gnu.org>
32054
32055 * abbrev.c (abbrev_check_chars): New function.
32056 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
32057 Call abbrev_check_chars to check abbrev characters are word
32058 constituents. Doc fix.
32059
32060 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
32061
32062 * process.c (Fstart_process, Fmake_network_process)
32063 (read_process_output): Fix up last changes.
32064
32065 2007-07-16 Eli Zaretskii <eliz@gnu.org>
32066
32067 * makefile.w32-in (clean): Don't delete *~.
32068
32069 2007-07-16 Andreas Schwab <schwab@suse.de>
32070
32071 * window.c (Fdisplay_buffer): Use NILP.
32072 (Fset_window_scroll_bars): Likewise.
32073
32074 2007-07-15 Martin Rudalics <rudalics@gmx.at>
32075
32076 * window.c (window_min_size_2): New function.
32077 (window_min_size_1, size_window, Fdisplay_buffer)
32078 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
32079 windows without mode- or header-lines when window-min-height is
32080 too small.
32081 (size_window): Reset nodelete_p after testing it, following an
32082 earlier note by Kim F. Storm.
32083 (display_buffer): Do not set split_height_threshold to twice the
32084 value of window_min_height to avoid changing the value of a
32085 customizable variable. Rather explicitly check whether the
32086 height of the window that shall be splitted is at least as large
32087 as split_height_threshold.
32088 (Fwindow_full_width_p): New defun.
32089 (syms_of_window): Defsubr it.
32090
32091 * window.h: Add EXFUN for Fwindow_full_width_p.
32092
32093 2007-07-14 Jason Rumney <jasonr@gnu.org>
32094
32095 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
32096
32097 2007-07-14 Richard Stallman <rms@gnu.org>
32098
32099 * eval.c (maybe_call_debugger): New function.
32100 (find_handler_clause): Use maybe_call_debugger.
32101 Call it when the handler says `debug'.
32102 Eliminate DEBUGGER_VALUE_PTR.
32103 (Fsignal): Eliminate debugger_value.
32104 (Qdebug): New variable.
32105 (syms_of_eval): Initialize it.
32106
32107 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
32108
32109 * eval.c (Fprogn):
32110 * keyboard.c (Ftrack_mouse):
32111 * print.c (Fwith_output_to_temp_buffer):
32112 * window.c (Fsave_window_excursion): Doc fix.
32113
32114 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
32115
32116 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
32117
32118 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
32119
32120 * process.h (struct Lisp_Process): Turn slots infd, outfd,
32121 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
32122 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
32123 read_output_delay, and read_output_skip from Lisp_Objects to ints.
32124 Remove unused encoding_carryover.
32125 * process.c: Adjust all functions accordingly.
32126
32127 2007-07-12 Richard Stallman <rms@gnu.org>
32128
32129 * term.c: Include unistd.h only if HAVE_UNISTD_H.
32130
32131 2007-07-11 Jason Rumney <jasonr@gnu.org>
32132
32133 * makefile.w32-in (LIBS): Include OLE32.
32134
32135 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
32136 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
32137
32138 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
32139
32140 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
32141 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
32142 from a Lisp_Object into a bare pointer.
32143 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
32144 Adjust the code correspondingly.
32145
32146 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
32147
32148 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
32149 (term_show_mouse_face): Remove unused var `j'.
32150 (handle_one_term_event): Remove unused vars `i' and `j'.
32151 Don't cast return value of ttyname since it's not necessary.
32152
32153 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
32154
32155 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
32156 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
32157
32158 * fns.c (map_char_table): Use an array of int for `indices' rather than
32159 an array of Lisp_Objects (which are only ever integers anyway).
32160 (Fmap_char_table): Update caller.
32161 * lisp.h: Update prototype.
32162 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
32163 * fontset.c (Ffontset_info):
32164 * casetab.c (set_case_table): Update callers.
32165
32166 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
32167
32168 * keymap.c (struct accessible_keymaps_data)
32169 (struct where_is_internal_data): New structures.
32170 (accessible_keymaps_1, where_is_internal_1): Use them to change
32171 interface to adhere to the one used by map_keymap.
32172 (Faccessible_keymaps, where_is_internal): Use map_keymap.
32173 (accessible_keymaps_char_table, where_is_internal_2): Remove.
32174
32175 * keymap.h (map_keymap_function_t): More informative prototype.
32176
32177 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
32178
32179 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
32180 (looking_at_1): Don't change search_regs and last_thing_searched
32181 if `inhibit-changing-match-data' is non-nil.
32182 (string_match_1, search_buffer, set_search_regs): Likewise.
32183 (syms_of_search): Add Lisp level definition for
32184 `inhibit-changing-match-data' and set it to nil.
32185 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
32186 start and end of the match, instead of using values in search_regs.
32187
32188 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
32189
32190 * minibuf.c (Fcompleting_read): New value `confirm-only'
32191 for `require-match'.
32192
32193 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
32194
32195 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
32196 part of the 2007-06-27 change to syms_of_fileio.
32197
32198 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32199
32200 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
32201 Check WINDOWP before using XWINDOW. Consolidate return statements.
32202
32203 2007-06-27 Richard Stallman <rms@gnu.org>
32204
32205 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
32206
32207 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
32208
32209 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
32210
32211 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32212
32213 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
32214 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
32215 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
32216 (_free_internal, memalign): Use them.
32217 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
32218 Initialize to PTHREAD_MUTEX_INITIALIZER.
32219 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
32220 (morecore_nolock): Rename from morecore. All uses changed.
32221 Use only nolock versions of internal allocation functions.
32222 (_malloc_internal_nolock, _realloc_internal_nolock)
32223 (_free_internal_nolock): New functions created from
32224 _malloc_internal, _realloc_internal, and _free_internal.
32225 (_malloc_internal, _realloc_internal, _free_internal): Use them.
32226 Copy hook value to automatic variable before its use.
32227 (memalign): Copy hook value to automatic variable before its use.
32228
32229 2007-06-26 Kenichi Handa <handa@m17n.org>
32230
32231 * coding.c (Ffind_operation_coding_system): Docstring improved.
32232 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
32233
32234 2007-06-25 David Kastrup <dak@gnu.org>
32235
32236 * keymap.c (Fcurrent_active_maps): Add `position' argument.
32237 (Fwhere_is_internal): Adjust call to `current-active-maps' to
32238 cater for additional parameter.
32239
32240 * keymap.h: Adjust number of parameters to `current-active-maps'.
32241
32242 * doc.c (Fsubstitute_command_keys): Adjust call of
32243 `current-active-maps'.
32244
32245 2007-06-25 David Kastrup <dak@gnu.org>
32246
32247 * callint.c (Fcall_interactively): Make the parsing of interactive
32248 specs somewhat more readable.
32249
32250 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32251
32252 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32253 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32254 if extended background has already been filled.
32255
32256 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32257
32258 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32259 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32260
32261 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32262 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32263 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32264 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32265 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32266 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32267 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32268 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32269 Run timers during dialog popup.
32270 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32271
32272 2007-06-21 Jason Rumney <jasonr@gnu.org>
32273
32274 * image.c (convert_mono_to_color_image): Swap fore and background.
32275
32276 2007-06-20 Jason Rumney <jasonr@gnu.org>
32277
32278 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32279 (w32_free_bdf_font): Unmap memory not handle.
32280
32281 2007-06-20 Sam Steingold <sds@gnu.org>
32282
32283 * gmalloc.c (__morecore): Fix the declaration to comply with the
32284 definition.
32285
32286 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
32287
32288 * w32term.c (w32_delete_display): Remove leftover declaration.
32289 (w32_define_cursor, w32_initialize): Make static.
32290
32291 * w32.c (_wsa_errlist): Fix typo in error message.
32292 (init_environment): Ignore any environment variable from the
32293 registry having a null value.
32294
32295 2007-06-20 Glenn Morris <rgm@gnu.org>
32296
32297 * Makefile.in (LIBGIF): Default to -lgif.
32298
32299 2007-06-17 Jason Rumney <jasonr@gnu.org>
32300
32301 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32302 unicode strings.
32303
32304 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
32305
32306 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32307 Fix typo in docstring.
32308
32309 2007-06-16 Eli Zaretskii <eliz@gnu.org>
32310
32311 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32312 and their keybindings.
32313
32314 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
32315
32316 * composite.c (update_compositions): Fix last fix.
32317
32318 2007-06-14 Jason Rumney <jasonr@gnu.org>
32319
32320 * w32.c (get_process_times_fn): New function pointer.
32321 (globals_of_w32): Intialize it if present in kernel32.dll.
32322 (w32_get_internal_run_time): New function.
32323
32324 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32325
32326 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32327
32328 * composite.c (update_compositions): Check the validness of
32329 compositions.
32330
32331 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32332
32333 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32334 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32335
32336 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32337 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32338
32339 * macgui.h (USE_MAC_TOOLBAR): New define.
32340
32341 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32342 Return immediately unless popup is activated.
32343
32344 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32345 background to scroll bar gap.
32346 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32347 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32348 scroll bars on frame edge. Check fringe background extension.
32349 Don't clear extended fringe background area.
32350 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32351 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32352 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32353 [USE_MAC_TOOLBAR]: New macros.
32354 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32355 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32356 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32357 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32358 [USE_MAC_TOOLBAR]: New functions.
32359 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32360 manually if previous repositioning has failed.
32361 (mac_handle_keyboard_event): Use precomputed event kind.
32362 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32363 as tool bar item click. Handle mouse movement over tool bar items.
32364
32365 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32366 toolbar_win_gravity.
32367 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32368 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32369 Add externs.
32370
32371 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32372 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32373
32374 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
32375
32376 * image.c (search_image_cache): Remove unused variable.
32377
32378 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
32379
32380 * xfns.c, xmenu.c: Link to xaw3d if available.
32381
32382 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32383
32384 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32385 frame_foreground and frame_background.
32386
32387 * image.c (lookup_image): Save frame foreground and background colors.
32388 (search_image_cache): Check if saved and current frame colors match.
32389
32390 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32391
32392 * regex.c (regex_compile): Remove the `regnum' counter.
32393 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32394
32395 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32396
32397 * term.c: Include intervals.h to declare Fget_text_property.
32398
32399 2007-06-10 Jason Rumney <jasonr@gnu.org>
32400
32401 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32402
32403 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
32404
32405 * callint.c (Fcall_interactively):
32406 * editfns.c (Fdelete_and_extract_region):
32407 * fileio.c (Fread_file_name):
32408 * fns.c (Fmapconcat):
32409 * keyboard.c (cmd_error_internal):
32410 * keymap.c (Fkey_description):
32411 * lread.c (openp):
32412 * minibuf.c (read_minibuf):
32413 * search.c (wordify):
32414 * sunfns.c (sel_read):
32415 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32416 * xfns.c (x_default_scroll_bar_color_parameter):
32417 * xmenu.c (menu_help_callback):
32418 * xselect.c (Fx_get_atom_name):
32419 * xterm.c (x_term_init): Use empty_unibyte_string.
32420
32421 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32422
32423 * alloc.c (init_strings): Initialize canonical empty strings.
32424 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32425 canonical empty string when the requested size is 0.
32426
32427 * emacs.c (empty_unibyte_string): Rename from empty_string.
32428 (empty_multibyte_string): New canonical empty string.
32429 (syms_of_emacs): Don't initialize empty_string.
32430
32431 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32432 string, if appropriate.
32433 (empty_unibyte_string, empty_multibyte_string): New externs.
32434 (empty_string): Remove extern.
32435
32436 * lread.c (syms_of_lread): Use empty_unibyte_string.
32437
32438 2007-06-07 Jason Rumney <jasonr@gnu.org>
32439
32440 * s/ms-w32.h: Don't define HAVE_TZNAME.
32441
32442 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32443
32444 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32445
32446 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32447
32448 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32449 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32450
32451 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32452 Don't call next handler.
32453 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32454 Remove argument. Install handler to application.
32455 (set_frame_menubar): Don't change deep_p.
32456 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32457 FRAME_OUTER_TO_INNER_DIFF_Y.
32458 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32459 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32460 [HAVE_DIALOGS]: New macros.
32461 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32462 Use them.
32463 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32464
32465 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32466 init_service_handler. All callers changed. Return OSStatus value.
32467
32468 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32469 All callers changed so as not to call SetPortWindowPort.
32470 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32471 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32472 mac_draw_string_common.
32473 (mac_draw_image_string_qd): Likewise.
32474 (mac_draw_string_common): Use them. Add INLINE.
32475 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32476 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32477 GetGlobalMouse.
32478 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32479 and FRAME_OUTER_TO_INNER_DIFF_Y.
32480 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32481 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32482 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32483 repositioning window to mac_handle_window_event.
32484 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32485 saving window location to mac_handle_window_event
32486 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32487 (install_menu_target_item_handler): Remove argument in extern.
32488 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32489 Also accept command events.
32490 (do_keystroke): New function created from XTread_socket.
32491 (init_command_handler): Remove functions.
32492 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32493 and save window location by kEventWindowShowing and kEventWindowHiding
32494 handlers here. Don't call next handler for window state change and
32495 focus events.
32496 (mac_handle_application_event, mac_handle_keyboard_event)
32497 [TARGET_API_MAC_CARBON]: New functions.
32498 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32499 kEventWindowShowing and kEventWindowHiding events. Move installation
32500 of mouse, font, text input and menu target item handlers to
32501 install_application_handler.
32502 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32503 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32504 New function.
32505 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32506 Register it.
32507 (XTread_socket) [TARGET_API_MAC_CARBON]:
32508 Consolidate SendEventToEventTarget calls.
32509 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32510 Move application activation handler to mac_handle_application_event.
32511 Move keyboard handler to mac_handle_keyboard_event.
32512 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32513 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32514 init_command_handler. Call install_application_handler.
32515
32516 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32517 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32518
32519 2007-06-07 Glenn Morris <rgm@gnu.org>
32520
32521 * emacs.c (main): Use `emacs-copyright' in --version output.
32522
32523 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
32524
32525 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32526
32527 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32528
32529 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32530
32531 * macgui.h: Replace WindowPtr with WindowRef.
32532
32533 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32534 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32535 Replace ControlHandle with ControlRef.
32536 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32537
32538 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32539 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32540 Replace ControlHandle with ControlRef.
32541 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32542 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32543
32544 * macterm.h (struct scroll_bar): Rename member control_handle_low
32545 and control_handle_high to control_ref_low and control_ref_high.
32546 All uses changed.
32547 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32548 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32549 respectively. All uses changed.
32550 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32551 (install_window_handler, remove_window_handler): Replace WindowPtr
32552 with WindowRef in externs.
32553
32554 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
32555
32556 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32557
32558 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
32559
32560 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32561
32562 * frame.c (Fmouse_position, Fmouse_pixel_position):
32563 Condition on HAVE_GPM too.
32564
32565 * term.c (term_mouse_highlight): Remove unused variables.
32566 (Fterm_open_connection): Set gpm_zerobased to 1.
32567 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32568 Use zero based co-ordinates.
32569 (handle_one_term_event): Report a drag as mouse movement too.
32570
32571 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32572
32573 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
32574
32575 * image.c (search_image_cache): New function. Require background
32576 color match if background color is unspecified in the image spec.
32577 (uncache_image, lookup_image): Use it.
32578
32579 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
32580
32581 * window.c (Fshrink_window): Reflow docstring.
32582
32583 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
32584
32585 * Version 22.1 released.
32586
32587 2007-06-01 Richard Stallman <rms@gnu.org>
32588
32589 * xfns.c (x_encode_text): Add GCPRO.
32590
32591 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32592
32593 * xfns.c (x_set_name_internal): Save encoded name before
32594 x_encode_text in case string data is relocated.
32595
32596 2007-05-31 Richard Stallman <rms@gnu.org>
32597
32598 * buffer.c (syms_of_buffer): Doc fix.
32599
32600 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
32601
32602 * sysdep.c (init_sys_modes): Add rather than replace with
32603 O_NONBLOCK.
32604
32605 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32606 term_mouse_moveto.
32607
32608 * termhooks.h (term_mouse_moveto): New extern.
32609
32610 * term.c (mouse_face_window): Rename...
32611 (Qmouse_face_window): ...to this.
32612 (term_show_mouse_face, term_clear_mouse_face)
32613 (term_mouse_highlight): Use Qmouse_face_window.
32614 (term_mouse_moveto): New function.
32615 (term_mouse_position): Make it work.
32616 (syms_of_term): Uncomment assignment to mouse_position_hook.
32617 Staticpro Qmouse_face_window.
32618
32619 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32620
32621 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32622 around current_column call.
32623
32624 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32625
32626 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32627 * xdisp.c (next_element_from_buffer):
32628 * window.c (delete_window):
32629 * term.c (term_mouse_highlight):
32630 * msdos.c (getdefdir):
32631 * macterm.c (mac_create_bitmap_from_bitmap_data)
32632 (init_font_name_table):
32633 * fns.c (Fsxhash):
32634 * data.c (Fmake_local_variable):
32635 * ccl.c (ccl_driver): Likewise.
32636
32637 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32638
32639 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32640 Call mac_wakeup_from_rne on window size change.
32641
32642 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32643
32644 * image.c (uncache_image): Fix typo.
32645
32646 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32647
32648 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32649
32650 2007-05-22 Richard Stallman <rms@gnu.org>
32651
32652 * xterm.c (x_connection_closed): Remove NO_RETURN.
32653
32654 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32655
32656 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32657
32658 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32659
32660 * image.c (uncache_image): New function.
32661 (Fimage_refresh): New function.
32662
32663 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32664
32665 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32666
32667 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32668
32669 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32670 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32671
32672 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32673
32674 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32675 conditional on [HAVE_GPM_H].
32676
32677 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32678
32679 * syntax.c (skip_chars): Update syntax-table only after we checked that
32680 the new location is valid.
32681
32682 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32683
32684 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32685 mac_get_window_bounds.
32686
32687 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32688
32689 * Makefile.in (LIBGPM): Allow it to be set from configure.
32690 If set then link Emacs with it.
32691
32692 * config.in: Regenerate.
32693
32694 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32695 New externs.
32696
32697 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32698 Include gpm.h.
32699 (handle_one_term_event, term_gpm): New externs.
32700
32701 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32702 and allow it to be interrupted by SIGIO.
32703
32704 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32705 (wait_reading_process_output): Wait on gpm_fd too.
32706 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32707 (add_gpm_wait_descriptor_called_flag): New variable.
32708 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32709
32710 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32711 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32712 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32713 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32714 (make_lispy_event): Add case GPM_CLICK_EVENT.
32715 (read_avail_input): Handle mouse input.
32716
32717 * term.c (write_glyphs_with_face): New function.
32718 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32719 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32720 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32721 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32722 (last_mouse_x, last_mouse_y): New variables.
32723 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32724 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32725 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32726 (Fterm_close_connection): New functions.
32727 (term_init): Initialise mouse_face_window.
32728
32729 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32730
32731 * xdisp.c (redisplay_window): If first window line is a
32732 continuation line, recompute the new window start instead of
32733 recentering.
32734
32735 2007-05-18 Glenn Morris <rgm@gnu.org>
32736
32737 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32738 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32739
32740 2007-05-17 Glenn Morris <rgm@gnu.org>
32741
32742 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32743
32744 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32745
32746 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32747 dead key repeat and up events.
32748
32749 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32750
32751 * image.c (pbm_load): Check image size for monochrome pbm.
32752
32753 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32754
32755 * xterm.c (XTread_socket): Revert last change.
32756
32757 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32758
32759 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32760
32761 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32762
32763 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32764
32765 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32766 mixup (YAILOM).
32767
32768 2007-05-07 Andreas Schwab <schwab@suse.de>
32769
32770 * keymap.c (Flookup_key): Fix typo in last change.
32771
32772 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32773
32774 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32775 mapping for unibyte strings.
32776
32777 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32778
32779 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32780 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32781
32782 2007-04-29 Richard Stallman <rms@gnu.org>
32783
32784 * insdel.c (replace_range): For undo, record insertion first.
32785
32786 2007-04-29 Andreas Schwab <schwab@suse.de>
32787
32788 * lisp.h (VECSIZE): Use OFFSETOF.
32789
32790 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32791
32792 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32793 disabled lines.
32794
32795 2007-04-28 Richard Stallman <rms@gnu.org>
32796
32797 * lread.c (read_escape): In a string, \s is always space.
32798
32799 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32800
32801 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32802
32803 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32804 submenu for menu bar items.
32805
32806 See ChangeLog.10 for earlier changes.
32807
32808 ;; Local Variables:
32809 ;; coding: utf-8
32810 ;; End:
32811
32812 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32813
32814 This file is part of GNU Emacs.
32815
32816 GNU Emacs is free software: you can redistribute it and/or modify
32817 it under the terms of the GNU General Public License as published by
32818 the Free Software Foundation, either version 3 of the License, or
32819 (at your option) any later version.
32820
32821 GNU Emacs is distributed in the hope that it will be useful,
32822 but WITHOUT ANY WARRANTY; without even the implied warranty of
32823 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32824 GNU General Public License for more details.
32825
32826 You should have received a copy of the GNU General Public License
32827 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.