Merge from mainline.
[bpt/emacs.git] / src / ChangeLog
1 2011-04-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix more problems found by GCC 4.6.0's static checks.
4
5 * coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
6 This avoids several warnings with gcc -Wstrict-overflow.
7 (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code
8 directly, rather than having caller test rule sign. This avoids
9 some unnecessary tests.
10 * composite.h (COMPOSITION_ENCODE_RULE_VALID): New macro.
11 (COMPOSITION_ENCODE_RULE): Arguments now must be valid. This
12 affects only one use, in DECODE_COMPOSITION_RULE, which is changed.
13
14 * xfont.c (xfont_text_extents): Remove var that was set but not used.
15 (xfont_open): Avoid unnecessary tests.
16
17 * composite.c (composition_gstring_put_cache): Use unsigned integer.
18
19 * composite.h, composite.c (composition_gstring_put_cache):
20 Use EMACS_INT, not int, for length.
21
22 * composite.h (COMPOSITION_DECODE_REFS): New macro,
23 breaking out part of COMPOSITION_DECODE_RULE.
24 (COMPOSITION_DECODE_RULE): Use it.
25 * composite.c (get_composition_id): Remove unused local vars,
26 by using the new macro.
27
28 * textprop.c (set_text_properties_1): Change while to do-while,
29 since the condition is always true at first.
30
31 * intervals.c (graft_intervals_into_buffer): Mark var as used.
32 (interval_deletion_adjustment): Return unsigned value.
33 All uses changed.
34
35 * process.c (list_processes_1, create_pty, read_process_output):
36 (exec_sentinel): Remove vars that were set but not used.
37 (create_pty): Remove unnecessary "volatile"s.
38 (Fnetwork_interface_info): Avoid possibility of int overflow.
39 (read_process_output): Do adaptive read buffering even if carryover.
40 (read_process_output): Simplify nbytes computation if buffered.
41
42 * bytecode.c (exec_byte_code): Rename local to avoid shadowing.
43
44 * syntax.c (scan_words): Remove var that was set but not used.
45 (update_syntax_table): Use unsigned instead of int.
46
47 * lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
48 (lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
49 (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
50
51 * print.c (print_error_message): Avoid int overflow.
52
53 * font.c (font_list_entities): Redo for clarity,
54 so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX.
55
56 * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
57 (font_score): Avoid potential overflow in diff calculation.
58
59 * fns.c (substring_both): Remove var that is set but not used.
60 (sxhash): Redo loop for clarity and to avoid wraparound warning.
61
62 * eval.c (funcall_lambda): Rename local to avoid shadowing.
63
64 * alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
65 Otherwise, GCC 4.6.0 optimizes the loop check away since the check
66 can always succeed if overflow has undefined behavior.
67
68 * search.c (boyer_moore, wordify): Remove vars set but not used.
69 (wordify): Omit three unnecessary tests.
70
71 * indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
72 All callers changed. This avoids the need for an unused var.
73
74 * casefiddle.c (casify_region): Remove var that is set but not used.
75
76 * dired.c (file_name_completion): Remove var that is set but not used.
77
78 * fileio.c (Finsert_file_contents): Make EOF condition clearer.
79
80 * fileio.c (Finsert_file_contents): Avoid signed integer overflow.
81 (Finsert_file_contents): Remove unnecessary code checking fd.
82
83 * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
84 Check for integer overflow on size calculations.
85
86 * buffer.c (Fprevious_overlay_change): Remove var that is set
87 but not used.
88
89 * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
90 Remove vars that are set but not used.
91 (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
92 (timer_check_2): Mark vars as initialized.
93
94 * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
95
96 * image.c (lookup_image): Remove var that is set but not used.
97 (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
98
99 * fontset.c (Finternal_char_font, Ffontset_info): Remove vars
100 that are set but not used.
101
102 * xfns.c (make_invisible_cursor): Don't return garbage
103 if XCreateBitmapFromData fails (Bug#8410).
104
105 * xselect.c (x_get_local_selection, x_handle_property_notify):
106 Remove vars that are set but not used.
107
108 * xfns.c (x_create_tip_frame): Remove var that is set but not used.
109 (make_invisible_cursor): Initialize a possibly-uninitialized variable.
110
111 * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]:
112 Remove var that is set but not used.
113 (scroll_bar_windows_size): Now size_t, not int.
114 (x_send_scroll_bar_event): Use size_t, not int, for sizes.
115 Check for overflow.
116
117 * xfaces.c (realize_named_face): Remove vars that are set but not used.
118 (map_tty_color) [!defined MSDOS]: Likewise.
119
120 * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning.
121
122 * coding.c: Remove vars that are set but not used.
123 (DECODE_COMPOSITION_RULE): Remove 2nd arg, which is unused.
124 All callers changed.
125 (decode_coding_utf_8, decode_coding_utf_16 decode_coding_emacs_mule):
126 (decode_coding_iso_2022, encode_coding_sjis, encode_coding_big5):
127 (decode_coding_charset): Remove vars that are set but not used.
128
129 * bytecode.c (Fbyte_code) [!defined BYTE_CODE_SAFE]: Remove var
130 that is set but not used.
131
132 * print.c (print_object): Remove var that is set but not used.
133
134 Replace 2 copies of readlink code with 1 gnulib version (Bug#8401).
135 The gnulib version avoids calling malloc in the usual case,
136 and on 64-bit hosts doesn't have some arbitrary 32-bit limits.
137 * fileio.c (Ffile_symlink_p): Use emacs_readlink.
138 * filelock.c (current_lock_owner): Likewise.
139 * lisp.h (READLINK_BUFSIZE, emacs_readlink): New function.
140 * sysdep.c: Include allocator.h, careadlinkat.h.
141 (emacs_no_realloc_allocator): New static constant.
142 (emacs_readlink): New function.
143 * deps.mk (sysdep.o): Depend on ../lib/allocator.h and on
144 ../lib/careadlinkat.h.
145
146 2011-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
147
148 * keyboard.c (safe_run_hook_funcall): Fix last change (don't stop at the
149 first non-nil return value).
150
151 2011-04-03 Jan Djärv <jan.h.d@swipnet.se>
152
153 * nsterm.m (ns_update_auto_hide_menu_bar): Define MAC_OS_X_VERSION_10_6
154 if not defined (Bug#8403).
155
156 2011-04-02 Juanma Barranquero <lekktu@gmail.com>
157
158 * xdisp.c (display_count_lines): Remove parameter `start',
159 unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
160 (get_char_face_and_encoding): Remove parameter `multibyte_p',
161 unused since 2008-05-14T01:40:23Z!handa@m17n.org. All callers changed.
162 (fill_stretch_glyph_string): Remove parameters `row' and `area',
163 unused at least since Kim's GUI unification at 2003-03-16T20:45:46Z!storm@cua.dk
164 and thereabouts. All callers changed.
165 (get_per_char_metric): Remove parameter `f', unused since
166 2008-05-14T01:40:23Z!handa@m17n.org. All callers changed.
167
168 2011-04-02 Jim Meyering <meyering@redhat.com>
169
170 do not dereference NULL upon failed strdup
171 * nsfont.m (ns_descriptor_to_entity): Use xstrdup, not strdup.
172 (ns_get_family): Likewise.
173
174 2011-04-02 Juanma Barranquero <lekktu@gmail.com>
175
176 * eval.c (unwind_to_catch) [DEBUG_GCPRO]: Remove redundant assignment.
177
178 2011-04-02 Jan Djärv <jan.h.d@swipnet.se>
179
180 * nsterm.m (ns_update_auto_hide_menu_bar): Only for OSX 10.6 or
181 later (Bug#8403).
182
183 2011-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
184
185 Add lexical binding.
186
187 * window.c (Ftemp_output_buffer_show): New fun.
188 (Fsave_window_excursion):
189 * print.c (Fwith_output_to_temp_buffer): Move to subr.el.
190
191 * lread.c (lisp_file_lexically_bound_p): New function.
192 (Fload): Bind Qlexical_binding.
193 (readevalloop): Remove `evalfun' arg.
194 Bind Qinternal_interpreter_environment.
195 (Feval_buffer): Bind Qlexical_binding.
196 (defvar_int, defvar_bool, defvar_lisp_nopro, defvar_kboard):
197 Mark as dynamic.
198 (syms_of_lread): Declare `lexical-binding'.
199
200 * lisp.h (struct Lisp_Symbol): New field `declared_special'.
201
202 * keyboard.c (eval_dyn): New fun.
203 (menu_item_eval_property): Use it.
204
205 * image.c (parse_image_spec): Use Ffunctionp.
206
207 * fns.c (concat, mapcar1): Accept byte-code-functions.
208
209 * eval.c (Fsetq): Handle lexical vars.
210 (Fdefun, Fdefmacro, Ffunction): Make closures when needed.
211 (Fdefconst, Fdefvaralias, Fdefvar): Mark as dynamic.
212 (FletX, Flet): Obey lexical binding.
213 (Fcommandp): Handle closures.
214 (Feval): New `lexical' arg.
215 (eval_sub): New function extracted from Feval. Use it almost
216 everywhere where Feval was used. Look up vars in lexical env.
217 Handle closures.
218 (Ffunctionp): Move from subr.el.
219 (Ffuncall): Handle closures.
220 (apply_lambda): Remove `eval_flags'.
221 (funcall_lambda): Handle closures and new byte-code-functions.
222 (Fspecial_variable_p): New function.
223 (syms_of_eval): Initialize the Vinternal_interpreter_environment var,
224 but without exporting it to Lisp.
225
226 * doc.c (Fdocumentation, store_function_docstring):
227 * data.c (Finteractive_form): Handle closures.
228
229 * callint.c (Fcall_interactively): Preserve lexical-binding mode for
230 interactive spec.
231
232 * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN): New
233 byte-codes.
234 (exec_byte_code): New function extracted from Fbyte_code to handle new
235 calling convention for byte-code-functions. Add new byte-codes.
236
237 * buffer.c (defvar_per_buffer): Set new `declared_special' field.
238
239 * alloc.c (Fmake_symbol): Init new `declared_special' field.
240
241 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
242
243 * xdisp.c (redisplay_internal): Fix prototype.
244
245 2011-03-31 Eli Zaretskii <eliz@gnu.org>
246
247 * xdisp.c (SCROLL_LIMIT): New macro.
248 (try_scrolling): Use it when setting scroll_limit. Limit
249 scrolling to 100 screen lines.
250 (redisplay_window): Even when falling back on "recentering",
251 position point in the window according to scroll-conservatively,
252 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
253
254 (try_scrolling): When point is above the window, allow searching
255 as far as scroll_max, or one screenful, to compute vertical
256 distance from PT to the scroll margin position. This prevents
257 try_scrolling from unnecessarily failing when
258 scroll-conservatively is set to a value slightly larger than the
259 window height. Clean up the case of PT below the margin at bottom
260 of window: scroll_max can no longer be INT_MAX. When aggressive
261 scrolling is in use, don't let point enter the opposite scroll
262 margin as result of the scroll.
263 (syms_of_xdisp) <scroll-conservatively>: Document the
264 threshold of 100 lines for never-recentering scrolling.
265
266 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
267
268 * dispextern.h (move_it_by_lines):
269 * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
270 since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed.
271 (message_log_check_duplicate): Remove parameters `prev_bol' and
272 `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
273 (redisplay_internal): Remove parameter `preserve_echo_area',
274 unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed.
275
276 * indent.c (Fvertical_motion):
277 * window.c (window_scroll_pixel_based, Frecenter):
278 Don't pass `need_y_p' to `move_it_by_lines'.
279
280 2011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
281
282 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
283 steal a few bits to be more compact.
284 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
285 Remove unneeded casts.
286
287 * bytecode.c (Fbyte_code): CAR and CDR can GC.
288
289 2011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
290
291 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
292 binding" message (bug#7967).
293
294 2011-03-30 Paul Eggert <eggert@cs.ucla.edu>
295
296 Fix more problems found by GCC 4.6.0's static checks.
297
298 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
299 Remove unused local var.
300
301 * editfns.c (Fmessage_box): Remove unused local var.
302
303 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
304 (note_mode_line_or_margin_highlight, note_mouse_highlight):
305 Omit unused local vars.
306 * window.c (shrink_windows): Omit unused local var.
307 * menu.c (digest_single_submenu): Omit unused local var.
308 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
309 Omit unused local var.
310
311 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
312 Don't assume string length fits in int.
313 (keyremap_step, read_key_sequence): Use size_t for sizes.
314 (read_key_sequence): Don't check last_real_key_start redundantly.
315
316 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
317 instead of alloca (Bug#8344).
318
319 * eval.c (Fbacktrace): Don't assume nargs fits in int.
320 (Fbacktrace_frame): Don't assume nframes fits in int.
321
322 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
323
324 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
325 concerns.
326
327 * term.c (produce_glyphless_glyph): Remove unnecessary test.
328
329 * cm.c (calccost): Turn while-do into do-while, for clarity.
330
331 * keyboard.c (syms_of_keyboard): Use the same style as later
332 in this function when indexing through an array. This also
333 works around GCC bug 48267.
334
335 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
336
337 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
338
339 * chartab.c (sub_char_table_ref_and_range): Redo for slight
340 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
341
342 * keyboard.c, keyboard.h (num_input_events): Now size_t.
343 This avoids undefined behavior on integer overflow, and is a bit
344 more convenient anyway since it is compared to a size_t variable.
345
346 Variadic C functions now count arguments with size_t, not int.
347 This avoids an unnecessary limitation on 64-bit machines, which
348 caused (substring ...) to crash on large vectors (Bug#8344).
349 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
350 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
351 All variadic functions and their callers changed accordingly.
352 (struct gcpro.nvars): Now size_t, not int. All uses changed.
353 * data.c (arith_driver, float_arith_driver): Likewise.
354 * editfns.c (general_insert_function): Likewise.
355 * eval.c (struct backtrace.nargs, interactive_p)
356 (internal_condition_case_n, run_hook_with_args, apply_lambda)
357 (funcall_lambda, mark_backtrace): Likewise.
358 * fns.c (concat): Likewise.
359 * frame.c (x_set_frame_parameters): Likewise.
360 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
361 0 if not found, not -1. All callers changed.
362
363 * alloc.c (garbage_collect): Don't assume stack size fits in int.
364 (stack_copy_size): Now size_t, not int.
365 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
366
367 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
368
369 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
370 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
371 All callers changed.
372
373 * lisp.h (multibyte_char_to_unibyte):
374 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
375 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
376 * character.h (CHAR_TO_BYTE8):
377 * cmds.c (internal_self_insert):
378 * editfns.c (general_insert_function):
379 * keymap.c (push_key_description):
380 * search.c (Freplace_match):
381 * xdisp.c (message_dolog, set_message_1): All callers changed.
382
383 2011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
384
385 * keyboard.c (safe_run_hook_funcall): New function.
386 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
387 don't set the hook to nil, but remove the offending function instead.
388 (Qcommand_hook_internal): Remove, unused.
389 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
390 Vcommand_hook_internal.
391
392 * eval.c (enum run_hooks_condition): Remove.
393 (funcall_nil, funcall_not): New functions.
394 (run_hook_with_args): Call each function through a `funcall' argument.
395 Remove `cond' argument, now redundant.
396 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
397 (Frun_hook_with_args_until_failure): Adjust accordingly.
398 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
399
400 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
401
402 * dispextern.h (string_buffer_position): Remove declaration.
403
404 * print.c (strout): Remove parameter `multibyte', unused since
405 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
406
407 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
408 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
409 All callers changed.
410
411 * w32.c (_wsa_errlist): Use braces for struct initializers.
412
413 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
414 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
415 All callers changed.
416 (string_buffer_position): Likewise. Also, make static (it's never
417 used outside xdisp.c).
418 (cursor_row_p): Remove parameter `w', unused since
419 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
420 (decode_mode_spec): Remove parameter `precision', introduced during
421 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
422 All callers changed.
423
424 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
425
426 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
427
428 2011-03-27 Anders Lindgren <andlind@gmail.com>
429
430 * nsterm.m (ns_menu_bar_is_hidden): New variable.
431 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
432 (ns_update_auto_hide_menu_bar): New functions.
433 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
434 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
435 ns_constrain_all_frames.
436 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
437 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
438
439 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
440
441 * nsmenu.m (runDialogAt): Remove argument to timer_check.
442
443 2011-03-27 Glenn Morris <rgm@gnu.org>
444
445 * syssignal.h: Replace RETSIGTYPE with void.
446 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
447 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
448 Replace SIGTYPE with void everywhere.
449 * s/usg5-4-common.h (SIGTYPE): Remove definition.
450 * s/template.h (SIGTYPE): Remove commented out definition.
451
452 2011-03-26 Eli Zaretskii <eliz@gnu.org>
453
454 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
455 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
456
457 2011-03-26 Juanma Barranquero <lekktu@gmail.com>
458
459 * w32.c (read_unc_volume): Use parameter `henum', instead of
460 global variable `wget_enum_handle'.
461
462 * keymap.c (describe_vector): Remove parameters `indices' and
463 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
464 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
465
466 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
467
468 * keyboard.c (timer_check): Remove parameter `do_it_now',
469 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
470 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
471 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
472
473 * keyboard.c (read_char):
474 * w32menu.c (w32_menu_display_help):
475 * xmenu.c (show_help_event, menu_help_callback):
476 Adjust calls to `show_help_echo'.
477
478 * gtkutil.c (xg_maybe_add_timer):
479 * keyboard.c (readable_events):
480 * process.c (wait_reading_process_output):
481 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
482
483 * insdel.c (adjust_markers_gap_motion):
484 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
485 (gap_left, gap_right): Don't call it.
486
487 2011-03-25 Chong Yidong <cyd@stupidchicken.com>
488
489 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
490 incurred during fontification.
491
492 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
493
494 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
495 (DEFVAR_PER_BUFFER): Don't pass it.
496
497 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
498 (scrolling_window): Don't pass it.
499
500 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
501
502 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
503
504 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
505 and `suffix'.
506 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
507 of variables specific to SELinux and computation of `encoded_absname'.
508
509 * image.c (XPutPixel): Remove unused variable `height'.
510
511 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
512
513 * unexw32.c (get_section_info): Remove unused variable `section'.
514
515 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
516 (system_process_attributes): Remove unused variable `sess'.
517 (sys_read): Remove unused variable `err'.
518
519 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
520 (w32_wnd_proc): Remove unused variable `isdead'.
521 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
522 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
523 (x_create_tip_frame): Remove unused variable `tem'.
524
525 * w32inevt.c (w32_console_read_socket):
526 Remove unused variable `no_events'.
527
528 * w32term.c (x_draw_composite_glyph_string_foreground):
529 Remove unused variable `width'.
530
531 2011-03-24 Juanma Barranquero <lekktu@gmail.com>
532
533 * w32term.c (x_set_glyph_string_clipping):
534 Don't pass uninitialized region to CombineRgn.
535
536 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
537
538 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
539 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
540 (Fx_close_connection): Remove unused variable `i'.
541
542 * w32font.c (w32font_draw): Return number of glyphs.
543 (w32font_open_internal): Remove unused variable `i'.
544 (w32font_driver): Add missing initializer.
545
546 * w32menu.c (utf8to16): Remove unused variable `utf16'.
547 (fill_in_menu): Remove unused variable `items_added'.
548
549 * w32term.c (last_mouse_press_frame): Remove static global variable.
550 (w32_clip_to_row): Remove unused variable `f'.
551 (x_delete_terminal): Remove unused variable `i'.
552
553 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
554 (NOTHING): Remove unused static global variable.
555 (uniscribe_check_otf): Remove unused variable `table'.
556 (uniscribe_font_driver): Add missing initializers.
557
558 2011-03-23 Julien Danjou <julien@danjou.info>
559
560 * term.c (Fsuspend_tty, Fresume_tty):
561 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
562 * window.c (temp_output_buffer_show):
563 * insdel.c (signal_before_change):
564 * frame.c (Fhandle_switch_frame):
565 * fileio.c (Fdo_auto_save):
566 * emacs.c (Fkill_emacs):
567 * editfns.c (save_excursion_restore):
568 * cmds.c (internal_self_insert):
569 * callint.c (Fcall_interactively):
570 * buffer.c (Fkill_all_local_variables):
571 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
572 Use Frun_hooks.
573 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
574 unconditionnaly since it does the check itself.
575
576 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
577
578 Fix more problems found by GCC 4.5.2's static checks.
579
580 * coding.c (encode_coding_raw_text): Avoid unnecessary test
581 the first time through the loop, since we know p0 < p1 then.
582 This also avoids a gcc -Wstrict-overflow warning.
583
584 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
585 leading to a memory leak, possible in functions like
586 load_charset_map_from_file that can allocate an unbounded number
587 of objects (Bug#8318).
588
589 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
590 that could (at least in theory) be that large.
591
592 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
593 This is less likely to overflow, and avoids undefined behavior if
594 overflow does occur. All callers changed. Use strtoul to scan
595 for the unsigned long integer.
596 (pint2hrstr): Simplify and tune code slightly.
597 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
598
599 * scroll.c (do_scrolling): Work around GCC bug 48228.
600 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
601
602 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
603 This also avoids a warning with gcc -Wstrict-overflow.
604 (validate_x_resource_name): Simplify count usage.
605 This also avoids a warning with gcc -Wstrict-overflow.
606
607 * fileio.c (Fcopy_file): Report error if fchown or fchmod
608 fail (Bug#8306).
609
610 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
611
612 * process.c (Fmake_network_process): Use socklen_t, not int,
613 where POSIX says socklen_t is required in portable programs.
614 This fixes a porting bug on hosts like 64-bit HP-UX, where
615 socklen_t is wider than int (Bug#8277).
616 (Fmake_network_process, server_accept_connection):
617 (wait_reading_process_output, read_process_output):
618 Likewise.
619
620 * process.c: Rename or move locals to avoid shadowing.
621 (list_processes_1, Fmake_network_process):
622 (read_process_output_error_handler, exec_sentinel_error_handler):
623 Rename or move locals.
624 (Fmake_network_process): Define label "retry_connect" only if needed.
625 (Fnetwork_interface_info): Fix pointer signedness.
626 (process_send_signal): Add cast to avoid pointer signedness problem.
627 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
628 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
629
630 Make tparam.h and terminfo.c consistent.
631 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
632 Include tparam.h instead, since it declares them.
633 * cm.h (PC): Remove extern decl; tparam.h now does this.
634 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
635 * terminfo.c: Include tparam.h, to check interfaces.
636 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
637 (tparam): Adjust signature to match interface in tparam.h;
638 this removes some undefined behavior. Check that outstring and len
639 are zero, which they always are with Emacs.
640 * tparam.h (PC, BC, UP): New extern decls.
641
642 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
643 (xftfont_open): Rename locals to avoid shadowing.
644
645 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
646 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
647 (OTF_TAG_SYM): Omit macro if not needed.
648 (ftfont_list): Remove unused local.
649 (get_adstyle_property, ftfont_pattern_entity):
650 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
651 Rename locals to avoid shadowing.
652
653 * xfont.c (xfont_list_family): Mark var as initialized.
654
655 * xml.c (make_dom): Now static.
656
657 * composite.c (composition_compute_stop_pos): Rename local to
658 avoid shadowing.
659 (composition_reseat_it): Remove unused locals.
660 (find_automatic_composition, composition_adjust_point): Likewise.
661 (composition_update_it): Mark var as initialized.
662 (find_automatic_composition): Mark vars as initialized,
663 with a FIXME (Bug#8290).
664
665 character.h: Rename locals to avoid shadowing.
666 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
667 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
668 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
669 (BUF_DEC_POS): Be more systematic about renaming local temporaries
670 to avoid shadowing.
671
672 * textprop.c (property_change_between_p): Remove; unused.
673
674 * intervals.c (interval_start_pos): Now static.
675
676 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
677
678 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
679 Rename locals to avoid shadowing.
680
681 * sound.c (wav_play, au_play, Fplay_sound_internal):
682 Fix pointer signedness.
683 (alsa_choose_format): Remove unused local var.
684 (wav_play): Initialize a variable to 0, to prevent undefined
685 behavior (Bug#8278).
686
687 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
688
689 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
690
691 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
692 clobbering (Bug#8298).
693 * sysdep.c (sys_subshell): Likewise.
694 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
695
696 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
697 This should get cleaned up, so that child_setup has the
698 same signature on all platforms.
699
700 * callproc.c (call_process_cleanup): Now static.
701 (relocate_fd): Rename locals to avoid shadowing.
702
703 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
704
705 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
706 not to be necessary, and produces flickering.
707
708 2011-03-20 Glenn Morris <rgm@gnu.org>
709
710 * config.in: Remove file.
711
712 2011-03-20 Juanma Barranquero <lekktu@gmail.com>
713
714 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
715 are now in src/globals.h.
716 (syms_of_minibuf): Remove spurious & from previous change.
717
718 2011-03-20 Leo <sdl.web@gmail.com>
719
720 * minibuf.c (completing-read-function): New variable.
721 (completing-read-default): Rename from completing-read.
722 (completing-read): Call completing-read-function.
723
724 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
725
726 * xfaces.c (Fx_load_color_file):
727 Read color file from absolute filename (bug#8250).
728
729 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
730
731 * makefile.w32-in: Update dependencies.
732
733 2011-03-17 Eli Zaretskii <eliz@gnu.org>
734
735 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
736
737 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
738
739 Fix more problems found by GCC 4.5.2's static checks.
740
741 * process.c (make_serial_process_unwind, send_process_trap):
742 (sigchld_handler): Now static.
743
744 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
745 That way, the code declares only the vars that it needs.
746 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
747 * s/cygwin.h (PTY_ITERATION): Likewise.
748 * s/darwin.h (PTY_ITERATION): Likewise.
749 * s/gnu-linux.h (PTY_ITERATION): Likewise.
750
751 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
752 * process.c (allocate_pty): Don't declare stb unless it's needed.
753
754 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
755 (CONSTANTLIM): Remove; unused.
756 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
757 Define only if needed.
758
759 * unexelf.c (unexec): Name an expression,
760 to avoid gcc -Wbad-function-cast warning.
761 Use a different way to cause a compilation error if anyone uses
762 n rather than nn, a way that does not involve shadowing.
763 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
764
765 * deps.mk (unexalpha.o): Remove; unused.
766
767 New file unexec.h, the (simple) interface for unexec (Bug#8267).
768 * unexec.h: New file.
769 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
770 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
771 Depend on unexec.h.
772 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
773 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
774 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
775 Change as necessary to match prototype in unexec.h.
776
777 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
778 shadowing.
779 (back_comment, skip_chars): Mark vars as initialized.
780
781 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
782 Rename locals to avoid shadowing.
783
784 * lread.c (read1): Rewrite so as not to use empty "else".
785 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
786
787 * print.c (Fredirect_debugging_output): Fix pointer signedess.
788
789 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
790 warning when compiling print.c.
791
792 * font.c (font_unparse_fcname): Abort in an "impossible" situation
793 instead of using an uninitialized var.
794 (font_sort_entities): Mark var as initialized.
795
796 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
797
798 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
799 pointers to constants.
800 (font_parse_fcname): Remove unused vars.
801 (font_delete_unmatched): Now static.
802 (font_get_spec): Remove; unused.
803 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
804 (font_update_drivers, Ffont_get_glyphs, font_add_log):
805 Rename or move locals to avoid shadowing.
806
807 * fns.c (require_nesting_list, require_unwind): Now static.
808 (Ffillarray): Rename locals to avoid shadowing.
809
810 * floatfns.c (domain_error2): Define only if needed.
811 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
812
813 * alloc.c (mark_backtrace): Move decl from here ...
814 * lisp.h: ... to here, so that it can be checked.
815
816 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
817 (Fdefvar): Rewrite so as not to use empty "else".
818 (lisp_indirect_variable): Name an expression,
819 to avoid gcc -Wbad-function-cast warning.
820 (Fdefvar): Rename locals to avoid shadowing.
821
822 * callint.c (quotify_arg, quotify_args): Now static.
823 (Fcall_interactively): Rename locals to avoid shadowing.
824 Use const pointer when appropriate.
825
826 * lisp.h (get_system_name, get_operating_system_release):
827 Move decls here, to check interfaces.
828 * process.c (get_operating_system_release): Move decl to lisp.h.
829 * xrdb.c (get_system_name): Likewise.
830 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
831 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
832 some of which prompt warnings from gcc -Wbad-function-cast.
833 (Fformat_time_string, Fencode_time, Finsert_char):
834 (Ftranslate_region_internal, Fformat):
835 Rename or remove local vars to avoid shadowing.
836 (Ftranslate_region_internal): Mark var as initialized.
837
838 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
839 avoid shadowing.
840
841 * lisp.h (eassert): Check that the argument compiles, even if
842 ENABLE_CHECKING is not defined.
843
844 * data.c (Findirect_variable): Name an expression, to avoid
845 gcc -Wbad-function-cast warning.
846 (default_value, arithcompare, arith_driver, arith_error): Now static.
847 (store_symval_forwarding): Rename local to avoid shadowing.
848 (Fmake_variable_buffer_local, Fmake_local_variable):
849 Mark variables as initialized.
850 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
851
852 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
853 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
854 Rename locals to avoid shadowing.
855 (mark_stack): Move local variables into the #ifdef region where
856 they're used.
857 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
858 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
859 needed otherwise.
860 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
861 (GC_STRING_CHARS): Remove; not used.
862 (Fmemory_limit): Cast sbrk's returned value to char *.
863
864 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
865 avoids undefined behavior in theory.
866
867 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
868
869 Use functions, not macros, for up- and down-casing (Bug#8254).
870 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
871 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
872 to use the following functions instead of these macros.
873 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
874 EMACS_INT, since callers assume the returned value fits in int.
875 (upcase1): Likewise, for UPCASE_TABLE.
876 (uppercasep, lowercasep, upcase): New static inline functions.
877 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
878 the race-condition problem in the old DOWNCASE.
879
880 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
881 Rename locals to avoid shadowing.
882 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
883 (regex_compile, re_search_2, re_match_2_internal):
884 Remove unused local vars.
885 (FREE_VAR): Rewrite so as not to use empty "else",
886 which gcc can warn about.
887 (regex_compile, re_match_2_internal): Mark locals as initialized.
888 (RETALLOC_IF): Define only if needed.
889 (WORDCHAR_P): Likewise. This one is never needed, but is used
890 only in a comment talking about a compiler bug, so put inside
891 the #if 0 of that comment.
892 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
893 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
894 Remove; unused.
895
896 * search.c (boyer_moore): Rename locals to avoid shadowing.
897 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
898 (PREV_CHAR_BOUNDARY): Likewise.
899
900 * search.c (simple_search): Remove unused var.
901
902 * dired.c (compile_pattern): Move decl from here ...
903 * lisp.h: ... to here, so that it can be checked.
904 (struct re_registers): New forward decl.
905
906 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
907
908 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
909 All uses changed.
910 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
911 Rename locals to avoid shadowing.
912 (Fvertical_motion): Mark locals as initialized.
913
914 * casefiddle.c (casify_object, casify_region): Now static.
915 (casify_region): Mark local as initialized.
916
917 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
918
919 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
920 New macros, so that the caller can use some names other than
921 gcpro1, gcpro2, etc.
922 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
923 of the new macros.
924 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
925 argument, for consistency with GCPRO2_VAR, etc: it is now the
926 prefix of the variable, not the variable itself. All uses
927 changed.
928 * dired.c (directory_files_internal, file_name_completion):
929 Rename locals to avoid shadowing.
930
931 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
932 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
933 dired.c's scmp function, had undefined behavior.
934 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
935 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
936 * buffer.h: ... to here, because these macros use current_buffer,
937 and the new implementation with inline functions needs to have
938 current_buffer in scope now, rather than later when the macros
939 are used.
940 (downcase, upcase1): New static inline functions.
941 (DOWNCASE, UPCASE1): Reimplement using these functions.
942 This avoids undefined behavior in expressions like
943 DOWNCASE (x) == DOWNCASE (y), which previously suffered
944 from race conditions in accessing the global variables
945 case_temp1 and case_temp2.
946 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
947 * lisp.h (case_temp1, case_temp2): Remove their decls.
948 * character.h (ASCII_CHAR_P): Move from here ...
949 * lisp.h: ... to here, so that the inline functions mentioned
950 above can use them.
951
952 * dired.c (directory_files_internal_unwind): Now static.
953
954 * fileio.c (file_name_as_directory, directory_file_name):
955 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
956 Now static.
957 (file_name_as_directory): Use const pointers when appropriate.
958 (Fexpand_file_name): Likewise. In particular, newdir might
959 point at constant storage, so make it a const pointer.
960 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
961 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
962 signedness issues.
963 (Fset_file_times, Finsert_file_contents, auto_save_error):
964 Rename locals to avoid shadowing.
965
966 * minibuf.c (choose_minibuf_frame_1): Now static.
967 (Ftry_completion, Fall_completions): Rename or remove locals
968 to avoid shadowing.
969
970 * marker.c (bytepos_to_charpos): Remove; unused.
971
972 * lisp.h (verify_bytepos, count_markers): New decls,
973 so that gcc does not warn that these functions aren't declared.
974
975 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
976 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
977 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
978 (copy_text): Remove unused local var.
979
980 * filelock.c (within_one_second): Now static.
981 (lock_file_1): Rename local to avoid shadowing.
982
983 * buffer.c (fix_overlays_before): Mark locals as initialized.
984 (fix_start_end_in_overlays): Likewise. This function should be
985 simplified by using pointers-to-pointers, but that's a different
986 matter.
987 (switch_to_buffer_1): Now static.
988 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
989 (report_overlay_modification): Rename locals to avoid shadowing.
990
991 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
992 Fix pointer signedness issue.
993 (sys_subshell): Mark local as volatile if checking for lint,
994 to suppress a gcc -Wclobbered warning that does not seem to be right.
995 (MAXPATHLEN): Define only if needed.
996
997 * process.c (serial_open, serial_configure): Move decls from here ...
998 * systty.h: ... to here, so that they can be checked.
999
1000 * fns.c (get_random, seed_random): Move extern decls from here ...
1001 * lisp.h: ... to here, so that they can be checked.
1002
1003 * sysdep.c (reset_io): Now static.
1004 (wait_for_termination_signal): Remove; unused.
1005
1006 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
1007 (copy_keymap_item, append_key, push_text_char_description):
1008 Now static.
1009 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
1010 (DENSE_TABLE_SIZE): Remove; unused.
1011 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
1012 (describe_map_tree):
1013 Rename locals to avoid shadowing.
1014
1015 * keyboard.c: Declare functions static if they are not used elsewhere.
1016 (echo_char, echo_dash, cmd_error, top_level_2):
1017 (poll_for_input, handle_async_input): Now static.
1018 (read_char, kbd_buffer_get_event, make_lispy_position):
1019 (make_lispy_event, make_lispy_movement, apply_modifiers):
1020 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
1021 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
1022 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
1023 (read_key_sequence, read_char): Mark locals as initialized.
1024 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
1025
1026 * keyboard.h (make_ctrl_char): New decl.
1027 (mark_kboards): Move decl here ...
1028 * alloc.c (mark_kboards): ... from here.
1029
1030 * lisp.h (force_auto_save_soon): New decl.
1031
1032 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
1033 (DEFINE_DUMMY_FUNCTION): New macro.
1034 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
1035 Use it.
1036 (main): Add casts to avoid warnings
1037 if GCC considers string literals to be constants.
1038
1039 * lisp.h (fatal_error_signal): Add decl, since it's exported.
1040
1041 * dbusbind.c: Pointer signedness fixes.
1042 (xd_signature, xd_append_arg, xd_initialize):
1043 (Fdbus_call_method, Fdbus_call_method_asynchronously):
1044 (Fdbus_method_return_internal, Fdbus_method_error_internal):
1045 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
1046 (Fdbus_register_signal): Use SSDATA when the context wants char *.
1047
1048 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
1049 if GCC considers string literals to be constants.
1050 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
1051
1052 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
1053
1054 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
1055 (print_preprocess, print_object): New macro to fix last change.
1056
1057 * print.c (print_preprocess): Don't forget font objects.
1058
1059 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
1060
1061 * emacs.c (USAGE3): Doc fixes.
1062
1063 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
1064
1065 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
1066 structure.
1067
1068 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
1069
1070 * lisp.h (VWindow_system, Qfile_name_history):
1071 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
1072 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
1073 (w32_system_caret_x, w32_system_caret_y): Declare extern.
1074
1075 * w32select.c: Don't #include "keyboard.h".
1076 (run_protected): Add extern declaration for waiting_for_input.
1077
1078 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
1079 * w32console.c (detect_input_pending, read_input_pending)
1080 (encode_terminal_code):
1081 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
1082 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
1083 (w32_system_caret_y, Qfile_name_history):
1084 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
1085 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
1086 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
1087 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
1088 * w32proc.c (Qlocal, report_file_error):
1089 * w32term.c (Vwindow_system, updating_frame):
1090 * w32uniscribe.c (initialized, uniscribe_font_driver):
1091 Remove unneeded extern declarations.
1092
1093 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
1094
1095 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
1096
1097 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
1098
1099 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
1100 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
1101 These macros can no longer be used for assignment.
1102
1103 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
1104 Assign struct members directly, instead of using BUF_BEGV etc.
1105 (record_buffer_markers, fetch_buffer_markers): New functions for
1106 recording and fetching special buffer markers.
1107 (set_buffer_internal_1, set_buffer_temp): Use them.
1108
1109 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
1110
1111 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
1112
1113 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
1114 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
1115
1116 * xdisp.c (hscroll_window_tree):
1117 (reconsider_clip_changes): Use PT instead of BUF_PT.
1118
1119 2011-03-13 Eli Zaretskii <eliz@gnu.org>
1120
1121 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
1122 $(EMACS_ROOT)/lib/intprops.h.
1123
1124 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
1125
1126 Fix more problems found by GCC 4.5.2's static checks.
1127
1128 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
1129 to unsigned char * to avoid compiler diagnostic.
1130 (xg_free_frame_widgets): Make it clear that a local variable is
1131 needed only if USE_GTK_TOOLTIP.
1132 (gdk_window_get_screen): Make it clear that this macro is needed
1133 only if USE_GTK_TOOLTIP.
1134 (int_gtk_range_get_value): New function, which avoids a diagnostic
1135 from gcc -Wbad-function-cast.
1136 (xg_set_toolkit_scroll_bar_thumb): Use it.
1137 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
1138 diagnostic from gcc -Wbad-function-cast.
1139 (get_utf8_string, xg_get_file_with_chooser):
1140 Rename locals to avoid shadowing.
1141 (create_dialog): Move locals to avoid shadowing.
1142
1143 * xgselect.c (xg_select): Remove unused var.
1144
1145 * image.c (four_corners_best): Mark locals as initialized.
1146 (gif_load): Initialize transparent_p to zero (Bug#8238).
1147 Mark another local as initialized.
1148 (my_png_error, my_error_exit): Mark with NO_RETURN.
1149
1150 * image.c (clear_image_cache): Now static.
1151 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
1152 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
1153 (x_edge_detection): Remove unnecessary cast that
1154 gcc -Wbad-function-cast diagnoses.
1155 (gif_load): Fix pointer signedness.
1156 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
1157 (jpeg_load, gif_load): Rename locals to avoid shadowing.
1158
1159 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1160
1161 Improve quality of tests for time stamp overflow.
1162 For example, without this patch (encode-time 0 0 0 1 1
1163 1152921504606846976) returns the obviously-bogus value (-948597
1164 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
1165 reports time overflow. See
1166 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
1167 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
1168 * editfns.c: Include limits.h and intprops.h.
1169 (TIME_T_MIN, TIME_T_MAX): New macros.
1170 (time_overflow): Move earlier, to before first use.
1171 (hi_time, lo_time): New functions, for an accurate test for
1172 out-of-range times.
1173 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
1174 (Fget_internal_run_time): Don't assume time_t fits in int.
1175 (make_time): Use list2 instead of Fcons twice.
1176 (Fdecode_time): More accurate test for out-of-range times.
1177 (check_tm_member): New function.
1178 (Fencode_time): Use it, to test for out-of-range times.
1179 (lisp_time_argument): Don't rely on undefined left-shift and
1180 right-shift behavior when checking for time stamp overflow.
1181
1182 * editfns.c (time_overflow): New function, refactoring common code.
1183 (Fformat_time_string, Fdecode_time, Fencode_time):
1184 (Fcurrent_time_string): Use it.
1185
1186 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
1187 * dired.c (make_time): Move to ...
1188 * editfns.c (make_time): ... here.
1189 * systime.h: Note the move.
1190
1191 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1192
1193 * fringe.c (update_window_fringes): Remove unused variables.
1194
1195 * unexmacosx.c (copy_data_segment): Also copy __got section.
1196 (Bug#8223)
1197
1198 2011-03-12 Eli Zaretskii <eliz@gnu.org>
1199
1200 * termcap.c [MSDOS]: Include "msdos.h".
1201 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
1202 Constify `char *' arguments and their references according to
1203 prototypes in tparam.h.
1204
1205 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
1206
1207 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
1208 Adapt all references accordingly.
1209
1210 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
1211
1212 2011-03-11 Tom Tromey <tromey@redhat.com>
1213
1214 * buffer.c (syms_of_buffer): Remove obsolete comment.
1215
1216 2011-03-11 Eli Zaretskii <eliz@gnu.org>
1217
1218 * termhooks.h (encode_terminal_code): Declare prototype.
1219
1220 * msdos.c (encode_terminal_code): Don't declare prototype.
1221
1222 * term.c (encode_terminal_code): Now external again, used by
1223 w32console.c and msdos.c.
1224
1225 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
1226 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
1227
1228 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1229
1230 Fix some minor problems found by GCC 4.5.2's static checks.
1231
1232 * fringe.c (update_window_fringes): Mark locals as initialized
1233 (Bug#8227).
1234 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
1235
1236 * alloc.c (mark_fringe_data): Move decl from here ...
1237 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
1238 to check its interface.
1239 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
1240
1241 * fontset.c (free_realized_fontset): Now static.
1242 (Fset_fontset_font): Rename local to avoid shadowing.
1243 (fontset_font): Mark local as initialized.
1244 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
1245
1246 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
1247
1248 * xselect.c (x_disown_buffer_selections): Remove; not used.
1249 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
1250 (x_own_selection, Fx_disown_selection_internal): Rename locals
1251 to avoid shadowing.
1252 (x_handle_dnd_message): Remove local to avoid shadowing.
1253
1254 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
1255 so that the caller can use some name other than gcpro1.
1256 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
1257 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1258 (Fx_backspace_delete_keys_p):
1259 Use them to avoid shadowing, and rename vars to avoid shadowing.
1260 (x_decode_color, x_set_name, x_window): Now static.
1261 (Fx_create_frame): Add braces to silence GCC warning.
1262 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
1263 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
1264 Remove unused locals.
1265 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1266 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
1267 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
1268 macros.
1269
1270 * xterm.h (x_mouse_leave): New decl.
1271
1272 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
1273 Remove unused functions.
1274 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
1275 (x_calc_absolute_position): Now static.
1276 (XTread_socket): Don't define label "out" unless it's used.
1277 Don't declare local "event" unless it's used.
1278 (x_iconify_frame, x_free_frame_resources): Don't declare locals
1279 unless they are used.
1280 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
1281 (x_fatal_error_signal): Remove; not used.
1282 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
1283 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
1284 (x_error_catcher, x_connection_closed, x_error_handler):
1285 (x_error_quitter, xembed_send_message, x_iconify_frame):
1286 (my_log_handler): Rename locals to avoid shadowing.
1287 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
1288 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
1289
1290 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
1291 Rename or move locals to avoid shadowing.
1292 (tty_defined_color, merge_face_heights): Now static.
1293 (free_realized_faces_for_fontset): Remove; not used.
1294 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
1295 does not deduce is never used uninitialized.
1296 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
1297 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
1298
1299 * terminal.c (store_terminal_param): Now static.
1300
1301 * xmenu.c (menu_highlight_callback): Now static.
1302 (set_frame_menubar): Remove unused local.
1303 (xmenu_show): Rename parameter to avoid shadowing.
1304 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1305 since they might point to immutable storage.
1306 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1307 since it's unused otherwise.
1308
1309 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
1310 Add a FIXME, since the code still doesn't look right. (Bug#8215)
1311 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1312 avoids a gcc -Wuninitialized diagnostic.
1313 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
1314 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1315 does not deduce are never used uninitialized.
1316
1317 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1318
1319 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
1320 * window.c (window_loop, size_window):
1321 (run_window_configuration_change_hook, enlarge_window): Likewise.
1322
1323 * window.c (display_buffer): Now static.
1324 (size_window): Mark variables that gcc -Wuninitialized
1325 does not deduce are never used uninitialized.
1326 * window.h (check_all_windows): New decl, to forestall
1327 gcc -Wmissing-prototypes diagnostic.
1328 * dispextern.h (bidi_dump_cached_states): Likewise.
1329
1330 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1331 shadowing.
1332 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
1333 Include <limits.h>.
1334 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1335 and to avoid gcc -Wuninitialized warning.
1336 (load_charset_map): Mark variables that gcc -Wuninitialized
1337 does not deduce are never used uninitialized.
1338 (load_charset): Abort instead of using uninitialized var (Bug#8229).
1339
1340 * coding.c (coding_set_source, coding_set_destination):
1341 Use "else { /* comment */ }" rather than "else /* comment */;"
1342 for clarity, and to avoid gcc -Wempty-body warning.
1343 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1344 a block, when the outer 'i' will do.
1345 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1346 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1347 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1348 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1349 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1350 Rename locals to avoid shadowing.
1351 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
1352 * coding.c (emacs_mule_char, encode_invocation_designation):
1353 Now static, since they're not used elsewhere.
1354 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
1355 (decode_coding_object, encode_coding_object, detect_coding_system):
1356 (decode_coding_emacs_mule): Mark variables that gcc
1357 -Wuninitialized does not deduce are never used uninitialized.
1358 (detect_coding_iso_2022): Initialize a local variable that might
1359 be used uninitialized. Leave a FIXME because it's not clear that
1360 this initialization is needed. (Bug#8211)
1361 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1362 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1363 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1364 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1365 Remove unused macros.
1366
1367 * category.c (hash_get_category_set): Remove unused local var.
1368 (copy_category_table): Now static, since it's not used elsewhere.
1369 * character.c (string_count_byte8): Likewise.
1370
1371 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1372 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1373
1374 * chartab.c (copy_sub_char_table): Now static, since it's not used
1375 elsewhere.
1376 (sub_char_table_ref_and_range, char_table_ref_and_range):
1377 Rename locals to avoid shadowing.
1378 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
1379
1380 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
1381 (BIDI_BOB): Remove unused macro.
1382
1383 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1384 deduce are never used uninitialized.
1385 * term.c (encode_terminal_code): Likewise.
1386
1387 * term.c (encode_terminal_code): Now static. Remove unused local.
1388
1389 * tparam.h: New file.
1390 * term.c, tparam.h: Include it.
1391 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1392 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1393 Move these decls to tparam.h, and make them agree with what
1394 is actually in tparam.c. The previous trick of using incompatible
1395 decls in different modules does not conform to the C standard.
1396 All callers of tparam changed to use tparam's actual API.
1397 * tparam.c (tparam1, tparam, tgoto):
1398 Use const pointers where appropriate.
1399
1400 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1401 * cm.h (struct cm): Likewise.
1402 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1403 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1404 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1405 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1406 (turn_on_face, init_tty): Likewise.
1407 * termchar.h (struct tty_display_info): Likewise.
1408
1409 * term.c (term_mouse_position): Rename local to avoid shadowing.
1410
1411 * alloc.c (mark_ttys): Move decl from here ...
1412 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1413
1414 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1415
1416 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1417
1418 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
1419
1420 * search.c (compile_pattern_1): Remove argument regp, unused since
1421 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1422 (compile_pattern): Don't pass it.
1423
1424 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1425
1426 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1427 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1428 for ! HAVE_GTK3.
1429 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1430
1431 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1432
1433 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1434 gdk_window_get_screen, gdk_window_get_geometry,
1435 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1436 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1437 (xg_get_pixbuf_from_pixmap): New function.
1438 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1439 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1440 Call xg_get_pixbuf_from_pixmap instead of
1441 gdk_pixbuf_get_from_drawable.
1442 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1443 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1444 (xg_check_special_colors): Use GtkStyleContext and its functions
1445 for HAVE_GTK3.
1446 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1447 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1448 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1449 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
1450 Call gtk_widget_get_preferred_size.
1451 (xg_frame_resized): gdk_window_get_geometry only takes 5
1452 parameters.
1453 (xg_win_to_widget, xg_event_is_for_menubar):
1454 Call gdk_x11_window_lookup_for_display.
1455 (xg_set_widget_bg): New function.
1456 (delete_cb): New function.
1457 (xg_create_frame_widgets): connect delete-event to delete_cb.
1458 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1459 (xg_set_background_color): Call xg_set_widget_bg.
1460 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1461 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1462 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1463 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1464 if ! HAVE_GTK3.
1465 (update_frame_tool_bar): Call gtk_widget_hide.
1466 (xg_initialize): Use GDK_KEY_g.
1467
1468 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1469 if ! HAVE_GTK3
1470 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1471
1472 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1473 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1474 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1475
1476 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
1477
1478 * w32xfns.c (select_palette): Check success of RealizePalette against
1479 GDI_ERROR, not zero.
1480
1481 2011-03-07 Ben Key <bkey76@gmail.com>
1482
1483 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1484 (file_dialog_callback): Fix locating the window handle of the File Name
1485 text field. After disabling it, set focus on the list control.
1486 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1487 Name text field to "Current Directory" if it does not already have
1488 another value. (Bug#8181)
1489
1490 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1491
1492 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1493 parameter for hbar cursors. Based on a patch by Ben Key
1494 <bkey76@gmail.com>.
1495
1496 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
1497
1498 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1499 change.
1500
1501 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1502
1503 current_column: Now returns EMACS_INT, fixing some iftc
1504 that was introduced in the 2002-06-02 change "temporarily"; see
1505 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1506 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1507 * cmds.c (internal_self_insert): Likewise.
1508 * indent.c (Fcurrent_column): Likewise.
1509 * keymap.c (describe_command): Likewise.
1510 * minibuf.c (read_minibuf): Likewise.
1511 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1512 to int.
1513 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1514 Likewise.
1515 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1516 not int or double, if they might contain a column number.
1517 * indent.c (current_column, Findent_to, indented_beyond_p):
1518 (compute_motion, vmotion): Likewise.
1519 * keymap.c (describe_command): Likewise.
1520 * xdisp.c (pint2str): Likewise.
1521 * indent.c (last_known_column): Now EMACS_INT, not int.
1522 * minibuf.c (minibuf_prompt_width): Likewise.
1523 * indent.c (current_column, current_column_1, position_indentation):
1524 Return EMACS_INT, not double.
1525 * lisp.h (current_column): Likewise.
1526 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1527 All callers changed.
1528 * lisp.h (indented_beyond_p): Likewise.
1529
1530 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1531 from xdisp.c, and make static, since these are used only here.
1532 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1533 Remove decls.
1534
1535 * cmds.c (internal_self_insert): Reindent to match Emacs style.
1536 * xdisp.c (redisplay_window): Likewise.
1537
1538 * xdisp.c: Rename or move local decls to avoid shadowing.
1539 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1540 (message_dolog, message_with_string, redisplay_internal):
1541 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1542 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1543 (display_line, display_string, rows_from_pos_range):
1544 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1545 Rename or move local decls.
1546 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1547 (produce_glyphless_glyph): Make a pointer "const"
1548 since it might point to immutable storage.
1549 (update_window_cursor): Now static, since it's not used elsewhere.
1550 (SKIP_GLYPHS): Remove unused macro.
1551
1552 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1553
1554 * window.c (Fnext_window): Doc fix. (Bug#5567)
1555
1556 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
1557
1558 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1559
1560 2011-03-02 Ken Brown <kbrown@cornell.edu>
1561
1562 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1563
1564 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1565
1566 Work around some portability problems with symlinks.
1567
1568 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1569 generate a special message for it. Suggested by Eli Zaretskii in
1570 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1571 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1572 Simplify the code by assuming that the readlink and symlink calls
1573 exist, even if they always fail on this host.
1574 (Ffile_readable_p): Likewise, for fifos.
1575 * config.in: Regenerate.
1576
1577 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
1578
1579 * frame.c (store_frame_param): Don't store value directly in
1580 buffer_list and buried_buffer_list; copy the list and remove dead
1581 buffers (Bug#7898).
1582
1583 2011-02-27 Eli Zaretskii <eliz@gnu.org>
1584
1585 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1586
1587 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1588
1589 * w32.c (symlink, readlink): New stub functions.
1590
1591 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1592
1593 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1594 This avoids a gcc warning in some configurations.
1595
1596 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1597
1598 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1599 (set_menu_bar_lines, x_get_resource_string): New decls.
1600 * msdos.c (set_menu_bar_lines): Omit decl.
1601
1602 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1603 It's always given int values and used as an int. This suppresses
1604 a gcc "comparison of unsigned expression >= 0" warning in some
1605 configurations.
1606
1607 * dispnew.c: Rename locals to avoid shadowing.
1608 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1609
1610 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1611
1612 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1613 (copy_glyph_row_contents): Remove; not used.
1614 (frame_row_to_window, check_current_matrix_flags):
1615 (window_change_signal): Now static, since they're not used elsewhere.
1616 (check_current_matrix_flags): Surround with "#if 0", since its
1617 only use is in a comment. Maybe both the comment and the "#if 0"
1618 stuff should be removed?
1619
1620 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1621 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1622 contexts that actually need it.
1623
1624 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1625
1626 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1627 (lstat): Define for DJGPP < 2.04.
1628
1629 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1630
1631 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1632 as per recent filemodestring API change. Reported by Jonas Öster in
1633 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1634
1635 2011-02-23 Ben Key <bkey76@gmail.com>
1636
1637 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1638 directly, for bar cursors.
1639
1640 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
1641
1642 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1643 into the frame's cursor_width.
1644
1645 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1646
1647 * print.c (print_object): Never print old-style backquotes.
1648 Obey escapeflag for hash tables as well.
1649
1650 2011-02-23 Kenichi Handa <handa@m17n.org>
1651
1652 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1653 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1654
1655 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1656
1657 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1658
1659 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1660
1661 * lread.c (openp): Correct Boolean typo in last commit.
1662
1663 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1664
1665 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1666 key to Emacs, treat as unmodified (go to input manager processing).
1667
1668 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1669
1670 Assume S_ISLNK etc. work, since gnulib supports this.
1671 * config.in: Regenerate.
1672 * dired.c (lstat): Remove.
1673 (file_name_completion): Assume S_ISDIR works.
1674 (file_name_completion_stat): Assume S_ISLNK works.
1675 Do not bother calling stat unless lstat says it's a symlink.
1676 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1677 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1678 (check_writable, Ffile_writable_p, Fset_file_times):
1679 Assume S_ISDIR works.
1680 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1681 fifos exist.
1682 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1683 * filelock.c (S_ISLNK): Remove.
1684 * lread.c (openp): Assume S_ISDIR works.
1685 * xrdb.c (S_ISDIR): Remove.
1686
1687 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1688
1689 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1690 lib/makefile.w32-in.
1691 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1692 (GLOBAL_SOURCES): Remove filemode.c.
1693 (OBJ1): Remove $(BLD)/filemode.$(O).
1694
1695 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1696
1697 Import filemode module from gnulib.
1698 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1699 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1700 (filemode.o): Remove; this is now in ../lib.
1701 * dired.c: Include <filemode.h>.
1702 (filemodestring): Remove now-redundant decl.
1703 * config.in: Regenerate.
1704
1705 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1706
1707 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1708 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1709
1710 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1711
1712 * makefile.w32-in: Remove md5.$(O).
1713 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1714 lib/makefile.w32-in.
1715
1716 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1717
1718 Import crypto/md5 and stdint modules from gnulib.
1719 * Makefile.in (base_obj): Remove md5.o, since this file
1720 is in lib now.
1721 * config.in: Regenerate.
1722 * md5.h, md5.h: Move to ../lib.
1723 * deps.mk (md5.o): Remove.
1724 (fns.o): Depend on ../lib/md5.h, not md5.h.
1725
1726 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1727
1728 * termcap.c (tputs): Don't declare baud_rate.
1729
1730 * s/msdos.h (strtold): Define to _strtold.
1731
1732 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1733
1734 * process.c (Fstart_process, Fmake_serial_process)
1735 (Fmake_network_process, server_accept_connection):
1736 Use empty_unibyte_string.
1737
1738 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1739
1740 * lread.c (Qdir_ok): New constant.
1741 (syms_of_lread): Initialize it.
1742 (openp): Don't ignore directories if the predicate returns dir-ok.
1743
1744 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1745
1746 * xdisp.c (display_line): Fix the change made for bug#7939.
1747
1748 * terminal.c (create_terminal): Use default-keyboard-coding-system
1749 and default-terminal-coding-system to initialize coding systems of
1750 the new terminal. (Bug#7840)
1751
1752 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1753
1754 * lisp.h (BYTE_MARK_STACK): New macro.
1755 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1756
1757 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1758 (struct byte_stack): Only define `top' and `bottom' if used.
1759 (mark_byte_stack): Only define if used.
1760 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1761 is not set.
1762 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1763
1764 * term.c (OUTPUT_IF): Use OUTPUT.
1765
1766 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1767 redundantly scan byte-code stacks, catchlist, and handlerlist.
1768
1769 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1770
1771 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1772 (Fns_read_file_name): Replace B_ with BVAR.
1773
1774 * nsterm.m (ns_term_init): Use KVAR.
1775
1776 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1777
1778 * msdos.c (internal_terminal_init): Use KVAR.
1779
1780 * w32fns.c (Fx_create_frame): Use KVAR.
1781
1782 * w32term.c (w32_create_terminal): Use KVAR.
1783
1784 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1785 (getloadavg): Declare prototype which was removed from lisp.h.
1786
1787 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1788
1789 * fileio.c (Finsert_file_contents, Fwrite_region):
1790 Remove references to buffer_file_type.
1791 (syms_of_fileio): Don't intern and staticpro
1792 find-buffer-file-type.
1793
1794 * callproc.c (syms_of_callproc): Remove references to
1795 buffer_file_type.
1796
1797 * buffer.c (reset_buffer_local_variables): Don't set
1798 buffer_file_type.
1799 (init_buffer_once): Likewise.
1800 (syms_of_buffer): Don't define buffer-file-type.
1801
1802 * buffer.h (struct buffer): Remove buffer_file_type.
1803
1804 2011-02-16 Tom Tromey <tromey@parfait>
1805
1806 * callint.c (Fcall_interactively): Update for change to field names.
1807 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1808 * cmds.c (Fself_insert_command): Update for change to field names.
1809 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1810 (Fdescribe_buffer_bindings): Update for change to field names.
1811 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1812 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1813 Update for change to field names.
1814 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1815 (echo_length, echo_truncate, cmd_error, command_loop_1)
1816 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1817 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1818 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1819 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1820 Update for change to field names.
1821 * xfns.c (Fx_create_frame): Update for change to field names.
1822 * xterm.c (x_connection_closed, x_term_init): Update for change to
1823 field names.
1824 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1825 Update for change to field names.
1826 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1827 Update for change to field names.
1828 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1829 (delete_frame): Update for change to field names.
1830 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1831 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1832 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1833
1834 2011-02-16 Tom Tromey <tromey@redhat.com>
1835
1836 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1837
1838 2011-02-16 Tom Tromey <tromey@parfait>
1839
1840 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1841 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1842 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1843 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1844 (with_echo_area_buffer, setup_echo_area_for_printing)
1845 (set_message_1, update_menu_bar, update_tool_bar)
1846 (text_outside_line_unchanged_p, redisplay_internal)
1847 (try_scrolling, try_cursor_movement, redisplay_window)
1848 (try_window_reusing_current_matrix, row_containing_pos)
1849 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1850 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1851 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1852 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1853 BVAR.
1854 * window.c (window_display_table, unshow_buffer, window_loop)
1855 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1856 (select_window, Fforce_window_update, temp_output_buffer_show)
1857 (Fset_window_configuration, save_window_save): Replace B_ with
1858 BVAR.
1859 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1860 Replace B_ with BVAR.
1861 * undo.c (record_point, record_insert, record_delete)
1862 (record_marker_adjustment, record_first_change)
1863 (record_property_change, Fundo_boundary, truncate_undo_list)
1864 (Fprimitive_undo): Replace B_ with BVAR.
1865 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1866 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1867 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1868 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1869 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1870 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1871 (string_match_1, fast_looking_at, newline_cache_on_off)
1872 (search_command, search_buffer, simple_search, boyer_moore)
1873 (Freplace_match): Replace B_ with BVAR.
1874 * process.c (get_process, list_processes_1, Fstart_process)
1875 (Fmake_serial_process, Fmake_network_process)
1876 (read_process_output, send_process, exec_sentinel)
1877 (status_notify, setup_process_coding_systems): Replace B_ with
1878 BVAR.
1879 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1880 (strout, print_string, temp_output_buffer_setup, print_object):
1881 Replace B_ with BVAR.
1882 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1883 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1884 Replace B_ with BVAR.
1885 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1886 (set_marker_both, set_marker_restricted_both, unchain_marker):
1887 Replace B_ with BVAR.
1888 * lread.c (readchar, unreadchar, openp, readevalloop)
1889 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1890 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1891 * keymap.c (Flocal_key_binding, Fuse_local_map)
1892 (Fcurrent_local_map, push_key_description)
1893 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1894 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1895 (read_key_sequence): Replace B_ with BVAR.
1896 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1897 * intervals.c (set_point_both, get_local_map): Replace B_ with
1898 BVAR.
1899 * insdel.c (check_markers, insert_char, insert_1_both)
1900 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1901 (adjust_after_replace, replace_range, del_range_2)
1902 (modify_region, prepare_to_modify_buffer)
1903 (Fcombine_after_change_execute): Replace B_ with BVAR.
1904 * indent.c (buffer_display_table, recompute_width_table)
1905 (width_run_cache_on_off, current_column, scan_for_column)
1906 (Findent_to, position_indentation, compute_motion, vmotion):
1907 Replace B_ with BVAR.
1908 * fringe.c (get_logical_cursor_bitmap)
1909 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1910 with BVAR.
1911 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1912 * font.c (font_at): Replace B_ with BVAR.
1913 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1914 Replace B_ with BVAR.
1915 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1916 (unlock_buffer): Replace B_ with BVAR.
1917 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1918 (Ffile_regular_p, Ffile_selinux_context)
1919 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1920 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1921 (Finsert_file_contents, choose_write_coding_system)
1922 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1923 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1924 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1925 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1926 (save_excursion_restore, Fprevious_char, Fchar_before)
1927 (general_insert_function, Finsert_char, Finsert_byte)
1928 (make_buffer_string_both, Finsert_buffer_substring)
1929 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1930 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1931 (Ftranslate_region_internal, save_restriction_restore)
1932 (Fchar_equal): Replace B_ with BVAR.
1933 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1934 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1935 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1936 * dired.c (directory_files_internal): Replace B_ with BVAR.
1937 * data.c (swap_in_symval_forwarding, set_internal)
1938 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1939 Replace B_ with BVAR.
1940 * composite.c (fill_gstring_header)
1941 (composition_compute_stop_pos, composition_adjust_point)
1942 (Ffind_composition_internal): Replace B_ with BVAR.
1943 * coding.c (decode_coding, encode_coding)
1944 (make_conversion_work_buffer, decode_coding_gap)
1945 (decode_coding_object, encode_coding_object)
1946 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1947 (Funencodable_char_position, Fcheck_coding_systems_region):
1948 Replace B_ with BVAR.
1949 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1950 with BVAR.
1951 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1952 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1953 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1954 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1955 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1956 * category.c (check_category_table, Fcategory_table)
1957 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1958 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1959 BVAR.
1960 * casefiddle.c (casify_object, casify_region): Replace B_ with
1961 BVAR.
1962 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1963 with BVAR.
1964 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1965 BVAR.
1966 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1967 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1968 with BVAR.
1969 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1970 (get_truename_buffer, Fget_buffer_create)
1971 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1972 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1973 (Fbuffer_local_value, buffer_lisp_local_variables)
1974 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1975 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1976 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1977 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1978 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1979 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1980 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1981 (record_overlay_string, overlay_strings, init_buffer_once)
1982 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1983
1984 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1985
1986 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1987 window is changed inside calls to do_pending_window_change.
1988 (Bug#8020)
1989
1990 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1991
1992 Remove no-longer needed getloadavg symbols.
1993 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1994 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1995 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1996 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1997 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1998 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1999 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
2000 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
2001 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
2002 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
2003 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
2004 (LDAV_SYMBOL): Remove.
2005 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
2006 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
2007
2008 Import getloadavg module from gnulib.
2009 * deps.mk (getloadavg.o): Remove; gnulib now does this.
2010 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
2011 now does this.
2012 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
2013 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
2014 * config.in: Regenerate.
2015
2016 2011-02-15 Eli Zaretskii <eliz@gnu.org>
2017
2018 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
2019
2020 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
2021
2022 * print.c (float_to_string): Ensure that a decimal point is
2023 printed if using dtoastr (Bug#8033).
2024
2025 2011-02-14 Eli Zaretskii <eliz@gnu.org>
2026
2027 * msdos.c (IT_frame_up_to_date):
2028 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
2029
2030 * dired.c (directory_files_internal):
2031 * fileio.c (Finsert_file_contents):
2032 * insdel.c (prepare_to_modify_buffer):
2033 * xdisp.c (pos_visible_p):
2034 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
2035 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
2036 Use B_ for the MS-Windows build.
2037
2038 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2039
2040 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
2041 resource that specifies helvetica for menus and dialogs.
2042
2043 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
2044 (apply_systemfont_to_menu): Set resources *menubar*font and
2045 *popup*font. Remove defflt.
2046 (set_frame_menubar, create_and_show_popup_menu):
2047 Call apply_systemfont_to_menu before lw_create_widget.
2048
2049 2011-02-14 Tom Tromey <tromey@redhat.com>
2050
2051 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
2052
2053 * keyboard.h: Remove obsolete comment.
2054
2055 2011-02-14 Tom Tromey <tromey@parfait>
2056
2057 * composite.c (fill_gstring_header)
2058 (composition_compute_stop_pos, composition_adjust_point)
2059 (Ffind_composition_internal): Use B_.
2060 * intervals.c (set_point_both, get_local_map): Use B_.
2061 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
2062 * process.c (get_process, list_processes_1, Fstart_process)
2063 (Fmake_serial_process, Fmake_network_process)
2064 (read_process_output, send_process, exec_sentinel)
2065 (status_notify, setup_process_coding_systems): Use B_.
2066 * bytecode.c (Fbyte_code): Use B_.
2067 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
2068 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
2069 (skip_syntaxes, scan_lists): Use B_.
2070 * lread.c (readchar, unreadchar, openp, readevalloop)
2071 (Feval_buffer, Feval_region): Use B_.
2072 * print.c (printchar, strout, print_string, PRINTDECLARE)
2073 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
2074 (print_object): Use B_.
2075 * font.c (font_at): Use B_.
2076 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
2077 Use B_.
2078 * callint.c (check_mark, Fcall_interactively): Use B_.
2079 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
2080 (save_excursion_restore, Fprevious_char, Fchar_before)
2081 (general_insert_function, Finsert_char, Finsert_byte)
2082 (make_buffer_string_both, Finsert_buffer_substring)
2083 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
2084 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
2085 (Ftranslate_region_internal, save_restriction_restore)
2086 (Fchar_equal): Use B_.
2087 * data.c (swap_in_symval_forwarding, set_internal)
2088 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
2089 Use B_.
2090 * undo.c (record_point, record_insert, record_delete)
2091 (record_marker_adjustment, record_first_change)
2092 (record_property_change, Fundo_boundary, truncate_undo_list)
2093 (Fprimitive_undo): Use B_.
2094 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
2095 (string_match_1, fast_looking_at, newline_cache_on_off)
2096 (search_command, search_buffer, simple_search, boyer_moore)
2097 (Freplace_match): Use B_.
2098 * indent.c (buffer_display_table, recompute_width_table)
2099 (width_run_cache_on_off, current_column, scan_for_column)
2100 (Findent_to, position_indentation, compute_motion, vmotion):
2101 Use B_.
2102 * casefiddle.c (casify_object, casify_region): Use B_.
2103 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
2104 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
2105 * fileio.c (Fexpand_file_name, Ffile_directory_p)
2106 (Ffile_regular_p, Ffile_selinux_context)
2107 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
2108 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
2109 (Finsert_file_contents, choose_write_coding_system)
2110 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
2111 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
2112 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
2113 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
2114 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
2115 (set_marker_both, set_marker_restricted_both, unchain_marker):
2116 Use B_.
2117 * insdel.c (check_markers, insert_char, insert_1_both)
2118 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
2119 (adjust_after_replace, replace_range, del_range_2)
2120 (modify_region, prepare_to_modify_buffer)
2121 (Fcombine_after_change_execute): Use B_.
2122 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
2123 (unlock_buffer): Use B_.
2124 * keymap.c (Flocal_key_binding, Fuse_local_map)
2125 (Fcurrent_local_map, push_key_description)
2126 (Fdescribe_buffer_bindings): Use B_.
2127 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
2128 (read_key_sequence): Use B_.
2129 * fringe.c (get_logical_cursor_bitmap)
2130 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
2131 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
2132 * xfaces.c (compute_char_face): Use B_.
2133 * character.c (chars_in_text, Fget_byte): Use B_.
2134 * category.c (check_category_table, Fcategory_table)
2135 (Fset_category_table, char_category_set): Use B_.
2136 * coding.c (decode_coding, encode_coding)
2137 (make_conversion_work_buffer, decode_coding_gap)
2138 (decode_coding_object, encode_coding_object)
2139 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
2140 (Funencodable_char_position, Fcheck_coding_systems_region):
2141 Use B_.
2142 * charset.c (Ffind_charset_region): Use B_.
2143 * window.c (window_display_table, unshow_buffer, window_loop)
2144 (window_min_size_2, set_window_buffer, Fset_window_buffer)
2145 (select_window, Fforce_window_update, temp_output_buffer_show)
2146 (Fset_window_configuration, save_window_save): Use B_.
2147 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
2148 (message_dolog, update_echo_area, ensure_echo_area_buffers)
2149 (with_echo_area_buffer, setup_echo_area_for_printing)
2150 (set_message_1, update_menu_bar, update_tool_bar)
2151 (text_outside_line_unchanged_p, redisplay_internal)
2152 (try_scrolling, try_cursor_movement, redisplay_window)
2153 (try_window_reusing_current_matrix, row_containing_pos)
2154 (try_window_id, get_overlay_arrow_glyph_row, display_line)
2155 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
2156 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
2157 (get_window_cursor_type, note_mouse_highlight): Use B_.
2158 * frame.c (make_frame_visible_1): Use B_.
2159 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
2160 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
2161 (WINDOW_WANTS_MODELINE_P): Use B_.
2162 * syntax.h (Vstandard_syntax_table): Update.
2163 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
2164 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
2165 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
2166 * character.h (FETCH_CHAR_ADVANCE): Update.
2167 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
2168 * category.h (Vstandard_category_table): Update.
2169 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
2170 names.
2171 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
2172 * buffer.c (swapfield_): New macro.
2173 (Fbuffer_swap_text): Use swapfield_ where appropriate.
2174 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
2175 (Fget_buffer_create, clone_per_buffer_values)
2176 (Fmake_indirect_buffer, reset_buffer)
2177 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
2178 (Fbuffer_local_value, buffer_lisp_local_variables)
2179 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
2180 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
2181 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
2182 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
2183 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
2184 (Fbuffer_swap_text, Fset_buffer_multibyte)
2185 (swap_out_buffer_local_variables, record_overlay_string)
2186 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
2187 Use B_.
2188 * buffer.h (struct buffer): Rename all Lisp_Object fields.
2189 (BUFFER_INTERNAL_FIELD, B_): New macro.
2190 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
2191
2192 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2193
2194 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
2195 is null.
2196
2197 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
2198
2199 * callproc.c (Fcall_process):
2200 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
2201 comment.
2202
2203 2011-02-12 Martin Rudalics <rudalics@gmx.at>
2204
2205 * window.c (select_window): Check inhibit_point_swap argument when
2206 deciding whether to return immediately.
2207
2208 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
2209
2210 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
2211 zero (Bug#7348).
2212
2213 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
2214
2215 * config.in (TERMINFO): New definition.
2216
2217 * s/netbsd.h: Use it to choose between terminfo and termcap
2218 (Bug#7642).
2219
2220 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2221
2222 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
2223 The difference doesn't matter here, in practice, and sizeof is
2224 more portable to non-GCC compilers. Also, this makes the code
2225 match the already-existing comment.
2226
2227 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
2228
2229 * process.c (create_process): Reset SIGPIPE handler in the child.
2230 * callproc.c (Fcall_process): Likewise. (Bug#5238)
2231
2232 2011-02-12 Eli Zaretskii <eliz@gnu.org>
2233
2234 * xdisp.c <this_line_min_pos>: New variable.
2235 (move_it_in_display_line_to): Record in this_line_min_pos the
2236 smallest position iterated across.
2237 (display_line): Use this_line_min_pos to record the smallest
2238 position in the line even if it is not displayed due to
2239 hscrolling. (Bug#7939)
2240
2241 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2242
2243 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
2244 * md5.h (ATTRIBUTE_ALIGNED): New macro.
2245 (struct md5_ctx): Use it.
2246
2247 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
2248 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
2249 defined.
2250 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
2251 FC_HINT_STYLE is supported.
2252
2253 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
2254
2255 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
2256 Make sure we don't do x_catch_errors twice.
2257
2258 2011-02-10 Glenn Morris <rgm@gnu.org>
2259
2260 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
2261
2262 2011-02-09 Eli Zaretskii <eliz@gnu.org>
2263
2264 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
2265 New macros.
2266 (globals.h, gl-stamp): New targets.
2267 (clean): Clean gl-stamp and globals.h.
2268
2269 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2270
2271 * Makefile.in (gl-stamp): Create globals.h here.
2272 (globals.h): Don't do it here.
2273 (mostlyclean): Clean globals.h and gl-stamp.
2274
2275 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
2276
2277 * Makefile.in ($(otherobj)): Depend on globals.h.
2278 Otherwise 'make -j10' failed on my host, because the build lacked
2279 necessary dependencies, e.g., vm-limit.o depends on globals.h.
2280
2281 2011-02-08 Tom Tromey <tromey@redhat.com>
2282
2283 * Makefile.in (NS_OBJC_OBJ): New variable.
2284 (base_obj): Rename from 'obj'.
2285 (obj): New variable.
2286 (globals.h, gl-stamp, $(obj)): New targets.
2287 (GLOBAL_SOURCES): New variable.
2288 * globals.h: Remove.
2289 * nsselect.m (Vselection_alist): Define. Reverts part of
2290 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
2291 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
2292 variable.
2293 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
2294
2295 2011-02-08 Kenichi Handa <handa@m17n.org>
2296
2297 * font.c (Ffont_get): Do not cache :otf value.
2298
2299 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2300
2301 conform to C89 pointer rules
2302
2303 * dired.c (scmp, file_name_completion):
2304 Change types between char * and unsigned char *, to satisfy C89
2305 rules about pointer type compatibility.
2306 * casefiddle.c (casify_object, casify_region): Likewise.
2307 * search.c (Freplace_match, Fregexp_quote): Likewise.
2308 * alloc.c (make_string, make_specified_string, make_pure_string):
2309 Likewise.
2310 * data.c (Fstring_to_number): Likewise.
2311 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2312 (print_object): Likewise.
2313 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2314 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2315 (Fformat): Likewise.
2316 * callint.c (Fcall_interactively): Likewise.
2317 * fns.c (string_make_multibyte, string_to_multibyte):
2318 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2319 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2320 Likewise.
2321 * lread.c (read1, hash_string): Likewise.
2322 * process.c (read_process_output, send_process, Fprocess_send_region):
2323 Likewise.
2324 * callproc.c (Fcall_process): Likewise.
2325 * doprnt.c (doprnt): Likewise.
2326 * indent.c (compute_motion): Likewise.
2327 * xfont.c (xfont_decode_coding_xlfd): Likewise.
2328 * ralloc.c (resize_bloc): Likewise.
2329 * image.c (tiff_load): Likewise.
2330 * xml.c (make_dom, parse_region): Likewise.
2331 * character.c (strwidth): Make its argument const char *, not const
2332 unsigned char *, since more callers prefer it that way. All callers
2333 changed.
2334
2335 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2336
2337 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2338 Emacs assumes two's complement elsewhere, but the assumption is
2339 easy to remove here, and this suppresses a warning with Sun C 5.8.
2340
2341 conform to C89 pointer rules
2342
2343 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2344 (same_x_server, x_term_init):
2345 Change types between char * and unsigned char *, to satisfy C89
2346 rules about pointer type compatibility.
2347 * doc.c (get_doc_string, Fsnarf_documentation):
2348 (Fsubstitute_command_keys): Likewise.
2349 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2350 * bitmaps/gray.xbm (gray_bits): Likewise.
2351 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
2352 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2353 Likewise.
2354 * keymap.c (Ftext_char_description): Likewise.
2355 * minibuf.c (Fread_buffer): Likewise.
2356 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2357 (DRIVE_LETTER) [defined DOS_NT]:
2358 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2359 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2360 (search_embedded_absfilename, Fsubstitute_in_file_name):
2361 (barf_or_query_if_file_exists, Fmake_directory_internal):
2362 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2363 (Finsert_file_contents, Fwrite_region):
2364 Likewise.
2365 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2366 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2367 Likewise. This changes these functions' signatures, which is
2368 more convenient since most callers use char *. All remaining
2369 callers changed.
2370 * editfns.c (general_insert_function): Change signature to
2371 match changes to insert functions' signatures.
2372 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2373 Use explicit cast when converting between void * and function pointer
2374 types, as C89 requires this.
2375
2376 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2377
2378 don't ignore chdir failure
2379 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2380 failure and exit.
2381 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2382 remaining unchecked chdir calls in this function; some DOS/NT
2383 expert needs to fix them.
2384 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2385 in this function; some NextStep expert needs to fix them.
2386
2387 2011-02-05 Glenn Morris <rgm@gnu.org>
2388
2389 * xfaces.c (Finternal_set_lisp_face_attribute):
2390 Try to clarify some error messages. (Bug#2659)
2391
2392 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
2393
2394 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2395 current_column cache (bug#7946).
2396
2397 2011-02-05 Kenichi Handa <handa@m17n.org>
2398
2399 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2400
2401 * xftfont.c (xftfont_open): Likewise.
2402
2403 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
2404
2405 * window.c (Fselect_window): Add missing return value.
2406
2407 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2408
2409 xstrcasecmp: conform to C89 pointer rules
2410 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2411 to const char *, since they're usually low-level C strings, and
2412 this stays compatible with C89 pointer rules. All callers changed.
2413
2414 * charset.c: Conform to C89 pointer rules.
2415 (define_charset_internal): Switch between char * and unsigned char *.
2416
2417 * xmenu.c: Conform to C89 const rules.
2418 (xmenu_show, xdialog_show): Declare local var as char *, not
2419 const char *, to stay compatible with C89 const rules.
2420
2421 * xdisp.c: Conform to C89 pointer rules.
2422 (store_mode_line_noprop, display_string, reseat_to_string):
2423 (c_string_pos, number_of_chars, message_dolog):
2424 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2425 (display_mode_element, display_string):
2426 Switch between char * and unsigned char * to stay compatible wth
2427 C89 pointer rules.
2428
2429 * regex.c: Conform to C89 pointer rules.
2430 (re_wctype): Add cast, as C89 does not allow assigning between
2431 char * and unsigned char *.
2432 (regex_compile): Likewise.
2433
2434 sync from gnulib to remove HAVE_STDBOOL_H
2435 * config.in: Regenerate.
2436
2437 2011-02-04 Eli Zaretskii <eliz@gnu.org>
2438
2439 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2440 Replace all uses of lisp.h with $(LISP_H), and all uses of
2441 process.h with $(PROCESS_H).
2442 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2443 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2444
2445 * deps.mk: Update for recent changes: gnutls support, gnulib
2446 imports, addition of globals.h.
2447
2448 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2449 ../lib/ignore-value.h.
2450
2451 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2452
2453 allow C code to suppress warnings about ignored return values
2454
2455 We need to go through the code and for each such warning, either
2456 fix the code to pay attention to the returned value, or tell GCC
2457 that we really do want to ignore the returned value. Here is one
2458 example of how to do the latter.
2459 * sysdep.c: Include <ignore-value.h>.
2460 (sys_subshell): Suppress an undesirable warning about not checking
2461 the returned value of 'write', as there's nothing useful one can
2462 do with that returned value.
2463
2464 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2465
2466 * xterm.c (x_connection_closed): Remove all calls that calls
2467 XSync (Bug#7949).
2468
2469 2011-02-01 Eli Zaretskii <eliz@gnu.org>
2470
2471 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2472 TIFFClientOpen.
2473
2474 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2475
2476 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2477 (x_session_check_input): Change args and return type so it can be used
2478 as argument to add_read_fd. Make static. Remove call to select.
2479 Call kbd_buffer_store_event for emacs_event.
2480 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2481 (ice_conn_watch_CB): Call add_read_fd.
2482
2483 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2484 x_session_check_input.
2485 (x_session_initialized): Remove definition.
2486 (x_initialize): Remove setting of x_session_initialized.
2487
2488 * xterm.h (x_session_check_input): Remove declaration.
2489
2490 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2491
2492 format-time-string now supports subsecond time stamp resolution
2493 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2494 for consistency with its new argument and with gnulib nstrftime.
2495 All callers changed. New argument NS.
2496 (Fformat_time_string): Check that the time argument's microseconds
2497 component, if any, is in range; this avoids integer overflow and
2498 also nstrftime needs this. Document %N.
2499
2500 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
2501
2502 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2503 of int. All uses adjusted.
2504 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2505 (svg_load_image): Remove casts.
2506
2507 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
2508
2509 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2510 function definitions for compiling with libpng-1.5.
2511 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2512 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2513 (Bug#7908).
2514
2515 2011-01-31 Eli Zaretskii <eliz@gnu.org>
2516
2517 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2518
2519 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2520 ($(BLD)/strftime.$(O)): Remove prerequisites.
2521
2522 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2523
2524 src/emacs.c now gets version number from configure.in
2525 * emacs.c (emacs_version): Set to VERSION so that it
2526 is determined automatically from ../configure.in.
2527
2528 2011-01-31 Jim Meyering <meyering@redhat.com>
2529
2530 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2531 Use xmalloc rather than malloc.
2532
2533 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2534
2535 strftime: import from gnulib
2536 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2537 * deps.mk (strftime.o): Remove.
2538 * editfns.c: Include <strftime.h>, supplied by gnulib.
2539 (emacs_strftimeu): Remove decl.
2540 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2541 emacs_strftimeu.
2542 * config.in: Regenerate.
2543 * strftime.c: Remove; we now use strftime from gnulib.
2544
2545 Use SSDATA when the context wants char *.
2546 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2547 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2548 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2549 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2550 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2551 Use SSDATA (not SDATA) when the context of the expression wants
2552 char * (not unsigned char *).
2553
2554 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2555
2556 * .gdbinit: Read global lisp variables as globals.f_V*.
2557
2558 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2559
2560 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2561 All uses changed.
2562 (PROP_SAVE): Likewise.
2563
2564 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
2565
2566 * keyboard.c (make_lispy_position): Fix typo in last change
2567 (Bug#7935).
2568
2569 2011-01-29 Eli Zaretskii <eliz@gnu.org>
2570
2571 * s/ms-w32.h (HAVE_MKTIME): Remove.
2572
2573 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2574 (GNULIB): New variable.
2575 (LIBS): Add $(GNULIB).
2576 $(TEMACS): Depend on $(GNULIB).
2577 <top-level>: Fix font-lock disrupted by a lone `"'.
2578
2579 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2580
2581 * nsselect.m (ns_string_from_pasteboard): Get length of string
2582 and use make_string instead of build_string (Bug#7934).
2583 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2584 instead of stringWithUTF8String (Bug#7934).
2585
2586 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
2587
2588 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2589 descenders would not become one pixel too tall (Bug#7887).
2590
2591 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
2592
2593 * keyboard.c (make_lispy_position): For clicks on right fringe or
2594 margin, compute text position using the X coordinate relative to
2595 the left of the text area (Bug#7839).
2596
2597 2011-01-28 Kenichi Handa <handa@m17n.org>
2598
2599 * ftfont.c (ftfont_spec_pattern): Check each extra property
2600 value.
2601
2602 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2603
2604 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2605
2606 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2607
2608 * font.c (font_parse_fcname): Undefine a temporary macro.
2609
2610 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2611
2612 Let the debugger continue to the normal handler (bug#7825).
2613 * eval.c (maybe_call_debugger): Declare before new use.
2614 (find_handler_clause): Don't call debugger any more.
2615 Ignore Vstack_trace_on_error.
2616 Use XCAR/XCDR.
2617 (syms_of_eval): Remove Vstack_trace_on_error.
2618 (Fsignal): Only modify handlerlist when we know we need to do it.
2619 Call the debugger when necessary.
2620 * globals.h (Vstack_trace_on_error): Remove.
2621
2622 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
2623
2624 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2625
2626 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
2627
2628 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2629 the buffer's point-max (bug#7876).
2630
2631 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
2632
2633 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2634 Remove unused case (Bug#6811).
2635
2636 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2637
2638 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2639 setFrameTopLeftPoint is constrained.
2640
2641 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2642
2643 Check return values of some library calls.
2644 * emacs.c (main): Check dup result.
2645 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2646 (frame_name_fnn_p): Check strtol result.
2647
2648 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2649 when calling XpmCreatePixmapFromData.
2650
2651 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2652 * lisp.h (SSDATA): New macro.
2653 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2654 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2655 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2656 * xsmfns.c (SSDATA): Likewise.
2657
2658 2011-01-22 Martin Rudalics <rudalics@gmx.at>
2659
2660 * window.c (select_window): New function.
2661 (Fselect_window): Call it.
2662 (inhibit_point_swap): Variable deleted.
2663 (Fset_window_configuration): Call select_window directly.
2664
2665 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2666
2667 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2668
2669 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2670
2671 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2672 screen, not the window screen.
2673 (x_set_window_size): Remove constraints.
2674 Calculate origin.y only if zooming is 0 and without referring to a
2675 screen.
2676 (windowWillResize): Don't modify frameSize.
2677 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2678 (initFrameFromEmacs): Initialize ns_userRect.
2679 (windowShouldZoom): Set zooming to one. Remove all other code.
2680 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2681 Zero it after restore.
2682 (constrainFrameRect): New method for EmacsWindow.
2683 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2684 windowWillResize.
2685
2686 * nsterm.h (ns_output): Add dont_constrain and zooming.
2687 (EmacsView): Add ns_userRect.
2688
2689 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2690 if ns_alternate_modifier is none.
2691
2692 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2693
2694 * unexmacosx.c: Add comment about include order.
2695
2696 2011-01-20 Glenn Morris <rgm@gnu.org>
2697
2698 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2699 Give it a doc string.
2700 * globals.h: Add Vread_expression_history.
2701
2702 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2703 Give it a doc string.
2704 * globals.h: Add Vkbd_macro_termination_hook.
2705
2706 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2707
2708 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2709
2710 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2711
2712 Fix X11 compilation failure.
2713 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2714 * xselect.c (Vselection_alist): Remove declaration, moving its
2715 documentation to globals.h. This fixes a compilation failure
2716 induced by the earlier change to globals.h today.
2717
2718 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2719
2720 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2721
2722 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2723 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2724 (ns_input_spi_name, ns_input_spi_arg)
2725 (ns_alternate_modifier, ns_right_alternate_modifier)
2726 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2727 (ns_right_control_modifier, ns_function_modifier)
2728 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2729 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2730 (x_underline_at_descent_line): Remove declaration.
2731 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2732
2733 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2734 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2735 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2736
2737 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2738 Remove declaration.
2739
2740 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2741 globals.h.
2742 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2743
2744 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2745 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2746 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2747
2748 * globals.h (struct emacs_globals): Add f_ns_input_file,
2749 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2750 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2751 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2752 f_ns_right_alternate_modifier, f_ns_command_modifier,
2753 f_ns_right_command_modifier, f_ns_control_modifier,
2754 f_ns_right_control_modifier, f_ns_function_modifier,
2755 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2756 f_Vns_version_string, f_Vns_sent_selection_hooks,
2757 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2758 and corresponding defines.
2759
2760 2011-01-19 Sam Steingold <sds@gnu.org>
2761
2762 * w32.c (check_windows_init_file): Remove declarations of
2763 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2764 * w32fns.c: Fix an error introduced by the previous patch.
2765
2766 2011-01-19 Tom Tromey <tromey@redhat.com>
2767
2768 * window.c: Fix error introduced by previous patch.
2769
2770 2011-01-18 Tom Tromey <tromey@parfait>
2771
2772 * globals.h: New file.
2773 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2774 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2775 (Vwindow_system_version): Remove declaration.
2776 * w32term.h (Vw32_enable_palette)
2777 (Vx_pixel_size_width_font_regexp): Remove declaration.
2778 * w32menu.c (Voverriding_local_map)
2779 (Voverriding_local_map_menu_flag): Remove declaration.
2780 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2781 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2782 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2783 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2784 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2785 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2786 (w32_use_full_screen_buffer): Remove declaration.
2787 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2788 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2789 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2790 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2791 (no_redraw_on_reenter, visible_bell): Remove declaration.
2792 * sysdep.c (Vsystem_name): Remove declaration.
2793 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2794 * menu.h (Vmenu_updating_frame): Remove declaration.
2795 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2796 Remove declaration.
2797 * lisp.h (Vafter_init_time, Vafter_load_alist)
2798 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2799 (Vcompletion_regexp_list, Vcurrent_load_list)
2800 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2801 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2802 (Vexec_directory, Vexec_path, Vexec_suffixes)
2803 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2804 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2805 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2806 (Vinstallation_directory, Vinvocation_directory)
2807 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2808 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2809 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2810 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2811 (Vscalable_fonts_allowed, Vselect_active_regions)
2812 (Vshell_file_name, Vstandard_input, Vstandard_output)
2813 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2814 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2815 (Vuser_login_name, Vwindow_scroll_functions)
2816 (Vwindow_system_version, Vx_no_window_manager)
2817 (Vx_resource_class, Vx_resource_name, baud_rate)
2818 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2819 (history_delete_duplicates, inhibit_x_resources)
2820 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2821 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2822 (use_dialog_box, use_file_dialog): Remove declaration.
2823 Include globals.h.
2824 * keymap.h (Voverriding_local_map)
2825 (Voverriding_local_map_menu_flag, meta_prefix_char):
2826 Remove declaration.
2827 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2828 (Vinput_method_function, Vkey_translation_map)
2829 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2830 (do_mouse_tracking, extra_keyboard_modifiers)
2831 (num_nonmacro_input_events): Remove declaration.
2832 * intervals.h (Vchar_property_alias_alist)
2833 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2834 (Vtext_property_default_nonsticky): Remove declaration.
2835 * gtkutil.h (x_gtk_file_dialog_help_text)
2836 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2837 (x_gtk_whole_detached_tool_bar): Remove declaration.
2838 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2839 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2840 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2841 (focus_follows_mouse): Remove declaration.
2842 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2843 (Vignore_relative_composition, Votf_script_alist)
2844 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2845 Remove declaration.
2846 * font.h (Vfont_log): Remove declaration.
2847 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2848 (Vdos_windows_version, dos_codepage, dos_country_code)
2849 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2850 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2851 Remove declaration.
2852 * disptab.h (Vglyph_table, Vstandard_display_table):
2853 Remove declaration.
2854 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2855 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2856 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2857 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2858 (inverse_video, mode_line_in_non_selected_windows)
2859 (tool_bar_button_relief, tool_bar_max_label_size)
2860 (underline_minimum_offset)
2861 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2862 Remove declaration.
2863 * composite.h (Vauto_composition_function)
2864 (Vcomposition_function_table): Remove declaration.
2865 * commands.h (Vexecuting_kbd_macro)
2866 (Vminibuffer_local_completion_map)
2867 (Vminibuffer_local_filename_completion_map)
2868 (Vminibuffer_local_filename_must_match_map)
2869 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2870 (Vminibuffer_local_ns_map, Vthis_command)
2871 (Vunread_command_events, cursor_in_echo_area)
2872 (last_command_event, last_nonmenu_event, unread_command_char):
2873 Remove declaration.
2874 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2875 (Vdefault_file_name_coding_system)
2876 (Vdefault_process_coding_system, Vfile_name_coding_system)
2877 (Vlast_coding_system_used, Vlocale_coding_system)
2878 (Vselect_safe_coding_system_function)
2879 (Vtranslation_table_for_input, coding_system_require_warning)
2880 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2881 (eol_mnemonic_unix, inherit_process_coding_system):
2882 Remove declaration.
2883 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2884 Remove declaration.
2885 * character.h (Vauto_fill_chars, Vchar_direction_table)
2886 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2887 (Vscript_representative_chars, Vtranslation_table_vector)
2888 (Vunicode_category_table): Remove declaration.
2889 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2890 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2891 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2892 (inhibit_modification_hooks): Remove declaration.
2893 * xterm.c (syms_of_xterm): Update.
2894 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2895 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2896 (x_mouse_click_focus_ignore_position)
2897 (x_underline_at_descent_line)
2898 (x_use_underline_position_properties): Remove.
2899 * xsmfns.c (syms_of_xsmfns): Update.
2900 (Vx_session_id, Vx_session_previous_id): Remove.
2901 * xsettings.c (syms_of_xsettings): Update.
2902 (Vxft_settings, use_system_font): Remove.
2903 * xselect.c (syms_of_xselect): Update.
2904 (Vselection_converter_alist, Vx_lost_selection_functions)
2905 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2906 * xfns.c (syms_of_xfns): Update.
2907 (Vgtk_version_string, Vmotif_version_string)
2908 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2909 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2910 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2911 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2912 (Vx_sensitive_text_pointer_shape)
2913 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2914 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2915 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2916 Remove.
2917 * xfaces.c (syms_of_xfaces): Update.
2918 (Vface_default_stipple, Vface_font_rescale_alist)
2919 (Vface_ignored_fonts, Vface_new_frame_defaults)
2920 (Vface_remapping_alist, Vfont_list_limit)
2921 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2922 * xdisp.c (syms_of_xdisp): Update.
2923 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2924 (Vdisplay_pixels_per_inch, Vfontification_functions)
2925 (Vframe_title_format, Vglobal_mode_string)
2926 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2927 (Vicon_title_format, Vinhibit_redisplay)
2928 (Vline_number_display_limit, Vline_prefix)
2929 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2930 (Vmenu_updating_frame, Vmessage_log_max)
2931 (Vmouse_autoselect_window, Vnobreak_char_display)
2932 (Voverlay_arrow_position, Voverlay_arrow_string)
2933 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2934 (Vresize_mini_windows, Vshow_trailing_whitespace)
2935 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2936 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2937 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2938 (Vwindow_text_change_functions, Vwrap_prefix)
2939 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2940 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2941 (highlight_nonselected_windows, hscroll_margin)
2942 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2943 (inhibit_menubar_update, inhibit_try_cursor_movement)
2944 (inhibit_try_window_id, inhibit_try_window_reusing)
2945 (line_number_display_limit_width)
2946 (make_cursor_line_fully_visible_p, message_truncate_lines)
2947 (mode_line_inverse_video, multiple_frames, overline_margin)
2948 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2949 (tool_bar_max_label_size, underline_minimum_offset)
2950 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2951 Remove.
2952 * window.c (syms_of_window): Update.
2953 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2954 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2955 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2956 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2957 (mode_line_in_non_selected_windows, next_screen_context_lines)
2958 (window_min_height, window_min_width): Remove.
2959 (scroll_margin): Remove declaration.
2960 * w32term.c (syms_of_w32term): Update.
2961 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2962 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2963 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2964 (w32_use_visible_system_caret, x_underline_at_descent_line)
2965 (x_use_underline_position_properties): Remove.
2966 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2967 Remove declaration.
2968 * w32select.c (syms_of_w32select): Update.
2969 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2970 * w32proc.c (syms_of_ntproc): Update.
2971 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2972 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2973 (Vw32_start_process_inherit_error_mode)
2974 (Vw32_start_process_share_console)
2975 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2976 (Vsystem_name): Remove declaration.
2977 * w32font.c (syms_of_w32font): Update.
2978 (Vw32_charset_info_alist): Remove.
2979 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2980 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2981 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2982 (Vw32_enable_palette, Vw32_lwindow_modifier)
2983 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2984 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2985 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2986 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2987 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2988 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2989 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2990 (Vx_sensitive_text_pointer_shape)
2991 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2992 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2993 (w32_mouse_move_interval)
2994 (w32_pass_extra_mouse_buttons_to_system)
2995 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2996 (w32_strict_fontnames, w32_strict_painting): Remove.
2997 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2998 (Vw32_recognize_altgr, Vwindow_system_version)
2999 (w32_num_mouse_buttons, w32_use_visible_system_caret):
3000 Remove declaration.
3001 * w32console.c (syms_of_ntterm): Update.
3002 (w32_use_full_screen_buffer): Remove.
3003 (Vtty_defined_color_alist): Remove declaration.
3004 * w16select.c (syms_of_win16select): Update.
3005 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
3006 * undo.c (syms_of_undo): Update.
3007 (Vundo_outer_limit, Vundo_outer_limit_function)
3008 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
3009 Remove.
3010 * textprop.c (syms_of_textprop): Update.
3011 (Vchar_property_alias_alist, Vdefault_text_properties)
3012 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
3013 Remove.
3014 * terminal.c (syms_of_terminal): Update.
3015 (Vdelete_terminal_functions, Vring_bell_function): Remove.
3016 * term.c (syms_of_term): Update.
3017 (Vresume_tty_functions, Vsuspend_tty_functions)
3018 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
3019 Remove.
3020 * syntax.c (syms_of_syntax): Update.
3021 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
3022 (open_paren_in_column_0_is_defun_start)
3023 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
3024 (words_include_escapes): Remove.
3025 * search.c (syms_of_search): Update.
3026 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
3027 * process.c (syms_of_process): Update.
3028 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
3029 (delete_exited_processes): Remove.
3030 * print.c (syms_of_print): Update.
3031 (Vfloat_output_format, Vprint_charset_text_property)
3032 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
3033 (Vprint_length, Vprint_level, Vprint_number_table)
3034 (Vstandard_output, print_escape_multibyte)
3035 (print_escape_newlines, print_escape_nonascii, print_quoted):
3036 Remove.
3037 * msdos.c (syms_of_msdos): Update.
3038 (Vdos_unsupported_char_glyph): Remove.
3039 (unibyte_display_via_language_environment): Remove declaration.
3040 * minibuf.c (syms_of_minibuf): Update.
3041 (Vcompletion_regexp_list, Vhistory_add_new_input)
3042 (Vhistory_length, Vminibuffer_completing_file_name)
3043 (Vminibuffer_completion_confirm)
3044 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
3045 (Vminibuffer_exit_hook, Vminibuffer_help_form)
3046 (Vminibuffer_history_position, Vminibuffer_history_variable)
3047 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
3048 (Vread_buffer_function, Vread_expression_map)
3049 (completion_ignore_case, enable_recursive_minibuffers)
3050 (history_delete_duplicates, minibuffer_allow_text_properties)
3051 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
3052 Remove.
3053 * marker.c (syms_of_marker): Update.
3054 (byte_debug_flag): Remove.
3055 * macros.c (syms_of_macros): Update.
3056 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
3057 * lread.c (syms_of_lread): Update.
3058 (Vafter_load_alist, Vbyte_boolean_vars)
3059 (Vbytecomp_version_regexp, Vcurrent_load_list)
3060 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
3061 (Vload_history, Vload_path, Vload_read_function)
3062 (Vload_source_file_function, Vload_suffixes, Vobarray)
3063 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
3064 (Vread_symbol_positions_list, Vread_with_symbol_positions)
3065 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
3066 (force_load_messages, load_convert_to_unibyte)
3067 (load_dangerous_libraries, load_force_doc_strings)
3068 (load_in_progress): Remove.
3069 * keymap.c (syms_of_keymap): Update.
3070 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
3071 (Vminibuffer_local_completion_map)
3072 (Vminibuffer_local_filename_completion_map)
3073 (Vminibuffer_local_filename_must_match_map)
3074 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
3075 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
3076 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
3077 Remove.
3078 * keyboard.c (syms_of_keyboard): Update.
3079 (Vauto_save_timeout, Vcommand_error_function)
3080 (Vcommand_hook_internal, Vdeactivate_mark)
3081 (Vdeferred_action_function, Vdeferred_action_list)
3082 (Vdisable_point_adjustment, Vdouble_click_time)
3083 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
3084 (Vfunction_key_map, Vglobal_disable_point_adjustment)
3085 (Vhelp_char, Vhelp_event_list, Vhelp_form)
3086 (Vinput_method_function, Vinput_method_previous_message)
3087 (Vkey_translation_map, Vlast_event_frame)
3088 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
3089 (Vminibuffer_message_timeout, Voverriding_local_map)
3090 (Voverriding_local_map_menu_flag, Vpost_command_hook)
3091 (Vpre_command_hook, Vprefix_help_command)
3092 (Vsaved_region_selection, Vselect_active_regions)
3093 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
3094 (Vthis_command, Vthis_command_keys_shift_translated)
3095 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
3096 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
3097 (Vtty_erase_char, Vunread_command_events)
3098 (Vunread_input_method_events, Vunread_post_input_method_events)
3099 (auto_save_interval, cannot_suspend, do_mouse_tracking)
3100 (double_click_fuzz, extra_keyboard_modifiers)
3101 (inhibit_local_menu_bar_menus, last_command_event)
3102 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
3103 (menu_prompting, meta_prefix_char, num_input_keys)
3104 (num_nonmacro_input_events, polling_period, unread_command_char):
3105 Remove.
3106 * insdel.c (syms_of_insdel): Update.
3107 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
3108 * indent.c (syms_of_indent): Update.
3109 (indent_tabs_mode): Remove.
3110 * image.c (syms_of_image): Update.
3111 (Vimage_cache_eviction_delay, Vimage_types)
3112 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
3113 (cross_disabled_images): Remove.
3114 * fringe.c (syms_of_fringe): Update.
3115 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
3116 * frame.c (syms_of_frame): Update.
3117 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
3118 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
3119 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
3120 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
3121 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
3122 Remove.
3123 * fontset.c (syms_of_fontset): Update.
3124 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
3125 (Vfontset_alias_alist, Vignore_relative_composition)
3126 (Votf_script_alist, Vuse_default_ascent)
3127 (Vvertical_centering_font_regexp): Remove.
3128 * font.c (syms_of_font): Update.
3129 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
3130 (Vfont_weight_table, Vfont_width_table): Remove.
3131 * fns.c (syms_of_fns): Update.
3132 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
3133 * filelock.c (syms_of_filelock): Update.
3134 (Vtemporary_file_directory): Remove.
3135 * fileio.c (syms_of_fileio): Update.
3136 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
3137 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
3138 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
3139 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
3140 (Vinhibit_file_name_operation, Vset_auto_coding_function)
3141 (Vwrite_region_annotate_functions)
3142 (Vwrite_region_annotations_so_far)
3143 (Vwrite_region_post_annotation_function)
3144 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
3145 (Vw32_get_true_file_attributes): Remove declaration.
3146 * eval.c (syms_of_eval): Update.
3147 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
3148 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
3149 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
3150 (debug_on_next_call, debug_on_quit, debugger_may_continue)
3151 (max_lisp_eval_depth, max_specpdl_size): Remove.
3152 * emacs.c (syms_of_emacs): Update.
3153 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
3154 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
3155 (Vinstallation_directory, Vinvocation_directory)
3156 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
3157 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
3158 (Vsystem_configuration, Vsystem_configuration_options)
3159 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
3160 (inhibit_x_resources, noninteractive1): Remove.
3161 * editfns.c (syms_of_editfns): Update.
3162 (Vbuffer_access_fontified_property)
3163 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
3164 (Voperating_system_release, Vsystem_name, Vuser_full_name)
3165 (Vuser_login_name, Vuser_real_login_name): Remove.
3166 * dosfns.c (syms_of_dosfns): Update.
3167 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
3168 (dos_codepage, dos_country_code, dos_decimal_point)
3169 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
3170 (dos_super_key, dos_timezone_offset): Remove.
3171 * doc.c (syms_of_doc): Update.
3172 (Vbuild_files, Vdoc_file_name): Remove.
3173 * dispnew.c (syms_of_display): Update.
3174 (Vglyph_table, Vinitial_window_system)
3175 (Vredisplay_preemption_period, Vstandard_display_table)
3176 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
3177 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
3178 * dired.c (syms_of_dired): Update.
3179 (Vcompletion_ignored_extensions): Remove.
3180 (Vw32_get_true_file_attributes): Remove declaration.
3181 * dbusbind.c (syms_of_dbusbind): Update.
3182 (Vdbus_debug, Vdbus_registered_buses)
3183 (Vdbus_registered_objects_table): Remove.
3184 * data.c (syms_of_data): Update.
3185 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
3186 * composite.c (syms_of_composite): Update.
3187 (Vauto_composition_function, Vauto_composition_mode)
3188 (Vcompose_chars_after_function, Vcomposition_function_table):
3189 Remove.
3190 * coding.c (syms_of_coding): Update.
3191 (Vcharset_revision_table, Vcoding_category_list)
3192 (Vcoding_system_alist, Vcoding_system_for_read)
3193 (Vcoding_system_for_write, Vcoding_system_list)
3194 (Vdefault_process_coding_system, Venable_character_translation)
3195 (Vfile_coding_system_alist, Vlast_code_conversion_error)
3196 (Vlast_coding_system_used, Vlatin_extra_code_table)
3197 (Vlocale_coding_system, Vnetwork_coding_system_alist)
3198 (Vprocess_coding_system_alist)
3199 (Vselect_safe_coding_system_function)
3200 (Vstandard_translation_table_for_decode)
3201 (Vstandard_translation_table_for_encode)
3202 (Vtranslation_table_for_input, coding_system_require_warning)
3203 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
3204 (eol_mnemonic_unix, inherit_process_coding_system)
3205 (inhibit_eol_conversion, inhibit_iso_escape_detection)
3206 (inhibit_null_byte_detection): Remove.
3207 * cmds.c (syms_of_cmds): Update.
3208 (Vpost_self_insert_hook): Remove.
3209 * charset.c (syms_of_charset): Update.
3210 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
3211 (inhibit_load_charset_map): Remove.
3212 * character.c (syms_of_character): Update.
3213 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
3214 (Vchar_width_table, Vprintable_chars)
3215 (Vscript_representative_chars, Vtranslation_table_vector)
3216 (Vunicode_category_table): Remove.
3217 * ccl.c (syms_of_ccl): Update.
3218 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
3219 (Vtranslation_hash_table_vector): Remove.
3220 * category.c (syms_of_category): Update.
3221 (Vword_combining_categories, Vword_separating_categories): Remove.
3222 * callproc.c (syms_of_callproc): Update.
3223 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
3224 (Vexec_directory, Vexec_path, Vexec_suffixes)
3225 (Vinitial_environment, Vprocess_environment)
3226 (Vshared_game_score_directory, Vshell_file_name): Remove.
3227 * callint.c (syms_of_callint): Update.
3228 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
3229 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
3230 * bytecode.c (syms_of_bytecode): Update.
3231 (Vbyte_code_meter, byte_metering_on): Remove.
3232 * buffer.c (syms_of_buffer): Update.
3233 (Vafter_change_functions, Vbefore_change_functions)
3234 (Vchange_major_mode_hook, Vfirst_change_hook)
3235 (Vinhibit_read_only, Vkill_buffer_query_functions)
3236 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
3237 * alloc.c (syms_of_alloc): Update.
3238 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
3239 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
3240 (cons_cells_consed, floats_consed, garbage_collection_messages)
3241 (gc_cons_threshold, gcs_done, intervals_consed)
3242 (misc_objects_consed, pure_bytes_used, string_chars_consed)
3243 (strings_consed, symbols_consed, vector_cells_consed): Remove.
3244
3245 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3246 (DEFVAR_INT): Assume global is in `globals'.
3247 * alloc.c (globals): Define.
3248
3249 2011-01-18 Tom Tromey <tromey@redhat.com>
3250
3251 * image.c (Vimagemagick_render_type): Remove redundant
3252 definition.
3253
3254 2011-01-18 Tom Tromey <tromey@redhat.com>
3255
3256 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
3257 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
3258 (redisplay_window): Update.
3259 (syms_of_xdisp): Update.
3260
3261 2011-01-18 Tom Tromey <tromey@redhat.com>
3262
3263 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
3264 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
3265 Declare.
3266 * gtkutil.c (xg_uses_old_file_dialog):
3267 (xg_get_file_with_chooser):
3268 (xg_tool_bar_detach_callback): Don't redeclare globals.
3269
3270 2011-01-18 Tom Tromey <tromey@redhat.com>
3271
3272 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
3273 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
3274
3275 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
3276
3277 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
3278 defined __GNUC__. ../configure now checks for this GCC feature,
3279 which is now also supported by IBM and Oracle compilers.
3280 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
3281 since Solaris malloc returns mult-of-8.
3282
3283 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
3284
3285 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
3286
3287 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
3288
3289 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
3290 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
3291 * data.c (Fnumber_to_string): Use it.
3292 * print.c (float_to_string, print_object): Likewise.
3293
3294 Include <unistd.h> unilaterally.
3295 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
3296 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
3297 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
3298 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
3299 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3300 * xterm.c:
3301 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3302 unistd.h is always present now, possibly supplied by gnulib.
3303
3304 * mktime.c: Remove; moving to ../lib.
3305
3306 Use gnulib's mktime module.
3307 * deps.mk (mktime.o): Remove rule.
3308
3309 Use gnulib's ftoastr module.
3310 * print.c: Include ftoastr.h.
3311 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3312 Remove; no longer needed.
3313 (float_to_string): Use dtoastr rather than rolling our own code,
3314 which had an off-by-one bug on non-IEEE hosts.
3315
3316 Automate syncing from gnulib.
3317 * Makefile.in (lib): New macro.
3318 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3319 ($(lib)/libgnu.a): New rule.
3320 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3321
3322 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3323 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3324 so change the type of 'ign' to unsigned int from int.
3325
3326 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3327
3328 * xterm.h (struct x_display_info): Remove stray semicolon.
3329 The extra semicolon didn't conform to the C standard.
3330 Problem reported by Sun cc.
3331
3332 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3333 These changes make compilation easier to follow with Sun cc.
3334 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3335 EMACS_INT values without provoking overflow diagnostics.
3336 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3337 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3338 diagnostic with signed left shift.
3339
3340 * fileio.c (make_temp_name): Remove unreachable code.
3341
3342 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3343 Previously it was marked by preceding it with "return;", but
3344 Sun cc complains about this.
3345
3346 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3347 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3348 which fixed Bug#2370. Caught by Sun cc.
3349
3350 2011-01-15 Martin Rudalics <rudalics@gmx.at>
3351
3352 * window.c (inhibit_point_swap): New variable.
3353 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3354 point this time.
3355 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3356 of setting selected_window to nil (Bug#7728).
3357
3358 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3359
3360 * image.c (imagemagick_load_image, Finit_image_library):
3361 Free intermediate image after creating a MagickWand from it.
3362 Terminate MagickWand environment after image loading.
3363
3364 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
3365
3366 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3367 unexpected return values.
3368 (Fdbus_register_method): Remove connection initialization.
3369
3370 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
3371
3372 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3373 used by Fdbus_register_service.
3374 (QCdbus_request_name_replace_existing): Likewise.
3375 (QCdbus_request_name_do_not_queue): Likewise.
3376 (QCdbus_request_name_reply_primary_owner): Likewise.
3377 (QCdbus_request_name_reply_in_queue): Likewise.
3378 (QCdbus_request_name_reply_exists): Likewise.
3379 (QCdbus_request_name_reply_already_owner): Likewise.
3380 (Fdbus_register_service): New function.
3381 (Fdbus_register_method): Use Fdbus_register_service to do the name
3382 registration.
3383 (syms_of_dbusbind): Add symbols dbus-register-service,
3384 :allow-replacement, :replace-existing, :do-not-queue,
3385 :primary-owner, :existing, :in-queue and :already-owner.
3386
3387 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
3388
3389 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3390 when removing extra buttons.
3391
3392 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
3393
3394 * fns.c (Fyes_or_no_p): Doc fix.
3395
3396 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3397
3398 * fns.c (Fyes_or_no_p): Add usage.
3399
3400 2011-01-08 Glenn Morris <rgm@gnu.org>
3401
3402 * makefile.w32-in ($(EMACS)):
3403 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3404
3405 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3406 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3407
3408 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3409
3410 * image.c (imagemagick_load_image): Fix some resource leaks and
3411 error handling.
3412
3413 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
3414
3415 * fns.c (Fyes_or_no_p): Accept format string args.
3416
3417 2011-01-07 Glenn Morris <rgm@gnu.org>
3418
3419 * emacs.c (no_site_lisp): New int.
3420 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3421 (main): Set no_site_lisp.
3422 (standard_args): Add --no-site-lisp.
3423 * lisp.h (no_site_lisp): New int.
3424 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3425 directories to Vload_path.
3426
3427 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3428
3429 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3430
3431 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3432
3433 * dbusbind.c (Fdbus_register_method): Add optional parameter
3434 dont_register_service. Updated docstring accordingly.
3435
3436 2011-01-04 Glenn Morris <rgm@gnu.org>
3437
3438 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3439
3440 2011-01-03 Eli Zaretskii <eliz@gnu.org>
3441
3442 * image.c (png_jmpbuf): Remove definition.
3443 (my_png_error, png_load): Don't use png_jmpbuf.
3444
3445 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3446
3447 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3448
3449 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3450
3451 * image.c <Qlibpng_version>: New variable.
3452 (syms_of_image): Intern and staticpro it. Set its value to the
3453 version of PNG library we were compiled with.
3454 (my_png_error, png_load): Avoid GCC warnings about direct access
3455 to png_ptr->jmpbuf. (Bug#7716)
3456 (png_jmpbuf): New macro.
3457 (my_png_error, png_load): Use it instead of #ifdef'ing according
3458 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3459
3460 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3461
3462 * .gdbinit (xgetptr): Fix the union+lsb case.
3463 (xbacktrace): Fix the union case.
3464
3465 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3466
3467 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3468 different from selected-window's.
3469
3470 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3471
3472 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3473 equivalent of a menu item when the key sequence is given by the
3474 `:keys' attribute. (Bug#7662)
3475
3476 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3477 the basic faces are supported.
3478
3479 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
3480
3481 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3482
3483 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3484
3485 * xdisp.c (Fformat_mode_line): Fix last change.
3486
3487 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
3488
3489 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3490 faces (Bug#7587).
3491
3492 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3493
3494 * fileio.c (Fexpand_file_name): One more doc fix.
3495
3496 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
3497
3498 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3499 image or label in the container.
3500 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3501 (xg_show_toolbar_item): Function deleted.
3502 (xg_tool_item_stale_p): New function.
3503 (update_frame_tool_bar): Calculate tool-bar style once per call.
3504 Instead of hiding text labels, omit them. Don't use
3505 xg_show_toolbar_item; create new GtkToolItems from scratch if
3506 necessary, instead of trying to re-use them. This avoids an
3507 annoying animation when changing tool-bars.
3508
3509 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3510
3511 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3512 title and buffer filename only for RepresentedFilename.
3513 Handle bad UTF-8 in buffer name (Bug#7517).
3514
3515 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3516
3517 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3518
3519 * nsfns.m (ns_set_name_iconic): Remove.
3520 (ns_set_name_internal): New function (Bug#7517).
3521 (Vicon_title_format): Extern declare.
3522 (ns_set_name): Call ns_set_name_internal.
3523 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3524 (x_implicitly_set_name): Ditto.
3525 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3526 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3527
3528 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3529
3530 * window.c (syms_of_window): Add missing defsubr for
3531 window-use-time.
3532
3533 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3534
3535 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3536 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3537
3538 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3539
3540 * buffer.c: Remove unused declarations.
3541 * buffer.h: Likewise.
3542 * charset.h: Likewise.
3543 * composite.h: Likewise.
3544 * dispextern.h: Likewise.
3545 * dispnew.c: Likewise.
3546 * font.h: Likewise.
3547 * fontset.c: Likewise.
3548 * fontset.h: Likewise.
3549 * intervals.h: Likewise.
3550 * keymap.h: Likewise.
3551 * lisp.h: Likewise.
3552 * syntax.c: Likewise.
3553 * syntax.h: Likewise.
3554 * termhooks.h: Likewise.
3555 * window.h: Likewise.
3556 * xsettings.h: Likewise.
3557 * xterm.c: Likewise.
3558 * xterm.h: Likewise.
3559
3560 * chartab.c (sub_char_table_ref): Make static.
3561 * dispnew.c (line_hash_code, required_matrix_height)
3562 (required_matrix_width): Likewise.
3563 * eval.c (interactive_p, apply_lambda): Likewise.
3564 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3565 Likewise.
3566 * font.c (QCadstyle, QCregistry, font_make_spec)
3567 (font_parse_fcname, font_encode_char, font_at): Likewise.
3568 * frame.c (x_frame_get_arg): Likewise.
3569 * keymap.c (get_keyelt): Likewise.
3570 * lread.c (read_filtered_event): Likewise.
3571 * print.c (write_string_1): Likewise.
3572 * window.c (delete_window, window_height, window_width)
3573 (foreach_window): Likewise.
3574 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3575 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3576 (xembed_send_message): Likewise.
3577
3578 * eval.c (run_hook_list_with_args): Delete.
3579 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3580 * terminal.c (get_terminal_param): Likewise.
3581 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3582
3583 * scroll.c: Fix comment.
3584
3585 * dispnew.c (add_window_display_history)
3586 (add_frame_display_history, glyph_row_slice_p)
3587 (find_glyph_row_slice, flush_stdout)
3588 (check_matrix_pointer_lossage, matrix_row)
3589 (check_matrix_invariants, check_window_matrix_pointers)
3590 (check_matrix_pointers, window_to_frame_vpos)
3591 (window_to_frame_hpos): Prototize.
3592 * textprop.c (erase_properties): Likewise.
3593
3594 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3595
3596 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3597 (print_preprocess): Fix handling of uninterned symbols in last change.
3598
3599 * print.c (print, print_preprocess, print_object): Use a hash table
3600 rather than a linear table for Vprint_number_table.
3601
3602 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3603
3604 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3605
3606 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3607
3608 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3609 (parse_tool_bar_item): Use it to obtain image separators for
3610 displays not using native tool-bar separators.
3611
3612 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3613 specially, since this is now done in parse_tool_bar_item.
3614
3615 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3616
3617 Minor clean up to silence some gcc warnings.
3618 * window.c (Fset_window_buffer):
3619 * xterm.c (x_set_frame_alpha): Restructure code to silence
3620 compiler warning.
3621 (handle_one_xevent): Remove unused var `p'.
3622 (do_ewmh_fullscreen): Remove unused var `lval'.
3623 (xembed_set_info): Remove unused var `atom'.
3624 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3625 compiler warning.
3626 * fontset.c (fontset_id_valid_p, dump_fontset):
3627 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3628 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3629 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3630 label only when it's used.
3631 * image.c (x_create_bitmap_from_xpm_data):
3632 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3633 its callers.
3634 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3635 `consumed_chars'.
3636 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3637 (decode_coding_emacs_mule): Remove unused label `retry'.
3638 (detect_eol): Add parens to silence compiler warning.
3639 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3640 it's used to silence the compiler.
3641 (make_number): Modernize k&r declaration.
3642 (mark_char_table): Add parens to silence compiler warning.
3643
3644 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
3645
3646 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3647 tool-bar maps.
3648 (menu_separator_name_p): New function, from gtkutil.c.
3649 (separator_names): Move from gtkutil.c.
3650
3651 * keyboard.h (menu_separator_name_p): Add prototype.
3652
3653 * gtkutil.c (XG_BIN_CHILD): New macro.
3654 (xg_get_menu_item_label, xg_update_menubar)
3655 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3656 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3657 (separator_names, xg_separator_p): Move to keyboard.c.
3658 (create_menus, xg_update_submenu, update_frame_tool_bar):
3659 Use menu_separator_name_p.
3660
3661 * nsmenu.m (name_is_separator): Function deleted.
3662 (addItemWithWidgetValue): Use menu_separator_name_p.
3663
3664 * w32menu.c (name_is_separator): Function deleted.
3665 (add_menu_item): Use menu_separator_name_p.
3666
3667 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3668
3669 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3670 same as the background, use the face forground as cursor.
3671
3672 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3673
3674 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3675
3676 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3677
3678 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3679 (face_before_or_after_it_pos, next_element_from_string)
3680 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3681 calculations of maximum string length before calling
3682 string_char_and_length and STRING_CHAR_AND_LENGTH.
3683 (string_char_and_length): Update commentary: MAXLEN is no longer
3684 needed.
3685
3686 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3687
3688 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3689 as (Qsave_session arg).
3690
3691 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3692 (smc_die_CB): Make an event with arg Qt.
3693 (Fhandle_save_session): If event has Qt as argument,
3694 call Fkill_emacs (Bug#7552).
3695
3696 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3697
3698 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3699
3700 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3701
3702 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3703
3704 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3705
3706 * dispextern.h (struct it): New member overlay_strings_charpos.
3707
3708 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3709 charpos where we computed n_overlay_strings.
3710 (next_overlay_string): Load overlay strings at recorded position,
3711 which may not be the same as the iterator's charpos (Bug#7016).
3712
3713 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3714
3715 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3716 obscured due to a vscroll (Bug#7537).
3717
3718 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3719
3720 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3721
3722 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3723 Use FRAME_TOOLBAR_HEIGHT.
3724 (x_set_offset): Handle XNegative and YNegative in
3725 f->size_hint_flags (Bug#7510).
3726
3727 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3728
3729 * w32fns.c (Fx_show_tip): Call try_window with last argument
3730 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3731 solved. Round up the tip height to an integral multiple of the
3732 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3733 (Bug#7398)
3734
3735 2010-12-08 Glenn Morris <rgm@gnu.org>
3736
3737 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3738
3739 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3740
3741 * xml.c (parse_region): Ignore blank HTML nodes.
3742 (make_dom): Return CDATA sections (like <style>foo</style>) as
3743 text nodes.
3744
3745 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3746
3747 * lread.c (read1): Allow newstyle unquote outside of backquote.
3748 Disallow old-style backquotes inside new-style backquotes.
3749 Don't count unquotes to figure out when we're "syntactically inside
3750 but semantically outside of a backquote" any more.
3751 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3752 to all contexts.
3753
3754 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3757
3758 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3759
3760 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3761 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3762 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3763
3764 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3765
3766 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3767 bit-field.
3768 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3769 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3770 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3771 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3772 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3773 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3774 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3775 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3776 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3777 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3778 * m/hp800.h: Remove file.
3779 * m/mips.h: Remove file.
3780
3781 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3782
3783 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3784 with cursor color and draw a rectangle around the image (Bug#7412).
3785
3786 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3787
3788 * frame.c (x_set_font): Remove unused variable.
3789
3790 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3791
3792 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3793
3794 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3795 drawing text under filled box cursor (Bug#7479).
3796
3797 2010-11-27 Kenichi Handa <handa@m17n.org>
3798
3799 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3800 i.e. integer.
3801 (Fdefine_charset_internal): Adjust for the above change.
3802 (init_charset_once): Likewise.
3803
3804 * charset.h (emacs_mule_charset): Adjust the prototype.
3805 Delete duplicated extern.
3806
3807 * coding.c (emacs_mule_char): Adjust for the change of
3808 emacs_mule_charset.
3809
3810 * lread.c (read_emacs_mule_char): Adjust for the change of
3811 emacs_mule_charset.
3812
3813 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3814
3815 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3816 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3817
3818 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3819
3820 * alloc.c (mark_terminals): Ensure that the image cache is marked
3821 even if the terminal object was marked earlier (Bug#6301).
3822
3823 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3824
3825 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3826
3827 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3828
3829 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3830 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3831 Use 23 as menubar height if 0. (Bug#7425).
3832
3833 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3834
3835 * xdisp.c (set_message_1): Force paragraph direction in echo area
3836 be left-to-right.
3837
3838 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3839 when the click is on the header or mode line.
3840
3841 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3842
3843 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3844 `cursor' property of the first character in overlay strings.
3845 (Bug#7474) (Bug#7481)
3846
3847 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3848
3849 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3850 (NSLeftAlternateKeyMask): New defines.
3851 (keyDown): Parse left and right keys separately (Bug#7458).
3852 Compare Left key masks exactly (Bug#7458).
3853
3854 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3855
3856 * intervals.c (temp_set_point_both): Define before calling, to
3857 avoid GCC warnings.
3858
3859 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3860
3861 * nsmenu.m: Use #include <config.h> instead of "config.h".
3862
3863 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3864 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3865 Move declarations ...
3866 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3867 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3868 ... here.
3869
3870 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3871 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3872 (gdb_pvec_type):
3873 * print.c (print_output_debug_flag):
3874 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3875 (safe_debug_print): New declaration.
3876
3877 * xterm.c:
3878 * systty.h:
3879 * sound.c: Include <sys/ioctl.h> unconditionally.
3880
3881 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3882
3883 * alloc.c (mark_maybe_object): Return early if given a Lisp
3884 integer (Bug#6301).
3885
3886 2010-11-21 Ken Brown <kbrown@cornell.edu>
3887
3888 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3889
3890 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3891
3892 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3893 Define (Bug#7458).
3894 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3895 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3896 NSRightControlKeyMask also (Bug#7458).
3897 (keyDown): Ditto (Bug#7458).
3898 (syms_of_nsterm): Defvar ns-right-command-modifier and
3899 ns-right-control-modifier (Bug#7458).
3900
3901 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3902
3903 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3904 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3905
3906 * intervals.h (temp_set_point, temp_set_point_both):
3907 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3908
3909 2010-11-20 Ken Brown <kbrown@cornell.edu>
3910
3911 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3912
3913 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3914
3915 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3916 \xNNNNNN for hex-code display of glyphless characters.
3917
3918 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3919
3920 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3921 Set important to ! vert_only.
3922 (xg_show_toolbar_item): Don't show label horizontally if
3923 tool item isn't important.
3924 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3925 xg_make_tool_item, or update important on existing tool item.
3926
3927 * keyboard.c (QCvert_only): New variable.
3928 (parse_tool_bar_item): Check for QCvert_only.
3929 (syms_of_keyboard): Initialize QCvert_only.
3930
3931 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3932
3933 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3934
3935 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3936 same in-line.
3937
3938 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3939
3940 * xfaces.c (lookup_face): Make static.
3941 * dispnew.c (copy_row_except_pointers): Likewise.
3942 * syntax.c (dec_bytepos): Likewise.
3943 (inc_bytepos): Remove.
3944 * dispextern.h (lookup_face): Remove declaration.
3945
3946 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3947
3948 * xdisp.c (set_cursor_from_row): Display cursor after all the
3949 glyphs that come from an overlay. Don't overstep the last glyph
3950 when skipping glyphs from an overlay. (Bug#6687)
3951
3952 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3953
3954 * alloc.c (refill_memory_reserve): Move declaration ...
3955 * lisp.h (refill_memory_reserve): ... here.
3956
3957 * strftime.c (_strftime_copytm): Add declaration.
3958
3959 * callproc.c (syms_of_callproc): Use intern_c_string.
3960
3961 Move declarations from .c files to .h files.
3962 * process.c (timers_run):
3963 * minibuf.c (quit_char):
3964 * lread.c (read_emacs_mule_char):
3965 * keyboard.c (minibuf_level, message_enable_multibyte)
3966 (pending_malloc_warning):
3967 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3968 (Qonly): Remove declarations.
3969 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3970 (Vselect_active_regions):
3971 * keyboard.h (timers_run): Add declarations.
3972
3973 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3974 (tm_diff): Convert definitions to standard C.
3975 (extra_args_spec_iso): Remove, unused.
3976
3977 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3978
3979 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3980
3981 * config.in (HAVE_G_TYPE_INIT): New symbol.
3982
3983 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3984
3985 * lread.c (Fload): Mention `load-in-progress' and
3986 `load-file-name'. (Bug#7346)
3987
3988 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3989 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3990 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3991 subprocesses. Use buffer_free only ifdef subprocesses.
3992
3993 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3994 the subprocesses version, not in the non-subprocesses one.
3995
3996 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3997
3998 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3999
4000 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
4001 lines on text-mode terminals. (bug#7417)
4002
4003 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4004
4005 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
4006 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
4007
4008 2010-11-17 Kenichi Handa <handa@m17n.org>
4009
4010 * coding.c (Fset_terminal_coding_system_internal): Fix previous
4011 change (set charset-ID list instead of charset-symbol list).
4012
4013 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
4014
4015 * keyboard.c (make_lispy_position): For text area clicks, record Y
4016 pixel position relative to the text area, excluding header line.
4017 Also change X and Y to Lisp_Objects, not pointers; don't return
4018 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
4019 buffer_posn_from_coords counting from the start of the text area.
4020 (Fposn_at_x_y, make_lispy_event): Callers changed.
4021
4022 * window.c (coordinates_in_window): Change X and Y to ints rather
4023 than pointers; don't return coordinates via pointers.
4024 (struct check_window_data): Change X and Y from pointers to ints.
4025 (window_from_coordinates): Remove args WX and WY; don't return
4026 coordinates via pointers.
4027 (Fcoordinates_in_window_p, window_from_coordinates):
4028 (check_window_containing, Fwindow_at): Callers changed.
4029 (window_relative_x_coord): New function.
4030
4031 * window.h (window_from_coordinates, window_relative_x_coord):
4032 Update prototypes.
4033
4034 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
4035 the start of the text area.
4036
4037 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
4038 call. Use window_relative_x_coord.
4039 (note_mouse_highlight): Change window_from_coordinates call.
4040
4041 * w32term.c (w32_read_socket):
4042 * msdos.c (dos_rawgetc):
4043 * xterm.c (handle_one_xevent): Likewise.
4044
4045 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
4046
4047 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
4048 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
4049 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
4050 Convert definitions to standard C.
4051 * regex.c: Do not include <stdlib.h>, config.h does it.
4052 Include unistd.h.
4053 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
4054 (regerror, regfree): Convert definitions to standard C.
4055 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
4056 (__mktime_internal): Convert definitions to standard C.
4057
4058 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
4059
4060 * w32proc.c:
4061 * w32inevt.c:
4062 * w32heap.c:
4063 * w32.c: Remove config.h include guards.
4064
4065 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
4066 No code changes.
4067
4068 * process.c: Include <sys/ioctl.h> unconditionally,
4069 keyboard.c already does it.
4070
4071 * keyboard.c (pending_malloc_warning): Add const to match
4072 definition in alloc.c.
4073 (Fset_input_interrupt_mode): Simplify #ifdefs.
4074
4075 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
4076
4077 Clean up systty.h macros.
4078 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
4079 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
4080 definition in all uses.
4081 (EMACS_TTY_TABS_OK): Remove, it has a single user.
4082 * sysdep.c (discard_tty_input, child_setup_tty)
4083 (init_sys_modes, tabs_safe_p, reset_sys_modes):
4084 * emacs.c (shut_down_emacs):
4085 * callproc.c (child_setup):
4086 * term.c (dissociate_if_controlling_tty): Inline removed macros.
4087
4088 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
4089
4090 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * w32fns.c (Fx_create_frame):
4093 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
4094 resource here; it's now done at startup.
4095
4096 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
4097
4098 * xterm.c (set_wm_state): Add Qnil to final cons.
4099
4100 * xselect.c (x_send_client_event): Remove unused variables cons and
4101 size.
4102
4103 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4104
4105 * keyboard.c (modify_event_symbol): Add const to array elements of
4106 arg NAME_TABLE.
4107 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
4108 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
4109 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
4110 Add const to array elements.
4111 (scroll_bar_parts): Make static. Fix position of const.
4112
4113 * w32fns.c (lispy_function_keys): Add const to extern.
4114
4115 * w32inevt.c (lispy_function_keys): Likewise.
4116
4117 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
4118
4119 * xfns.c (Fx_create_frame): Don't check for the cursorColor
4120 resource here; it's now done at startup.
4121
4122 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
4123
4124 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
4125
4126 Fix compilation on Solaris.
4127 * sysdep.c: Do not #include <term.h>.
4128 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
4129
4130 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
4131
4132 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
4133
4134 * xterm.c (set_wm_state): Don't put Atom in cons, call
4135 make_fixnum_or_float on them first.
4136 (x_term_init): Initialize Xatom_net_supporting_wm_check and
4137 Xatom_net_supported correctly.
4138
4139 * xselect.c (x_send_client_event): Move CHECK_STRING ...
4140 (Fx_send_client_event): to here.
4141
4142 2010-11-13 Martin Rudalics <rudalics@gmx.at>
4143
4144 * window.c (Fwindow_use_time): New function.
4145
4146 2010-11-13 Eli Zaretskii <eliz@gnu.org>
4147
4148 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
4149 zero-width characters.
4150
4151 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
4152
4153 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
4154 box before drawing the glyphs inside it.
4155
4156 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
4157
4158 * dispextern.h (enum glyphless_display_method):
4159 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
4160 All users changed.
4161
4162 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4163 Fix comments.
4164 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
4165 whitespace in "[]", to simulate a box. Don't use uninitialized
4166 variable `width'.
4167
4168 2010-11-11 Julien Danjou <julien@danjou.info>
4169
4170 * xsettings.c (init_xsettings): Use already fetch atoms.
4171
4172 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
4173 from dpyinfo.
4174
4175 * xselect.c (Fx_send_client_event): Split and create
4176 x_send_client_event.
4177
4178 * lisp.h: Do not EXFUN Fx_send_client_event.
4179
4180 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
4181 from dpyinfo.
4182 (wm_supports): Use atoms from dpyinfo.
4183 (do_ewmh_fullscreen): Use atoms from dpyinfo.
4184 (x_ewmh_activate_frame): Use atoms from dpyinfo.
4185 (xembed_set_info): Use atoms from dpyinfo.
4186 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
4187 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
4188 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
4189 Get all atoms in one round-trip.
4190 (set_wm_state): Use x_send_client_event rather than
4191 Fx_send_client_event, using Atom directly.
4192 (x_ewmh_activate_frame): Ditto.
4193 (x_set_sticky): Pass atoms to set_wm_state.
4194 (do_ewmh_fullscreen): Ditto.
4195
4196 * xterm.h (x_display_info): Add Xatom_net_supported,
4197 Xatom_net_supporting_wm_check, Xatom_net_active_window,
4198 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
4199
4200 * xfns.c (Fx_show_tip): Fix typo in docstring.
4201
4202 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
4203
4204 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
4205 it's not negative.
4206
4207 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4208
4209 * font.c (font_filter_properties): Add const to array elements of
4210 properties args.
4211
4212 * font.h (font_filter_properties): Likewise.
4213
4214 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
4215 elements.
4216
4217 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
4218
4219 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
4220
4221 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
4222 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
4223 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
4224 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
4225 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
4226
4227 2010-11-10 Glenn Morris <rgm@gnu.org>
4228
4229 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
4230
4231 2010-11-09 Eli Zaretskii <eliz@gnu.org>
4232
4233 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
4234
4235 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
4236
4237 * image.c (free_image): Don't garbage the frame here, since this
4238 function can be called while redisplaying (Bug#7210).
4239 (uncache_image): Garbage the frame here (Bug#6426).
4240
4241 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
4242
4243 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
4244 parent is the root window. Check this after traversing window tree.
4245
4246 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
4247
4248 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
4249
4250 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
4251 before traversing window tree (Bug#5721).
4252
4253 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
4254
4255 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
4256
4257 * xdisp.c (note_mode_line_or_margin_highlight):
4258 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
4259
4260 2010-11-06 Eli Zaretskii <eliz@gnu.org>
4261
4262 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
4263 adjust width of tool-tip frame to the width of text, excluding the
4264 stretch glyph at the beginning of R2L glyph rows.
4265
4266 * w32fns.c (Fx_show_tip): Likewise.
4267
4268 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
4269
4270 * nsfont.m: Include termchar for new mouse-highlight.
4271 (nsfont_draw): Use MOUSE_HL_INFO.
4272
4273 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4274
4275 Unify mouse-highlight code for all GUI and TTY sessions.
4276
4277 * term.c: Remove static mouse_face_* variables. All users
4278 changed.
4279 (term_show_mouse_face, term_clear_mouse_face)
4280 (fast_find_position, term_mouse_highlight): Functions deleted.
4281 (tty_draw_row_with_mouse_face): New function.
4282 (term_mouse_movement): Call note_mouse_highlight instead of
4283 term_mouse_highlight.
4284
4285 * nsterm.m (ns_update_window_begin, ns_update_window_end)
4286 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
4287 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4288 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
4289 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
4290 Replace Display_Info with Mouse_HLInfo everywhere where
4291 mouse_face_* members were accessed for mouse highlight purposes.
4292
4293 * xterm.c (x_update_window_begin, x_update_window_end)
4294 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
4295 (handle_one_xevent, x_free_frame_resources, x_term_init):
4296 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
4297 members were accessed for mouse highlight purposes.
4298
4299 * w32term.c (x_update_window_begin, x_update_window_end)
4300 (x_update_end, w32_read_socket, x_free_frame_resources)
4301 (w32_initialize_display_info): Replace Display_Info with
4302 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4303 for mouse highlight purposes.
4304
4305 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4306 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4307 unless the frame is on a window-system.
4308 (get_tool_bar_item, handle_tool_bar_click)
4309 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4310 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4311 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4312 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4313 Replace Display_Info with Mouse_HLInfo everywhere where
4314 mouse_face_* members were accessed for mouse highlight purposes.
4315 (coords_in_mouse_face_p): Move prototype out of the
4316 HAVE_WINDOW_SYSTEM conditional.
4317 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4318 HAVE_WINDOW_SYSTEM block.
4319 (try_window_id) [HAVE_GPM || MSDOS]:
4320 Call x_clear_window_mouse_face.
4321 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
4322 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4323 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4324 calling draw_glyphs directly.
4325 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4326 (cursor_in_mouse_face_p, rows_from_pos_range)
4327 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4328 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4329 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4330 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4331 fragments.
4332 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4333 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4334 integer.
4335 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
4336 (x_consider_frame_title, tool_bar_lines_needed):
4337 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
4338 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4339 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4340 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4341 part.
4342
4343 * dispnew.c (mirror_make_current): Set Y coordinate of the
4344 mode-line and header-line rows.
4345 (init_display): Setup initial frame's output_data for text
4346 terminal frames.
4347
4348 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4349 its own definition on msdos.c.
4350
4351 * msdos.c (show_mouse_face, clear_mouse_face)
4352 (fast_find_position, IT_note_mode_line_highlight)
4353 (IT_note_mouse_highlight): Functions deleted.
4354 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4355 instead of IT_note_mouse_highlight.
4356 (draw_row_with_mouse_face, popup_activated): New functions.
4357 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4358 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4359 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4360 where mouse_face_* members were accessed for mouse highlight
4361 purposes.
4362
4363 * msdos.h (initialize_msdos_display): Add prototype.
4364
4365 * frame.h (MOUSE_HL_INFO): New macro.
4366
4367 * lisp.h (Mouse_HLInfo): New data type.
4368
4369 * xterm.h (struct x_display_info):
4370 * w32term.h (struct w32_display_info):
4371 * nsterm.h (struct ns_display_info):
4372 * termchar.h (struct tty_display_info): Use it instead of
4373 mouse_face_* members.
4374
4375 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4376 1st argument.
4377 (frame_to_window_pixel_xy, note_mouse_highlight)
4378 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4379 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4380 HAVE_WINDOW_SYSTEM conditional.
4381 (draw_row_with_mouse_face): Declare prototype.
4382 (tty_draw_row_with_mouse_face): Declare prototype.
4383
4384 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4385
4386 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4387 Remove unused variables.
4388
4389 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4390
4391 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4392 logic pointed out by Eli Zaretskii.
4393
4394 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4395
4396 * coding.c (coding-category-list): Refer to set-coding-system-priority
4397 instead of the obsolete set-coding-priority in the doc string.
4398
4399 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4400
4401 * nsfont.m (nsfont_draw): Correct previous patch to return
4402 correct value.
4403 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4404 don't change the method signature, change the return.
4405
4406 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
4407
4408 * nsfont.m (nsfont_draw)
4409 * nsimage.m (EmacsImage-setXBMColor:)
4410 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
4411
4412 2010-11-03 Julien Danjou <julien@danjou.info>
4413
4414 * image.c (gif_load): Add support for transparency and specified
4415 :background.
4416
4417 2010-11-01 Kenichi Handa <handa@m17n.org>
4418
4419 * dispextern.h (lookup_glyphless_char_display): Extern it.
4420
4421 * termhooks.h (struct terminal): New member charset_list.
4422
4423 * coding.c (Fset_terminal_coding_system_internal): Set the
4424 `charset_list' member of struct terminal.
4425
4426 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
4427 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4428
4429 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4430 (lookup_glyphless_char_display): Set it->what at the end.
4431 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4432 (last_glyphless_glyph_merged_face_id): Make them non-static.
4433
4434 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4435 Fix the arg with_background for font->driver->draw.
4436
4437 2010-11-01 Kenichi Handa <handa@m17n.org>
4438
4439 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4440 Surround chp by parentheses.
4441
4442 2010-11-01 Kenichi Handa <handa@m17n.org>
4443
4444 Implement various display methods for glyphless characters.
4445
4446 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4447 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4448 (Qzero_width): New variables.
4449 (THIN_SPACE_WIDTH): New macro.
4450 (lookup_glyphless_char_display): New function.
4451 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4452 (last_glyphless_glyph_merged_face_id): New variables.
4453 (get_next_display_element): Check glyphless characters.
4454 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4455 last_glyphless_glyph_face_id.
4456 (fill_glyphless_glyph_string): New function.
4457 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4458 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4459 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4460 (x_produce_glyphs): If a suitable font is not found, produce a
4461 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4462 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4463 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4464 Qzero_width.
4465 (Vglyphless_char_display): Declare it as a Lisp variable.
4466
4467 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4468 (struct glyph): Change the size of the member "type" to 3.
4469 Add glyphless to the union slice and u.
4470 (enum display_element_type): Add IT_GLYPHLESS.
4471 (enum glyphless_display_method): New enum.
4472 (struct it): New member glyphless_method.
4473 (Vglyphless_char_display): Extern it.
4474
4475 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4476 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4477
4478 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4479 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4480
4481 * nsterm.m (ns_draw_glyph_string): Handle the case
4482 GLYPHLESS_GLYPH (the detail is not yet implemented).
4483
4484 2010-10-31 Glenn Morris <rgm@gnu.org>
4485
4486 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4487
4488 * frame.c (syms_of_frame) <tool-bar-mode>:
4489 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4490
4491 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
4492
4493 * xterm.c (x_connection_closed): Print informative error message
4494 when aborting on GTK. This requires using shut_down_emacs
4495 directly instead of Fkill_emacs.
4496
4497 2010-10-29 Eli Zaretskii <eliz@gnu.org>
4498
4499 * emacs.c (main): Call syms_of_filelock unconditionally.
4500
4501 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4502 clause, but keep part of it conditioned on CLASH_DETECTION.
4503
4504 2010-10-29 Glenn Morris <rgm@gnu.org>
4505
4506 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4507 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4508 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4509 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4510 Sync docs between X, W32, NS.
4511
4512 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4513 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4514
4515 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
4516
4517 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4518 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4519
4520 2010-10-26 Eli Zaretskii <eliz@gnu.org>
4521
4522 * cmds.c (internal_self_insert): Don't insert if argument N is
4523 zero or negative. (Bug#7281)
4524
4525 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4526
4527 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4528
4529 2010-10-25 Glenn Morris <rgm@gnu.org>
4530
4531 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4532
4533 2010-10-24 Glenn Morris <rgm@gnu.org>
4534
4535 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4536 (Fx_window_property, Fx_file_dialog):
4537 * xfns.c (Fx_synchronize, Fx_change_window_property)
4538 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4539
4540 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
4541
4542 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4543
4544 2010-10-24 Eli Zaretskii <eliz@gnu.org>
4545
4546 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4547
4548 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4549 Deprecate use as a boolean flag.
4550
4551 2010-10-24 Jim Meyering <jim@meyering.net>
4552
4553 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4554
4555 2010-10-24 Glenn Morris <rgm@gnu.org>
4556
4557 * w16select.c (syms_of_win16select) <selection-coding-system>:
4558 <next-selection-coding-system>:
4559 * w32select.c (syms_of_w32select) <selection-coding-system>:
4560 <next-selection-coding-system>:
4561 Sync docs with select.el.
4562
4563 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4564 Lisp version.
4565
4566 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4567 Sync doc with the xterm.c version.
4568
4569 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4570 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4571
4572 2010-10-23 Glenn Morris <rgm@gnu.org>
4573
4574 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4575 * frame.c (syms_of_frame) <menu-bar-mode>:
4576 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4577 <hourglass-delay>: Sync docs with Lisp.
4578
4579 2010-10-23 Eli Zaretskii <eliz@gnu.org>
4580
4581 Implement mouse highlight for bidi-reordered lines.
4582
4583 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4584 (mouse_face_from_string_pos): New function, replaces
4585 fast_find_string_pos.
4586 (note_mouse_highlight): Call it instead of fast_find_string_pos.
4587 (note_mode_line_or_margin_highlight): Support bidi-reordered
4588 strings and R2L glyph rows. Fix comments.
4589 (note_mouse_highlight): When bidi reordering is turned on in a
4590 buffer, call next-single-property-change and
4591 previous-single-property-change with last argument nil.
4592 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4593 glyph that stands for no text beyond the line end.
4594 (row_containing_pos): Don't return too early when CHARPOS is in a
4595 bidi-reordered continued line. Return immediately when the first
4596 hit is found in a line that is not continued, or when an exact
4597 match for CHARPOS is found.
4598 (rows_from_pos_range): New function.
4599 (mouse_face_from_buffer_pos): Use it instead of calling
4600 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4601 function to support mouse highlight in bidi-reordered lines and
4602 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4603 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4604 that the former is always above the latter or identical to it.
4605 (show_mouse_face): Support drawing highlighted R2L lines.
4606 (coords_in_mouse_face_p): New function, bidi-aware.
4607 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4608 Call it instead of comparing with mouse-face members of dpyinfo.
4609 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4610 usage of hpos and vpos.
4611
4612 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4613
4614 * xrdb.c: Include keyboard.h for MOTIF.
4615
4616 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4617 MOTIF (Bug#7263).
4618
4619 * xfns.c: Include Xm/TextF and Xm/List.
4620 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4621 Make ANSI prototypes.
4622
4623 2010-10-22 Glenn Morris <rgm@gnu.org>
4624
4625 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4626 Remove ccl and duplicate mouse.
4627
4628 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * insdel.c (prepare_to_modify_buffer): Don't set
4631 saved-region-selection if modification hooks are disabled.
4632
4633 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
4634
4635 * cmds.c (Fdelete_char): Doc fix.
4636
4637 2010-10-19 Ken Brown <kbrown@cornell.edu>
4638
4639 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4640
4641 2010-10-19 Kenichi Handa <handa@m17n.org>
4642
4643 Fix incorrect font metrics when the same font is opened with
4644 different pixelsizes.
4645
4646 * xftfont.c: Include composite.h.
4647 (xftfont_shape): New function.
4648 (syms_of_xftfont): Set xftfont_driver.shape.
4649
4650 2010-10-18 Julien Danjou <julien@danjou.info>
4651
4652 * frame.c (Fframe_pointer_visible_p):
4653 Add `frame-pointer-visible-p' to get the pointer visibility.
4654
4655 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4656
4657 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4658 non-"EAGAIN"-like error to signal to Emacs that the socket should
4659 be closed.
4660
4661 2010-10-15 Eli Zaretskii <eliz@gnu.org>
4662
4663 * unexcoff.c (make_hdr): Fix prototype according to changes in
4664 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4665
4666 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4667
4668 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4669
4670 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4671 made building the X menu fail.
4672 (really-oldXMenu): Fix my previous fix.
4673
4674 2010-10-14 Damyan Pepper <damyanp@gmail.com>
4675
4676 Fix handling of font properties on Windows (bug#6303).
4677 * font.c (font_filter_properties): New function, refactored from
4678 ftfont_filter_properties.
4679 * font.h (font_filter_properties): Declare.
4680 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4681 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4682 (w32font_filter_properties): New function.
4683 (w32font_driver): Add w32font_filter_properties.
4684
4685 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4686
4687 * font.c (Ffont_variation_glyphs):
4688 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4689
4690 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4691
4692 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4693 * w32font.c (w32_generic_family):
4694 * w32inevt.c (key_event):
4695 * w32menu.c (fill_in_menu):
4696 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4697 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4698 * w32term.c (w32_read_socket): Make static.
4699
4700 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4701
4702 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4703 prototypes; all callers changed.
4704
4705 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4706
4707 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4708 (OBJ2): New macro.
4709 (WIN32OBJ, FONTOBJ): Remove.
4710 (OBJ1): Redistribute object files with OBJ2.
4711 (LIBS, $(TEMACS)): Use TLIB2.
4712 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4713 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4714
4715 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4716
4717 * emacs.c (Vdynamic_library_alist)
4718 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4719 Doc fix.
4720
4721 * lisp.h (Vdynamic_library_alist): Declare extern.
4722
4723 * image.c (Vimage_library_alist)
4724 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4725 (lookup_image_type): Use Vdynamic_library_alist.
4726 (Finit_image_library): Doc fix.
4727
4728 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4729
4730 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4731 (lispdir): Remove trailing /, update all uses.
4732
4733 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4734
4735 * nsterm.m (Qleft): Declare.
4736 (ns_right_alternate_modifier): New variable.
4737 (NSRightAlternateKeyMask): New define.
4738 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4739 ns_right_alternate_modifier isn't Qleft.
4740 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4741 as emacs modifier for NSRightAlternateKeyMask.
4742 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4743
4744 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4745
4746 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4747 gnutls is ready, return EAGAIN as the errno.
4748
4749 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4750
4751 * vm-limit.c:
4752 * unexhp9k800.c:
4753 * unexelf.c:
4754 * unexaix.c:
4755 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4756
4757 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4758 (PROFILING_LDFLAGS): Remove, not needed anymore.
4759
4760 * Makefile.in: Use $(...) everywhere instead of ${...}.
4761 (CRT_DIR): Move near potential user.
4762 (START_FILE): Move near CRT_DIR, it might use it.
4763
4764 * sysdep.c (LPASS8): Remove, unused.
4765 (emacs_ospeed): Change from being a global to a local in the only
4766 user: init_baud_rate.
4767
4768 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4769
4770 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4771 (emacs_gnutls_write): Remove the debuggin fsync call.
4772 (emacs_gnutls_read): Return -1 if we got an error from
4773 gnutls_read. This allows us to actually read lots of data from
4774 the GnuTLS stream.
4775 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4776 According to the documentation, this is correct, and it seems to
4777 make things work.
4778
4779 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4780
4781 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4782
4783 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4784
4785 * keyboard.c: Revert last change; it was not intended to be
4786 synchronized with the trunk.
4787
4788 2010-10-08 Kenichi Handa <handa@m17n.org>
4789
4790 * coding.c (complement_process_encoding_system): Fix previous change.
4791
4792 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4793
4794 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4795 (Fdbus_init_bus): ... here. (Bug#7113)
4796
4797 2010-10-08 Glenn Morris <rgm@gnu.org>
4798
4799 * buffer.c (before-change-functions, after-change-functions):
4800 Three-year overdue doc fix following 2007-08-13 change.
4801
4802 2010-10-08 Kenichi Handa <handa@m17n.org>
4803
4804 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4805 eol-format, inherit from the system's default.
4806 (complement_process_encoding_system): Make a new coding system
4807 inherit the original eol-format.
4808
4809 2010-10-08 Kenichi Handa <handa@m17n.org>
4810
4811 * coding.c (complement_process_encoding_system): New function.
4812
4813 * coding.h (complement_process_encoding_system): Extern it.
4814
4815 * callproc.c (Fcall_process): Complement the coding system for
4816 encoding arguments.
4817 (Fcall_process_region): Complement the coding system for encoding
4818 the input to the process.
4819
4820 * process.c (Fstart_process): Complement the coding system for
4821 encoding arguments.
4822 (send_process): Complement the coding system for encoding what
4823 sent to the process.
4824
4825 2010-10-08 Kenichi Handa <handa@m17n.org>
4826
4827 * xfont.c (xfont_open): Fix setting of font->average_width from
4828 :avgwidth property (Bug#7123).
4829
4830 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4831
4832 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4833 is more portable.
4834
4835 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4836 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4837 has not defined SIGIO.
4838
4839 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4842 draw the outermost line using the black relief, for legibility.
4843 Omit drawing the four corner pixels.
4844
4845 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4846
4847 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4848 (read_key_sequence): Inline echo_prompt.
4849 (echo_dash): Add a dash only if key is continued (Bug#7137).
4850
4851 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4852
4853 Remove O_RDONLY, O_WRONLY definitions, not needed.
4854 * unexcoff.c:
4855 * lread.c:
4856 * fileio.c:
4857 * doc.c:
4858 * callproc.c:
4859 * alloc.c:
4860 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4861
4862 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4863
4864 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4865
4866 * gnutls.c: Add property list symbol holders.
4867 (emacs_gnutls_handshake): Clarify how sockets are passed to
4868 GnuTLS.
4869 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4870 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4871 and keyfiles to be a list of file names. Default to "NORMAL" for
4872 the priority string. Improve logging.
4873
4874 2010-10-03 Glenn Morris <rgm@gnu.org>
4875
4876 * fileio.c (Vdirectory_sep_char): Remove.
4877
4878 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4879
4880 * termhooks.h: Remove #ifdef CONSP.
4881
4882 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4883
4884 Include <fcntl.h> unconditionally.
4885 * termcap.c:
4886 * sysdep.c:
4887 * lread.c:
4888 * keyboard.c:
4889 * filelock.c:
4890 * fileio.c:
4891 * doc.c:
4892 * callproc.c:
4893 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4894 does it.
4895
4896 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4897
4898 * sysdep.c (flush_pending_output): Remove code, does not do
4899 anything on any platform.
4900
4901 Remove unused code.
4902 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4903 Remove select emulation, all systems support select.
4904 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4905 * process.c (create_process): Remove #if 0 code.
4906
4907 Remove unused arguments for unexec.
4908 The third one is never used, and the last two are always passed as zero.
4909 * emacs.c (unexec): Add declaration.
4910 (Fdump_emacs): Only pass the first two arguments to unexec.
4911 Simplify #ifdef.
4912 * unexw32.c (unexec):
4913 * unexsol.c (unexec):
4914 * unexhp9k800.c (unexec):
4915 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4916 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4917 (find_section): Use const.
4918 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4919 (unexec_error): Declare it NO_RETURN.
4920 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4921 it as an argument, remove data_start and entry_address arguments, unused.
4922 (unexec): Remove bss_start, data_start and
4923 entry_address arguments.
4924 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4925 it as an argument, remove data_start and entry_address arguments, unused.
4926 (unexec): Remove bss_start, data_start and
4927 entry_address arguments.
4928
4929 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4930
4931 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4932
4933 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4934 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4935 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4936 Fix typos in docstrings.
4937 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4938 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4939
4940 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4941
4942 * keyboard.c (command_loop_1): Make sure the mark is really alive
4943 before using it (Bug#7044).
4944
4945 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4946
4947 * makefile.w32-in (tags): Rename target to full-tags.
4948
4949 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4950
4951 * emacs.c (main): Remove !WINDOWSNT conditional.
4952 (Fkill_emacs): Don't mention exemption on MS-Windows.
4953
4954 2010-10-02 Glenn Morris <rgm@gnu.org>
4955
4956 * character.c (Fchar_bytes): Remove obsolete function.
4957 (syms_of_character): Remove Schar_bytes.
4958
4959 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4960 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4961 in batch-mode.
4962 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4963 (kill-emacs-hook): Doc fix.
4964
4965 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4966
4967 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4968 (parse_region): Rework to take regions instead of strings, and
4969 renamed to reflect that these are the libxml functions.
4970
4971 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4972
4973 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4974 screen dimensions in tty->Wcm.
4975
4976 * xdisp.c (set_cursor_from_row): When the row is truncated and
4977 point is outside the range of displayed characters, position the
4978 cursor inside the scroll margin. (Bug#6349)
4979
4980 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4981
4982 Do not include stdlib.h and string.h, config.h does it.
4983 * xfont.c:
4984 * w32term.c:
4985 * w32reg.c:
4986 * w32inevt.c:
4987 * w32heap.c:
4988 * w32console.c:
4989 * w16select.c:
4990 * unexsol.c:
4991 * term.c:
4992 * sound.c:
4993 * scroll.c (m):
4994 * gtkutil.c:
4995 * font.c:
4996 * filelock.c:
4997 * fileio.c:
4998 * dosfns.c:
4999 * dbusbind.c:
5000 * bidi.c:
5001 * callproc.c:
5002 * process.c:
5003 * msdos.c:
5004 * charset.c: Do not include stdlib.h and string.h, config.h does it.
5005
5006 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
5007 defines it.
5008
5009 * process.c: Move #include <pty.h> earlier.
5010 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
5011 (pty_name): Move definition later.
5012
5013 * nsselect.m (syms_of_nsselect):
5014 * nsmenu.m (syms_of_nsmenu):
5015 * nsfns.m (syms_of_nsfns):
5016 * msdos.c (syms_of_msdos):
5017
5018 * image.c (syms_of_image):
5019 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
5020
5021 * point.h: Remove, unused.
5022
5023 2010-10-01 Eli Zaretskii <eliz@gnu.org>
5024
5025 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
5026 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
5027 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
5028
5029 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
5030
5031 * xml.c (parse_string): Use const.
5032
5033 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
5034
5035 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
5036 Also only override Vprint_level if it isn't already bound, and increase
5037 the level to 8 to produce more useful backtraces for bug reports.
5038
5039 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
5040
5041 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
5042
5043 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
5044
5045 * w32console.c (vga_stdcolor_name): Remove unused function;
5046 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
5047
5048 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
5049
5050 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
5051 (Fgnutls_boot): Start the handshake.
5052 (emacs_gnutls_read): Perform the handshake from the reader loop.
5053 (Fgnutls_boot): Remove some debugging messages.
5054 Change indentation throughout to use the Emacs style.
5055 (emacs_gnutls_handshake): Cast the fds to something that's
5056 possibly the expected length.
5057 (emacs_gnutls_write): Return -1 if we try to write before handshake.
5058
5059 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
5060
5061 * process.c (make_process): Set the gnutls_p field to zero by
5062 default.
5063 (read_process_output): Always call the gnutls_read function if the
5064 stream is a gnutls stream.
5065 (send_process): Ditto for writes.
5066
5067 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
5068 or write anything until the state is GNUTLS_STAGE_READY.
5069 (Fgnutls_boot): Mark the stream as being a gnutls stream.
5070
5071 2010-09-29 Eli Zaretskii <eliz@gnu.org>
5072
5073 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
5074 NEUTRAL_DIR.
5075 (handle_invisible_prop, iterate_out_of_display_property)
5076 (next_element_from_buffer): If bidi_it.first_elt is set, call
5077 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
5078 (Bug#7128)
5079
5080 * print.c (print_object): Fix format string and argument types for
5081 printing a Lisp_Misc_Marker.
5082
5083 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
5084 (load_overlay_strings, get_overlay_strings_1)
5085 (get_overlay_strings, forward_to_next_line_start)
5086 (back_to_previous_visible_line_start, reseat, reseat_to_string)
5087 (get_next_display_element, next_element_from_string)
5088 (next_element_from_c_string, next_element_from_buffer)
5089 (move_it_vertically_backward, move_it_by_lines, add_to_log)
5090 (message_dolog, message_log_check_duplicate, message2_nolog)
5091 (message3, message3_nolog, vmessage, set_message, set_message_1)
5092 (hscroll_window_tree, text_outside_line_unchanged_p)
5093 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
5094 (find_last_unchanged_at_beg_row)
5095 (find_first_unchanged_at_end_row, row_containing_pos)
5096 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
5097 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
5098 Use EMACS_INT for buffer and string positions.
5099
5100 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
5101 (row_containing_pos): Adjust prototype.
5102
5103 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
5104 (message2_nolog, set_message): Adjust prototypes.
5105
5106 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5107
5108 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
5109 (Fgnutls_boot): Use SDATA.
5110 (Fgnutls_handshake): Remove unused var `max_log_level'.
5111
5112 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5113
5114 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
5115 (Bug#7113)
5116
5117 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
5118
5119 * xgselect.c (xg_select): Clear file descriptors not set from
5120 rfds and wfds.
5121
5122 * process.c (wait_reading_process_output): Add missing FD_CLR
5123 for write_mask (must mirror connect_wait_mask).
5124
5125 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
5126
5127 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
5128 prefix.
5129 (Fgnutls_boot): Use changed process members. Use log level with a
5130 function parameter to set it. Bring back Emacs-level debugging
5131 messages at log level 1 and 2.
5132
5133 * process.c (make_process): Initialize gnutls_log_level.
5134
5135 * process.h: Add gnutls_log_level and rename x509_cred and
5136 anon_cred to have the gnutls_ prefix for consistency.
5137
5138 * gnutls.h (GNUTLS_LOG): Add convenience macro.
5139
5140 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
5141
5142 * w32.c (g_b_init_get_sid_identifier_authority)
5143 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
5144 Remove, not used.
5145 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
5146 (init_winsock): Remove useless assignment.
5147 (open_process_token, get_token_information, lookup_account_sid)
5148 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
5149 (get_security_descriptor_owner, get_security_descriptor_group)
5150 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
5151 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
5152 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
5153 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
5154 (unc_volume_file_attributes, convert_from_time_t)
5155 (create_toolhelp32_snapshot, process32_first, process32_next)
5156 (open_thread_token, impersonate_self, revert_to_self)
5157 (get_process_memory_info, get_process_working_set_size)
5158 (global_memory_status, global_memory_status_ex, socket_to_fd)
5159 (shutdown_handler): Make static.
5160
5161 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
5162
5163 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
5164 (xd_pending_messages): Functions removed.
5165 (xd_read_queued_messages): Add parameters fd, *data, for_read in
5166 order to be compatible with add_read_fd. Determine bus from data,
5167 and call xd_read_message just for this bus.
5168 (xd_add_watch): Use xd_read_queued_messages as callback function.
5169 Add data.
5170
5171 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
5172
5173 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
5174
5175 * gnutls.c (gnutls_log_function): Add more debugging.
5176 (emacs_gnutls_read): Don't infloop while reading.
5177
5178 2010-09-27 Kenichi Handa <handa@m17n.org>
5179
5180 These changes are to remove restriction on the number of glyphs in
5181 one composition.
5182
5183 * dispextern.h (struct glyph): Change the member "slice" to union.
5184 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
5185 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
5186
5187 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
5188 instead of glyph->slice.
5189 (marginal_area_string): Likewise.
5190
5191 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
5192 glyph->u.cmp.
5193 (append_composite_glyph): Likewise.
5194
5195 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
5196 glyph->u.cmp.
5197 (fill_gstring_glyph_string, x_get_glyph_overhangs)
5198 (append_composite_glyph): Likewise.
5199 (fill_image_glyph_string): Use glyph->slice.img instead of
5200 glyph->slice.
5201 (append_glyph, produce_image_glyph, append_stretch_glyph)
5202 (note_mouse_highlight): Likewise.
5203
5204 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
5205
5206 * process.c (add_keyboard_wait_descriptor)
5207 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
5208 (wait_reading_process_output): Don't pass write_mask to select
5209 if SELECT_CANT_DO_WRITE_MASK is defined.
5210 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
5211
5212 * process.h (add_read_fd, delete_read_fd, add_write_fd)
5213 (delete_write_fd): Declare.
5214
5215 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
5216 (write_mask): New variable.
5217 (max_input_desc): Rename from max_keyboard_desc.
5218 (fd_callback_info): New variable.
5219 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
5220 New functions.
5221 (Fmake_network_process): FD_SET write_mask.
5222 (deactivate_process): FD_CLR write_mask.
5223 (wait_reading_process_output): Connecting renamed to Writeok.
5224 check_connect removed. check_write is new. Remove references to gpm.
5225 Use Writeok/check_write unconditionally (i.e. no #ifdef
5226 NON_BLOCKING_CONNECT) instead of Connecting.
5227 Loop over file descriptors and call callbacks in fd_callback_info
5228 if file descriptor is ready for I/O.
5229 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
5230 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
5231 (keyboard_bit_set): Use max_input_desc.
5232 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
5233 Remove #ifdef subprocesses. Use max_input_desc.
5234 (init_process): Initialize write_mask and fd_callback_info.
5235
5236 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
5237
5238 * dbusbind.c: Include process.h.
5239 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
5240 (xd_read_message_1): New functions.
5241 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
5242 Handle watch for both read and write.
5243 (Fdbus_init_bus): Also register xd_toggle_watch.
5244 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5245 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
5246 to dbus_connection_flush.
5247 (xd_read_message): Move most of the code to xd_read_message_1.
5248 Call xd_read_message_1 until status is COMPLETE.
5249
5250 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
5251
5252 * term.c: Do not include sys/ioctl.h, not needed.
5253 (init_tty): Reorder code to reduce the number of #ifdefs.
5254 No code changes.
5255
5256 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
5257
5258 * process.h: Set up GnuTLS support.
5259
5260 * process.c (make_process, Fstart_process)
5261 (read_process_output, send_process): Set up GnuTLS support for
5262 process input/output file descriptors.
5263
5264 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
5265
5266 * gnutls.c: The source code for GnuTLS support in Emacs.
5267
5268 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
5269
5270 * config.in: Set up GnuTLS support.
5271
5272 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
5273 (obj, LIBES): Set up GnuTLS support.
5274
5275 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
5276
5277 * w32.c (get_emacs_configuration_options): Fix previous change.
5278
5279 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
5280
5281 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
5282 alive before using it (Bug#6977).
5283
5284 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
5285
5286 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
5287
5288 * dispextern.h: EMACS_INT/int fixup.
5289
5290 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
5291 fixup.
5292
5293 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
5294
5295 2010-09-25 Eli Zaretskii <eliz@gnu.org>
5296
5297 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
5298 (Fselect_window, window_scroll_pixel_based)
5299 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5300 Use EMACS_INT for buffer positions.
5301
5302 * textprop.c (validate_interval_range, interval_of)
5303 (property_change_between_p, Fadd_text_properties)
5304 (set_text_properties_1, Fremove_text_properties)
5305 (Fremove_list_of_text_properties, Ftext_property_any)
5306 (Ftext_property_not_all, copy_text_properties)
5307 (text_property_list, extend_property_ranges)
5308 (verify_interval_modification): Use EMACS_INT for buffer
5309 positions.
5310
5311 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5312 for buffer positions.
5313
5314 * process.c (read_process_output, send_process)
5315 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5316 and string positions and size.
5317
5318 * print.c (print_object, print_string, strout): Use EMACS_INT for
5319 string indices.
5320
5321 * minibuf.c (string_to_object): Use EMACS_INT for string position
5322 and size.
5323
5324 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5325
5326 * lread.c <read_from_string_index, read_from_string_index_byte>
5327 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5328 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5329 buffer positions and string length.
5330
5331 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5332 EMACS_INT.
5333 (echo_truncate, adjust_point_for_property, read_char)
5334 (gen_help_event, make_lispy_event, modify_event_symbol)
5335 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5336 for buffer positions and string length.
5337
5338 * keyboard.h (gen_help_event): Adjust prototype.
5339
5340 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5341
5342 * commands.h <last_point_position>: Declare EMACS_INT.
5343
5344 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5345 (truncate_echo_area): Accept EMACS_INT argument.
5346
5347 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5348
5349 * lisp.h (truncate_echo_area): Adjust prototype.
5350
5351 * composite.c (composition_adjust_point): Return EMACS_INT.
5352
5353 * composite.h (composition_adjust_point): Adjust prototype.
5354
5355 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
5356
5357 * process.c (Fmake_network_process): When arg :host is 'local,
5358 use address 127.0.0.1, not name "localhost". (Bug#6781)
5359
5360 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5361
5362 * indent.c (Fcurrent_indentation, indented_beyond_p)
5363 (compute_motion): Use EMACS_INT for buffer position variables.
5364
5365 * lisp.h (indented_beyond_p): Adjust prototype.
5366
5367 * buffer.c (overlay_strings): Return EMACS_INT.
5368
5369 * buffer.h (overlay_strings): Adjust prototype.
5370
5371 * region-cache.c (pp_cache): Adjust format to arguments.
5372
5373 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5374 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5375 (verror): Use EMACS_INT for size of allocated buffer.
5376
5377 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5378 positions.
5379
5380 * xdisp.c (redisplay_internal, try_window_id)
5381 (set_cursor_from_row, find_first_unchanged_at_end_row):
5382 Use EMACS_INT for buffer positions.
5383
5384 * dispextern.h (set_cursor_from_row): Adjust prototype.
5385
5386 * dispnew.c (increment_matrix_positions)
5387 (increment_row_positions, copy_glyph_row_contents)
5388 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5389 positions.
5390
5391 * dispextern.h (mode_line_string, marginal_area_string)
5392 (increment_matrix_positions, increment_row_positions):
5393 Adjust prototypes.
5394
5395 * data.c (Faref, Faset): Use EMACS_INT for string length and
5396 positions.
5397
5398 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5399 characters to insert.
5400
5401 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5402 position and size.
5403
5404 * syntax.c (scan_words, update_syntax_table)
5405 (prev_char_comend_first, back_comment, skip_chars)
5406 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5407 Use EMACS_INT for buffer and string positions.
5408
5409 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5410
5411 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5412 positions.
5413
5414 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5415
5416 * scroll.c (calculate_scrolling, line_ins_del)
5417 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5418 conversion.
5419
5420 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5421 (region_cache_backward, region_cache_forward)
5422 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5423 conversion.
5424
5425 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5426
5427 * eval.c (verror): Fix EMACS_INT/int conversion.
5428
5429 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
5430 (print_preprocess, print_check_string_charset_prop)
5431 (print_object): Fix EMACS_INT/int conversion.
5432
5433 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5434
5435 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5436
5437 * callproc.c (Fcall_process): Use EMACS_INT for count of
5438 characters read from the subprocess.
5439
5440 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5441 positions.
5442 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5443 positions.
5444
5445 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5446 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5447 length.
5448 (advance_to_char_boundary, Fset_buffer_multibyte)
5449 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5450 (overlay_touches_p, record_overlay_string, overlay_strings)
5451 (recenter_overlay_lists, fix_start_end_in_overlays)
5452 (modify_overlay, Fmove_overlay, report_overlay_modification)
5453 (evaporate_overlays): Use EMACS_INT for buffer positions.
5454
5455 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5456 Adjust prototypes.
5457
5458 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5459 positions.
5460
5461 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5462 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5463 (Fsubstring_no_properties, substring_both, Ffillarray)
5464 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5465 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5466 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5467 (Fmd5): Use EMACS_INT for buffer and string positions and length
5468 variables and arguments.
5469
5470 * lisp.h (substring_both): Adjust prototype.
5471
5472 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
5473
5474 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5475 * w32fns.c (clipboard_sequence_fn): Don't declare.
5476 (globals_of_w32fns): Don't initialize it.
5477
5478 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
5479
5480 * syntax.c (back_comment): Detect the case where a 1-char comment
5481 starter is also the 2nd char of a 2-char comment ender.
5482
5483 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
5484
5485 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5486
5487 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5488
5489 * eval.c (verror): EMACS_INT/int cleanup.
5490
5491 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5492 unwind_protect more than 2GB worth of functions.
5493
5494 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5495
5496 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5497 string and avoid compiler warnings.
5498 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5499 all users.
5500
5501 * lread.c (oblookup): EMACS_INT/int cleanup.
5502
5503 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5504
5505 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5506
5507 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5508
5509 * lisp.h (clip_to_bounds): Adjust prototype.
5510
5511 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5512
5513 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5514
5515 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5516
5517 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5518
5519 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5520 cleanup.
5521
5522 * lisp.h: Change the definition of all marker.c functions that
5523 take and return buffer stuff to be EMACS_INT instead of int.
5524
5525 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5526 (buf_charpos_to_bytepos, bytepos_to_charpos)
5527 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5528 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5529 for all buffer positions.
5530
5531 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
5532
5533 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5534 (split_interval_right, find_interval, next_interval)
5535 (delete_node, delete_interval, interval_deletion_adjustment)
5536 (adjust_intervals_for_deletion, merge_interval_right)
5537 (merge_interval_left, graft_intervals_into_buffer)
5538 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5539
5540 * intervals.h (traverse_intervals): Update prototype.
5541
5542 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5543
5544 * indent.c (compute_motion): Use EMACS_INT for arguments to
5545 region_cache_forward.
5546
5547 * region-cache.c (struct boundary, struct region_cache):
5548 Use EMACS_INT for positions.
5549 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5550 (delete_cache_boundaries, set_cache_region)
5551 (invalidate_region_cache, know_region_cache)
5552 (region_cache_forward, region_cache_backward, pp_cache):
5553 Use EMACS_INT for buffer positions.
5554
5555 * region-cache.h (know_region_cache, invalidate_region_cache)
5556 (region_cache_forward, region_cache_backward): Adjust prototypes.
5557
5558 * search.c (string_match_1, fast_c_string_match_ignore_case)
5559 (looking_at_1, scan_buffer, scan_newline)
5560 (find_next_newline_no_quit, find_before_next_newline)
5561 (search_command, trivial_regexp_p, search_buffer, simple_search)
5562 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5563 and string positions and length.
5564
5565 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5566 (find_before_next_newline): Adjust prototypes.
5567
5568 * editfns.c (transpose_markers, update_buffer_properties)
5569 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5570 (get_pos_property, Fconstrain_to_field)
5571 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5572 (Fchar_after, Fchar_before, Finsert_char)
5573 (Finsert_buffer_substring, Fcompare_buffer_substrings)
5574 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5575 Use EMACS_INT for buffer and string position variables.
5576 (Finsert_char): Protect against too large insertions.
5577
5578 * lisp.h (clip_to_bounds): Adjust prototype.
5579
5580 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5581 (balance_an_interval, split_interval_right, split_interval_left)
5582 (find_interval, next_interval, update_interval)
5583 (adjust_intervals_for_insertion, delete_node, delete_interval)
5584 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5585 (offset_intervals, merge_interval_right, merge_interval_left)
5586 (graft_intervals_into_buffer, adjust_for_invis_intang)
5587 (move_if_not_intangible, get_local_map, copy_intervals)
5588 (copy_intervals_to_string, compare_string_intervals)
5589 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5590 and for interval tree size.
5591
5592 * intervals.h (traverse_intervals, split_interval_right)
5593 (split_interval_left, find_interval, offset_intervals)
5594 (graft_intervals_into_buffer, copy_intervals)
5595 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5596 (update_interval): Adjust prototypes.
5597
5598 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5599 Use EMACS_INT for buffer position variables and arguments.
5600
5601 * composite.c (get_composition_id, find_composition)
5602 (run_composition_function, compose_text)
5603 (composition_gstring_width, autocmp_chars)
5604 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5605 for buffer positions and string length variables and arguments.
5606
5607 * composite.h (get_composition_id, find_composition, compose_text)
5608 (composition_gstring_width): Adjust prototypes.
5609
5610 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5611
5612 * xdisp.c (store_mode_line_noprop, display_mode_element):
5613 Use EMACS_INT for string positions.
5614
5615 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5616 position arguments.
5617
5618 * intervals.h (get_property_and_range): Adjust prototype.
5619
5620 * character.c (parse_str_as_multibyte, str_as_multibyte)
5621 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5622 (string_count_byte8, string_escape_byte8, c_string_width)
5623 (strwidth, lisp_string_width, multibyte_chars_in_text):
5624 Use EMACS_INT for string length variables and arguments.
5625
5626 * character.h (parse_str_as_multibyte, str_as_multibyte)
5627 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5628 (c_string_width, strwidth, lisp_string_width):
5629 Adjust prototypes.
5630
5631 * font.c (font_intern_prop): Use EMACS_INT for string length
5632 variables.
5633
5634 * font.c (font_intern_prop): Use EMACS_INT for string length
5635 variables.
5636
5637 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5638 variables.
5639
5640 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5641 (Fmake_string): Protect against too large strings.
5642 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5643 (live_misc_p): Use ptrdiff_t instead of int for pointer
5644 differences.
5645 (string_bytes, check_sblock, check_string_free_list)
5646 (allocate_string_data, compact_small_strings, Fmake_string)
5647 (Fmake_bool_vector, make_string, make_unibyte_string)
5648 (make_multibyte_string, make_string_from_bytes)
5649 (make_specified_string_string, Fmake_list, Fmake_vector):
5650 Use EMACS_INT for string length variables and arguments.
5651 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5652 (Fpurecopy): Use EMACS_INT for string size.
5653 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5654 for vector size.
5655
5656 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5657 (make_string_from_bytes, make_specified_string_string)
5658 (make_pure_string, string_bytes, check_point_in_composition):
5659 Adjust prototypes.
5660
5661 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5662
5663 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5664 (check_translation): Use EMACS_INT for buffer positions and
5665 length.
5666
5667 * undo.c (record_marker_adjustment, record_delete)
5668 (record_change, record_point, record_insert)
5669 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5670 buffer positions.
5671
5672 * lisp.h (record_marker_adjustment, record_delete)
5673 (record_change, record_point, record_insert)
5674 (record_property_change, Fprimitive_undo): Adjust prototypes.
5675
5676 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
5677 Eli Zaretskii <eliz@gnu.org>
5678
5679 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5680
5681 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5682
5683 * minibuf.c (Fminibuffer_contents)
5684 (Fminibuffer_contents_no_properties)
5685 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5686 positions.
5687
5688 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5689 mark.
5690
5691 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5692 (allocate_string_data): Accept EMACS_INT for string length.
5693
5694 * editfns.c (Ffield_string, Ffield_string_no_properties)
5695 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5696 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5697 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5698 (Ffield_end): Use EMACS_INT for buffer positions.
5699
5700 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5701 point with mark.
5702
5703 * lisp.h (allocate_string_data, make_uninit_string)
5704 (make_uninit_multibyte_string, make_buffer_string)
5705 (make_buffer_string_both): Adjust prototypes.
5706
5707 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5708
5709 * xml.c: Switch to GNU indentation.
5710 (make_dom): Change parse tree format to match xml.el.
5711 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5712 (Fxml_parse_string_internal): Rename from xml-parse-string.
5713
5714 2010-09-22 Kenichi Handa <handa@m17n.org>
5715
5716 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5717 only if we are not at a composition.
5718 (set_iterator_to_next): Give it->end_charpos to
5719 composition_compute_stop_pos.
5720 (set_iterator_to_next, next_element_from_buffer): Likewise.
5721
5722 * dispnew.c (buffer_posn_from_coords): Fix position when the
5723 current display element is a grapheme cluster in bidi-reordered
5724 region.
5725
5726 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5727
5728 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5729 the regions may overlap.
5730
5731 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5732
5733 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5734
5735 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5736
5737 * emacs.c: Do not include sys/ioctl.h, not needed.
5738
5739 * doprnt.c: Do not include stdlib.h, config.h does it.
5740 Move #include before macro definition.
5741
5742 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5743
5744 * Makefile.in (temacs): Link using $(CC) not $(LD).
5745 (LD_FIRSTFLAG): Define using autoconf.
5746 (LD): Remove.
5747
5748 Remove HAVE_TERMIOS definitions.
5749 * s/usg5-4-common.h (HAVE_TERMIOS):
5750 * s/template.h (HAVE_TERMIOS):
5751 * s/gnu-linux.h (HAVE_TERMIOS):
5752 * s/darwin.h (HAVE_TERMIOS):
5753 * s/cygwin.h (HAVE_TERMIOS):
5754 * s/bsd-common.h (HAVE_TERMIOS):
5755 * s/aix4-2.h (HAVE_TERMIOS):
5756 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5757 defined on all non-MS platforms.
5758 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5759
5760 * xterm.c (xt_action_hook): Use const.
5761
5762 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5763
5764 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5765 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5766 (gethostname) [!HAVE_SOCKETS]: Remove.
5767 (SOCK_REPLACE_HANDLE): Remove macro.
5768 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5769 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5770 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5771 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5772
5773 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5774
5775 * deps.mk (xml.o): Add dependencies.
5776
5777 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5778 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5779
5780 * bidi.c (bidi_paragraph_init): Accept an additional argument
5781 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5782 search back until a paragraph with a strong directional character
5783 is found, and use that to determine paragraph's base direction.
5784
5785 * dispextern.h (bidi_paragraph_init): Update prototype.
5786
5787 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5788
5789 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5790 of w32api >= 3.15. (Bug#6989)
5791
5792 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5793
5794 * process.c (wait_reading_process_output): Don't message about
5795 accept-process-output unless the time limit really is zero.
5796
5797 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5798
5799 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5800 int/Lisp_Object mixup).
5801
5802 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5803
5804 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5805 not HELP.
5806
5807 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5808
5809 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5810 bar's pixel width to Lisp (Bug#7048).
5811
5812 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5813
5814 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5815
5816 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5817
5818 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5819 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5820
5821 2010-09-17 Kenichi Handa <handa@m17n.org>
5822
5823 * ftfont.c (ftfont_check_otf): Fix previous change.
5824
5825 2010-09-14 Kenichi Handa <handa@m17n.org>
5826
5827 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5828 existence of GSUB or GPOS.
5829
5830 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5831
5832 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5833
5834 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5835
5836 * xml.c (parse_buffer): Rename to parse_string(), since that's
5837 what it does.
5838 (parse_string): Return nil when the document can't be parsed.
5839
5840 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5841
5842 * xterm.c (get_current_vm_state): New function.
5843 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5844 want_fullscreen so set_wm_state calls are few (Bug#7013).
5845 (x_handle_net_wm_state): Move code to get_current_vm_state and
5846 call that function.
5847
5848 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5849
5850 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5851
5852 2010-09-14 Kenichi Handa <handa@m17n.org>
5853
5854 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5855 we may use designation or locking-shift.
5856
5857 2010-09-14 Kenichi Handa <handa@m17n.org>
5858
5859 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5860 sequence when the source is multibyte.
5861
5862 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5863
5864 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5865 Don't make first argument optional. Doc fix.
5866
5867 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5868
5869 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5870 parameters for the doc string.
5871
5872 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5873
5874 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5875
5876 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5877
5878 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5879 (syms_of_fns): Don't defsubr Sy_or_n_p.
5880 * lisp.h: Don't declare Fy_or_n_p.
5881 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5882
5883 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5884
5885 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5886
5887 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5888
5889 * xml.c: New file.
5890 (Fhtml_parse_buffer): New function to interface to the libxml2
5891 html parsing function.
5892
5893 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5894
5895 * biditype.h: Regenerate.
5896
5897 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5898
5899 * nsimage.m (ns_load_image): Check argument types.
5900
5901 * image.c: Remove all uses of gcpro.
5902 (xpm_load): Check all lisp types.
5903 (pbm_load): Likewise.
5904 (png_load): Likewise.
5905 (jpeg_load): Likewise.
5906 (tiff_load): Likewise.
5907 (gif_load): Likewise.
5908 (imagemagick_load_image): Likewise.
5909 (imagemagick_load): Likewise.
5910 (svg_load): Likewise.
5911 (gs_load): Likewise.
5912
5913 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5914
5915 * w32uniscribe.c (uniscribe_shape): Update commentary.
5916 Don't try to reorder grapheme clusters, since LGSTRING should always
5917 hold them in the logical order.
5918 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5919 return glyph codes in the logical order.
5920
5921 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5922
5923 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5924 (imagemagick_load_image): Fix type mismatch.
5925 (Fimagemagick_types): Likewise. Doc fix.
5926
5927 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5928
5929 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5930
5931 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5932
5933 * xselect.c: Remove declaration of cut-buffer objects and functions.
5934 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5935 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5936 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5937 (Fx_rotate_cut_buffers_internal): Remove.
5938 (syms_of_xselect): Remove defsubr of above.
5939 Remove intern of QCUT_BUFFERn.
5940
5941 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5942
5943 * cmds.c (Vblink_paren_function): Remove.
5944 (internal_self_insert): Make it insert N chars at a time.
5945 Don't call blink-paren-function.
5946 (Fself_insert_command): Adjust accordingly.
5947 (syms_of_cmds): Don't declare blink-paren-function.
5948
5949 2010-08-31 Kenichi Handa <handa@m17n.org>
5950
5951 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5952 characters.
5953
5954 * term.c (encode_terminal_code): Fix the previous change.
5955 (produce_glyphs): Don't set it->char_to_display here.
5956 Don't handle unibyte-display-via-language-environment here.
5957 (produce_special_glyphs): Set temp_it.char_to_display before
5958 calling produce_glyphs.
5959
5960 * xdisp.c (get_next_display_element): Set it->char_to_display
5961 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5962 characters.
5963 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5964 calling PRODUCE_GLYPHS.
5965 (append_space_for_newline): Save and store it->char_to_display.
5966 Set it->char_to_display before calling PRODUCE_GLYPHS.
5967 (extend_face_to_end_of_line): Set it->char_to_display before
5968 calling PRODUCE_GLYPHS.
5969 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5970 character to its byte value.
5971 (get_char_glyph_code): New function.
5972 (produce_stretch_glyph): Set it2.char_to_display too before
5973 calling x_produce_glyphs.
5974 (x_produce_glyphs): Simplify by using the same code for ASCII and
5975 non-ASCII characters. Don't set it->char_to_display here.
5976 Don't handle unibyte-display-via-language-environment here. For a
5977 character of no glyph, use font->space_width instead of FONT_WIDTH.
5978
5979 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5980
5981 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5982
5983 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5984
5985 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5986
5987 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5988
5989 * marker.c (Fcopy_marker): Make the first arg optional.
5990
5991 2010-08-30 Kenichi Handa <handa@m17n.org>
5992
5993 * composite.c (composition_update_it): Fix computing of
5994 cmp_it->width.
5995
5996 2010-08-29 Kenichi Handa <handa@m17n.org>
5997
5998 * term.c (encode_terminal_code): Encode byte chars to the
5999 corresponding bytes.
6000
6001 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
6002
6003 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
6004
6005 2010-08-26 Kenichi Handa <handa@m17n.org>
6006
6007 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
6008 on calling composition_compute_stop_pos.
6009
6010 2010-08-25 Kenichi Handa <handa@m17n.org>
6011
6012 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
6013 :otf.
6014
6015 * composite.c (composition_compute_stop_pos): Don't break
6016 composition at PT.
6017 (composition_reseat_it): Likewise. Fix calculation of character
6018 position starting a composition.
6019 (Fcomposition_get_gstring): Don't limit the number of components
6020 for automatic composition.
6021
6022 2010-08-25 Kenichi Handa <handa@m17n.org>
6023
6024 * composite.c (composition_compute_stop_pos): In forward search,
6025 pay attention to the possibility that some character after ENDPOS
6026 will be composed with charactrs before ENDPOS.
6027
6028 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
6029
6030 * keyboard.c (command_loop_1): Don't clobber primary selection
6031 during handle-switch-frame (Bug#6872).
6032
6033 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
6034
6035 * dbusbind.c: Accept UNIX domain sockets as bus address.
6036 (Fdbus_close_bus): New function.
6037 (Vdbus_registered_buses): New variable.
6038 (xd_initialize): Implement string as bus address.
6039 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
6040 (Fdbus_get_unique_name, Fdbus_call_method)
6041 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6042 (Fdbus_method_error_internal, Fdbus_send_signal)
6043 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
6044 check. This is done in xd_initialize_bus. Adapt doc string, if
6045 necessary.
6046 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
6047 Vdbus_registered_buses.
6048 (Vdbus_registered_objects_table): Create hash.
6049
6050 2010-08-22 Juri Linkov <juri@jurta.org>
6051
6052 * keyboard.c (Fexecute_extended_command): Move reading a command name
6053 with `completing-read' to a new Elisp function `read-extended-command'.
6054 Call it to read a command to `function' (bug#5364, bug#5214).
6055
6056 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
6057
6058 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
6059
6060 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
6061
6062 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
6063 instead of SAFE_ALLOCA.
6064
6065 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
6066
6067 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
6068 (Bug#6214).
6069
6070 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6071
6072 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
6073
6074 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
6075
6076 * doc.c (Fsnarf_documentation): Initialize skip_file before
6077 build-files test.
6078
6079 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
6080
6081 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
6082 New definitions.
6083 (HAVE_TERMIO): Remove.
6084
6085 2010-08-22 Eli Zaretskii <eliz@gnu.org>
6086
6087 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
6088
6089 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
6090 for w32.
6091
6092 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
6093 it's done in nt/config.nt.
6094
6095 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
6096
6097 * unexcoff.c (report_error, make_hdr, write_segment)
6098 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
6099 Convert argument lists and prototypes to ANSI C.
6100 (make_hdr, write_segment): Remove unused variables.
6101 (unexec): Remove commented-out line. Initialize `new' to shut up
6102 compiler warnings.
6103
6104 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
6105
6106 Simplify termio code.
6107 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
6108 HAVE_TERMIO code is obsolete.
6109 Replace HAVE_TERMIOS conditionals with !DOS_NT.
6110 * systty.h: Do not define HAVE_TCATTR.
6111 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
6112 Do not define EMACS_HAVE_TTY_PGRP. Only define
6113 EMACS_GET_TTY_PGRP for !DOS_NT.
6114 * sysdep.c: Include sysselect.h unconditionally. Do not include
6115 sys/ioctl.h and termios.h, systty.h does it.
6116 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
6117 (init_baud_rate): Remove HAVE_TERMIO code.
6118 (child_setup_tty): Remove HAVE_TERMIO code.
6119 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
6120 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
6121 (new_ltchars, new_tchars): Remove, unused.
6122 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
6123 code. Remove special casing for __mips__, it was a no-op.
6124 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
6125 (init_sys_modes): Remove HPUX special case.
6126 * process.c: Include stdlib.h unconditionally. Do not include
6127 fcntl.h, systty.h does it. Remove conditional code for
6128 HAVE_SERIAL, it is always true.
6129 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
6130 always true when SIGNALS_VIA_CHARACTERS is true.
6131 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
6132 !WINDOWSNT means HAVE_TERMIOS.
6133 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
6134 conditional, which is true for all HAVE_TERMIOS systems.
6135 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
6136 instead of HAVE_TERMIOS.
6137 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
6138 EMACS_HAVE_TTY_PGRP.
6139 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
6140 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
6141 anyway.
6142
6143 2010-08-21 Eli Zaretskii <eliz@gnu.org>
6144
6145 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
6146 mirroring pixel positions.
6147
6148 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
6149
6150 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
6151 write only.
6152 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
6153 malloc_sbrk_used, nothing uses them.
6154
6155 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
6156 defined, unconditionally defined in lisp.h.
6157
6158 * term.c: Do not include <termios.h>, systty.h does it.
6159
6160 * s/unixware.h (HAVE_TCATTR):
6161 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
6162 systty.h defines it when HAVE_TERMIOS is defined.
6163
6164 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6165
6166 * dispnew.c (buffer_posn_from_coords): Fix last change for text
6167 terminals: add one-character offset for R2L lines.
6168
6169 * emacs.c <emacs_version>: Add a comment regarding
6170 msdos/mainmake.v2's dependency on the syntax of this declaration.
6171
6172 2010-08-20 Eli Zaretskii <eliz@gnu.org>
6173
6174 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
6175 position for R2L lines by mirroring the pixel position wrt the
6176 text are box. Improve commentary.
6177
6178 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
6179
6180 * image.c (imagemagick_clear_image): Remove debugging output.
6181
6182 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6183
6184 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
6185 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
6186 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
6187 self-insert-face.
6188 (syms_of_cmds): Initialize the new vars.
6189
6190 2010-08-19 Jason Rumney <jasonr@gnu.org>
6191
6192 * w32menu.c (set_frame_menubar): Remove call to undefined function.
6193
6194 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
6195
6196 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
6197
6198 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
6199
6200 2010-08-18 Eli Zaretskii <eliz@gnu.org>
6201
6202 * xterm.c (x_draw_bar_cursor):
6203 * w32term.c (x_draw_bar_cursor): If the character under cursor is
6204 R2L, draw the bar cursor on its right rather than on its left.
6205
6206 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
6207
6208 * eval.c (Fdefmacro): Only obey one declaration.
6209
6210 * casefiddle.c (casify_region): Setup gl_state.
6211
6212 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6213
6214 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
6215
6216 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6217
6218 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
6219
6220 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
6221
6222 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
6223 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
6224 QPRIMARY => NXPrimaryPboard.
6225 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
6226 NXPrimaryPboard => QPRIMARY.
6227 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
6228 NXSecondaryPboard = SecondarySelection.
6229 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
6230
6231 2010-08-18 Joakim Verona <joakim@verona.se>
6232
6233 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
6234 defined:
6235 (imagemagick_image_p): New function to test for ImageMagic image.
6236 (imagemagick_load): New function to load ImageMagick image.
6237 (imagemagick_load_image): New function, helper for imagemagick_load.
6238 (imagemagick-types): New function.
6239 (Qimagemagick): New Lisp_object.
6240 (imagemagick-render-type): New variable, decides which renderer to use.
6241
6242 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
6243
6244 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
6245 is a string.
6246
6247 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
6248
6249 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
6250 x_set_tool_bar_position handler.
6251
6252 2010-08-17 Eli Zaretskii <eliz@gnu.org>
6253
6254 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
6255 x_set_tool_bar_position handler, needed to support changes from
6256 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
6257
6258 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
6259
6260 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
6261 declaration (Bug#6863).
6262 (syms_of_nsselect): Don't intern QPRIMARY.
6263
6264 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
6265
6266 * keyboard.h (QPRIMARY): Declare (Bug#6864).
6267
6268 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
6269
6270 * keyboard.c (command_loop_1): Avoid setting selection twice,
6271 since it's done in deactivate-mark as well.
6272 (Vselect_active_regions): Change default to t. Replace `lazy'
6273 with non-default value `only', meaning only set PRIMARY for
6274 temporarily active regions.
6275
6276 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
6277 select-active-regions.
6278
6279 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6280
6281 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
6282 isn't a string.
6283
6284 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
6285
6286 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
6287
6288 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6289
6290 * keyboard.c (parse_tool_bar_item): malloc buf.
6291 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
6292 new_lbl (Bug#6855).
6293
6294 2010-08-14 Eli Zaretskii <eliz@gnu.org>
6295
6296 * xterm.c (x_draw_stretch_glyph_string):
6297 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
6298 the cursor on the right edge of the stretch glyph.
6299
6300 * xdisp.c (window_box_right_offset, window_box_right):
6301 Fix commentary.
6302
6303 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6304 direction when point is inside a run of whitespace characters.
6305
6306 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6307
6308 2010-08-14 Jason Rumney <jasonr@gnu.org>
6309
6310 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6311
6312 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
6313
6314 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6315
6316 2010-08-13 Jason Rumney <jasonr@gnu.org>
6317
6318 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6319 (MessageBoxW_Proc): New function typedef.
6320 (unicode-message-box): New function pointer.
6321 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
6322
6323 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6324
6325 * frame.h (Qtool_bar_position): Declare.
6326
6327 * xfns.c (Fx_create_frame): Call x_default_parameter for
6328 Qtool_bar_position.
6329
6330 2010-08-13 Eli Zaretskii <eliz@gnu.org>
6331
6332 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6333 (report_error, report_error_1): Ditto.
6334 (write_segment): Remove "#if 0" unused code.
6335 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6336 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6337 (start_of_text): Remove unused function (was used only if NO_REMAP
6338 was NOT defined).
6339
6340 * msdos.c (IT_set_face): Fix format string to match argument
6341 types.
6342 (IT_write_glyphs, IT_note_mode_line_highlight)
6343 (IT_set_frame_parameters): Remove unused variables.
6344 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6345 (IT_set_terminal_modes): Disambiguate expression in if clause.
6346 (Fmsdos_remember_default_colors): Return Qnil.
6347 (IT_set_frame_parameters): Add parens to disambiguate boolean
6348 expression for logging the cursor type to termscript.
6349 (keyboard_layout_list, keypad_translate_map)
6350 (grey_key_translate_map): Add braces in inner initializers.
6351 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6352 (dos_rawgetc): Remove unused label.
6353 (XMenuActivate): Add braces to remove ambiguous `else'.
6354 (dos_ttraw): Always return a value.
6355 (spawnve): Declare.
6356 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6357
6358 * dosfns.h (x_set_title): Declare.
6359
6360 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6361 Remove unused variables.
6362
6363 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6364 variables.
6365 (init_dosfns): Declare get_lim_data.
6366 (system_process_attributes): Declare Fget_internal_run_time.
6367
6368 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6369 list to be consistent with menu.h.
6370
6371 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6372 warnings due to mixing of "char *" and "const char *".
6373
6374 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6375
6376 Introduce a new comment style "c" flag.
6377 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6378 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6379 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6380 (syntax_prefix_flag_p): New function.
6381 (Fstring_to_syntax): Understand new "c" flag.
6382 (Finternal_describe_syntax_value): Recognize new flag; use the
6383 SYNTAX_FLAGS_* macros.
6384 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6385 comment style to accomodate the new styles.
6386 (back_comment, forw_comment, Fforward_comment, scan_lists)
6387 (scan_sexps_forward): Update code to obey the new comment style flag.
6388
6389 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6390
6391 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6392
6393 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6394
6395 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6396 first.
6397 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
6398
6399 * gtkutil.h (xg_check_special_colors): Declare.
6400
6401 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6402 (xg_create_frame_widgets): Connect theme name changes to
6403 style_changed_cb.
6404
6405 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6406 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6407 (x_term_init): Use char[] display_opt and name_opt instead of
6408 string literal. file is const char*.
6409
6410 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6411 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6412 props. Free them at the end.
6413
6414 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6415
6416 * xrdb.c (get_system_app): Make path const and use char *p for
6417 non-const char.
6418
6419 * xmenu.c (Fx_popup_dialog): error_name is const char*.
6420 (xmenu_show): error parameter is const char **. pane_string is const
6421 char *.
6422 (button_names): Is const char *.
6423 (xdialog_show): error_name and pane_string is const.
6424
6425 * process.h (synch_process_death): Is const char*.
6426
6427 * w32menu.c (w32_menu_show):
6428 * nsmenu.m (ns_menu_show): error parameter is const char **.
6429
6430 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6431 is const char **.
6432
6433 * menu.c (Fx_popup_menu): error_name is const.
6434
6435 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6436 with unsigned char and XtPointer with void *.
6437
6438 * gtkutil.h: Replace widget_value with struct _widget_value.
6439 (enum button_type, struct _widget_value): Remove and use the one from
6440 keyboard.h.
6441
6442 * gtkutil.c (get_utf8_string): Always return an allocated string.
6443 Parameter is const.
6444 (create_dialog, xg_create_one_menuitem, create_menus)
6445 (xg_item_label_same_p, xg_update_menu_item): Free result from
6446 get_utf8_string.
6447 (xg_separator_p, xg_item_label_same_p): label is const.
6448
6449 * font.h (font_open_by_name): Make name const.
6450
6451 * font.c (font_open_by_name): Make name const.
6452
6453 * floatfns.c (matherr): Use a const char* variable for x->name.
6454
6455 * emacs.c (main): Pass char[] to putenv instead of literal.
6456
6457 * callproc.c (synch_process_death): Make const.
6458 (Fcall_process): Make signame const.
6459
6460 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6461 (addDisplayItemWithImage): Use const char*.
6462
6463 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6464 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6465
6466 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6467
6468 * keyboard.h (_widget_value): name, value and key are const char*.
6469
6470 * unexmacosx.c (unexec_error): Use const char *.
6471
6472 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6473
6474 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6475 (font_parse_name, font_open_by_name):
6476 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6477 (font_parse_name, font_open_by_name): Remove const.
6478
6479 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6480
6481 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6482 definition.
6483
6484 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6485 * m/amdx86-64.h: Likewise.
6486 * m/arm.h: Likewise.
6487 * m/hp800.h: Likewise.
6488 * m/ia64.h: Likewise.
6489 * m/ibmrs6000.h: Likewise.
6490 * m/ibms390.h: Likewise.
6491 * m/intel386.h: Likewise.
6492 * m/iris4d.h: Likewise.
6493 * m/m68k.h: Likewise.
6494 * m/macppc.h: Likewise.
6495 * m/mips.h: Likewise.
6496 * m/sh3.h: Likewise.
6497 * m/sparc.h: Likewise.
6498 * m/template.h: Likewise.
6499 * m/vax.h: Likewise.
6500 * m/xtensa.h: Likewise.
6501 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6502 WORDS_BIG_ENDIAN.
6503 * lisp.h: Likewise.
6504 * md5.c: Likewise.
6505 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6506
6507 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6508
6509 Use const char* instead of char*.
6510 Reduce the number of warnings with -Wwrite-strings.
6511 * xrdb.c (get_environ_db, get_system_name):
6512 * unexelf.c (find_section):
6513 * term.c (string_cost, string_cost_one_line, per_line_cost)
6514 (get_named_tty, init_tty):
6515 * sysdep.c (sys_subshell):
6516 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6517 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6518 * search.c (Freplace_match):
6519 * process.c (Fmake_network_process, send_process, init_process):
6520 * lread.c (Fload, init_lread):
6521 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6522 * keyboard.c (parse_tool_bar_item, struct event_head):
6523 * gtkutil.h (xg_get_font_name):
6524 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6525 (make_widget_for_menu_item, make_menu_item, create_menus)
6526 (xg_make_tool_item):
6527 * font.c (parse_matrix, font_parse_name):
6528 * floatfns.c (rounding_driver, float_error_fn_name):
6529 * filelock.c (get_boot_time_1, lock_file_1):
6530 * fileio.c (barf_or_query_if_file_exists, check_writable):
6531 * editfns.c (get_system_name, get_operating_system_release)
6532 (Fencode_time, Fset_time_zone_rule):
6533 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6534 * buffer.c (defvar_per_buffer): Use const.
6535
6536 2010-08-08 Kenichi Handa <handa@m17n.org>
6537
6538 * charset.c: Include <stdlib.h>.
6539 (struct charset_sort_data): New struct.
6540 (charset_compare): New function.
6541 (Fsort_charsets): New function.
6542 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6543
6544 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6545 number in CTEXT extended segment.
6546
6547 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6548
6549 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6550 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6551
6552 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6553
6554 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6555 (Fhash_table_size): Fix typos in docstrings.
6556 (Fmake_hash_table): Doc fix.
6557
6558 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6559
6560 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6561 Doc fix (bug#5625).
6562
6563 2010-08-08 Ken Brown <kbrown@cornell.edu>
6564
6565 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6566 the MSDOS definition.
6567
6568 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6569
6570 Use const char* instead of char*.
6571 * xterm.c (x_create_toolkit_scroll_bar):
6572 * xfont.c (xfont_list_pattern):
6573 * xfns.c (x_default_scroll_bar_color_parameter)
6574 (xic_create_fontsetname, x_default_font_parameter)
6575 (x_screen_planes):
6576 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6577 (store_mode_line_string, decode_mode_spec, display_string):
6578 * menu.c (digest_single_submenu):
6579 * keymap.h (initial_define_key, initial_define_lispy_key):
6580 * keymap.c (initial_define_key, initial_define_lispy_key):
6581 * image.c (image_error, image_keyword):
6582 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6583 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6584 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6585 (ftfont_list, ftfont_match):
6586 * frame.c (frame_parm_table):
6587 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6588 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6589 (font_add_log, font_deferred_log):
6590 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6591 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6592 (font_add_log, font_deferred_log):
6593 * emacs.c (argmatch):
6594 * dispextern.h (struct it):
6595 * coding.c (ENCODE_DESIGNATION):
6596 * charset.c (define_charset_internal): Use const.
6597
6598 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6599
6600 * xrdb.c: Remove include guard.
6601 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6602 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6603 realloc->xrealloc instead of using #defines.
6604
6605 2010-08-08 Eli Zaretskii <eliz@gnu.org>
6606
6607 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6608 * editfns.c (Fline_beginning_position, Fline_end_position):
6609 State in the doc strings that start and end of line are in the
6610 logical order.
6611
6612 * xdisp.c (display_line): Move the handling of overlay arrow after
6613 the call to find_row_edges. (Bug#6699)
6614
6615 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6616
6617 * keyboard.c (command_loop_1):
6618 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6619
6620 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6621
6622 * insdel.c (prepare_to_modify_buffer): Save active region text to
6623 Vsaved_region_selection.
6624
6625 * xselect.c (QPRIMARY): Move to keyboard.c.
6626
6627 * keyboard.c (Vselect_active_regions): Move from simple.el.
6628 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6629 (command_loop_1): Set window selection prior to deactivating the mark.
6630
6631 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
6632
6633 * alloc.c (lisp_malloc):
6634 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6635 * charset.h (emacs_mule_charset):
6636 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6637 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6638 (bitch_at_user):
6639 * lisp.h (Fcheck_coding_system, Fget_text_property)
6640 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6641 Remove duplicate declarations.
6642
6643 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6644
6645 * process.c: Simplify include logic.
6646
6647 * keyboard.h (quit_char): Add declaration.
6648 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6649 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6650 Add declarations.
6651 * sysdep.c:
6652 * w32.c: Remove the above declarations.
6653
6654 Remove extern declarations in .c files, .h files have them.
6655 * xterm.c:
6656 * xdisp.c:
6657 * msdos.c:
6658 * image.c:
6659 * gtkutil.c:
6660 * fileio.c:
6661 * eval.c: Remove declarations.
6662
6663 * frame.c (frame_params): Make const.
6664
6665 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6666
6667 * emacs.c (emacs_copyright, emacs_version): Make static.
6668 (Vinitial_window_system, Vauto_save_list_file_name)
6669 (Vinhibit_redisplay): Remove declarations.
6670 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6671 for AIX.
6672
6673 Use const for some arrays and functions.
6674 * xterm.h (xg_set_icon_from_xpm_data):
6675 * xfns.c (xg_set_icon_from_xpm_data):
6676 * term.c (fkeys):
6677 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6678 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6679 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6680 (frame.c frame_parms):
6681 * emacs-icon.h (gnu_xpm_bits):
6682 * callint.c (callint_argfuns): Use const.
6683
6684 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6685
6686 * sysdep.c: Move include term.h last of includes (Bug#6812).
6687
6688 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6689
6690 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6691
6692 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6693
6694 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6695
6696 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6697
6698 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6699
6700 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6701
6702 * xterm.h (x_get_focus_frame): Declare.
6703
6704 * keyboard.h (poll_for_input_1): Unconditionally declare.
6705
6706 * nsterm.h (x_set_menu_bar_lines): Declare.
6707
6708 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6709
6710 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6711
6712 * window.c: Include menu.h.
6713
6714 * unexmacosx.c (print_region_list, print_regions)
6715 (build_region_list, find_emacs_zone_regions)
6716 (unexec_regions_merge, read_load_commands, dump_it)
6717 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6718
6719 * term.c: Check HAVE_SYS_IOCTL_H.
6720
6721 * sysdep.c: Check HAVE_TERM_H.
6722
6723 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6724
6725 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6726 (ns_ring_bell, ns_defined_color, hide_hourglass)
6727 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6728 Convert to ANSI C prototypes.
6729 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6730 before code.
6731
6732 * nsterm.h : Include sysselect.h.
6733 (x_sync, x_get_focus_frame, x_set_mouse_position)
6734 (x_set_mouse_pixel_position, x_make_frame_visible)
6735 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6736 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6737 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6738 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6739 Declare.
6740
6741 * nsmenu.m (popup_activated, name_is_separator)
6742 (syms_of_nsmenu): Convert to ANSI C prototypes.
6743 (runMenuAt): Prototypes and move declarations before code.
6744
6745 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6746
6747 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6748 prototypes.
6749
6750 * nsfns.m (have_menus_p, ns_display_info_for_name)
6751 (x_set_cursor_type, ns_appkit_version_str)
6752 (ns_appkit_version_int, ns_do_applescript)
6753 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6754 (syms_of_nsfns): Convert to ANSI C prototypes.
6755
6756 * menu.h (x_set_menu_bar_line): Declare.
6757 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6758
6759 * lisp.h (fmod_float): Declare.
6760
6761 * image.c (xpm_scan, xpm_make_color_table_v)
6762 (xpm_put_color_table_v, xpm_get_color_table_v)
6763 (xpm_make_color_table_h, xpm_put_color_table_h)
6764 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6765 (xpm_load): Convert to ANSI C prototypes.
6766
6767 * emacs.c: Include nsterm.h if HAVE_NS.
6768
6769 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6770
6771 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6772
6773 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6774 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6775 (socket_options): Use const char* for name.
6776
6777 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6778
6779 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6780
6781 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6782 Don't declare xmalloc_widget_value and digest_single_submenu.
6783
6784 * w32font.c (Qlatin): Remove declaration.
6785
6786 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6787
6788 * dired.c (compile_pattern): Restore declaration.
6789
6790 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6791
6792 Remove extern declarations in .c files, .h files have them.
6793 * data.c:
6794 * dired.c:
6795 * editfns.c:
6796 * filelock.c:
6797 * fns.c:
6798 * font.c:
6799 * fontset.c:
6800 * frame.c:
6801 * fringe.c:
6802 * ftfont.c:
6803 * gtkutil.c:
6804 * indent.c:
6805 * keyboard.c:
6806 * keymap.c:
6807 * lread.c:
6808 * menu.c:
6809 * print.c:
6810 * search.c:
6811 * sound.c:
6812 * window.c:
6813 * xdisp.c:
6814 * xfaces.c:
6815 * xfns.c:
6816 * xfont.c:
6817 * xftfont.c:
6818 * xmenu.c:
6819 * xterm.c: Remove declarations.
6820
6821 Cleanup syssignal.h.
6822 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6823 (main_thread): Move down to remove #ifdef.
6824 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6825 Remove conditional definition following unconditional ones.
6826
6827 * lisp.h: Remove HAVE_SHM code, unused.
6828 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6829 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6830 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6831 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6832 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6833 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6834 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6835 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6836 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6837 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6838 (Qwindow_scroll_functions, Vafter_load_alist)
6839 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6840 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6841 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6842 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6843 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6844 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6845 (initial_argv, last_nonmenu_event, load_in_progress)
6846 (noninteractive_need_newline, scroll_margin): Add declarations.
6847
6848 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6849 Remove declarations, menu.h has them.
6850 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6851 (Vinput_method_function, Qinput_method_function)
6852 (Qevent_symbol_element_mask, last_event_timestamp):
6853 * dispextern.h (Voverflow_newline_into_fringe):
6854 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6855 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6856 (syms_of_w32font, syms_of_nsfont):
6857 * fontset.h (find_font_encoding, Qlatin):
6858 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6859 (Vtool_bar_mode, set_frame_menubar):
6860 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6861 * xterm.h (Qx_gtk_map_stock):
6862 * keymap.h (meta_prefix_char): Add declarations.
6863
6864 * term.c: Remove dead code.
6865
6866 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6867 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6868 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6869 which is what was there before BSD_PGRPS was removed.
6870
6871 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6872
6873 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6874
6875 * unexcoff.c: Renamed from unexec.c.
6876
6877 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6878
6879 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6880
6881 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6882
6883 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6884 (Bug#6744)
6885
6886 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6887
6888 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6889 to TRUE if depth of screen is < 16.
6890
6891 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6892 USE_GTK_TOOLTIP.
6893 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6894 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6895 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6896 USE_GTK_TOOLTIP.
6897 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6898
6899 * xterm.h (USE_GTK_TOOLTIP): New define.
6900 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6901
6902 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6903 to Control-D (Bug#6771).
6904
6905 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6906
6907 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6908 Wording by Drew Adams <drew.adams@oracle.com>.
6909
6910 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6911
6912 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6913 ttip_lbl.
6914
6915 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6916 calling gtk_widget_queue_draw.
6917 (x_free_frame_resources): Call xg_free_frame_widgets.
6918
6919 * xfns.c (x_gtk_use_system_tooltips): New variable.
6920 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6921 new gtkutil tooltip functions to show the tooltip.
6922 (Fx_hide_tip): Call xg_hide_tooltip.
6923 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6924
6925 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6926 (xg_show_tooltip, xg_hide_tooltip): Declare.
6927
6928 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6929 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6930 New functions.
6931 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6932 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6933 Remove code that is commented out.
6934
6935 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6936
6937 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6938
6939 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6940
6941 * xselect.c (x_own_selection): Use list4.
6942
6943 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6944
6945 * buffer.c (Qwindow): Do not define, already defined in data.c.
6946 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6947
6948 2010-07-29 Chad Brown <yandros@mit.edu>
6949
6950 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6951 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6952 * config.in: Undef HAVE_DIRENT_H.
6953 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6954 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6955
6956 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6957
6958 Rename s/usg5-4.h -> s/usg5-4-common.h.
6959 * s/usg5-4.h: Rename file to ...
6960 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6961 * s/unixware.h:
6962 * s/sol2-6.h:
6963 * s/irix6-5.h: Update includes accordingly.
6964
6965 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6966
6967 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6968
6969 * xterm.h (struct x_output): Add toolbar_top_height,
6970 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6971 Remove toolbar_height.
6972 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6973 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6974 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6975 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6976
6977 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6978
6979 * xfns.c (x_set_tool_bar_position): New function.
6980 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6981 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6982 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6983
6984 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6985 and FRAME_TOOLBAR_LEFT_WIDTH.
6986
6987 * gtkutil.h (xg_change_toolbar_position): Declare.
6988
6989 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6990 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6991 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6992 (xg_create_frame_widgets): Create a hobox for placing widgets
6993 vertically. Use gtk_box_pack_start.
6994 (xg_height_or_width_changed): Rename from xg_height_changed.
6995 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6996 (xg_update_frame_menubar, free_frame_menubar): Change to
6997 xg_height_or_width_changed.
6998 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6999 size correctly. Remove hardcoded 4, instead use handlebox size -
7000 toolbar size.
7001 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
7002 size correctly. Use handlebox size + toolbar size as additional size.
7003 (xg_pack_tool_bar): POS is a new parameter.
7004 Set orientation of tool bar based on pos.
7005 Only make handlebox_widget if NULL.
7006 Check if tool bar goes to vbox or hbox depending on pos.
7007 (xg_update_tool_bar_sizes): New function.
7008 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
7009 height, call xg_update_tool_bar_sizes instead.
7010 (free_frame_tool_bar): Remove from hbox or vbox depending on
7011 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
7012 (xg_change_toolbar_position): New function.
7013
7014 * frame.h (struct frame): Add tool_bar_position.
7015 (Qbottom): Declare.
7016
7017 * frame.c (Qtool_bar_position): New variable.
7018 (make_frame): Set tool_bar_position to Qtop.
7019 (frame_parms): Add tool-bar-position.
7020 (x_report_frame_params): Store tool_bar_position.
7021 (x_set_fringe_width): Reset wm size hint after fringe changes.
7022
7023 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
7024
7025 Make lisp_time_argument declaration work on all systems.
7026 * lisp.h (lisp_time_argument): Move declaration ...
7027 * systime.h (lisp_time_argument): ... here
7028 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
7029
7030 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
7031
7032 * vm-limit.c (POINTER): Add typedef for it.
7033 (start_of_data): Change return type from POINTER to char *.
7034
7035 * frame.h (Qtty_color_mode): Move declaration out of ifdef
7036 HAVE_WINDOW_SYSTEM.
7037
7038 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
7039
7040 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
7041 Remove reference to __osf__, unused.
7042
7043 * mem-limits.h: Remove duplicated includes.
7044 (NULL): Remove definition, unused.
7045 (POINTER): Remove definition.
7046 (start_of_data): Use char* in prototype, as the function
7047 definition does.
7048
7049 Remove extern declarations from .c files, and them to .h files.
7050 * keyboard.h (Qhelp_echo, waiting_for_input)
7051 (input_available_clear_time, ignore_mouse_drag_p)
7052 (Vdouble_click_time, real_this_command, Vthis_original_command):
7053 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
7054 (Voverriding_local_map_menu_flag):
7055 * lisp.h (Qinteractive_form, use_file_dialog)
7056 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
7057 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
7058 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
7059 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
7060 (Qfunction, debug_on_next_call, Qfield)
7061 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
7062 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
7063 (Qfile_directory_p, Qinsert_file_contents)
7064 (Qcompletion_ignore_case, Qcompletion_ignore_case)
7065 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
7066 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
7067 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
7068 (Qminibuffer_prompt)
7069 (Vtemporary_file_directory,char_ins_del_vector, Qface):
7070 * xterm.h (gray_bitmap_width, gray_bitmap_height)
7071 (gray_bitmap_bits, xic_create_fontsetname):
7072 * coding.h (Vtranslation_table_for_input): Add extern declarations.
7073
7074 * xsmfns.c (Vuser_login_name):
7075 * xrdb.c (Vdouble_click_time):
7076 * xfaces.c (xic_create_fontsetname):
7077 * w32select.c (waiting_for_input):
7078 * print.c (minibuffer_auto_raise):
7079 * msdos.c (Qhelp_echo):
7080 * macros.c (real_this_command):
7081 * keymap.c (Voverriding_local_map):
7082 * xterm.c (poll_for_input_1, gray_bitmap_width)
7083 (gray_bitmap_height, gray_bitmap_bits;
7084 * xmenu.c ( Voverriding_local_map)
7085 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
7086 (use_file_dialog, Xt_app_con):
7087 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
7088 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
7089 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
7090 (Qtool_bar_lines, ignore_mouse_drag_p):
7091 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
7092 (Qrear_nonsticky, nconc2):
7093 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
7094 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
7095 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
7096 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
7097 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
7098 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
7099 (gc_in_progress):
7100 * doc.c (Voverriding_local_map, Qremap):
7101 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
7102 (Vcompletion_regexp_list):
7103 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
7104 (Qcompletion_ignore_case):
7105 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
7106 (Vhistory_length, Vthis_original_command, real_this_command)
7107 (Qface, Qminibuffer_prompt, history_delete_duplicates):
7108 * image.c (Qrisky_local_variable):
7109 * fontset.c (QCname):
7110 * fns.c (minibuffer_auto_raise, QCname):
7111 * dispnew.c (char_ins_del_cost):
7112 * composite.c (font_fill_lglyph_metrics):
7113 * cmds.c (Qface, Vtranslation_table_for_input):
7114 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
7115 * ccl.c (charset_unicode):
7116 * callproc.c (Vtemporary_file_directory):
7117 * buffer.c (emacs_strerror): Remove extern declarations.
7118
7119 * data.c (Qwindow): Make non-static, used from other files too.
7120 * frame.c (validate_x_resource_name): Remove shadow definition for i.
7121
7122 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
7123 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
7124 * s/usg5-4.h (COFF):
7125 * s/template.h:
7126 * s/msdos.h (COFF, NO_REMAP):
7127 * s/ms-w32.h (NO_REMAP):
7128 * s/hpux10-20.h (NO_REMAP):
7129 * m/sparc.h (SEGMENT_MASK):
7130 * m/m68k.h (NO_REMAP):
7131 * m/intel386.h (SEGMENT_MASK):
7132 * m/arm.h (NO_REMAP):
7133 * m/alpha.h (COFF):
7134 * m/template.h: Remove references to unused defines.
7135
7136 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
7137
7138 * xsettings.c (Ftool_bar_get_system_style): Also check for
7139 Qtext_image_horiz.
7140
7141 * xdisp.c (Qtext_image_horiz): Define.
7142 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
7143 to documentation of tool-bar-style.
7144
7145 * lisp.h (Qtext_image_horiz): Declare.
7146
7147 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
7148 style text_image_horiz.
7149
7150 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7151
7152 * emacs.c (Fkill_emacs): Remove return statement.
7153
7154 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
7155 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
7156 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
7157 Remove local extern declarations.
7158
7159 * xmenu.c: Do not included lwlib.h, not needed.
7160
7161 * m/iris4d.h (XUINT, XSET): Remove, not needed.
7162
7163 * process.c: Move definitions earlier to minimize #ifdefs.
7164
7165 * xterm.h (x_get_customization_string, x_load_resources)
7166 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
7167 (x_check_errors, x_property_data_to_lisp, defined_color)
7168 (xic_set_xfontset, x_defined_color): Use const.
7169
7170 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
7171 (x_text_icon, x_check_errors, x_connection_closed): Use const.
7172
7173 * xselect.c (selection_data_to_lisp_data)
7174 (x_property_data_to_lisp):
7175 * xrdb.c (x_get_string_resource, file_p)
7176 (x_get_customization_string, magic_file_p, search_magic_path)
7177 (get_system_app, get_user_app, x_load_resources, x_get_resource)
7178 (x_get_string_resource): Use const.
7179
7180 * xfns.c: Include xlwmenu.h when USE_LUCID.
7181 (x_defined_color, xic_set_xfontset): Use const.
7182 (Fx_hide_tip): Remove local extern declaration.
7183
7184 * xfaces.c (Qmouse_face): Remove declaration.
7185 (face_color_gray_p, tty_defined_color, defined_color)
7186 (face_color_gray_p, face_color_supported_p): Add const.
7187
7188 * xdisp.c (do_mouse_tracking): Remove declaration.
7189 (add_to_log): Use const.
7190
7191 * minibuf.c (Qmouse_face): Remove declaration.
7192
7193 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
7194
7195 * keyboard.h (do_mouse_tracking): Add declaration.
7196
7197 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
7198 (QCdata, QCtype, Qcenter): Remove declarations.
7199
7200 * frame.c (x_get_resource_string, x_get_string_resource)
7201 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7202 (x_default_parameter): Use const.
7203
7204 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
7205 (QCheight, QCsize, QCname): Remove declarations.
7206
7207 * emacs.c (main): Remove local extern declaration.
7208
7209 * editfns.c (region_limit, syms_of_editfns): Remove local extern
7210 declarations.
7211
7212 * dispnew.c: Remove duplicate #include <unistd.h>.
7213 (update_window, update_frame_1, init_display): Remove local extern
7214 declarations.
7215
7216 * dispextern.h (add_to_log): Remove declaration.
7217 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7218 (x_frame_get_and_record_arg, x_default_parameter): Add const.
7219
7220 * dired.c (scmp): Add const.
7221 (directory_files_internal): Remove local extern declaration.
7222
7223 * data.c (Finteractive_form): Use const.
7224
7225 * composite.c (syms_of_composite): Remove local extern declarations.
7226
7227 * charset.c (add_to_log): Remove declaration.
7228
7229 * character.c (strwidth, parse_str_to_multibyte): Add const.
7230
7231 * character.h (strwidth, parse_str_to_multibyte): Likewise.
7232
7233 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
7234
7235 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
7236 (Lisp_Subr): Make doc and intspec constant.
7237 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
7238 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
7239 (QCheight, QCsize, QCname, QCwidth, QCforeground)
7240 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
7241 (display_arg): Add declarations.
7242
7243 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
7244
7245 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
7246
7247 * window.c (Fwindow_height): Doc fix (bug#6518).
7248
7249 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
7250
7251 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
7252
7253 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
7254
7255 * keyboard.c (Ftop_level, Fexit_recursive_edit)
7256 (Fabort_recursive_edit): Remove return statements in NO_RETURN
7257 functions.
7258
7259 * frame.h (Qtty_color_mode): Add declaration.
7260
7261 * lisp.h (Ftop_level, Fexit_recursive_edit)
7262 (Fabort_recursive_edit): Mark as NO_RETURN.
7263
7264 2010-07-26 Kenichi Handa <handa@m17n.org>
7265
7266 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
7267 number of glyphs gets smaller than the original length. (Bug#6621)
7268
7269 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
7270
7271 * lread.c (unreadpure, mapatoms_1): Make static.
7272
7273 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7274
7275 * terminfo.c (tparam): Fix prototype of tparm.
7276
7277 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
7278
7279 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
7280 find start of text segment.
7281 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
7282 is defined.
7283
7284 * callproc.c (set_initial_environment): Avoid unbalanced braces.
7285
7286 2010-07-25 Ken Brown <kbrown@cornell.edu>
7287
7288 * vm-limit.c (check_memory_limits): Fix previous change;
7289 accidentally reverted an earlier change.
7290
7291 2010-07-25 Ken Brown <kbrown@cornell.edu>
7292
7293 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
7294 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
7295
7296 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7297
7298 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
7299 * dired.c (opendir, readdir): Fix prototypes.
7300 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7301 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7302 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7303 (telldir): Remove declaration.
7304 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7305 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7306 * syssignal.h (strsignal): Fix prototype.
7307 * term.c (tparam): Fix prototype.
7308 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7309 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7310 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7311 and __morecore.
7312 * w32gui.h (XParseGeometry): Fix prototype.
7313 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7314 * w32term.c (my_set_focus): Declare inside #if 0.
7315 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7316 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7317 (drain_message_queue, get_next_msg, post_msg, parse_button)
7318 (ClipboardSequence_Proc): Fix prototypes.
7319 (wait_for_sync): Remove declaration.
7320
7321 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
7322
7323 * w32fns.c (w32_to_x_color): Remove, unused.
7324
7325 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7326
7327 * lisp.h: Remove leftover P_.
7328
7329 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7330
7331 * ecrt0.c, unexalpha.c: Remove files, unused.
7332
7333 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7334
7335 * cmds.c (internal_self_insert): Make static.
7336 * lisp.h (internal_self_insert): Remove declaration.
7337
7338 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
7339
7340 * alloc.c (free_float):
7341 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7342 * frame.c (delete_frame_handler):
7343 * ralloc.c (reorder_bloc):
7344 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7345 Remove unused static functions.
7346
7347 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7348 it is called only from NS code.
7349
7350 * w32term.c (my_set_focus): #ifdef away; it is called only from
7351 "#ifdef 0" code.
7352
7353 * w32fns.c (x_edge_detection):
7354 * xfaces.c (may_use_scalable_font_p):
7355 Remove obsolete static declarations.
7356
7357 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
7358
7359 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7360 (emacs_blocked_realloc, uninterrupt_malloc):
7361 * fringe.c (w32_reset_fringes):
7362 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7363 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7364 * sound.c (be2hs, do_play_sound):
7365 * vm-limit.c (get_lim_data, ret_lim_data):
7366 * w32term.c (x_free_frame_resources):
7367 * xfaces.c (x_create_gc, x_free_gc):
7368 Convert definitions to standard C.
7369
7370 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7371
7372 * eval.c (Feval, Ffuncall): Use the new names.
7373
7374 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7375 (DEFUN): Add braces around the union initialisation and use ## to
7376 specify the right union alternative and avoid a cast.
7377
7378 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
7379
7380 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7381
7382 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
7383
7384 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7385
7386 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7387
7388 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7389 is related to the menu bar (Bug#6499).
7390 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
7391
7392 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7393
7394 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7395
7396 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7397
7398 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7399 i.e. don't put back ButtonRelease (Bug#6608).
7400
7401 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7402 instead of Window. Call xg_event_is_for_menubar when
7403 USE_GTK (Bug#6499).
7404
7405 * gtkutil.h (xg_event_is_for_menubar): Declare.
7406
7407 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7408
7409 2010-07-16 Eli Zaretskii <eliz@gnu.org>
7410
7411 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7412 when it's the same as the old foreground. (Bug#6609)
7413
7414 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7415
7416 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7417 widget is non-null (Bug#6645).
7418
7419 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7420
7421 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7422 Convert old-style definition.
7423
7424 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7425 timestamp argument.
7426
7427 2010-07-15 Eli Zaretskii <eliz@gnu.org>
7428
7429 * fringe.c (update_window_fringes): Restore mistakenly reverted
7430 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7431
7432 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7433
7434 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7435 (SET_SAVED_KEY_EVENT): Remove (not used).
7436 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7437 remove size parameter.
7438 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7439 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7440 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7441 ButtonRelease.
7442 (x_set_window_size_1): scroll_bar_actual_width is always
7443 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7444
7445 * xdisp.c (pending_menu_activation): Remove extern declaration.
7446 (prepare_menu_bars): Remove setting of pending_menu_activation.
7447
7448 * xmenu.c (pending_menu_activation): Remove.
7449 (x_activate_menubar): Set popup_activated_flag for Xt also.
7450 Remove setting of pending_menu_activation.
7451 (set_frame_menubar): Remove check of pending_menu_activation.
7452 Declare menubar_size before code. Correct spelling in comment.
7453
7454 2010-07-14 Kenichi Handa <handa@m17n.org>
7455
7456 * font.c (font_open_entity): Cancel previous change.
7457 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7458
7459 2010-07-13 Eli Zaretskii <eliz@gnu.org>
7460
7461 Remove subprocesses #ifdefs.
7462 * process.c <inhibit_sentinels>: Move to the common part.
7463 (Fwaiting_for_user_input_p): Move to the common part; return nil
7464 if async subprocesses aren't supported.
7465 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7466 MS-DOS. Remove "#ifdef subprocesses".
7467 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7468 (gettimeofday): Remove "#ifdef subprocesses".
7469 (wait_without_blocking): Remove function.
7470 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7471 Remove "#ifdef subprocesses".
7472 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7473 compiled on MS-DOS.
7474 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7475 wait_for_termination on MS-DOS.
7476 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7477 initialization of inhibit_sentinels.
7478 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7479 subprocesses" conditional.
7480 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7481 wait_for_termination, since `buffer' cannot be an integer when
7482 async subprocesses are not supported
7483 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7484 for ifdefing away the call to Fprocess_status.
7485
7486 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7487 away the entire body of the function.
7488
7489 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7490
7491 Remove subprocesses #ifdefs from term.c.
7492 * process.c (add_keyboard_wait_descriptor)
7493 (delete_keyboard_wait_descriptor): Move to common section, do
7494 nothing when subprocesses is not defined.
7495 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7496 Remove subprocesses #ifdefs.
7497
7498 Convert maybe_fatal to standard C.
7499 * lisp.h (verror): Declare.
7500 * eval.c (verror): New function containing the code from ...
7501 (error): ... this. Call verror.
7502 * term.c (vfatal): New function containing the code from ...
7503 (fatal): ... this. Call vfatal.
7504 (maybe_fatal): Convert to standard C, use variable number of
7505 arguments. Declare as non-return.
7506 (init_tty): Fix maybe_fatal call.
7507
7508 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7509
7510 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7511 (_scroll_bar_note_movement): Convert definitions to standard C.
7512 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7513 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7514
7515 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7518 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7519 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7520 (xaw_jump_callback, xaw_scroll_callback)
7521 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7522 (x_wm_set_size_hint, x_activate_timeout_atimer):
7523 Convert definitions to standard C.
7524 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7525 (popup_activate_callback, popup_deactivate_callback)
7526 (menu_highlight_callback, menubar_selection_callback)
7527 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7528 (free_frame_menubar, popup_selection_callback, as)
7529 (create_and_show_popup_menu, dialog_selection_callback)
7530 (create_and_show_dialog):
7531 * xfns.c (hack_wm_protocols, x_window):
7532 * xfaces.c (x_update_menu_appearance):
7533 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7534 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7535 (set_frame_size, update_wm_hints, setup_frame_gcs)
7536 (update_various_frame_slots, update_from_various_frame_slots)
7537 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7538 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7539 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7540
7541 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7542
7543 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7544
7545 2010-07-12 Eli Zaretskii <eliz@gnu.org>
7546
7547 * process.c (setup_process_coding_systems): Move to the part
7548 shared by non-subprocesses systems, and make its body empty when
7549 subprocesses is not defined.
7550 (close_process_descs): Move to the part shared by non-subprocesses
7551 systems.
7552 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7553 ANSI C.
7554
7555 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7556
7557 * editfns.c (transpose_markers): Convert old-style definition.
7558 * emacs.c (abort, shut_down_emacs, fixup_locale)
7559 (synchronize_system_time_locale)
7560 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7561 * floatfns.c (extract_float, matherr, init_floatfns)
7562 (syms_of_floatfns): Likewise.
7563 * fns.c (make_hash_table): Likewise.
7564 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7565 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7566 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7567 (ftfont_variation_glyphs): Likewise.
7568 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7569 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7570 * lread.c (read_filtered_event): Likewise.
7571 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7572 * process.c (wait_reading_process_output): Likewise.
7573 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7574 * search.c (search_buffer, boyer_moore): Likewise.
7575 * syntax.c (scan_sexps_forward): Likewise.
7576 * xdisp.c (try_scrolling): Likewise.
7577 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7578 (face_at_string_position): Likewise.
7579 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7580 * xselect.c (x_get_window_property, receive_incremental_selection)
7581 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7582 Likewise.
7583 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7584
7585 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7586
7587 * callproc.c (child_setup): Remove subprocesses conditional.
7588 Remove code dealing with SET_EMACS_PRIORITY, unused.
7589
7590 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7591 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7592
7593 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7594 (__do_global_dtors, __main): Use void in definition.
7595 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7596 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7597 the only users from ...
7598 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7599 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7600 (HAVE_VOLATILE): Remove, unused.
7601
7602 Convert more function definitions to standard C.
7603 * xdisp.c (window_box_edges, handle_single_display_spec)
7604 (display_string): Convert definition to standard C.
7605 * scroll.c (do_direct_scrolling, scrolling_1):
7606 * dispnew.c (allocate_matrices_for_frame_redisplay)
7607 (mirrored_line_dance):
7608 * coding.c (code_convert_string):
7609 * charset.c (map_charset_chars):
7610 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7611 (Fregister_ccl_program, Fregister_code_conversion_map):
7612 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7613 (head_table): Make static and const.
7614
7615 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7616
7617 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7618 (PROFILING_LDFLAGS): Set from substitution.
7619 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7620 CFLAGS last.
7621
7622 2010-07-12 Kenichi Handa <handa@m17n.org>
7623
7624 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7625 (shortlisp): Likewise.
7626
7627 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7628
7629 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7630 of FONT_ENTITY_INDEX.
7631 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7632 property, get the property value dynamically.
7633 (Ffont_put): Accept font-entity and font-object too.
7634 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
7635 return value changed.
7636 (syms_of_font): Adjust for the above change.
7637
7638 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7639
7640 * blockinput.h: Remove obsolete comment.
7641
7642 * lisp.h: Include <stddef.h>.
7643 (OFFSETOF): Don't define.
7644 (VECSIZE): Use offsetof instead of OFFSETOF.
7645 (PSEUDOVECSIZE): Likewise.
7646 * process.c (conv_sockaddr_to_lisp): Likewise.
7647 * alloc.c: Don't include <stddef.h>.
7648 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7649
7650 * process.c: Remove obsolete comment.
7651
7652 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7655
7656 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7657
7658 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7659 index, rindex.
7660 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7661 * editfns.c (Fuser_full_name, Fformat): Likewise.
7662 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7663 * fileio.c (Ffile_symlink_p): Likewise.
7664 * filelock.c (current_lock_owner): Likewise.
7665 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7666 * fontset.c (fontset_pattern_regexp): Likewise.
7667 * lread.c (read1): Likewise.
7668 * sysdep.c (init_system_name): Likewise.
7669 * xfns.c (select_visual): Likewise.
7670 * s/hpux10-20.h (index, rindex): Don't define.
7671 * s/ms-w32.h (index): Likewise.
7672 * s/usg5-4.h: Likewise.
7673
7674 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7675
7676 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7677 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7678 (egetenv): Likewise.
7679 * doprnt.c (doprnt): Likewise.
7680 * editfns.c (set_time_zone_rule, format2): Likewise.
7681 * emacs.c (decode_env_path): Likewise.
7682 * eval.c (signal_error, error): Likewise.
7683 * insdel.c (replace_range_2): Likewise.
7684 * keyboard.c (cmd_error_internal): Likewise.
7685 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7686 * print.c (write_string, write_string_1, print_error_message):
7687 Likewise.
7688 * vm-limit.c (warn_function, memory_warnings): Likewise.
7689 * xdisp.c (message1, message1_nolog, message_with_string)
7690 (vmessage, message, message_nolog): Likewise.
7691 * emacs.c: Remove duplicate declaration.
7692 * keyboard.h: Likewise.
7693 * lisp.h: Update prototypes.
7694
7695 * eval.c: Fix indentation problem.
7696
7697 * keyboard.c: Include "process.h".
7698
7699 * eval.c: Remove obsolete noinline declaration.
7700 * fns.c: Likewise.
7701
7702 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7703
7704 * doprnt.c (doprnt): Take a va_list argument instead of count and
7705 pointer.
7706 * eval.c (error): Change to a standard-C variadic function.
7707 * xdisp.c (vmessage): Rename from message, made static, and
7708 changed to take a va_list argument.
7709 (message): New variadic wrapper.
7710 (message_nolog): Now a variadic function, calling vmessage.
7711 * lisp.h: Include stdarg.h for va_list.
7712 (doprnt, error, message, message_nolog): Decls updated.
7713
7714 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7715
7716 * process.c (syms_of_process) <delete-exited-processes>: Define
7717 even if !subprocesses.
7718 (delete_exited_processes): Ditto.
7719
7720 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7721 (delete_exited_processes): Don't define.
7722
7723 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7724
7725 * frame.c (make_frame): Initialize menu_bar_lines and
7726 tool_bar_lines members.
7727 (make_initial_frame, make_terminal_frame):
7728 Initialize menu_bar_lines using value of menu-bar-mode.
7729
7730 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7731
7732 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7733
7734 * process.c: Reshuffle #include's. Condition some of the global
7735 and static variables on `subprocesses'.
7736 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7737 Leave only one implementation.
7738 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7739 (kill_buffer_processes, Flist_system_processes)
7740 (Fprocess_attributes, init_process, syms_of_process): Unify the
7741 implementations for with subprocesses and without them.
7742
7743 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7744
7745 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7746 correct size for Motif.
7747 (free_frame_menubar): Call x_set_window_size to update frame size.
7748
7749 * xfns.c (x_window): Set borderWidth to 0 for pane and
7750 EmacsFrame. Frame size calculation is wrong otherwise.
7751
7752 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7753
7754 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7755 allows to suppress errors when polling in Emacs' main loop.
7756 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7757 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7758 (Fdbus_method_error_internal, Fdbus_send_signal)
7759 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7760 (Fdbus_register_method): Use it. (Bug#6579)
7761
7762 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7763
7764 * alloc.c: Convert DEFUNs to standard C.
7765 * buffer.c:
7766 * bytecode.c:
7767 * callint.c:
7768 * callproc.c:
7769 * casefiddle.c:
7770 * casetab.c:
7771 * category.c:
7772 * character.c:
7773 * charset.c:
7774 * chartab.c:
7775 * cmds.c:
7776 * coding.c:
7777 * composite.c:
7778 * data.c:
7779 * dbusbind.c:
7780 * dired.c:
7781 * dispnew.c:
7782 * doc.c:
7783 * dosfns.c:
7784 * editfns.c:
7785 * emacs.c:
7786 * eval.c:
7787 * fileio.c:
7788 * filelock.c:
7789 * floatfns.c:
7790 * fns.c:
7791 * font.c:
7792 * fontset.c:
7793 * frame.c:
7794 * fringe.c:
7795 * image.c:
7796 * indent.c:
7797 * insdel.c:
7798 * keyboard.c:
7799 * keymap.c:
7800 * lread.c:
7801 * macros.c:
7802 * marker.c:
7803 * menu.c:
7804 * minibuf.c:
7805 * msdos.c:
7806 * nsfns.m:
7807 * nsmenu.m:
7808 * nsselect.m:
7809 * print.c:
7810 * process.c:
7811 * search.c:
7812 * sound.c:
7813 * syntax.c:
7814 * term.c:
7815 * terminal.c:
7816 * textprop.c:
7817 * undo.c:
7818 * w16select.c:
7819 * w32console.c:
7820 * w32fns.c:
7821 * w32font.c:
7822 * w32menu.c:
7823 * w32proc.c:
7824 * w32select.c:
7825 * window.c:
7826 * xdisp.c:
7827 * xfaces.c:
7828 * xfns.c:
7829 * xmenu.c:
7830 * xselect.c:
7831 * xsettings.c:
7832 * xsmfns.c: Likewise.
7833
7834 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7835
7836 * process.c (kbd_is_on_hold, hold_keyboard_input)
7837 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7838
7839 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7840
7841 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7842 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7843 unless USE_LUCID.
7844
7845 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7846
7847 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7848 declaration.
7849
7850 Clean up include guards.
7851 * tparam.c: Remove include guards for config.h, string.h and code
7852 that assumes #ifndef emacs.
7853 * termcap.c:
7854 * unexalpha.c:
7855 * sysdep.c:
7856 * filemode.c:
7857 * filelock.c:
7858 * bidi.c: Likewise.
7859
7860 Remove prefix-args.c
7861 * prefix-args.c: Remove file.
7862 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7863 * Makefile.in (temacs${EXEEXT}): Remove references to
7864 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7865 (mostlyclean): Remove reference to prefix-args.
7866 (prefix-args): Remove.
7867
7868 Simplify cstart_of_data, start_of_code and related code.
7869 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7870 (start_of_data): Merge into start_of_data function.
7871 * sysdep.c (start_of_text): Remove. Move simplified versions of
7872 it in the only users: unexaix.c and unexec.c.
7873 (read_input_waiting): Remove local declaration of quit_char.
7874 (start, etext): Remove declarations.
7875 (start_of_data): Merge with the version in mem-limits.h and move
7876 to vm-limits.c.
7877 * vm-limit.c (start_of_data): Merged and simplified version of the
7878 code formerly in mem-limits.h and sysdep.c.
7879 * unexec.c (start): New declaration, moved from sysdep.c.
7880 (start_of_text): Simplified version of the code formerly in sysdep.c.
7881 * unexaix.c (start_of_text): Simplified version of the code
7882 formerly in sysdep.c.
7883 * m/alpha.h (HAVE_TEXT_START): Remove.
7884 (TEXT_START): Move ...
7885 * unexalpha.c (TEXT_START): ... here.
7886 * s/hpux10-20.h (TEXT_START): Remove.
7887 * s/darwin.h (TEXT_START):
7888 * m/mips.h (TEXT_START):
7889 * m/macppc.h (HAVE_TEXT_START):
7890 * m/m68k.h (TEXT_START):
7891 * m/iris4d.h (TEXT_START):
7892 * m/intel386.h (TEXT_START):
7893 * m/ibmrs6000.h (TEXT_START):
7894 * m/ia64.h (HAVE_TEXT_START):
7895 * s/msdos.h (TEXT_START): Likewise.
7896
7897 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7898
7899 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7900 (overrun_check_free, xstrdup, allocate_string)
7901 (allocate_string_data, compact_small_strings, Fmake_string)
7902 (make_unibyte_string, make_multibyte_string)
7903 (make_string_from_bytes, make_specified_string, make_float)
7904 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7905 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7906 memcpy, memmove, memset, memcmp.
7907 * atimer.c (start_atimer, set_alarm): Likewise.
7908 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7909 (mmap_realloc, init_buffer_once): Likewise.
7910 * callint.c (Fcall_interactively): Likewise.
7911 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7912 (getenv_internal_1): Likewise.
7913 * casefiddle.c (casify_object): Likewise.
7914 * ccl.c (ccl_driver): Likewise.
7915 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7916 * charset.c (load_charset_map_from_file)
7917 (load_charset_map_from_file, load_charset_map_from_vector)
7918 (Fdefine_charset_internal): Likewise.
7919 * cm.c (Wcm_clear): Likewise.
7920 * coding.c (decode_eol, decode_coding_object)
7921 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7922 * data.c (Faset): Likewise.
7923 * dired.c (directory_files_internal, file_name_completion_stat):
7924 Likewise.
7925 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7926 (clear_glyph_row, copy_row_except_pointers)
7927 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7928 (save_current_matrix, restore_current_matrix)
7929 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7930 (mirror_line_dance, scrolling_window): Likewise.
7931 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7932 Likewise.
7933 * doprnt.c (doprnt): Likewise.
7934 * editfns.c (Fuser_full_name, make_buffer_string_both)
7935 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7936 * emacs.c (sort_args): Likewise.
7937 * eval.c (Fapply, Ffuncall): Likewise.
7938 * fileio.c (Ffile_name_directory, make_temp_name)
7939 (Fexpand_file_name, search_embedded_absfilename)
7940 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7941 (auto_save_error): Likewise.
7942 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7943 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7944 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7945 (Fmake_hash_table): Likewise.
7946 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7947 * ftfont.c (ftfont_text_extents): Likewise.
7948 * getloadavg.c (getloadavg): Likewise.
7949 * image.c (define_image_type, make_image, make_image_cache)
7950 (x_create_x_image_and_pixmap, xbm_image_p)
7951 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7952 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7953 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7954 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7955 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7956 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7957 Likewise.
7958 * indent.c (scan_for_column, compute_motion): Likewise.
7959 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7960 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7961 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7962 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7963 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7964 (store_user_signal_events, menu_bar_items, tool_bar_items)
7965 (process_tool_bar_item, append_tool_bar_item)
7966 (read_char_minibuf_menu_prompt, read_key_sequence)
7967 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7968 Likewise.
7969 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7970 Likewise.
7971 * lisp.h (STRING_COPYIN): Likewise.
7972 * lread.c (Fload, read1, oblookup): Likewise.
7973 * msdos.c (Frecent_doskeys): Likewise.
7974 * nsfns.m (Fx_create_frame): Likewise.
7975 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7976 Likewise.
7977 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7978 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7979 Likewise.
7980 * nsmenu.m (ns_update_menubar): Likewise.
7981 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7982 * print.c (print_unwind, printchar, strout, print_string)
7983 (print_error_message): Likewise.
7984 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7985 (Fmake_network_process, Fnetwork_interface_list)
7986 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7987 (init_process): Likewise.
7988 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7989 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7990 Likewise.
7991 * scroll.c (do_scrolling, do_direct_scrolling)
7992 (scrolling_max_lines_saved): Likewise.
7993 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7994 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7995 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7996 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7997 (emacs_set_tty): Likewise.
7998 * term.c (encode_terminal_code, calculate_costs)
7999 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
8000 Likewise.
8001 * termcap.c (tgetst1, gobble_line): Likewise.
8002 * termhooks.h (EVENT_INIT): Likewise.
8003 * tparam.c (tparam1): Likewise.
8004 * unexalpha.c (unexec): Likewise.
8005 * unexec.c (write_segment): Likewise.
8006 * unexmacosx.c (unexec_write_zero): Likewise.
8007 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
8008 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
8009 * w32font.c (w32font_list_family, w32font_text_extents)
8010 (w32font_list_internal, w32font_match_internal)
8011 (w32font_open_internal, compute_metrics, Fx_select_font):
8012 Likewise.
8013 * w32menu.c (set_frame_menubar, add_menu_item)
8014 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
8015 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
8016 * w32uniscribe.c (uniscribe_list_family): Likewise.
8017 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
8018 * window.c (make_window, replace_window, set_window_buffer)
8019 (Fsplit_window): Likewise.
8020 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
8021 (add_to_log, message3, x_consider_frame_title)
8022 (append_space_for_newline, extend_face_to_end_of_line)
8023 (decode_mode_spec_coding, init_glyph_string): Likewise.
8024 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
8025 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
8026 (face_attr_equal_p, make_realized_face, make_face_cache)
8027 (free_realized_faces, lookup_named_face, smaller_face)
8028 (face_with_height, lookup_derived_face)
8029 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
8030 (Finternal_set_font_selection_order, realize_default_face)
8031 (compute_char_face, face_at_buffer_position)
8032 (face_for_overlay_string, face_at_string_position, merge_faces):
8033 Likewise.
8034 * xfns.c (xic_create_fontsetname, Fx_create_frame)
8035 (Fx_window_property, x_create_tip_frame)
8036 (Fx_backspace_delete_keys_p): Likewise.
8037 * xfont.c (xfont_list, xfont_match, xfont_list_family)
8038 (xfont_text_extents): Likewise.
8039 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
8040 * xrdb.c (magic_file_p, x_get_resource): Likewise.
8041 * xselect.c (x_queue_event, x_get_window_property)
8042 (receive_incremental_selection): Likewise.
8043 * xsmfns.c (x_session_check_input): Likewise.
8044 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
8045 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
8046 Likewise.
8047 * character.h (BCOPY_SHORT): Remove.
8048 * config.in: Regenerate.
8049 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
8050 * emacs.c (main) [PROFILING]: Don't declare
8051 dump_opcode_frequencies.
8052 * lisp.h (safe_bcopy): Remove declaration.
8053 (memset) [!HAVE_MEMSET]: Declare.
8054 (memcpy) [!HAVE_MEMCPY]: Likewise.
8055 (memmove) [!HAVE_MEMMOVE]: Likewise.
8056 (memcmp) [!HAVE_MEMCMP]: Likewise.
8057 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
8058 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
8059 Don't define.
8060 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
8061 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
8062 (BCOPY_DOWNWARD_SAFE): Don't define.
8063 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
8064 (memcpy) [!HAVE_MEMCPY]: Define.
8065 (memmove) [!HAVE_MEMMOVE]: Define.
8066 (memcmp) [!HAVE_MEMCMP]: Define.
8067
8068 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
8069
8070 * process.c (kbd_is_on_hold): New variable.
8071 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
8072 New functions.
8073 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
8074 select on empty input mask.
8075 (init_process): Initialize kbd_is_on_hold to 0.
8076
8077 * process.h (hold_keyboard_input, unhold_keyboard_input)
8078 (kbd_on_hold_p): Declare.
8079
8080 * keyboard.c (input_available_signal): Declare.
8081 (kbd_buffer_nr_stored): New function.
8082 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
8083 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
8084 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
8085 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
8086 (tty_read_avail_input): If input is on hold, return.
8087 Don't read more that free slots in kbd_buffer (Bug#6571).
8088
8089 2010-07-07 Eli Zaretskii <eliz@gnu.org>
8090
8091 * msdos.h:
8092 * msdos.c:
8093 * dosfns.c:
8094 * w16select.c: Convert function definitions to ANSI C.
8095
8096 * msdos.h (ctrl_break_func, install_ctrl_break_check):
8097 Remove unused prototypes.
8098
8099 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8100
8101 * coding.c, sysdep.c: Convert some more functions to standard C.
8102
8103 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
8104
8105 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
8106 (encode_coding_object): Use SPECPDL_INDEX.
8107 (syms_of_coding): Use DOS_NT.
8108
8109 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
8110
8111 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
8112
8113 Make the function member of Lisp_Subr use standard C prototypes.
8114 * lisp.h (struct Lisp_Subr): Use a union for the function member.
8115 (DECL_ALIGN): Add a cast for the function.
8116 * eval.c (Feval, Ffuncall): Use the proper type for each type
8117 function call.
8118
8119 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
8120
8121 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
8122 fringe face id, so face-remapping-alist works (Bug#6091).
8123
8124 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
8125
8126 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
8127 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
8128 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
8129
8130 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
8131
8132 * xterm.c (x_get_keysym_name): Change type of parameter to int.
8133 * lisp.h: Declare x_get_keysym_name.
8134 * keyboard.c (modify_event_symbol): Don't declare
8135 x_get_keysym_name here.
8136
8137 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
8138
8139 * ecrt0.c: Revert conversion to standard C.
8140
8141 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8142
8143 * vm-limit.c (memory_warnings):
8144 * keyboard.c (modify_event_symbol):
8145 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
8146 (round2, emacs_rint):
8147 * process.c (send_process, old_sigpipe): Convert function
8148 definitions and declarations to standard C.
8149
8150 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
8151
8152 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
8153 * xdisp.c: Convert function definitions to standard C.
8154
8155 * cm.c (cmputc): Arg C is now int, not char.
8156 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
8157
8158 2010-07-05 James Cloos <cloos@jhcloos.com>
8159
8160 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
8161
8162 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
8163 _NET_WM_ICON_NAME atoms.
8164
8165 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
8166 and _NET_WM_ICON_NAME properties, too, matching what is
8167 done in the Gtk+ case.
8168
8169 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
8170
8171 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
8172
8173 * xsmfns.c (SSDATA): New macro.
8174 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
8175 passed to strlen/strcpy/strcat.
8176 (create_client_leader_window): Surround with #ifndef USE_GTK.
8177 Cast 7:th arg to XChangeProperty to (unsigned char *).
8178
8179 * xsettings.c (something_changedCB, parse_settings)
8180 (apply_xft_settings): Reformat prototype.
8181 (something_changedCB, init_gconf): Remove unused variable i.
8182 (read_settings): Remove unused variable long_len.
8183
8184 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
8185 (xg_get_image_for_pixmap, create_dialog)
8186 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
8187 (menuitem_highlight_callback, make_menu_item)
8188 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
8189 (xg_create_scroll_bar, xg_update_scrollbar_pos)
8190 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
8191 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
8192 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
8193 (xg_tool_bar_item_expose_callback): Reformat prototype.
8194 (xg_update_menubar): GList *group => GSList *group.
8195 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
8196 before use.
8197 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
8198 to GTK_IMAGE (wimage).
8199
8200 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8201
8202 * atimer.c: Use "" instead of <> for local includes for
8203 consistency with the rest of the code.
8204
8205 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
8206 * xrdb.c (get_system_name):
8207 * window.c (shrink_windows):
8208 * syntax.c (forw_comment):
8209 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
8210 (ins_del_costs):
8211 * mem-limits.h (start_of_data):
8212 * lread.c (readevalloop):
8213 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
8214 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
8215 * frame.c (x_get_focus_frame):
8216 * floatfns.c (fmod_float):
8217 * fileio.c (choose_write_coding_system):
8218 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
8219 (malloc_initialize_hook, sort_args, synchronize_locale):
8220 * doprnt.c (doprnt):
8221 * dired.c (compile_pattern):
8222 * data.c (fmod_float):
8223 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
8224 (map_char_table_for_charset):
8225 * charset.c (define_charset_internal):
8226 * alloc.c (Fgarbage_collect): Convert declarations or definitions
8227 to standard C.
8228
8229 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
8230 Stefan Monnier <monnier@iro.umontreal.ca>
8231
8232 * lread.c (read1): Fix up last change to not mess up `c'.
8233
8234 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8235
8236 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
8237
8238 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8239
8240 Fix prototypes.
8241
8242 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
8243 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
8244 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
8245 arg, as required by internal_condition_case_1.
8246 * print.c (strout): Use const char* for arg PTR.
8247 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
8248 (analyse_first): Fix "const const".
8249 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
8250 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
8251 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
8252
8253 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
8254
8255 * alloc.c: Convert function definitions to standard C.
8256 * atimer.c:
8257 * bidi.c:
8258 * bytecode.c:
8259 * callint.c:
8260 * callproc.c:
8261 * casefiddle.c:
8262 * casetab.c:
8263 * category.c:
8264 * ccl.c:
8265 * character.c:
8266 * charset.c:
8267 * chartab.c:
8268 * cmds.c:
8269 * coding.c:
8270 * composite.c:
8271 * data.c:
8272 * dbusbind.c:
8273 * dired.c:
8274 * dispnew.c:
8275 * doc.c:
8276 * doprnt.c:
8277 * ecrt0.c:
8278 * editfns.c:
8279 * fileio.c:
8280 * filelock.c:
8281 * filemode.c:
8282 * fns.c:
8283 * font.c:
8284 * fontset.c:
8285 * frame.c:
8286 * fringe.c:
8287 * ftfont.c:
8288 * ftxfont.c:
8289 * gtkutil.c:
8290 * indent.c:
8291 * insdel.c:
8292 * intervals.c:
8293 * keymap.c:
8294 * lread.c:
8295 * macros.c:
8296 * marker.c:
8297 * md5.c:
8298 * menu.c:
8299 * minibuf.c:
8300 * prefix-args.c:
8301 * print.c:
8302 * ralloc.c:
8303 * regex.c:
8304 * region-cache.c:
8305 * scroll.c:
8306 * search.c:
8307 * sound.c:
8308 * strftime.c:
8309 * syntax.c:
8310 * sysdep.c:
8311 * termcap.c:
8312 * terminal.c:
8313 * terminfo.c:
8314 * textprop.c:
8315 * tparam.c:
8316 * undo.c:
8317 * unexelf.c:
8318 * window.c:
8319 * xfaces.c:
8320 * xfns.c:
8321 * xfont.c:
8322 * xftfont.c:
8323 * xgselect.c:
8324 * xmenu.c:
8325 * xrdb.c:
8326 * xselect.c:
8327 * xsettings.c:
8328 * xsmfns.c:
8329 * xterm.c: Likewise.
8330
8331 2010-07-03 Eli Zaretskii <eliz@gnu.org>
8332
8333 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8334 frames other than the initial one. Fix reversal of colors when
8335 `reverse' is specified in the frame parameters.
8336 Call update_face_from_frame_parameter instead of
8337 internal-set-lisp-face-attribute. Initialize screen colors from
8338 initial_screen_colors[] when f->default_face_done_p is zero,
8339 instead of depending on being called with default-frame-alist as
8340 the alist argument.
8341
8342 * xfaces.c (update_face_from_frame_parameter): Move out of
8343 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8344 with HAVE_WINDOW_SYSTEM.
8345
8346 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8347 to menu-bar-mode, if not set in the frame parameters or in
8348 default-frame-alist.
8349
8350 * w32console.c (sys_tputs): Adjust argument list to prototype in
8351 term.c.
8352
8353 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
8354
8355 * lisp.h (memory_warnings): Fix prototype.
8356
8357 * cm.h (evalcost): Fix prototype.
8358
8359 * cm.c (evalcost): Fix arg type.
8360
8361 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8362
8363 * term.c (term_clear_mouse_face, Fidentity):
8364 * syssignal.h (signal_handler_t):
8365 * lisp.h (memory_warnings):
8366 * coding.h (preferred_coding_system):
8367 * cm.h (evalcost):
8368 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8369
8370 2010-07-02 Eli Zaretskii <eliz@gnu.org>
8371
8372 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8373 from prototypes.
8374
8375 * msdos.h (load_pixmap): Don't define away.
8376
8377 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8378
8379 * lisp.h:
8380 * atimer.h: Remove define for P_.
8381
8382 * alloc.c: Remove __P and P_ from .c and .m files.
8383 * atimer.c:
8384 * buffer.c:
8385 * callint.c:
8386 * category.c:
8387 * charset.c:
8388 * chartab.c:
8389 * cm.c:
8390 * coding.c:
8391 * composite.c:
8392 * data.c:
8393 * dired.c:
8394 * dispnew.c:
8395 * doc.c:
8396 * editfns.c:
8397 * emacs.c:
8398 * eval.c:
8399 * fileio.c:
8400 * filelock.c:
8401 * fns.c:
8402 * font.c:
8403 * fontset.c:
8404 * frame.c:
8405 * ftfont.c:
8406 * ftxfont.c:
8407 * gmalloc.c:
8408 * gtkutil.c:
8409 * image.c:
8410 * indent.c:
8411 * intervals.c:
8412 * keyboard.c:
8413 * keymap.c:
8414 * lread.c:
8415 * marker.c:
8416 * menu.c:
8417 * minibuf.c:
8418 * print.c:
8419 * process.c:
8420 * scroll.c:
8421 * search.c:
8422 * sound.c:
8423 * strftime.c:
8424 * syntax.c:
8425 * sysdep.c:
8426 * term.c:
8427 * terminal.c:
8428 * textprop.c:
8429 * unexalpha.c:
8430 * w32console.c:
8431 * w32fns.c:
8432 * w32font.c:
8433 * w32menu.c:
8434 * w32term.c:
8435 * w32uniscribe.c:
8436 * window.c:
8437 * xdisp.c:
8438 * xfaces.c:
8439 * xfns.c:
8440 * xfont.c:
8441 * xftfont.c:
8442 * xmenu.c:
8443 * xselect.c:
8444 * xterm.c: Likewise.
8445
8446 Remove P_ and __P macros.
8447 * atimer.h: Remove P_ and __P macros.
8448 * buffer.h:
8449 * category.h:
8450 * ccl.h:
8451 * character.h:
8452 * charset.h:
8453 * cm.h:
8454 * coding.h:
8455 * composite.h:
8456 * dispextern.h:
8457 * disptab.h:
8458 * dosfns.h:
8459 * font.h:
8460 * fontset.h:
8461 * frame.h:
8462 * gtkutil.h:
8463 * indent.h:
8464 * intervals.h:
8465 * keyboard.h:
8466 * keymap.h:
8467 * lisp.h:
8468 * macros.h:
8469 * md5.h:
8470 * menu.h:
8471 * msdos.h:
8472 * nsterm.h:
8473 * puresize.h:
8474 * region-cache.h:
8475 * syntax.h:
8476 * syssignal.h:
8477 * systime.h:
8478 * termhooks.h:
8479 * w32font.h:
8480 * w32term.h:
8481 * widget.h:
8482 * window.h:
8483 * xgselect.h:
8484 * xsettings.h:
8485 * xterm.h: Likewise.
8486
8487 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8488
8489 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8490
8491 Cleanup old code.
8492 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8493 * syssignal.h: Remove code for Lynx, not supported anymore.
8494 * vm-limit.c: Remove unused code the depends on emacs not being
8495 defined and NO_LIM_DATA being defined.
8496 * mem-limits.h: Remove dead code.
8497
8498 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8499
8500 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8501
8502 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8503 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8504
8505 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8506 parameters, they are already absolute.
8507
8508 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8509 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8510
8511 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8512
8513 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8514 Update FRAME_TOOLBAR_HEIGHT.
8515
8516 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8517 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8518
8519 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
8520
8521 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8522 Don't check default-frame-alist.
8523
8524 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8525
8526 * process.c (create_process): Avoid using invalid file descriptors.
8527
8528 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8529
8530 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8531
8532 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8533 Improve documentation. Return font regardless of use_system_font.
8534 (syms_of_xsettings): Improve documentation for font-use-system-font.
8535
8536 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
8537
8538 * xfaces.c (realize_face): Garbage the frame if a face is removed
8539 (Bug#6593).
8540
8541 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8542
8543 * keyboard.c: Remove duplicate <setjmp.h>.
8544 (read_key_sequence): Remove volatile qualifiers.
8545
8546 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8547
8548 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8549 (struct glyph_row): New members left_fringe_offset and
8550 right_fringe_offset.
8551
8552 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8553 specially.
8554 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8555 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8556
8557 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8558 Take account of bitmap offset.
8559 (draw_window_fringes): Take account of window vscroll.
8560 (update_window_fringes): Likewise. Extend top-aligned top indicator
8561 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8562 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8563 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8564
8565 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8566
8567 * w32fns.c (Qtooltip): Declare.
8568 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8569
8570 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8571
8572 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8573 grab on just Press (Bug#6499).
8574
8575 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
8576
8577 * frame.c (Qtooltip): New var.
8578 (delete_frame): Use it. Fix faulty if statement. Don't update
8579 mode line for tooltip frames. Suggested by Martin Rudalics.
8580
8581 * xfns.c (x_create_tip_frame):
8582 * w32fns.c (x_create_tip_frame): Use it.
8583
8584 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8585
8586 * xftfont.c (xftfont_open): Check font width one by one also when
8587 spacing is dual.
8588
8589 * ftfont.c (ftfont_open): Ditto.
8590
8591 2010-06-30 Glenn Morris <rgm@gnu.org>
8592
8593 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8594
8595 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8596
8597 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8598 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8599 * s/darwin.h (SYSTEM_MALLOC):
8600 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8601
8602 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8603
8604 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8605 (ns_get_screen): Don't assign integer to f.
8606 (Fx_display_color_cells): Declarations before statements.
8607
8608 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8609
8610 * xfns.c (x_default_font_parameter): Remove got_from_system
8611 (Bug#6526).
8612
8613 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8614 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8615 New defines based on what configure finds.
8616
8617 * xterm.c (XTflash): Use gtk_widget_get_window.
8618 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8619 gtk_adjustment_get_page_size.
8620 (handle_one_xevent): Use gtk_widget_get_mapped.
8621 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8622 messages.
8623
8624 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8625
8626 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8627 HAVE_GTK_FILE_SELECTION_NEW.
8628
8629 * gtkutil.c (xg_display_open, xg_display_close):
8630 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8631 (xg_display_open): Return type is void.
8632 (gtk_widget_set_has_window)
8633 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8634 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8635 (gtk_adjustment_set_page_increment)
8636 (gtk_adjustment_get_step_increment): #define these if not found
8637 by configure.
8638 (remove_submenu): New define based on Gtk+ version.
8639 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8640 Use gtk_widget_get_window.
8641 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8642 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8643 (create_dialog): Use gtk_dialog_get_action_area and
8644 gtk_dialog_get_content_area.
8645 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8646 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8647 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8648 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8649 Use g_object_ref and g_object_unref.
8650 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8651 Use gtk_widget_get_sensitive.
8652 (xg_update_submenu): Use remove_submenu.
8653 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8654 properties instead to get old x and y position.
8655 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8656 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8657 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8658 (xg_get_tool_bar_widgets): New function.
8659 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8660 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8661 (toolbar_set_orientation): New #define based on if configure
8662 finds gtk_orientable_set_orientation.
8663 (xg_create_tool_bar): Call toolbar_set_orientation.
8664 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8665 instead of gtk_box_pack_start_defaults.
8666
8667 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
8668
8669 * cmds.c (Fdelete_backward_char): Move into Lisp.
8670
8671 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8672
8673 * s/freebsd.h (BSD4_2): Remove redundant definition.
8674 bsd-common.h defines it already.
8675
8676 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
8677
8678 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8679 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8680 tool-bar-mode, which are now set using these X resources at
8681 startup, to determine the defaults (Bug#2249).
8682
8683 * w32fns.c (Fx_create_frame):
8684 * nsfns.m (Fx_create_frame): Likewise.
8685
8686 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8687
8688 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8689
8690 * gtkutil.c (xg_update_scrollbar_pos):
8691 Avoid C99 mid-block variable declaration.
8692
8693 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8694
8695 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8696
8697 * gtkutil.h (xg_show_scroll_bar): Remove.
8698
8699 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8700 if height is less than scroll bar min size.
8701 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8702
8703 * xfns.c (x_default_font_parameter): Try to open font from system
8704 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8705
8706 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8707
8708 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8709
8710 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8711
8712 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8713 most-positive-fixnum, be extra accurate when scrolling window
8714 start, to avoid missing the cursor line.
8715
8716 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8717
8718 * xdisp.c (try_scrolling): Compute the limit for searching point
8719 in forward scroll from scroll_max, instead of an arbitrary limit
8720 of 10 screen lines.
8721 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8722 and
8723 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8724 for details.
8725
8726 2010-06-16 Glenn Morris <rgm@gnu.org>
8727
8728 * editfns.c (Fbyte_to_string): Pacify compiler.
8729
8730 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8731
8732 * lread.c (read1): Phase out old-style backquotes a bit more.
8733
8734 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8735
8736 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8737 bidimirror.h.
8738
8739 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8740
8741 * bidi.c (bidi_initialize): Remove explicit initialization of
8742 bidi_type_table; include biditype.h instead. Don't support
8743 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8744 (bidi_mirror_char): Use bidi_mirror_table.
8745
8746 * biditype.h: New file.
8747
8748 * bidimirror.h: New file.
8749
8750 * window.c (syms_of_window): Doc fix (bug#6409).
8751
8752 2010-06-12 Romain Francoise <romain@orebokech.com>
8753
8754 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8755 ediff-hook.
8756
8757 2010-06-10 Glenn Morris <rgm@gnu.org>
8758
8759 * editfns.c (Fbyte_to_string): Pacify compiler.
8760
8761 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8762
8763 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8764
8765 * alloc.c (Fmake_byte_code): Don't access undefined argument
8766 (Bug#6517).
8767
8768 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8769
8770 * xdisp.c (next_element_from_image): Ensure that after-strings are
8771 read the next time we hit handle_stop (Bug#1336).
8772
8773 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8774
8775 * lread.c (read1): Signal error if #s is not followed by paren.
8776
8777 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8778
8779 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8780
8781 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8782
8783 2010-06-15 Glenn Morris <rgm@gnu.org>
8784
8785 * editfns.c (Fbyte_to_string): Pacify compiler.
8786
8787 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8788
8789 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8790 Check `object's type before accessing its guts.
8791
8792 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8793
8794 * s/usg5-4.h: Fix previous change.
8795 Suggested by Lawrence Mitchell <wence@gmx.li>
8796
8797 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8798
8799 * minibuf.c (Fall_completions): Add more checks.
8800
8801 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8802
8803 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8804
8805 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8806
8807 * lread.c (X_OK): Remove, unused.
8808
8809 * dispnew.c: Remove obsolete comment.
8810
8811 Remove INCLUDED_FCNTL.
8812 * xterm.c (INCLUDED_FCNTL):
8813 * callproc.c (INCLUDED_FCNTL):
8814 * alloc.c (INCLUDED_FCNTL):
8815 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8816 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8817
8818 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8819
8820 * window.c (Fselect_window): Move `record_buffer' up to the
8821 beginning of this function, so the buffer gets recorded
8822 even if the selected window does not change.
8823 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8824
8825 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8826
8827 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8828 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8829
8830 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8831
8832 Remove BSTRING related code, all platforms define it.
8833 * s/usg5-4.h (BSTRING): Remove definition.
8834 * s/template.h (BSTRING):
8835 * s/msdos.h (BSTRING):
8836 * s/ms-w32.h (BSTRING):
8837 * s/hpux10-20.h (BSTRING):
8838 * s/gnu-linux.h (BSTRING):
8839 * s/darwin.h (BSTRING):
8840 * s/cygwin.h (BSTRING):
8841 * s/bsd-common.h (BSTRING):
8842 * s/aix4-2.h (BSTRING): Likewise.
8843 * sysdep.c: Remove code depending on BSTRING not being defined.
8844
8845 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8846
8847 Remove obsolete macro BASE_LEADING_CODE_P.
8848 * character.h (BASE_LEADING_CODE_P): Remove.
8849 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8850 * buffer.c (Fset_buffer_multibyte):
8851 * indent.c (scan_for_column, compute_motion):
8852 * insdel.c (count_combining_before, count_combining_after):
8853 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8854
8855 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8856
8857 Turn `directory-sep-char' into a noop.
8858
8859 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8860 (DIRECTORY_SEP): Define unconditionally.
8861
8862 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8863
8864 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8865 call dostounix_filename directly.
8866
8867 * fileio.c (CORRECT_DIR_SEPS): Remove.
8868 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8869 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8870 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8871 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8872
8873 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8874 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8875
8876 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8877
8878 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8879 (Bug#6346)
8880
8881 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8882
8883 * ccl.c (Fccl_program_p): Fix typo in docstring.
8884
8885 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8886
8887 Move UNEXEC definition to autoconf.
8888 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8889 * s/sol2-10.h (UNEXEC):
8890 * s/irix6-5.h (UNEXEC):
8891 * s/hpux10-20.h (UNEXEC):
8892 * s/gnu-linux.h (UNEXEC):
8893 * s/darwin.h (UNEXEC):
8894 * s/cygwin.h (UNEXEC):
8895 * s/bsd-common.h (UNEXEC):
8896 * s/aix4-2.h (UNEXEC):
8897 * m/alpha.h (UNEXEC): Likewise.
8898 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8899
8900 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8901
8902 Remove obsolete pre-unicode2 macros.
8903 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8904 * composite.c (composition_reseat_it):
8905 * data.c (Faset):
8906 * fns.c (Ffillarray):
8907 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8908 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8909
8910 2010-06-03 Juri Linkov <juri@jurta.org>
8911
8912 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8913 (Fswitch_to_buffer): Remove unused variable `err'.
8914
8915 2010-06-03 Glenn Morris <rgm@gnu.org>
8916
8917 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8918
8919 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8920 now that AH_BOTTOM does it.
8921
8922 * m/hp800.h (HAVE_ALLOCA):
8923 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8924
8925 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8926 Remove NOT_C_CODE tests, it is always true now.
8927
8928 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8929
8930 Fix config.h includes.
8931 * xsettings.c:
8932 * xgselect.c:
8933 * nsterm.m:
8934 * nsselect.m:
8935 * nsimage.m:
8936 * nsfont.m:
8937 * nsfns.m:
8938 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8939 other files do.
8940
8941 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8942
8943 * s/sol2-6.h: Remove obsolete comments.
8944
8945 Remove unnecessary alloca.h includes.
8946 * keymap.c: Do not include alloca.h, config.h does that.
8947 * sysdep.c: Likewise. Do not define fwrite, not used.
8948
8949 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8950
8951 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8952 the HAVE_TERMIO where it belongs (bug#6149).
8953
8954 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8955
8956 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8957 of bug#6305).
8958
8959 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8960
8961 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8962 state is always cached (bug#6306).
8963
8964 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8965
8966 Fix cursor motion in bidi-reordered continued lines.
8967 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8968 only after finding point's row. Fix the logic. Rewrite the loop
8969 over continuation lines in bidi-reordered buffers.
8970 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8971 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8972
8973 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8974
8975 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8976
8977 2010-05-28 Kenichi Handa <handa@m17n.org>
8978
8979 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8980 Don't sheck SPEC if it is nil.
8981 (font_list_entities): Call font_delete_unmatched if
8982 Vface_ignored_fonts is non-nil. (Bug#6287)
8983
8984 2010-05-28 Glenn Morris <rgm@gnu.org>
8985
8986 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8987
8988 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8989
8990 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8991 whether to trash.
8992 (internal_delete_file, Frename_file): Callers changed.
8993 (delete_by_moving_to_trash): Doc fix.
8994 (Fdelete_directory_internal): Don't move to trash.
8995
8996 * callproc.c (delete_temp_file):
8997 * buffer.c (Fkill_buffer): Callers changed.
8998
8999 * lisp.h: Update prototype.
9000
9001 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
9002
9003 * xdisp.c (redisplay_window): After redisplay, check if point is
9004 still valid before setting it (Bug#6177).
9005
9006 2010-05-27 Glenn Morris <rgm@gnu.org>
9007
9008 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
9009 Convert comments to Makefile format.
9010
9011 * Makefile.in (bootstrap-clean): No more Makefile.c.
9012
9013 2010-05-26 Glenn Morris <rgm@gnu.org>
9014
9015 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
9016 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
9017
9018 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
9019 Remove.
9020 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
9021
9022 2010-05-26 Kenichi Handa <handa@m17n.org>
9023
9024 * composite.c (composition_compute_stop_pos): Fix condition for
9025 backward scanning.
9026
9027 2010-05-25 Glenn Morris <rgm@gnu.org>
9028
9029 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
9030 Move before TEMACS_LDFLAGS.
9031 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
9032 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
9033
9034 * Makefile.in (NOT_C_CODE): No longer define.
9035 (config.h): No longer include.
9036
9037 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
9038 variables it may reference.
9039
9040 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
9041 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
9042
9043 2010-05-25 Kenichi Handa <handa@m17n.org>
9044
9045 * dispextern.h (struct composition_it): New members rule_idx and
9046 charpos.
9047
9048 * xdisp.c (set_iterator_to_next): While scanning backward, assume
9049 that the character positions of IT point the last character of the
9050 current grapheme cluster.
9051 (next_element_from_composition): Don't change character positions
9052 of IT.
9053 (append_composite_glyph): Set glyph->charpos to
9054 it->cmp_it.charpos.
9055
9056 * composite.c (autocmp_chars): Change the first argument to RULE,
9057 and try composition with RULE only.
9058 (composition_compute_stop_pos): Record the index number of the
9059 composition rule in CMP_IT->rule_idx.
9060 (composition_reseat_it): Call autocmp_chars repeatedly until the
9061 correct rule of the composition is found.
9062 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
9063 is at the last character of the current grapheme cluster when
9064 CMP_IT->reversed_p is nonzero.
9065
9066 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
9067
9068 * editfns.c (Fbyte_to_string): New function.
9069
9070 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
9071
9072 * process.c (Fmake_network_process): Set :host to nil if it's not used.
9073 Suggested by Masatake YAMATO <yamato@redhat.com>.
9074
9075 2010-05-23 Eli Zaretskii <eliz@gnu.org>
9076
9077 * dispextern.h (init_iterator): Sync prototype with changed definition.
9078
9079 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
9080
9081 * s/netbsd.h: If terminfo is found, use it in preference to
9082 termcap. (Bug#6190) [Backport from trunk]
9083
9084 2010-05-19 Eli Zaretskii <eliz@gnu.org>
9085
9086 Redesign and reimplement bidi-aware edge positions of glyph rows.
9087
9088 * dispextern.h (struct glyph_row): New members minpos and maxpos.
9089 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
9090 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
9091 and maxpos members instead of start.pos and end.pos, respectively.
9092
9093 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
9094 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
9095 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
9096 (try_window_reusing_current_matrix, try_window_id):
9097 Use ROW->minpos rather than ROW->start.pos.
9098 (init_from_display_pos, init_iterator): Use EMACS_INT for
9099 character and byte positions.
9100 (find_row_edges): Rename from find_row_end. Accept additional
9101 arguments for minimum and maximum buffer positions seen by
9102 display_line for this row. Don't use iterator to find the
9103 position following the maximum one; instead, increment the
9104 position found by display_line directly. Fix logic; eol_pos
9105 should be tested before the rest. Handle the case of characters
9106 delivered from display vector (bug#6036). Fix tests related to
9107 it->method. Handle the truncated_on_right_p rows.
9108 (RECORD_MAX_MIN_POS): New macro.
9109 (display_line): Use it to record the minimum and maximum buffer
9110 positions for glyphs in the row being assembled. Record the
9111 position of the newline that terminates the line. If word wrap is
9112 in effect, restore minimum and maximum positions seen up to the
9113 wrap point, when iterator returns to it.
9114 (try_window_reusing_current_matrix): Give up if in bidi-reordered
9115 row and cursor not already at point. Restore original pre-bidi
9116 code for unidirectional buffers.
9117
9118 * dispnew.c (increment_row_positions, check_matrix_invariants):
9119 Increment and check row->start.pos and row->end.pos, in addition
9120 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
9121
9122 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
9123 Display truncated_on_left_p and truncated_on_right_p flags.
9124 Formatting fixes.
9125 (pmtxrows): Display the ordinal number of each row. Don't display
9126 rows beyond the last one.
9127
9128 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
9129 it is not copied by bidi_copy_it.
9130
9131 2010-05-22 Eli Zaretskii <eliz@gnu.org>
9132
9133 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
9134 (Bug#6237)
9135
9136 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
9137
9138 * image.c (Fimage_flush): Rename from image-refresh.
9139
9140 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
9141
9142 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
9143 just one window.
9144
9145 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
9146 (clear_image_cache): If the number of cached images is unusually
9147 large, decrease the cache eviction delay (Bug#6230).
9148
9149 2010-05-21 Glenn Morris <rgm@gnu.org>
9150
9151 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
9152 Move these rules to ns.mk.
9153 * ns.mk: New file.
9154
9155 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
9156
9157 * Makefile.in (CANNOT_DUMP): New, set by configure.
9158 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
9159
9160 2010-05-20 Juri Linkov <juri@jurta.org>
9161
9162 * fileio.c (Fdelete_file): Change interative spec to use
9163 `read-file-name' like in `find-file-read-args' where the default
9164 value is `default-directory' instead of `buffer-file-name'.
9165 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
9166
9167 2010-05-20 Kevin Ryde <user42@zip.com.au>
9168
9169 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
9170 (Voverriding_terminal_local_map, Vsystem_key_alist)
9171 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
9172
9173 2010-05-20 Glenn Morris <rgm@gnu.org>
9174
9175 * Makefile.in (DEPDIR): New constant.
9176 (DEPFLAGS): Set with configure, not cpp.
9177 (MKDEPDIR): New, set by configure.
9178 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
9179 (clean): Use $DEPDIR.
9180 (deps_frag): Include from configure.
9181 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
9182 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
9183
9184 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
9185 Fix reallocation of the cache. (Bug#6210)
9186
9187 2010-05-19 Glenn Morris <rgm@gnu.org>
9188
9189 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
9190
9191 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
9192 (GNULIB_VAR): Remove.
9193 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
9194
9195 * m/ibms390x.h (LINKER):
9196 * m/macppc.h (LINKER) [GNU_LINUX]:
9197 * s/aix4-2.h (ORDINARY_LINK):
9198 * s/cygwin.h (LINKER):
9199 * s/darwin.h (ORDINARY_LINK):
9200 * s/gnu.h (ORDINARY_LINK):
9201 * s/netbsd.h (LINKER):
9202 * s/usg5-4.h (ORDINARY_LINK):
9203 Move to configure.
9204
9205 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
9206
9207 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
9208
9209 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
9210 prevent stack overflow if number of arguments is too large
9211 (Bug#6214).
9212
9213 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
9214
9215 * charset.c (load_charset_map_from_file): Don't call close after fclose.
9216
9217 2010-05-18 Glenn Morris <rgm@gnu.org>
9218
9219 * s/gnu-linux.h: Combine two conditionals.
9220
9221 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
9222 $(POST_ALLOC_OBJ).
9223
9224 * Makefile.in (RALLOC_OBJ): New, set by configure.
9225 (rallocobj): Replace with the previous variable.
9226 (otherobj): Use $RALLOC_OBJ.
9227
9228 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
9229 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
9230
9231 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
9232 (gmallocobj, vmlimitobj): Replace with previous two variables.
9233 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
9234
9235 2010-05-17 Glenn Morris <rgm@gnu.org>
9236
9237 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
9238 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
9239
9240 2010-05-16 Glenn Morris <rgm@gnu.org>
9241
9242 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
9243
9244 * Makefile.in (clean): Get rid of HAVE_NS conditional.
9245
9246 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
9247 trailing "/".
9248
9249 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
9250 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
9251
9252 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
9253 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
9254 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
9255 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
9256 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
9257
9258 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
9259 Remove ${STARTFLAGS}, nothing ever sets it.
9260
9261 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
9262
9263 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
9264
9265 2010-05-16 Glenn Morris <rgm@gnu.org>
9266
9267 * Makefile.in (LIBX_BASE): Always define.
9268
9269 * Makefile.in (LIBX_OTHER): Move out of cpp section.
9270
9271 * Makefile.in (LIBXT): Always define.
9272
9273 2010-05-15 Glenn Morris <rgm@gnu.org>
9274
9275 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
9276
9277 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
9278 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
9279
9280 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
9281
9282 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
9283 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
9284
9285 * emacs.c (main): Initialize initial-environment and
9286 process-environment before generating from env, not after.
9287
9288 Handle --version reasonably in CANNOT_DUMP configuration.
9289 * emacs.c (emacs_version, emacs_copyright): New string variables.
9290 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
9291 (syms_of_emacs): Defvar them, and initialize them from the C
9292 string variables.
9293 (main): If initialization hasn't been done, print initial version
9294 info from the C strings, instead of starting an interactive session.
9295
9296 2010-05-15 Eli Zaretskii <eliz@gnu.org>
9297
9298 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
9299 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
9300 (bidi_paragraph_init): Remove redundant assertion that we are at
9301 the beginning of a line after call to bidi_find_paragraph_start.
9302
9303 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9304 (syms_of_xdisp): Defsubr it.
9305
9306 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9307
9308 * Makefile.in: Fix MSDOS-related comments.
9309
9310 2010-05-15 Glenn Morris <rgm@gnu.org>
9311
9312 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9313 (really-lwlib, really-oldXMenu): Always define.
9314 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9315
9316 * Makefile.in: Simplify cpp conditional.
9317
9318 * Makefile.in (${ns_appdir}): Simplify using umask.
9319
9320 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9321
9322 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9323
9324 * eval.c (specbind): Remove left-over duplicate test.
9325 Disallow let-binding frame-local vars. Add comment.
9326
9327 2010-05-14 Eli Zaretskii <eliz@gnu.org>
9328
9329 Make the cache of bidi iterator states dynamically allocated.
9330 * bidi.c (bidi_cache_shrink): New function.
9331 (bidi_init_it): Call it.
9332 (bidi_cache_iterator_state): Enlarge the cache if needed.
9333
9334 * bidi.c (bidi_move_to_visually_next): Rename from
9335 bidi_get_next_char_visually. All callers changed.
9336
9337 2010-05-14 Kenichi Handa <handa@m17n.org>
9338
9339 * dispextern.h (struct composition_it): New member reversed_p.
9340
9341 * composite.c (composition_compute_stop_pos): Search backward if
9342 ENDPOS < CHARPOS.
9343 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9344 Set CMP_IT->reversed_p.
9345 (composition_update_it): Pay attention to CMP_IT->reversed_p.
9346
9347 * xdisp.c (set_iterator_to_next):
9348 Call composition_compute_stop_pos with negative ENDPOS if we are
9349 scanning backward. Call composition_compute_stop_pos if scan
9350 direction is changed.
9351 (next_element_from_buffer): Call composition_compute_stop_pos with
9352 negative ENDPOS if we are scanning backward.
9353 (next_element_from_composition): Pay attention to
9354 IT->cmp_it.reversed_p.
9355
9356 2010-05-14 Kenichi Handa <handa@m17n.org>
9357
9358 * font.c (font_range): Return the range for the font found at first.
9359
9360 2010-05-14 Glenn Morris <rgm@gnu.org>
9361
9362 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9363
9364 * Makefile.in (mktime, X11, register): Move undefs to configure.
9365
9366 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9367 (MSDOS_X_OBJ): New variable.
9368 (MSDOS_SUPPORT_REAL): New constant.
9369 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9370 (obj): Use MSDOS_X_OBJ.
9371 (lisp): Use MSDOS_SUPPORT as a variable.
9372
9373 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9374 (GPM_MOUSE_SUPPORT): Now it's a constant.
9375 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9376 not cpp.
9377
9378 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
9379 (ns_appresdir): Remove, unused.
9380
9381 * Makefile.in (SHELL): Move outside cpp section.
9382
9383 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9384
9385 2010-05-13 Glenn Morris <rgm@gnu.org>
9386
9387 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9388 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9389
9390 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9391 HAVE_WINDOW_SYSTEM must be too.
9392
9393 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9394 (lisp): Remove WINNT_SUPPORT.
9395
9396 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9397 Let configure set these variables (to empty) in this case as well.
9398
9399 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9400 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9401
9402 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9403 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9404 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9405 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9406 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
9407 the values output by configure.
9408 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9409
9410 2010-05-12 Glenn Morris <rgm@gnu.org>
9411
9412 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9413 (LINKER_WAS_SPECIFIED): Remove.
9414
9415 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9416 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9417 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9418 * s/cygwin.h (LIB_GCC):
9419 * s/freebsd.h (LIB_GCC):
9420 * s/gnu-linux.h (LIB_GCC):
9421 * s/msdos.h (LIB_GCC):
9422 * s/netbsd.h (LIB_GCC):
9423 Move to configure.
9424
9425 2010-05-11 Karel Klíč <kklic@redhat.com>
9426
9427 * ftfont.c: Fix incorrect parentheses of #if condition for
9428 definining M17N_FLT_USE_NEW_FEATURE.
9429
9430 2010-05-11 Glenn Morris <rgm@gnu.org>
9431
9432 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9433 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9434
9435 2010-05-10 Eli Zaretskii <eliz@gnu.org>
9436
9437 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9438 unibyte buffers. See
9439 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9440
9441 2010-05-10 Glenn Morris <rgm@gnu.org>
9442
9443 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9444 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9445 (LIBES): Use LIBS_SYSTEM as a variable.
9446 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9447 * s/aix4-2.h (LIBS_SYSTEM):
9448 * s/freebsd.h (LIBS_SYSTEM):
9449 * s/hpux10-20.h (LIBS_SYSTEM):
9450 * s/sol2-6.h (LIBS_SYSTEM):
9451 * s/unixware.h (LIBS_SYSTEM):
9452 Move to configure.
9453
9454 * s/aix4-2.h (MAIL_USE_LOCKF):
9455 * s/bsd-common.h (MAIL_USE_FLOCK):
9456 * s/darwin.h (MAIL_USE_FLOCK):
9457 * s/gnu-linux.h (MAIL_USE_FLOCK):
9458 * s/irix6-5.h (MAIL_USE_FLOCK):
9459 * s/template.h (MAIL_USE_FLOCK):
9460 Move to configure.
9461
9462 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
9463
9464 * Version 23.2 released.
9465
9466 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
9467
9468 * composite.c (autocmp_chars): Save point as marker before calling
9469 auto-composition-function (Bug#5984).
9470
9471 * lisp.h (restore_point_unwind): Add prototype.
9472
9473 * fileio.c (restore_point_unwind): Remove static attribute.
9474
9475 2010-05-08 Kenichi Handa <handa@m17n.org>
9476
9477 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9478 new feature of libotf and m17n-flt.
9479 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9480 Call OTF_check_features even if no specific feature is given.
9481 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9482 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9483 that OUT is NULL. Use OTF_drive_gsub_with_log and
9484 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9485 OTF_drive_gpos.
9486 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9487 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9488 Setup mflt_enable_new_feature and mflt_try_otf.
9489
9490 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9491
9492 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9493
9494 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9495 box and toolbar (Bug #6139).
9496 (xg_create_tool_bar): Remove comment (Bug #6139).
9497 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9498 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9499
9500 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
9501
9502 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9503 Update dependencies.
9504
9505 2010-05-08 Eli Zaretskii <eliz@gnu.org>
9506
9507 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9508 R2L lines.
9509
9510 2010-05-08 Glenn Morris <rgm@gnu.org>
9511
9512 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9513
9514 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9515 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9516 (termcapobj): Replace with TERMCAP_OBJ.
9517 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9518 (LIBES): Use LIBS_TERMCAP as a variable.
9519
9520 * s/freebsd.h (osreldate.h): No longer include, since this file
9521 does not use __FreeBSD_version any more.
9522
9523 * s/aix4-2.h (TERMINFO):
9524 * s/cygwin.h (TERMINFO):
9525 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9526 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9527 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9528 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9529 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9530 * s/irix6-5.h (TERMINFO):
9531 * s/netbsd.h (LIBS_TERMCAP):
9532 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9533 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9534 * s/usg5-4.h (TERMINFO):
9535 Move to configure.
9536
9537 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9538
9539 * eval.c (unbind_to): Don't unbind a local binding into the global
9540 binding when the local binding disappeared. Inversely, don't unbind
9541 a global binding into a newly created local binding.
9542 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9543 can specify the frame to use, when applicable. Adjust callers.
9544
9545 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
9546 Stefan Monnier <monnier@iro.umontreal.ca>
9547
9548 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9549
9550 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9551
9552 * w32fns.c: Include w32.h.
9553 (Fw32_shell_execute): Decode the error message before passing it
9554 to `error'. (Bug#6126)
9555
9556 * msdos.c (dos_set_window_size):
9557 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9558 instead of `XSYMBOL (foo)->value'.
9559
9560 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9561
9562 Fix the MS-DOS build, broken by autoconfiscation.
9563
9564 * Makefile.in: Don't use Make-style comments past the "start of
9565 cpp stuff" line.
9566 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9567
9568 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9569 edited directly by msdos/sed1v2.inp).
9570
9571 2010-05-07 Glenn Morris <rgm@gnu.org>
9572
9573 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9574 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9575 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9576 move out of cpp section.
9577 * s/freebsd.h (LD_SWITCH_SYSTEM):
9578 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9579 * s/netbsd.h (LD_SWITCH_SYSTEM):
9580 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9581
9582 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9583
9584 Define LIB_STANDARD and START_FILES using autoconf.
9585 * s/usg5-4.h (LIB_STANDARD):
9586 * s/netbsd.h (START_FILES):
9587 * s/irix6-5.h (LIB_STANDARD):
9588 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9589 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9590 * s/freebsd.h (START_FILES):
9591 * s/darwin.h (START_FILES):
9592 * s/cygwin.h (START_FILES):
9593 * s/aix4-2.h (LIB_STANDARD):
9594 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9595 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9596 autoconf, not cpp.
9597
9598 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9599
9600 Remove NEED_BSDTTY and NEED_UNISTD_H.
9601 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9602 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9603 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9604 <sys/ptyio.h> and <unistd.h>.
9605
9606 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9607
9608 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9609 * s/gnu.h (START_FILES): Remove empty definition.
9610
9611 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9612
9613 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9614
9615 2010-05-06 Glenn Morris <rgm@gnu.org>
9616
9617 * Makefile.in (CPP, LN_S): Remove unused variables.
9618
9619 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9620
9621 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9622
9623 2010-05-05 Lawrence Mitchell <wence@gmx.li>
9624
9625 * m/sparc.h: Fix typo in earlier change.
9626
9627 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9628
9629 Misc tweaks.
9630 * eval.c (Fdefvaralias): Remove unintended nested if.
9631 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9632
9633 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
9634
9635 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9636
9637 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9638
9639 Remove BSD_PGRPS.
9640 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9641 * s/gnu-linux.h (BSD_PGRPS): Remove.
9642 * term.c (dissociate_if_controlling_tty):
9643 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9644 (init_sys_modes, reset_sys_modes):
9645 * emacs.c (main):
9646 * callproc.c (Fcall_process, child_setup): Remove code depending
9647 on BSD_PGRPS.
9648
9649 Remove POSIX_SIGNALS.
9650 * s/usg5-4.h (POSIX_SIGNALS):
9651 * s/netbsd.h (POSIX_SIGNALS):
9652 * s/msdos.h (POSIX_SIGNALS):
9653 * s/ms-w32.h (POSIX_SIGNALS):
9654 * s/hpux11.h (POSIX_SIGNALS):
9655 * s/gnu.h (POSIX_SIGNALS):
9656 * s/gnu-linux.h (POSIX_SIGNALS):
9657 * s/freebsd.h (POSIX_SIGNALS):
9658 * s/darwin.h (POSIX_SIGNALS):
9659 * s/cygwin.h (POSIX_SIGNALS):
9660 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9661 * s/unixware.h:
9662 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9663 * process.c (create_process):
9664 * syssignal.h:
9665 * sysdep.c (wait_for_termination, init_signals):
9666 * process.c (create_process):
9667 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9668 remove all code that assumes the contrary.
9669
9670 2010-05-04 Glenn Morris <rgm@gnu.org>
9671
9672 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9673 variable.
9674 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9675 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9676 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9677 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9678 LD_SWITCH_SYSTEM_tmp.
9679 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9680 New variables, set by configure.
9681
9682 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9683 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9684 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9685 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9686 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9687
9688 * s/aix4-2.h (C_SWITCH_SYSTEM):
9689 * m/alpha.h (C_SWITCH_MACHINE):
9690 Move to configure.in.
9691 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9692 New variables, set by configure.
9693 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9694 $c_switch_machine and $c_switch_system.
9695
9696 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9697
9698 * s/hpux10-20.h (LIB_STANDARD): New definition.
9699 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9700 on it, not used anymore.
9701
9702 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9703
9704 * eval.c (internal_condition_case_n): Rename from
9705 internal_condition_case_2.
9706 (internal_condition_case_2): New function.
9707
9708 * xdisp.c (safe_call): Use internal_condition_case_n.
9709
9710 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9711 (internal_delete_file, Frename_file): Callers changed.
9712
9713 * buffer.c (Fkill_buffer):
9714 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9715
9716 * lisp.h: Update prototypes.
9717
9718 2010-05-03 Glenn Morris <rgm@gnu.org>
9719
9720 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9721 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9722 (LIBXT): Set with configure, not cpp.
9723 (LIBX): Remove.
9724 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9725
9726 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9727
9728 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9729 The FreeBSD is not needed, the default works, Solaris version is
9730 not needed, and the remaining case is not supported by configure.
9731
9732 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9733
9734 * xsmfns.c (CHDIR_OPT): New define.
9735 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9736 restarting emacs.
9737
9738 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9739 shut_down_emacs.
9740
9741 * emacs.c (USAGE1): Mention --chdir.
9742 (main): Handle --chdir.
9743 (standard_args): Add --chdir.
9744 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9745 #5552).
9746
9747 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9748
9749 Remove LD_SWITCH_MACHINE.
9750 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9751 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9752
9753 Clean up IRIX code.
9754 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9755 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9756
9757 Clean up AIX code.
9758 * m/ibmrs6000.inp: Remove file, unused.
9759 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9760 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9761 definition ...
9762 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9763
9764 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9765 unused.
9766
9767 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9768
9769 Emulate POSIX_SIGNALS on MS-Windows.
9770
9771 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9772 (SIG_SETMASK, SIG_UNBLOCK): Define.
9773
9774 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9775 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9776 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9777
9778 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9779 New stubs.
9780
9781 Miscellaneous fixes of bidi display.
9782
9783 * xdisp.c (find_row_end): New function, refactored from display_line.
9784 (display_line): Use it.
9785 (extend_face_to_end_of_line): In almost-filled rows, extend only
9786 if the row is R2L and not continued.
9787 (display_line): Fix prepending of truncation glyphs to R2L rows.
9788 Preserve overlay and string info in row->end.
9789 (insert_left_trunc_glyphs): Support addition of left truncation
9790 glyphs to R2L rows.
9791 (set_cursor_from_row): Don't place cursor on the vertical border
9792 glyph between adjacent windows. Fix a crash when a display string
9793 is continued to the next line. Don't return zero if cursor was
9794 found by `cursor' property of a display string.
9795 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9796 test for that explicitly.
9797
9798 2010-05-01 Glenn Morris <rgm@gnu.org>
9799
9800 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9801 for clarity.
9802 (OTHER_OBJ): Remove.
9803 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9804 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9805
9806 2010-05-01 Karel Klíč <kklic@redhat.com>
9807
9808 * fileio.c (Ffile_selinux_context): Context functions may return null.
9809
9810 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9811
9812 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9813
9814 2010-04-30 Glenn Morris <rgm@gnu.org>
9815
9816 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9817 (OTHER_OBJ): Define as a separate variable, for clarity.
9818
9819 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9820
9821 * xsettings.c: Include limits.h and update file comment.
9822
9823 2010-04-30 Glenn Morris <rgm@gnu.org>
9824
9825 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9826 Set with configure, not cpp.
9827 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9828
9829 * Makefile.in (mallocobj): Remove.
9830 (otherobj): Simplify using @OTHER_OBJ@.
9831
9832 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9833 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9834 Don't bother making nsgui.h dependency platform-specific.
9835
9836 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9837
9838 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9839
9840 * process.c (read_process_output, exec_sentinel): Don't burp if the
9841 sentinel/filter kills the current buffer (bug#6060).
9842
9843 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9844 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9845 Remove unused var `args'.
9846 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9847 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9848 * doc.c (store_function_docstring): Use XSETCAR.
9849
9850 2010-04-28 Glenn Morris <rgm@gnu.org>
9851
9852 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9853 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9854
9855 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9856
9857 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9858 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9859
9860 * Makefile.in (FONT_OBJ): New, set by configure.
9861 (FONT_DRIVERS): Use $FONT_OBJ.
9862
9863 * Makefile.in (LIBXMU): Set with configure, not cpp.
9864 * s/aix4-2.h (LIBXMU):
9865 * s/hpux10-20.h (LIBXMU):
9866 Remove definition, now set in configure.
9867
9868 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9869
9870 * m/amdx86-64.h [i386]: Move this test to configure.in.
9871
9872 2010-04-27 Glenn Morris <rgm@gnu.org>
9873
9874 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9875 * s/unixware.h (NEED_LIBW): Remove definition.
9876
9877 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9878 (TOOLKIT_LIBW): New, set by configure.
9879 (@X_TOOLKIT_TYPE@): No longer define it.
9880
9881 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9882 (MOTIF_LIBW): Set with configure, not cpp.
9883 * s/aix4-2.h (LIB_MOTIF):
9884 * s/gnu-linux.h (LIB_MOTIF):
9885 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9886
9887 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9888
9889 Reduce CPP usage.
9890 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9891 (obj): Use autoconf for unexec instead of cpp.
9892 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9893 Remove definitions and undefs. Inline definitions in the only user.
9894 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9895
9896 2010-04-27 Glenn Morris <rgm@gnu.org>
9897
9898 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9899 since the defaults (set by the system file) are fine in most cases.
9900 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9901 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9902 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9903 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9904 Remove definitions, since they are set correctly in s/gnu-linux.h.
9905 * s/freebsd.h (START_FILES, LIB_STANDARD):
9906 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9907 * s/hpux10-20.h (START_FILES):
9908 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9909 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9910
9911 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9912 (MOTIF_LIBW): Use $LIBXP.
9913 (otherobj): Use $WIDGET_OBJ.
9914
9915 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9916
9917 * Makefile.in (LIBS_MACHINE): Remove, unused.
9918
9919 Use autoconf instead of cpp for LIB_MATH.
9920 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9921 * s/cygwin.h (LIB_MATH): Likewise.
9922 * Makefile.in (LIB_MATH): Do not define with cpp.
9923 (LIBES): Use autoconf for LIB_MATH.
9924
9925 2010-04-26 Kenichi Handa <handa@m17n.org>
9926
9927 * composite.c (Ffind_composition_internal): Fix the return value
9928 for an automatic composition.
9929
9930 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9931
9932 Remove all NO_ARG_ARRAY uses.
9933 * fns.c (concat2, concat3, nconc2):
9934 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9935 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9936 * m/xtensa.h (NO_ARG_ARRAY):
9937 * m/template.h (NO_ARG_ARRAY):
9938 * m/sparc.h (NO_ARG_ARRAY):
9939 * m/sh3.h (NO_ARG_ARRAY):
9940 * m/mips.h (NO_ARG_ARRAY):
9941 * m/macppc.h (NO_ARG_ARRAY):
9942 * m/iris4d.h (NO_ARG_ARRAY):
9943 * m/intel386.h (NO_ARG_ARRAY):
9944 * m/ibms390x.h (NO_ARG_ARRAY):
9945 * m/ibms390.h (NO_ARG_ARRAY):
9946 * m/ibmrs6000.h (NO_ARG_ARRAY):
9947 * m/ia64.h (NO_ARG_ARRAY):
9948 * m/hp800.h (NO_ARG_ARRAY):
9949 * m/arm.h (NO_ARG_ARRAY):
9950 * m/amdx86-64.h (NO_ARG_ARRAY):
9951 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9952
9953 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9954
9955 * xdisp.c (display_line): Don't assume 2nd call to
9956 get_next_display_element cannot return zero. (Bug#6030)
9957 (iterate_out_of_display_property): New function, body from pop_it.
9958 (pop_it): Use it.
9959
9960 2010-04-24 Glenn Morris <rgm@gnu.org>
9961
9962 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9963 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9964 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9965 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9966
9967 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9968
9969 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9970 use `get_next_display_element' and `set_iterator_to_next' to
9971 advance to the next character, when looking for the character that
9972 begins the next row.
9973
9974 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9975 definition of "struct Lisp_Symbol".
9976
9977 2010-04-24 Glenn Morris <rgm@gnu.org>
9978
9979 * Makefile.in (CRT_DIR): New variable, set by configure.
9980 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9981 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9982
9983 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9984
9985 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9986
9987 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9988
9989 Remove redundant flags.
9990 * s/freebsd.h (C_SWITCH_SYSTEM):
9991 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9992 * s/netbsd.h (C_SWITCH_SYSTEM):
9993 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9994 of these.
9995
9996 Simplify m/intel386.h.
9997 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9998 user: ecrt0.c.
9999 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
10000 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
10001 the only user: s/unixware.h.
10002 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
10003 from m/intel386.h.
10004 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
10005 Definitions moved here from m/intel386.h.
10006
10007 * m/mips.h: Remove #if 0 code.
10008
10009 2010-04-23 Eli Zaretskii <eliz@gnu.org>
10010
10011 Fix display of composed characters from L2R scripts in bidi buffers.
10012 * xdisp.c (set_iterator_to_next, next_element_from_composition):
10013 After advancing IT past the composition, resync the bidi iterator
10014 with IT's position. (Bug#5977)
10015
10016 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
10017
10018 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
10019 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
10020
10021 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10022
10023 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
10024
10025 2010-04-23 Eli Zaretskii <eliz@gnu.org>
10026
10027 Support `display' text properties and overlay strings in bidi buffers.
10028 * xdisp.c (pop_it): When the stack is popped after displaying
10029 from a string, bidi-iterate to exit from the text portion covered
10030 by the `display' property or overlay. (Bug#5988, bug#5920)
10031
10032 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
10033
10034 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
10035 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
10036
10037 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
10038 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
10039
10040 Simplify STARTFILES definition.
10041 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
10042 relying on Makefile.in to define it.
10043 * s/cygwin.h (START_FILES): Likewise.
10044 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
10045
10046 Clean up Solaris code.
10047 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
10048 (LIB_MOTIF): Remove, configure takes care of this.
10049 (NOT_USING_MOTIF): Remove, unused.
10050 * xrdb.c: Remove #if 0-ed #include.
10051 (SYSV): Remove conditional for old SysV.
10052 * sysdep.c (closedir): Remove conditional code for Solaris,
10053 Solaris has closedir.
10054
10055 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
10056
10057 * xsettings.c (read_and_apply_settings): Check if current_font is
10058 NULL before strcmp (Bug#6001).
10059
10060 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
10061
10062 Clean up HP-UX files.
10063 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
10064 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
10065 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
10066 * s/hpux10-20.h: ... to the only user, here.
10067
10068 2010-04-21 Eli Zaretskii <eliz@gnu.org>
10069
10070 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
10071 use buffer-local values of paragraph-start and paragraph-separate.
10072 <paragraph_start_re, paragraph_separate_re>: Rename from
10073 fallback_paragraph_start_re and fallback_paragraph_separate_re.
10074 (Bug#5992)
10075
10076 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10077
10078 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
10079 current_tool_bar_style are new.
10080 (store_config_changed_event): Rename from store_font_changed_event.
10081 (XSETTINGS_TOOL_BAR_STYLE): New define.
10082 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
10083 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
10084 HAVE_XFT.
10085 (something_changedCB): store_font_changed_event is now
10086 store_config_changed_event.
10087 (parse_settings): Rename from parse_xft_settings.
10088 Read non-xft xsettings outside #ifdef HAVE_XFT.
10089 (read_settings): Rename from read_xft_settings.
10090 (apply_xft_settings): Take current settings as parameter. Do not
10091 call read_(xft)_settings.
10092 (read_and_apply_settings): New function.
10093 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
10094 Call read_and_apply_settings if there are settings to be read.
10095 (init_xsettings): Rename from init_xfd_settings.
10096 Call read_and_apply_settings unconditionally.
10097 (xsettings_initialize): Call init_xsettings.
10098 (Ftool_bar_get_system_style): New function.
10099 (syms_of_xsettings): Define Qmonospace_font_name and
10100 Qtool_bar_style. Initialize current_tool_bar_style to nil.
10101 defsubr Stool_bar_get_system_style. Fprovide on
10102 dynamic-setting.
10103 Move misplaced HAVE_GCONF.
10104
10105 * xsettings.h (Ftool_bar_get_system_style): Declare.
10106
10107 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
10108 Qtext, Qboth, Qboth_horiz are new.
10109 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
10110 Vtool_bar_style, tool_bar_max_label_size.
10111
10112 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
10113
10114 * keyboard.c: QClabel is new.
10115 (parse_tool_bar_item): Take out QClabel from tool bar items.
10116 Try to construct a label if ther is no QClabel.
10117 (syms_of_keyboard): Intern :label as QClabel.
10118
10119 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
10120 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
10121 New.
10122
10123 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
10124 dynamic-setting.el.
10125
10126 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
10127 (xg_make_tool_item, xg_show_toolbar_item): New function.
10128 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
10129 Call xg_make_tool_item to make a tool bar item.
10130 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
10131
10132 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
10133 into account for toolbars.
10134
10135 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10136
10137 * data.c (make_blv): Declarations before code (Bug#5993).
10138
10139 2010-04-21 Glenn Morris <rgm@gnu.org>
10140
10141 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
10142 Define using autoconf, not cpp.
10143 (LIBXSM): New variable, set by autoconf.
10144 (LIBXT): Use $LIBXSM.
10145
10146 2010-04-21 Dan Nicolaescu <local_user@dannlt>
10147
10148 Remove NOMULTIPLEJOBS, unused.
10149 * s/template.h (NOMULTIPLEJOBS):
10150 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
10151
10152 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
10153 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
10154 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
10155 detects -znocombreloc and passes it to the linker
10156 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
10157
10158 2010-04-21 Glenn Morris <rgm@gnu.org>
10159
10160 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
10161
10162 2010-04-21 Karel Klíč <kklic@redhat.com>
10163
10164 * Makefile.in (LIBSELINUX_LIBS): New.
10165 (LIBES): Add $LIBSELINUX_LIBS.
10166 * eval.c, lisp.h (call7): New function.
10167 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
10168 (Ffile_selinux_context, Fset_file_selinux_context):
10169 New functions.
10170 (Fcopy_file): New parameter preserve-selinux-context.
10171 (Frename_file): Preserve selinux context when renaming by copy-file.
10172
10173 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
10174 Eli Zaretskii <eliz@gnu.org>
10175
10176 Don't depend on cm.c or termcap.c on Windows, use stubs.
10177 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
10178 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
10179 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
10180 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
10181 (sys_tputs, sys_tgetstr): New stubs.
10182 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
10183 (tputs, tgetstr): New; define to sys_*.
10184
10185 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
10186
10187 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
10188
10189 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10190
10191 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
10192 Just signal a warning rather than an error when inside a let.
10193 (Fmake_variable_frame_local): Add the same test.
10194
10195 * font.c (syms_of_font): Make the style table vars read-only.
10196
10197 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
10198 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
10199
10200 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
10201
10202 2010-04-20 Eli Zaretskii <eliz@gnu.org>
10203
10204 Fix R2L paragraph display on TTY.
10205
10206 * xdisp.c (unproduce_glyphs): New function.
10207 (display_line): Use it when produced glyphs are discarded from R2L
10208 glyph rows.
10209 (append_composite_glyph): In R2L rows, prepend the glyph rather
10210 than appending it.
10211
10212 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
10213 rather than append it. Set up the resolved_level and bidi_type
10214 attributes of the appended glyph.
10215 (produce_special_glyphs): Mirror the backslash continuation
10216 character in R2L lines.
10217
10218 Implement display of R2L paragraphs in GUI sessions.
10219
10220 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
10221 append_stretch_glyph.
10222 (set_cursor_from_row) <cursor_x>: Remove unused variable.
10223 Fix off-by-one error in computing x at end of text in the row.
10224 (append_stretch_glyph): In reversed row, prepend the glyph rather
10225 than append it. Set resolved_level and bidi_type of the glyph.
10226 (extend_face_to_end_of_line): If the row is reversed, prepend a
10227 stretch glyph whose width is such that the rightmost glyph will be
10228 drawn at the right margin of the window. Fix off-by-one error on
10229 TTY frames in testing whether a line needs face extension.
10230 Fix face extension at ZV. If this is the last glyph row, use
10231 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
10232 region face.
10233 (set_cursor_from_row, display_line):
10234 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
10235 row->continuation_lines_width.
10236 (next_element_from_buffer): Don't call bidi_paragraph_init if we
10237 are at ZV. Fixes a crash when reseated to ZV by
10238 try_window_reusing_current_matrix.
10239 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
10240 which happens with R2L glyph rows. Fixes a crash when inserting a
10241 character at end of an R2L line.
10242 (set_cursor_from_row): Don't be fooled by truncated rows: don't
10243 treat them as having zero-width characters. Improve comments.
10244 Don't reverse pos_before and pos_after for reversed glyph rows.
10245 Set cursor.x to negative value when the cursor might be on the
10246 left fringe.
10247 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
10248 left fringe, not the right one.
10249 (notice_overwritten_cursor, draw_phys_cursor_glyph)
10250 (erase_phys_cursor): For reversed cursor_row, support cursor on
10251 the left fringe.
10252
10253 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
10254 of continuation indicators on the fringes.
10255 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
10256 left fringe.
10257
10258 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
10259 draw cursor on the left fringe.
10260
10261 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
10262 cursor on the left fringe.
10263
10264 * dispnew.c (update_text_area): Handle reversed desired rows when
10265 the cursor is on the left fringe.
10266 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
10267 below, not by 0, for when the cursor is on the left fringe.
10268
10269 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
10270
10271 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
10272 widget is a scrollbar.
10273
10274 2010-04-20 Kenichi Handa <handa@m17n.org>
10275
10276 * charset.c (char_charset): Consider Vcharset_non_preferred_head
10277 only when the arg CHARSET_LIST is nil.
10278
10279 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10280
10281 Make variable forwarding explicit rather the using special values.
10282 Basically, this makes the structure of buffer-local values and object
10283 forwarding explicit in the type of Lisp_Symbols rather than use
10284 special Lisp_Objects for that. This tends to lead to slightly more
10285 verbose code, but is more C-like, simpler, and makes it easier to make
10286 sure we handled all cases, among other things by letting the compiler
10287 help us check it.
10288 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
10289 Removing forwarding objects.
10290 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
10291 (struct Lisp_Symbol): Make the various forms of variable-forwarding
10292 explicit rather than hiding them inside Lisp_Object "values".
10293 (XFWDTYPE): New macro.
10294 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
10295 (XBUFFER_LOCAL_VALUE): Remove.
10296 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
10297 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
10298 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
10299 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10300 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10301 Remove the Lisp_Misc_* header.
10302 (struct Lisp_Buffer_Local_Value): Redefine.
10303 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10304 (struct Lisp_Misc_Any): Add filler to get the right size.
10305 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10306 Lisp_Intfwd.
10307 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10308 (DEFVAR_KBOARD): Allocate a forwarding object.
10309 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10310 (let_shadows_global_binding_p): New function.
10311 (union Lisp_Val_Fwd): New type.
10312 (make_blv): New function.
10313 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10314 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10315 (swap_in_symval_forwarding, find_symbol_value, Fset)
10316 (let_shadows_buffer_binding_p, set_internal, default_value)
10317 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10318 (Fkill_local_variable, Fmake_variable_frame_local)
10319 (Flocal_variable_p, Flocal_variable_if_set_p)
10320 (Fvariable_binding_locus):
10321 * xdisp.c (select_frame_for_redisplay):
10322 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10323 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10324 * frame.c (store_frame_param):
10325 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10326 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10327 value structure.
10328 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10329 (clone_per_buffer_values): Only adjust markers into the current buffer.
10330 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10331 (Fbuffer_local_value, set_buffer_internal_1)
10332 (swap_out_buffer_local_variables):
10333 Adapt to the new symbol value structure.
10334 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10335 (defvar_per_buffer): Take a new arg for the fwd object.
10336 (buffer_lisp_local_variables): Return a proper alist (different fix
10337 for bug#4138).
10338 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10339 (Fgarbage_collect): Don't handle buffer_defaults specially.
10340 (mark_object): Handle new symbol value structure rather than the old
10341 special Lisp_Misc_* objects.
10342 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10343 * term.c (set_tty_color_mode):
10344 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10345 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10346 a buffer_local_flags.
10347 * print.c (print_object): Get rid of impossible forwarding objects.
10348
10349 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10350
10351 * bidi.c (bidi_get_type, bidi_get_category)
10352 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
10353 (bidi_type_of_next_char, bidi_level_of_next_char):
10354 Declare static. Use `INLINE' rather than `inline'.
10355
10356 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
10357
10358 * dired.c (Ffile_attributes): Fix typo in docstring.
10359
10360 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10361
10362 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10363 NSInteger (Bug#5811).
10364
10365 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10366
10367 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10368 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10369
10370 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10371
10372 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10373
10374 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
10375
10376 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10377 terminal frames (Bug#5837).
10378
10379 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10380
10381 * .gdbinit (xsubchartable): New command.
10382
10383 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10384
10385 * xdisp.c (display_line): Don't write beyond the last glyph row in
10386 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
10387 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10388 and
10389 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10390
10391 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10392
10393 * alloc.c (Fpurecopy): Hash-cons if requested.
10394 (syms_of_alloc): Update purify-flag docstring.
10395
10396 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10397
10398 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10399 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10400
10401 2010-04-17 Eli Zaretskii <eliz@gnu.org>
10402
10403 Fix a crash when an NSM character is inserted at BEGV.
10404
10405 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10406 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10407 NEUTRAL_B or UNKNOWN_BT.
10408
10409 2010-04-16 Eli Zaretskii <eliz@gnu.org>
10410
10411 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10412 other rows with cursor unless they are different from this row and
10413 this row is part of a continued line. (Bug#5943)
10414
10415 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10416
10417 * s/freebsd.h: Restore osreldate.h include.
10418 Suggested by Naohiro Aota.
10419
10420 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10421
10422 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10423
10424 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10425
10426 * s/cygwin.h: Avoid linking against static libgcc.
10427
10428 2010-04-15 Juri Linkov <juri@jurta.org>
10429
10430 * window.c: Add Qscroll_command.
10431 Remove Vscroll_preserve_screen_position_commands.
10432 (window_scroll_pixel_based, window_scroll_line_based): Check the
10433 `scroll-command' property on the last command instead of searching
10434 the last command in Vscroll_preserve_screen_position_commands.
10435 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10436 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10437 (scroll-preserve-screen-position): Doc fix.
10438 (Vscroll_preserve_screen_position_commands): Remove variable.
10439
10440 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10441
10442 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10443
10444 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10445
10446 Reduce cpp use in Makefile.in.
10447 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10448 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10449 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10450 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10451 (CRT0_COMPILE): Remove, inline it in the only user.
10452
10453 2010-04-14 Juri Linkov <juri@jurta.org>
10454
10455 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10456 `scroll-up-command' and `M-v' from `scroll-down' to
10457 `scroll-down-command'.
10458
10459 2010-04-14 Juri Linkov <juri@jurta.org>
10460
10461 * window.c (Vscroll_preserve_screen_position_commands): New variable
10462 with the default value as the list of Qscroll_down and Qscroll_up.
10463 (window_scroll_pixel_based, window_scroll_line_based): Search the
10464 last command in the list Vscroll_preserve_screen_position_commands
10465 instead of comparing with Qscroll_up and Qscroll_down.
10466
10467 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10468
10469 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10470 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10471 does that.
10472
10473 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10474 to zero.
10475
10476 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10477
10478 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10479
10480 Try to solve the problem of spurious EOF chars in long lines of text
10481 sent to interactive subprocesses.
10482 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10483 (system_process_attributes): Remove unused var `ttotal'.
10484 * process.c (send_process): Don't bother breaking long line with EOF
10485 chars when talking to ttys any more.
10486 (wait_reading_process_output): Output a warning when called in such
10487 a way that it could block without being interruptible.
10488
10489 Try to detect file modification within the same second.
10490 * buffer.h (struct buffer): New field modtime_size.
10491 * buffer.c (reset_buffer): Initialize it.
10492 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10493 (Fverify_visited_file_modtime): Check it.
10494 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10495 (Fset_visited_file_modtime): Set (or clear) it.
10496
10497 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10498
10499 * process.c (status_notify): Remove unused var `ro'.
10500
10501 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10502
10503 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10504 more than one visual (Bug#5938).
10505
10506 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10507
10508 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10509 Undefine.
10510
10511 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10512
10513 Remove C_SWITCH_SYSTEM_TEMACS.
10514 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10515 (malloc, realloc, free): Use emacs, not temacs for conditional
10516 definition.
10517
10518 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10519 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10520
10521 Use autoconf, not cpp for some variables.
10522 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10523 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10524 (ALL_CFLAGS): Use them as make variables.
10525 (really-lwlib, really-oldXMenu): Do not pass them.
10526
10527 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10528
10529 * xmenu.c (apply_systemfont_to_dialog): New.
10530 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10531
10532 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10533
10534 * process.c (exec_sentinel): Preserve current-buffer.
10535
10536 * process.c (read_process_output): Move the save-current-buffer to
10537 apply to both the filter and the non-filter branches.
10538
10539 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10540
10541 * s/msdos.h (UNEXEC): New definition.
10542
10543 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10544
10545 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10546 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10547
10548 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10549 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10550 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10551 TRY_WINDOW_CHECK_MARGINS.
10552
10553 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
10554 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10555 width only when it is for padding.
10556
10557 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10558
10559 * xfns.c (Fx_show_tip): Call try_window in a loop until
10560 fonts_changed_p is zero (Bug#2423).
10561
10562 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10563
10564 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10565 the end of TEXT_AREA. (Bug#5856)
10566
10567 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10568
10569 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10570 HAVE_GCONF.
10571
10572 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10573
10574 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10575 prev.orig_type, for resolving type of NSM. (Bug#5858)
10576
10577 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10578
10579 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10580 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10581 in current_font.
10582 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10583 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10584 New functions.
10585 (syms_of_xsettings): Initialize current_font.
10586 defsubr Sfont_get_system_normal_font.
10587
10588 * xsettings.h (Ffont_get_system_normal_font)
10589 (xsettings_get_system_normal_font): Declare.
10590
10591 * xfns.c (extern xlwmenu_default_font): Remove.
10592 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10593 to xlwmenu.c.
10594
10595 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10596 menu items in UTF-8.
10597
10598 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10599 (apply_systemfont_to_menu): New function.
10600 (set_frame_menubar, create_and_show_popup_menu):
10601 Call apply_systemfont_to_menu.
10602
10603 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10604
10605 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10606 FRAME_LINE_TO_PIXEL_Y.
10607
10608 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10609 pixelwidth/height.
10610
10611 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10612
10613 Simplify code for HP machines.
10614 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10615 for GNU_LINUX, not needed.
10616 (UNEXEC, NEED_BSDTTY): Move definitions...
10617 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10618
10619 * m/iris4d.h (UNEXEC): Move definition ...
10620 * s/irix6-5.h (UNEXEC): ... here.
10621
10622 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10623
10624 * xfns.c (set_machine_and_pid_properties): New function.
10625 (Fx_create_frame): Call set_machine_and_pid_properties.
10626
10627 2010-04-03 Eli Zaretskii <eliz@gnu.org>
10628
10629 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10630 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10631 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10632
10633 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10634 in this function. (Bug#5703)
10635
10636 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
10637
10638 * nsterm.h: Fix last change.
10639
10640 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10641
10642 * m/intel386.h (NO_REMAP): Move definition ...
10643 * s/msdos.h (NO_REMAP): ... here.
10644
10645 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10646
10647 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10648 used on those platforms.
10649
10650 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10651
10652 Remove extern errno declarations.
10653 * xterm.c:
10654 * xrdb.c:
10655 * w32term.c:
10656 * unexec.c:
10657 * unexaix.c:
10658 * sysdep.c:
10659 * process.c:
10660 * lread.c:
10661 * keyboard.c:
10662 * floatfns.c:
10663 * filelock.c:
10664 * fileio.c:
10665 * emacs.c (main):
10666 * ecrt0.c:
10667 * dispnew.c:
10668 * callproc.c:
10669 * buffer.c: Remove errno extern declarations.
10670 * s/netbsd.h (NEED_ERRNO): Remove.
10671
10672 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10673
10674 Remove all uses of LIBX11_SYSTEM.
10675 * Makefile.in (LIBX11_SYSTEM): Remove.
10676 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10677 instead.
10678
10679 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10680
10681 Remove support for DJGPP v1.x (bug#5813).
10682
10683 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10684 * s/msdos.h:
10685 * unexec.c (make_hdr, copy_text_and_data):
10686 * sysdep.c (wait_for_termination, sys_subshell):
10687 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10688 (IT_set_terminal_modes, __write, _rename, gethostname)
10689 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10690 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10691 the value of __DJGPP__.
10692 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10693 compatibility code.
10694 * lread.c:
10695 * gmalloc.c (memalign):
10696 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10697 * emacs.c (main):
10698 * dosfns.c (init_dosfns):
10699 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10700
10701 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10702
10703 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10704 string with `cursor' property comes from an `after-string'
10705 overlay. (Bug#5816)
10706
10707 2010-04-01 Glenn Morris <rgm@gnu.org>
10708
10709 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10710 Define as Makefile variables.
10711 (LIBX): Use above variables rather than directly using autoconf.
10712
10713 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10714
10715 Clean up BSD_SYSTEM use.
10716 * xterm.c:
10717 * process.c:
10718 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10719 for including <sys/ioctl.h>.
10720 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10721 code is only used for MSDOS.
10722
10723 2010-03-31 Juri Linkov <juri@jurta.org>
10724
10725 * image.c: Add `Qextension_data'.
10726 (syms_of_image): Initialize and staticpro `Qextension_data'.
10727 (Fimage_metadata): Rename from `Fimage_extension_data'.
10728 (gif_load): Put GIF extension data to the property
10729 `Qextension_data'.
10730
10731 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10732
10733 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10734 * nsterm.h: Fix prototype.
10735
10736 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10737
10738 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10739 trailing whitespace in right-to-left rows.
10740
10741 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10742
10743 Get rid of the direct_output optimizations.
10744 * keyboard.c (nonundocount): Remove extern declaration.
10745 (command_loop_1): Remove brittle optimisation for cheap and
10746 common operations.
10747 * xdisp.c (redisplay_internal): Don't bother checking
10748 redisplay_performed_directly_p any more.
10749 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10750 any more.
10751 * dispnew.c (redisplay_performed_directly_p)
10752 (direct_output_for_insert, direct_output_forward_char):
10753 * dispextern.h (redisplay_performed_directly_p)
10754 (direct_output_for_insert, direct_output_forward_char): Remove.
10755 * cmds.c (nonundocount): Make it static.
10756
10757 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10758
10759 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10760
10761 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10762
10763 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10764 invisible (Bug#5766).
10765
10766 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10767
10768 * xdisp.c (x_consider_frame_title, update_window_cursor):
10769 Remove HAVE_NS conditionals.
10770 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10771
10772 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10773 filename for the title.
10774 (ns_set_doc_edited): Do nothing if the selected window is a
10775 minibuffer window.
10776
10777 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10778 ns_set_doc_edited.
10779
10780 * nsterm.m: Remove unneeded prototype.
10781
10782 2010-03-31 Glenn Morris <rgm@gnu.org>
10783
10784 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10785 in the DOC file. (Bug#5336)
10786
10787 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10788
10789 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10790
10791 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10792
10793 * window.c (keys_of_window): Remove redundant/overridden bindings.
10794
10795 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10796
10797 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10798 Restore original behavior when the iterator is not bidi_p.
10799
10800 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10801
10802 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10803
10804 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10805
10806 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10807 are outside the range of cached character positions.
10808
10809 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10810
10811 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10812
10813 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10814
10815 Initial support for bidirectional editing.
10816
10817 * Makefile.in (obj): Include bidi.o.
10818 (bidi.o): New target.
10819
10820 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10821 ($(BLD)/bidi.$(O)): New target.
10822
10823 * bidi.c: New file.
10824
10825 * buffer.h (struct buffer): New members bidi_display_reordering
10826 and bidi_paragraph_direction.
10827
10828 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10829 and bidi_paragraph_direction.
10830 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10831 and bidi-paragraph-direction.
10832 (Fbuffer_swap_text): Swap the values of
10833 bidi_display_reordering and bidi_paragraph_direction.
10834
10835 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10836 (bidi_type_t, bidi_dir_t): New types.
10837 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10838 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10839 prev_stop, base_level_stop, and eol_pos.
10840 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10841 (IT_STACK_SIZE): Enlarge to 5.
10842 (struct glyph_row): New member reversed_p.
10843 <string_buffer_position>: Update prototype.
10844 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10845 glyph_row if bidi_it.paragraph_dir == R2L.
10846 (struct glyph): New members resolved_level and bidi_type.
10847
10848 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10849 processing or buffer's direction is right-to-left.
10850 (prepare_desired_row): Preserve the reversed_p flag.
10851 (row_equal_p): Compare the reversed_p attributes as well.
10852
10853 * xdisp.c (init_iterator): Initialize it->bidi_p.
10854 Call bidi_init_it and set it->paragraph_embedding from the current
10855 buffer's value of bidi_paragraph_direction.
10856 (reseat_1): Initialize bidi_it.first_elt.
10857 (set_iterator_to_next, next_element_from_buffer): Use the value of
10858 paragraph_embedding to determine the paragraph direction.
10859 (set_iterator_to_next): Under bidi reordering, call
10860 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10861 new_paragraph flag is set in the bidi iterator.
10862 (next_element_from_buffer): If bidi_it.first_elt is set,
10863 initialize paragraph direction and find the first character to
10864 display in the visual order. If reseated to a middle of a line,
10865 prime the bidi iterator starting at the line's beginning.
10866 Handle the situation where we overstepped stop_charpos due to
10867 non-linearity of the bidi iteration. Likewise for when we back up
10868 beyond the previous stop_charpos. When moving across stop_charpos,
10869 record it in prev_stop.
10870 (display_line): Set row->end and it->start for the next row to the
10871 next character in logical order. Always extend reversed_p rows to
10872 the end of line, even if they end at ZV. Copy the reversed_p flag
10873 to the next glyph row. Keep calling set_cursor_from_row for
10874 bidi-reordered rows even if we already have a possible candidate
10875 for cursor position. Set row_end after all the row's glyphs have
10876 been produced, by looping over the glyphs. Record the position
10877 after EOL in it->eol_pos, and use it to set end_pos of the last
10878 row produced for a continued line.
10879 <Qright_to_left, Qleft_to_right>: New variables.
10880 (syms_of_xdisp): Initialize and staticpro them.
10881 (string_buffer_position_lim): New function.
10882 (string_buffer_position): Most of code moved to
10883 string_buffer_position_lim. Last argument and return value are
10884 now EMACS_INT; all callers changed.
10885 (set_cursor_from_row): Rewritten to support bidirectional text and
10886 reversed glyph rows.
10887 (text_outside_line_unchanged_p, try_window_id):
10888 Disable optimizations if we are reordering bidirectional text and the
10889 paragraph direction can be affected by the change.
10890 (append_glyph, append_composite_glyph)
10891 (produce_image_glyph, append_stretch_glyph): Set the
10892 resolved_level and bidi_type members of each glyph.
10893 (append_glyph): If the glyph row is reversed, prepend the glyph
10894 rather than appending it.
10895 (handle_stop_backwards): New function.
10896 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10897 (reseat): Call handle_stop_backwards to recompute prev_stop and
10898 base_level_stop for the new position.
10899 (handle_invisible_prop): Under bidi iteration, skip invisible text
10900 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10901 paragraph direction. Update IT->prev_stop after skipping
10902 invisible text.
10903 (move_it_in_display_line_to): New variables prev_method
10904 and prev_pos. Compare for strict equality in
10905 BUFFER_POS_REACHED_P.
10906 (try_cursor_movement): Examine all the candidate rows that occlude
10907 point, to return the best match. If rows are bidi-reordered
10908 and point moved backwards, back up to the row that is not a
10909 continuation line, and start looking for a suitable row from
10910 there.
10911
10912 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10913 rather than appending, if the glyph_row's reversed_p flag is set.
10914 Set the resolved_level and bidi_type members of each glyph.
10915
10916 * .gdbinit (pbiditype): New command.
10917 (pgx): Use it to display bidi level and type of the glyph.
10918 (pitx): Display some bidi information about the iterator.
10919 (prowlims, pmtxrows): New commands.
10920
10921 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10922
10923 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10924 * s/usg5-4.h (LIBS_DEBUG):
10925 * s/irix6-5.h (C_DEBUG_SWITCH):
10926 * s/gnu-linux.h (LIBS_DEBUG):
10927 * s/darwin.h (LIBS_DEBUG):
10928 * s/bsd-common.h (LIBS_DEBUG):
10929 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10930 * m/iris4d.h (LIBS_DEBUG):
10931 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10932
10933 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10934 (LIBS_DEBUG): Remove definition.
10935
10936 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10937
10938 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10939 Windows.
10940
10941 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10942
10943 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10944 `connect' (Bug#5723).
10945
10946 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10947
10948 * process.c (Fmake_network_process): Call `select' for interrupted
10949 `connect' rather than creating new socket (Bug#5173).
10950
10951 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10952
10953 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10954
10955 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10956
10957 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10958
10959 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10960
10961 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10962 XLoadQueryFont.
10963
10964 2010-03-24 Kenichi Handa <handa@m17n.org>
10965
10966 * coding.c (decode_coding_ccl): Fix previous change for the
10967 multibyte case.
10968 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10969 case that the output buffer is fullfilled.
10970 (encode_coding): Setup ccl program here.
10971
10972 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10973
10974 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10975
10976 Simplify LIBS_MACHINE definitions.
10977 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10978 * m/iris4d.h (LIBS_MACHINE): Likewise.
10979 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10980 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10981 * s/netbsd.h: Remove commented out code.
10982
10983 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10984
10985 Remove dead code dealing with POSIX_SIGNALS.
10986 * atimer.c (set_alarm): Remove dead code, all USG systems define
10987 POSIX_SIGNALS.
10988 * data.c (arith_error): Likewise.
10989 * keyboard.c (input_available_signal, handle_user_signal)
10990 (interrupt_signal): Likewise.
10991 * process.c (sigchld_handler): Likewise.
10992 (create_process): Remove if 0 code. Remove HPUX conditional when
10993 !defined (POSIX_SIGNALS), it cannot be true.
10994 * syssignal.h: Remove USG5_4 and USG conditionals when
10995 !POSIX_SIGNALS, they cannot be true.
10996
10997 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10998 NO_SOCK_SIGIO, not used anymore.
10999
11000 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
11001
11002 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
11003 support vax on BSDs.
11004
11005 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
11006 * s/aix4-2.h (ORDINARY_LINK): ... here.
11007
11008 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
11009
11010 * Makefile.in (abs_builddir): Define.
11011 (bootstrap_exe): Use it.
11012 (VPATH): Use $(srcdir) instead of @srcdir@.
11013
11014 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11015
11016 * Makefile.in (bootstrap_exe): Use an absolute name.
11017
11018 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11019
11020 Remove support for old GNU/Linux using libc version 5.
11021 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
11022 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
11023
11024 Consolidate redundant definitions in s/bsd-common.h.
11025 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
11026 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
11027 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
11028 doing it in all files that include this one.
11029 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
11030 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
11031 (LDAV_SYMBOL, KERNEL_FILE): Remove.
11032 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
11033 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
11034 (LDAV_SYMBOL, KERNEL_FILE): Remove.
11035 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
11036 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
11037 (LDAV_SYMBOL, KERNEL_FILE): Remove.
11038
11039 Consolidate redundant definitions.
11040 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
11041 it's undefined in all files that include this one.
11042 (POSIX_SIGNALS): Define here instead of doing it in all files that
11043 include this one.
11044 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
11045 (POSIX_SIGNALS): Do not define.
11046 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
11047 (POSIX_SIGNALS): Do not define.
11048 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
11049 (POSIX_SIGNALS): Do not define.
11050
11051 Remove support for old UNIX System V systems.
11052 * s/unixware.h: Add the contents of s/usg5-4-2.h.
11053 * s/usg5-4-2.h: Remove.
11054
11055 Remove support for Solaris on PPC and for old versions.
11056 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
11057 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
11058 that cancel each other.
11059 * s/sol2-3.h:
11060 * s/sol2-4.h:
11061 * s/sol2-5.h: Remove.
11062 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
11063 (NO_REMAP): Remove, unused.
11064 (UNEXEC): Move definition ...
11065 * s/aix4-2.h (UNEXEC): ... here.
11066
11067 * s/openbsd.h: Remove support for non-ELF and for systems that do
11068 not support shared libraries.
11069 * s/netbsd.h:
11070 * s/freebsd.h: Likewise.
11071
11072 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11073
11074 Remove non-working support for lynxos 3.0.
11075 * s/lynxos.h: Remove file.
11076
11077 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
11078 COFF_BSD_SYMBOLS, nothing defines it anymore.
11079
11080 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
11081
11082 Remove obsolete uses of HAVE_SHM.
11083 * emacs.c (standard_args):
11084 (Fdump_emacs):
11085 (syms_of_emacs): Remove code depending on HAVE_SHM.
11086
11087 * alloc.c: Remove HAVE_SHM dependent definition.
11088
11089 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
11090
11091 2010-03-18 Glenn Morris <rgm@gnu.org>
11092
11093 * emacs.c (USAGE4): Hard-code bug address.
11094 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
11095 (bug_reporting_address): Remove.
11096 (main): Don't call bug_reporting_address.
11097
11098 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
11099 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
11100
11101 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
11102
11103 * xfns.c (Fx_create_frame):
11104 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
11105 on left.
11106
11107 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
11108
11109 * editfns.c (Fformat): Account for string precision when computing
11110 field width (Bug#5710).
11111
11112 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
11113
11114 * xfns.c (Fx_create_frame): Set default to Qright.
11115
11116 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
11117 all window systems.
11118
11119 2010-03-12 Eli Zaretskii <eliz@gnu.org>
11120
11121 These changes remove termcap.c from the build on Posix platforms.
11122 * Makefile.in (termcapobj): Move termcap.o from here...
11123 (MSDOS_OBJ): ...to here.
11124 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
11125 now identical to when LIBS_TERMCAP is defined.
11126
11127 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
11128
11129 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
11130
11131 * config.in: Regenerated. (See top-level ChangeLog.)
11132
11133 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
11134
11135 * Branch for 23.2.
11136
11137 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11138
11139 Cleanup setup of gl_state in various parts of the code.
11140 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
11141 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
11142 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
11143 (skip_chars):
11144 * regex.c (regex_compile): Use it.
11145 (re_compile_pattern): Don't set gl_state.current_syntax_table since
11146 it's now set in regex_compile when/if we need it.
11147
11148 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
11149
11150 Make it possible to C-g in a tight bytecode loop again (bug#5680).
11151 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
11152 (QUIT): Use it to consolidate code and remove redundancy.
11153 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
11154
11155 * regex.c (regex_compile): Setup gl_state as well.
11156
11157 * syntax.c (skip_chars): Setup gl_state (bug#3823).
11158 (in_classes): Use CONSP before XCAR/XCDR.
11159
11160 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
11161
11162 * keymap.c (Fwhere_is_internal): Use Fequal to compare
11163 definitions, so that keyboard macros are correctly handled
11164 (Bug#5481).
11165
11166 2010-03-02 Eli Zaretskii <eliz@gnu.org>
11167
11168 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
11169 text that could be relocated inside the call to emacs_mule_char.
11170 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
11171 (CODING_DECODE_CHAR): Add a comment describing its purpose.
11172
11173 2010-03-02 Kenichi Handa <handa@m17n.org>
11174
11175 * character.c (parse_str_as_multibyte): Fix handling of the
11176 multibyte form of raw-bytes.
11177 (str_as_multibyte): Likewise.
11178
11179 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
11180 form of raw-bytes.
11181
11182 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
11183
11184 * charset.c (load_charset_map_from_file)
11185 (load_charset_map_from_vector): Zero out allocated
11186 charset_map_entries before using them.
11187
11188 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
11189
11190 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
11191
11192 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
11193
11194 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
11195 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
11196
11197 2010-02-26 Kenichi Handa <handa@m17n.org>
11198
11199 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
11200
11201 * xdisp.c (reseat_to_string): Fix previous change.
11202
11203 2010-02-26 David Reitter <david.reitter@gmail.com>
11204
11205 * nsfont.m (nsfont_draw): ns_antialias_text should be a
11206 Lisp_Object (Bug#4736).
11207
11208 2010-02-25 Kenichi Handa <handa@m17n.org>
11209
11210 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
11211
11212 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
11213
11214 * xterm.c (XTflash): Move declarations before statements.
11215
11216 * gtkutil.c (xg_get_gdk_display): Remove (unused).
11217 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
11218 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
11219 (xg_create_tool_bar): Remove unused variables.
11220 (x_wm_set_size_hint): Move declarations before statements.
11221 (xg_create_frame_widgets): Remove variable grav.
11222
11223 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
11224
11225 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
11226
11227 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11228
11229 * term.c (fatal): Add a final \n if needed (bug#5596).
11230
11231 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
11232
11233 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
11234
11235 2010-02-18 Glenn Morris <rgm@gnu.org>
11236
11237 * callint.c (Finteractive): Doc fix.
11238
11239 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
11240
11241 * coding.c (record_conversion_result):
11242 Handle CODING_RESULT_INSUFFICIENT_DST.
11243 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
11244 memory allocation error.
11245
11246 2010-02-17 Kenichi Handa <handa@m17n.org>
11247
11248 * coding.c (decode_coding_ccl): Don't setup ccl program here.
11249 Fix for the case that the output buffer is fullfilled.
11250 (decode_coding): Setup ccl program here. Keep looping when the
11251 decoder stopped because the output buffer is
11252 fullfilled (bug#5534).
11253
11254 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
11255
11256 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
11257
11258 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
11259 bug #5571.
11260 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
11261 overdrawn.
11262
11263 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
11264
11265 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11266 doing_interact here.
11267 (ice_connection_closed): New function.
11268 (x_session_check_input, smc_die_CB, ice_io_error_handler)
11269 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
11270 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
11271 returns I/O error.
11272 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
11273 bug #5512.
11274
11275 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
11276
11277 * nsfont.m (nsfont_open): The system's value for the font descent
11278 is negative, so round it down to avoid clipping.
11279
11280 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * charset.c (load_charset_map_from_file)
11283 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
11284 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
11285
11286 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
11287
11288 * charset.c (load_charset_map_from_file): Allocate large
11289 charset_map_entries structure on the heap rather than the stack.
11290 (Bug#5526).
11291
11292 2010-01-31 Kenichi Handa <handa@m17n.org>
11293
11294 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
11295 size in NAME is invalid, return -1 (Bug#5396).
11296
11297 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
11298
11299 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11300 <deactivated@gmail.com> (Bug#3605).
11301
11302 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
11303
11304 * fileio.c (Frename_file): Correctly rename symlinks to
11305 directories (Bug#5496).
11306
11307 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11308
11309 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11310
11311 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11312
11313 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11314
11315 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
11316
11317 * frame.c (DEFAULT_ROWS): Change default to 35.
11318
11319 * xfns.c (x_default_font_parameter): Change default XFT font to
11320 monospace-10 (Bug#3643).
11321
11322 2010-01-29 Eli Zaretskii <eliz@gnu.org>
11323
11324 * w32inevt.c (key_event): Remove unnecessary comparison of
11325 event->uChar.AsciiChar with 128.
11326
11327 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
11328
11329 * fileio.c (Frename_file): Fix last change (Bug#5487).
11330
11331 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11332
11333 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11334
11335 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11336
11337 * xfns.c (Fx_create_frame): Remove window size matching code from
11338 2010-01-15.
11339 (x_get_current_desktop, x_get_desktop_workarea): Remove.
11340
11341 2010-01-27 Jason Rumney <jasonr@gnu.org>
11342
11343 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
11344 (key_event): Use unicode for characters 128 and higher (Bug#4567).
11345
11346 2010-01-27 Kenichi Handa <handa@m17n.org>
11347
11348 * regex.c (analyse_first): Fix setting of fastmap for unibyte
11349 pattern string (Bug#4209).
11350
11351 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
11352
11353 * fileio.c (Frename_file): Call copy-directory and
11354 delete-directory for directories, in order to handle cross-device
11355 renaming (Bug#3353).
11356
11357 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11358
11359 * xfns.c (Fx_create_frame): If frame height is too big, try
11360 sizes 24 and 10. Bug #3643.
11361
11362 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11363
11364 Try and fix bug#788, hopefully for real this time.
11365 * keymap.c (shadow_lookup): Add `remap' arg.
11366 (describe_map, describe_vector): Update calls to shadow_lookup.
11367 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11368 `remapped' so this flag is applicable to `sequence'. Be careful to
11369 perform remapping during shadow_lookup check of remapped_sequences.
11370
11371 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11372
11373 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11374 png_check_sig, which has been removed in libpng 1.4.
11375
11376 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11377
11378 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11379 lacks this header file).
11380
11381 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11382
11383 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11384 as in Emacs 22.
11385
11386 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11387
11388 * lisp.h (make_pure_string): String pointer arg now points to const.
11389
11390 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11391 args now point to const.
11392
11393 2010-01-22 Eli Zaretskii <eliz@gnu.org>
11394
11395 * lread.c (Fload): Don't treat files without .elc extension as
11396 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11397 them. (bug#5303)
11398
11399 2010-01-20 Kenichi Handa <handa@m17n.org>
11400
11401 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11402 treat the source as actual byte sequence.
11403
11404 2010-01-19 Alan Mackenzie <acm@muc.de>
11405
11406 Fix spurious before-change-functions invocation from (insert ?\n).
11407 * textprop.c (set_text_properties): Rename parameter
11408 `signal_after_change_p' to `coherent_change_p', and make the
11409 invocation of `modify_region' conditional on it.
11410
11411 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11412
11413 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11414 for debug purpose.
11415 (syms_of_xsettings): Declare xft-settings.
11416
11417 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
11418
11419 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11420
11421 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11422
11423 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11424
11425 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
11426
11427 * emacs.c (standard_args): Adjust arg priorities to reflect how
11428 they are processed in startup.el.
11429
11430 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11431
11432 * Makefile.in (lisp, shortlisp): Update.
11433
11434 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11435
11436 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11437 code, link the new kboard into all_kboard before running Lisp code,
11438 and protect the new terminal with GCPRO (Bug#5365).
11439 (x_term_init): Remove unused var `atom'.
11440 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11441
11442 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11443
11444 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11445 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11446 to find out usable size of the desktop. Don't make frames larger than
11447 this. Bug #3643.
11448
11449 2010-01-15 Kenichi Handa <handa@m17n.org>
11450
11451 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11452
11453 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
11454
11455 * nsterm.m (Qnone): Define.
11456
11457 * nsfns.m (Qnone): Move definition to nsterm.m.
11458
11459 2010-01-14 Kenichi Handa <handa@m17n.org>
11460
11461 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11462 systems.
11463
11464 2010-01-14 Kenichi Handa <handa@m17n.org>
11465
11466 Make auto-composition work on all buffers even if they are
11467 fundamental mode.
11468
11469 * composite.c (Vauto_composition_mode): New variable.
11470 (composition_compute_stop_pos): Check Vauto_composition_mode
11471 instead of Vauto_composition_function.
11472 (composition_adjust_point, Ffind_composition_internal): Likewise.
11473 (syms_of_composite): Declare Lisp variable
11474 "auto-composition-mode" here.
11475
11476 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
11477
11478 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11479 during call to vendor-specific-keysyms (Bug#5365).
11480
11481 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11482
11483 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11484 Call SIGNAL_THREAD_CHECK (Bug#5333).
11485
11486 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11487 Call SIGNAL_THREAD_CHECK.
11488
11489 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11490
11491 Try to fix bug#5314. This is probably not the final word, tho.
11492 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11493 recent-auto-save-p as a side-effect.
11494 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11495 * buffer.c (Fkill_buffer, reset_buffer):
11496 * editfns.c (Fsubst_char_in_region):
11497 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11498 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11499
11500 2010-01-13 Kenichi Handa <handa@m17n.org>
11501
11502 Display buffer name, etc. in mode line by composing correctly.
11503
11504 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11505 STRING is not nil.
11506 (display_mode_element): Adjust for the change of
11507 decode_mode_spec and display_line.
11508 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11509 (display_string): Handle the case that STRING is non-null and
11510 LISP_STRING is not nil.
11511
11512 * xterm.c (x_draw_composite_glyph_string_foreground):
11513 Pay attention to s->face->overstrike.
11514
11515 * composite.c (composition_reseat_it): Don't check PT if STRING is
11516 non nil.
11517
11518 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11519
11520 * keyboard.c (read_char): Don't apply previous change when current
11521 buffer is unchanged by command execution.
11522
11523 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11524
11525 * keyboard.c (read_char): Return after executing from special map.
11526
11527 2010-01-12 Glenn Morris <rgm@gnu.org>
11528
11529 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11530 bug-gnu-emacs rather than emacs-pretest-bug.
11531
11532 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11533
11534 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11535 initializing the Lisp variables that depend on them.
11536
11537 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11538
11539 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11540 Clear areas that will not be updated after change of menu bar lines.
11541 Clear the menu bar window's current matrix when the window gets empty.
11542
11543 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
11544
11545 * intervals.h, textprop.c (extend_property_ranges): Return value
11546 and args changed. Discard properties that begin at or after the
11547 new end (Bug#5306).
11548
11549 * editfns.c (Fformat): Caller changed.
11550
11551 * nsterm.m (ns_set_default_prefs): Delete function.
11552 (syms_of_nsterm): Initialize ns_command_modifier,
11553 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11554 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11555
11556 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11557 position (Bug#4040).
11558
11559 2010-01-09 Eli Zaretskii <eliz@gnu.org>
11560
11561 * editfns.c (Ffloat_time): Doc fix.
11562
11563 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11564
11565 * xfns.c (Fx_create_frame): Don't create frame larger than display
11566 by default bug#3643.
11567
11568 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11569
11570 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11571 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11572 windows above internal border.
11573
11574 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11575 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11576 windows above internal border.
11577
11578 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11579 tool bar windows specially.
11580
11581 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11582
11583 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11584 specially.
11585 (XTflash): Take account of menu bar height.
11586
11587 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11588 specially.
11589
11590 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11591
11592 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11593 also be true before we can return early (bug #5339).
11594
11595 2010-01-06 David Reitter <david.reitter@gmail.com>
11596
11597 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11598 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11599 (Bug#3233).
11600
11601 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11602
11603 * font.c (font_open_entity): Enable chache and call cached_font_ok
11604 for the driver if defined.
11605 (QCuser_spec): New symbol.
11606 (font_spec_from_name): Save name as user-spec.
11607 (font_load_for_lface): Keep user-spec instead of name.
11608 (font_open_by_name): Save name as user-spec.
11609 (syms_of_font): Initialize QCuser_spec.
11610 (font_clear_prop): Clear name if it exists in font (bug#5157).
11611
11612 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11613 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11614 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11615
11616 * font.h (struct font_driver): Add cached_font_ok.
11617
11618 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11619
11620 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11621
11622 * xterm.c (x_new_font): Move code for setting rows/cols before
11623 resizing ...
11624 (x_set_window_size): ... to here. Bug #2568.
11625
11626 * gtkutil.c (xg_clear_under_internal_border): New function.
11627 (xg_frame_resized, xg_frame_set_char_size):
11628 Call xg_clear_under_internal_border.
11629 (xg_update_scrollbar_pos): Clear under old scroll bar position.
11630
11631 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
11632
11633 * keyboard.c (read_key_sequence): Catch keyboard switch after
11634 making a new tty frame (Bug#5095).
11635
11636 2010-01-05 Kenichi Handa <handa@m17n.org>
11637
11638 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11639
11640 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11643 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11644 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11645
11646 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
11647
11648 * dbusbind.c (xd_add_watch): Improve debug message.
11649 (xd_remove_watch): Improve debug message. If DATA is the session
11650 bus, unset D-Bus session environment.
11651 (Fdbus_init_bus): Pass the bus as argument to
11652 dbus_connection_set_watch_functions. (Bug#5283)
11653
11654 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
11655
11656 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11657
11658 * lread.c (syms_of_lread): Make it clearer that these are the
11659 names of loaded files (Bug#5068).
11660
11661 * eval.c (run_hook_with_args): Handle the case where the global
11662 value has the obsolete single-function form (Bug#5026).
11663
11664 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
11665
11666 * minibuf.c (Fall_completions): Minor optimization.
11667
11668 2009-12-26 Eli Zaretskii <eliz@gnu.org>
11669
11670 * .gdbinit (pgx): Fix display of composite glyphs.
11671 Display cmp.from and cmp.to as well.
11672 (pitx): Fix last change.
11673
11674 2009-12-25 Kenichi Handa <handa@m17n.org>
11675
11676 * composite.h (composition_adjust_point): Update prototype.
11677
11678 * composite.c (composition_reseat_it): Don't make a composition
11679 spanning over point.
11680 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11681 composable characters.
11682 (composition_adjust_point): New arg NEW_PT. Callers changed.
11683
11684 * keyboard.c (command_loop_1): Force redisplay if the last point
11685 was within a composition.
11686 (adjust_point_for_property): Don't adjust point for automatic
11687 composition when called after buffer modification.
11688
11689 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11690
11691 * .gdbinit (pitx): Don't use enum names, use their values.
11692 Remove reference to non-existing value GET_FROM_COMPOSITION.
11693 (pgx): Don't use enum names, use their values.
11694 (pitmethod): New helper command.
11695 (pitx): Use it to display iteration method.
11696 (pgrowit): New command.
11697
11698 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11699
11700 Update dependencies in Makefile.in.
11701
11702 * Makefile.in (alloc.o): Depend on termhooks.h.
11703 (atimer.o): Depend on blockinput.h.
11704 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11705 and frame.h.
11706 (callint.o): Depend on systime.h, coding.h, and composite.h.
11707 (callproc.o): Depend on buffer.h.
11708 (casefiddle.o): Don't depend on charset.h.
11709 (casetab.o): Depend on character.h.
11710 (ccl.o): Depend on composite.h.
11711 (chartab.o): Depend on ccl.h.
11712 (cm.o): Depend on dispextern.h.
11713 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11714 (coding.o): Don't depend on $(INTERVALS_H).
11715 (composite.o): Don't depend on dispextern.h explicitly (it's in
11716 $(INTERVALS_H)). Depend on ccl.h.
11717 (data.o): Depend on systime.h, coding.h, composite.h,
11718 dispextern.h, font.h, and ccl.h.
11719 (dired.o): Depend on composite.h.
11720 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11721 composite.h (it's in $(INTERVALS_H)).
11722 (doc.o): Depend on systime.h, coding.h, and composite.h.
11723 (editfns.o): Don't depend explicitly on dispextern.h.
11724 (emacs.o): Depend on frame.h and coding.h.
11725 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11726 (fileio.o): Depend on frame.h and commands.h. Don't depend
11727 explicitly on dispextern.h.
11728 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11729 composite.h.
11730 (fns.o): Don't depend on termhooks.h.
11731 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11732 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11733 coding.h, $(INTERVALS_H), window.h, xterm.h.
11734 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11735 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11736 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11737 fontset.h, ccl.h, and ftfont.h.
11738 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11739 (gtkutil.o): Depend on dispextern.h and composite.h.
11740 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11741 termhooks.h, and ccl.h.
11742 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11743 (intervals.o): Depend on systime.h and coding.h.
11744 (keyboard.o): Depend on composite.h and coding.h.
11745 (keymap.o): Depend on coding.h and frame.h.
11746 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11747 (macros.o): Depend on systime.h, coding.h, and composite.h.
11748 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11749 and atimer.h.
11750 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11751 dispextern.h explicitly.
11752 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11753 Don't depend explicitly on dispextern.h and composite.h.
11754 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11755 (regex.o): Don't depend on charset.h.
11756 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11757 (search.o): Don't depend explicitly on composite.h.
11758 (sound.o): Depend on atimer.h and systime.h.
11759 (syntax.o): Don't depend explicitly on composite.h.
11760 (sysdep.o): Depend on coding.h and composite.h.
11761 (term.o): Depend on xterm.h and buffer.h.
11762 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11763 (textprop.o): Don't depend on dispextern.h explicitly.
11764 (undo.o): Depend on dispextern.h.
11765 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11766 dispextern.h and composite.h explicitly.
11767 (xdisp.o): Depend on ccl.h.
11768 (xfaces.o): Depend on coding.h and ccl.h.
11769 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11770 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11771 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11772 ftfont.h.
11773 (xgselect.o): New dependency.
11774 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11775 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11776 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11777 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11778 (xsmfns.o): Depend on frame.h and dispextern.h.
11779 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11780 sysselect.h.
11781
11782 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11783
11784 * font.c (Fclear_font_cache): Pass correct cache argument to
11785 font_clear_cache.
11786
11787 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11788
11789 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11790 twice.
11791
11792 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11793
11794 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11795 calling file-remote-p. Reported by Jim Meyering.
11796
11797 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11798
11799 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11800 avoid compiler warnings. (Bug #5217)
11801
11802 2009-12-14 Kenichi Handa <handa@m17n.org>
11803
11804 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11805 in 8-bit encoding.
11806
11807 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11808
11809 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11810 tooltip windows.
11811
11812 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11813
11814 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11815 Xatom_net_window_type.
11816
11817 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11818 Xatom_net_window_type.
11819
11820 * xterm.c (my_log_handler): New function.
11821 (x_term_init): Set my_log_handler as log handler during gtk_init
11822 so we can filter out buggy messages. (Bug #5120).
11823
11824 * xterm.c (xg_scroll_callback): Parameter list changed,
11825 use parameter GtkScrollType to determine scroll/line/page.
11826 Only allow dragging if a button < 4 is grabbed (bug #5177).
11827 (xg_end_scroll_callback): New function.
11828 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11829 xg_create_scroll_bar.
11830
11831 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11832 (scroll_end_callback): Remove.
11833 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11834 button-release-event. Replace value-changed event with change-value,
11835 bug #5177.
11836 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11837 bug #5177.
11838
11839 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11840 (xg_create_scroll_bar): Add GCallback end_callback.
11841
11842 * xftfont.c (QClcdfilter): New variable.
11843 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11844 (syms_of_xftfont): Initialize QClcdfilter.
11845
11846 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11847
11848 * xsettings.c (struct xsettings): Add member seen.
11849 (parse_xft_settings): Update member seen with what we have read.
11850 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11851 (apply_xft_settings): Only update Xft settings with what member seen
11852 indicates as new.
11853
11854 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11855
11856 * dispextern.h (struct text_pos): Use EMACS_INT.
11857 (struct glyph): Use EMACS_INT for charpos.
11858 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11859 region_beg_charpos, region_end_charpos,
11860 redisplay_end_trigger_charpos, and also for
11861 iterator_stack_entry.end_charpos and
11862 iterator_stack_entry.stop_charpos.
11863
11864 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11865
11866 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11867 (xg_create_scroll_bar): Call scroll_end_callback on button release
11868 event (bug #5177).
11869 (xg_event_is_for_scrollbar): != replaced with ==.
11870
11871 2009-12-12 Kenichi Handa <handa@m17n.org>
11872
11873 * ftfont.c (struct ftfont_info): New member matrix.
11874 (ftfont_open): Setup xftfont_info->matrix.
11875 (MFLTFontFT): New member matrix.
11876 (FLOOR, CEIL, ROUND): New macros.
11877 (ftfont_get_metrics): Handle matrix transformation.
11878 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11879
11880 * xftfont.c (struct xftfont_info): New member matrix.
11881 (xftfont_open): Setup xftfont_info->matrix.
11882
11883 2009-12-10 Kenichi Handa <handa@m17n.org>
11884
11885 * xdisp.c (append_space_for_newline): Consider face-remapping.
11886
11887 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11888
11889 * xsettings.c: Include "keyboard.h".
11890
11891 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11892
11893 Fix implicit function declarations.
11894 * cmds.c: Include "frame.h".
11895 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11896 * frame.h: Move declaration of delete_frame outside of
11897 HAVE_WINDOW_SYSTEM.
11898
11899 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11900
11901 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11902
11903 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11904 GTK builds.
11905
11906 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11907
11908 * unexelf.c (unexec): Don't search for .data twice.
11909
11910 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11911
11912 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11913 if push failed.
11914 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11915 of push_display_prop (Bug#5000).
11916
11917 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11918 value of font_list_entities (Bug#5085).
11919
11920 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11921
11922 Fix `string-to-number' to deal consistently with integers and floats.
11923 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11924 trailing characters, not just whitespace.
11925 (read1): Pass new arg 0 to keep old behavior.
11926 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11927 trailing chars, as it is already done for integers. Doc fixes.
11928 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11929
11930 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11931
11932 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11933 Delete unused enumeration value.
11934
11935 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11936
11937 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11938
11939 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11940
11941 * process.c (Fmake_network_process): Fix up the tests for
11942 "connectionless socket", so they DTRT for seqpacket sockets as well.
11943
11944 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11945
11946 * process.c (Qseqpacket): New symbol.
11947 (HAVE_SEQPACKET): New macro.
11948 (Fmake_network_process): Accept new :type `seqpacket'.
11949 (init_process): Add `seqpacket' feature when applicable.
11950 (syms_of_process): Initialize Qseqpacket.
11951
11952 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11953
11954 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11955 if entity is Qnil.
11956
11957 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * print.c (print_preprocess): Preprocess the key_and_value table of
11960 hashtables, even tho they're "hidden" (bug#5082).
11961
11962 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11963
11964 * frame.c (frame_make_pointer_invisible)
11965 (frame_make_pointer_visible): Declare f before statements.
11966
11967 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11968
11969 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11970 omitted dependencies on lisp.h.
11971
11972 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11973
11974 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11975 is NULL.
11976
11977 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11978
11979 * frame.c (frame_make_pointer_invisible)
11980 (frame_make_pointer_visible): Just return if there isn't any selected
11981 frame.
11982
11983 * search.c (simple_search): Remove warning by making *p const.
11984
11985 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11986
11987 * xdisp.c (power_letter): Remove duplicate const.
11988
11989 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11990
11991 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11992
11993 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11994 defaults (bug #5025).
11995
11996 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * insdel.c (adjust_markers_for_delete): Move it in the
11999 right direction! (bug#4803)
12000
12001 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12002
12003 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
12004
12005 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
12006
12007 2009-11-24 Glenn Morris <rgm@gnu.org>
12008
12009 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
12010
12011 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
12012
12013 * Makefile.in: Must create deps for ecrt0.o in its rule.
12014
12015 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
12016 because that is what Gtk+ font dialog understands.
12017
12018 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
12019 of Fcopy_sequence.
12020 (font_open_by_name): Put name given into QCname for font-object returned.
12021
12022 * frame.c (x_set_font): Save original font name as frame parameter
12023 font-parameter.
12024
12025 * xsettings.c (set_default_xft_settings): New function.
12026 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
12027 is found.
12028
12029 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
12030
12031 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
12032 searching backwards through multibyte buffer.
12033
12034 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
12035
12036 * xterm.c: #include xgselect.h.
12037 (x_initialize): Call xgselect_initialize.
12038
12039 * xsettings.c (something_changedCB): C++ comments => C comments.
12040 (init_gconf): Do not deal with any GLib file descriptors, xg_select
12041 does that now.
12042
12043 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
12044 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
12045 (scroll_bar_button_cb): Remove.
12046 (create_menus): C++ comments => C comments. Don't bind grab-notify
12047 event.
12048 (xg_create_scroll_bar): Don't bind button-press-event and
12049 button-release-event.
12050
12051 * process.c: Include xgselect.h if defined (USE_GTK) ||
12052 defined (HAVE_GCONF).
12053 (wait_reading_process_output): Call xg_select for the same condition.
12054
12055 * xgselect.c (xg_select): New function to better integrate with
12056 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
12057
12058 * xgselect.h: New file, declare xg_select, xgselect_initialize.
12059
12060 * Makefile.in (XOBJ): Add xgselect.o.
12061
12062 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
12063
12064 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
12065 Remove ignored second argument. All callers changed.
12066 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
12067 (RE_STRING_CHAR_AND_LENGTH): Likewise.
12068 * xdisp.c (string_char_and_length): Likewise.
12069
12070 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
12071
12072 * xterm.c (x_new_font):
12073 * print.c (print_object):
12074 * cmds.c (Fself_insert_command): Move declarations before statements.
12075
12076 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
12077
12078 * s/cygwin.h: Remove unneeded linker flags.
12079
12080 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
12081
12082 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
12083
12084 * xsettings.h: Declare xsettings_get_system_font.
12085
12086 * xsettings.c (xsettings_get_system_font): New function.
12087 (init_gconf): No use initiating gconf unless we have Xft also.
12088 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
12089 HAVE_GCONF.
12090
12091 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
12092 add a blank entry so it doesn't collapse into nothing.
12093
12094 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12095
12096 * lread.c (Funintern): Comment out last change.
12097
12098 2009-11-19 Richard Stallman <rms@gnu.org>
12099
12100 * lread.c (Funintern): Error if symbol is t or nil.
12101
12102 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12103
12104 * insdel.c (make_gap_larger): Don't make as many assumptions about the
12105 representation of Lisp integers.
12106 Reported by MJ Chan <mjchan.inbox@gmail.com>.
12107
12108 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12109
12110 * lisp.h: Remove declaration of Ffont_get_system_font.
12111 * xfns.c: Move include of "xsettings.h".
12112 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
12113
12114 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12115
12116 * xsettings.c (something_changedCB, Ffont_get_system_font):
12117 Check use_system_font.
12118 (syms_of_xsettings): DEFVAR font-use-system-font.
12119
12120 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12121
12122 * xfns.c (x_default_font_parameter): Remove dead assignment.
12123
12124 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
12125
12126 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12127
12128 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
12129 not have FC_LCD_*. #define them if not there.
12130
12131 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
12132
12133 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
12134
12135 * xterm.c (handle_one_xevent): Call xft_settings_event for
12136 ClientMessage, PropertyNotify and DestroyNotify.
12137 (x_term_init): If we have XFT, get DPI from Xft.dpi.
12138 Call xsettings_initialize.
12139
12140 * xftfont.c (xftfont_fix_match): New function.
12141 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
12142 Call xftfont_fix_match after XftFontMatch.
12143
12144 * xfont.c (xfont_driver): Initialize all members.
12145
12146 * xfns.c (x_default_font_parameter):
12147 Try font from Ffont_get_system_font.
12148 Do not get font from x_default_parameter if we got one from
12149 Ffont_get_system_font.
12150 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
12151
12152 * w32font.c (w32font_driver): Initialize all members.
12153
12154 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
12155
12156 * lisp.h: Declare syms_of_xsettings.
12157
12158 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
12159 Handle CONFIG_CHANGED_EVENT.
12160
12161 * ftfont.c (ftfont_filter_properties): New function.
12162
12163 * frame.c (x_set_font): Remove unused variable lval.
12164
12165 * font.h (struct font_driver): Add filter_properties.
12166
12167 * font.c (font_put_extra): Don't return if val is nil, it means
12168 boolean option is off.
12169 (font_parse_fcname): Collect all extra properties in extra_props
12170 and call filter_properties for all drivers with extra_props and
12171 font as parameter.
12172 (font_open_entity): Do not use cache, it does not pick up new
12173 fontconfig settings like hinting.
12174 (font_load_for_lface): If spec had a name in it, store it in entity.
12175
12176 * emacs.c (main): Call syms_of_xsettings.
12177
12178 * config.in: HAVE_GCONF is new.
12179
12180 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
12181 xsettings.o is new.
12182
12183 2009-11-17 Kenichi Handa <handa@m17n.org>
12184
12185 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
12186 back to the default font in case that no suitable font is found.
12187
12188 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12189
12190 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
12191 Suggested by Chad Brown <yandros@mit.edu>.
12192 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
12193
12194 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
12195
12196 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
12197
12198 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
12199
12200 * Makefile.in: Ignore errors from mkdir when creating deps directory.
12201
12202 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
12203
12204 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
12205 has a parent.
12206
12207 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
12208 dependency files in deps/. Include those files into Makefile.
12209
12210 * config.in: Generated (AUTO_DEPEND).
12211
12212 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
12213
12214 * dbusbind.c (Vdbus_registered_objects_table): Rename from
12215 Vdbus_registered_functions_table, because it contains also
12216 properties. Fix docstring.
12217 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
12218
12219 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
12220
12221 * alloc.c (mark_object): Don't reprocess marked strings.
12222 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
12223 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
12224
12225 2009-11-13 Kenichi Handa <handa@m17n.org>
12226
12227 * category.c (word_boundary_p): Adjust for the change of the
12228 semantics of Vword_combining_categories.
12229 (Vword_combining_categories): Describe the slight change of the
12230 semantics.
12231
12232 2009-11-13 Eli Zaretskii <eliz@gnu.org>
12233
12234 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
12235
12236 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
12237
12238 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
12239
12240 * xdisp.c (syms_of_xdisp): Fix typo in last change.
12241
12242 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
12243
12244 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
12245
12246 2009-11-11 David Reitter <david.reitter@gmail.com>
12247
12248 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
12249 variables to fix 2009-11-09 change.
12250
12251 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
12252
12253 * process.c (ifflag_def): Make flag_sym constant.
12254 (Fnetwork_interface_info): Use a constant pointer.
12255 (ifflag_table):
12256 * xfns.c (cursor_bits):
12257 * xdisp.c (power_letter):
12258 * termcap.c (speeds, esctab):
12259 * sysdep.c (baud_convert):
12260 * keyboard.c (lispy_accent_codes, modifier_names):
12261 * image.c (xbm_format, xpm_format, pbm_format, png_format)
12262 (jpeg_format, tiff_format, gif_format, svg_format)
12263 (interlace_start, interlace_increment, gs_format):
12264 * gtkutil.c (separator_names):
12265 * fringe.c (swap_nibble):
12266 * fns.c (base64_value_to_char, base64_char_to_value):
12267 * fileio.c (make_temp_name_tbl):
12268 * coding.c (suffixes): Make constant.
12269
12270 * frame.c (make_initial_frame):
12271 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
12272 build_string.
12273 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
12274
12275 * s/freebsd.h:
12276 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
12277
12278 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
12279 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
12280
12281 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
12282 * xterm.c (syms_of_xterm):
12283 * xfaces.c (syms_of_xfaces):
12284 * xdisp.c (syms_of_xdisp):
12285 * lread.c (syms_of_lread):
12286 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
12287 build_string.
12288
12289 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
12290
12291 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12292
12293 * fns.c (Fplist_get): Merge the active and the commented out code.
12294
12295 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12296
12297 * keyboard.h: Declare timer_check.
12298
12299 * keyboard.c (timer_check_2): New function that does what the old
12300 timer_check did.
12301 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12302 returned, i.e. don't return -1 with timers pending.
12303
12304 * process.c: Remove extern declaration of timer_check.
12305
12306 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12307 even if timer_check returned -1.
12308
12309 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12310 xg_dialog_data.
12311 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12312 the event loop.
12313 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12314 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12315 Destroy the dialog after xg_dialog_run.
12316
12317 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12318
12319 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12320
12321 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12322
12323 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12324
12325 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
12326
12327 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12328
12329 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12330
12331 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12332 w32menu.c, and nsmenu.m.
12333 Simplify the obsolete case where position is nil.
12334 (cleanup_popup_menu): New function, moved from nsmenu.m.
12335 (struct skp): Remove slot `notreal'.
12336 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12337 adjust callers.
12338 (single_menu_item): Adjust call to parse_menu_item.
12339 (syms_of_menu): Defsubr x-popup-menu.
12340 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12341 (keymap_panes): Don't export any more.
12342 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12343 (xmenu_show): Declare.
12344 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12345 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12346 * keyboard.h (parse_menu_item): Update declaration.
12347 * xmenu.c (Fx_popup_menu): Remove.
12348 (syms_of_xmenu): Don't defsubr x-popup-menu.
12349 * w32menu.c (Fx_popup_menu): Remove.
12350 (syms_of_w32menu): Don't defsubr x-popup-menu.
12351 * nsmenu.m (cleanup_popup_menu): Remove.
12352 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12353 moved to menu.c's Fx_popup_menu.
12354 (Fx_popup_menu): Remove.
12355 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12356 menu_items (it's done in menu.c already).
12357
12358 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12359
12360 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12361 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12362
12363 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
12364
12365 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
12366 xmenu_show. Hide any tooltip before opening a menu.
12367 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12368 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12369
12370 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12371
12372 Let integers use up 2 tags to give them one extra bit and thus double
12373 their range.
12374 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12375 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12376 New macros.
12377 (enum Lisp_Type): Use them. Give explicit values.
12378 (Lisp_Type_Limit): Remove.
12379 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12380 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12381 Pay attention to USE_2_TAGS_FOR_INTS.
12382 (INTEGERP): Use LISP_INT_TAG_P.
12383 * fns.c (internal_equal): Simplify the default case.
12384 (sxhash): Use case_Lisp_Int.
12385 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12386 any more.
12387 (Ftype_of): Use case_Lisp_Int.
12388 (store_symval_forwarding): Take into account the fact that Ints can
12389 now have more than one tag.
12390 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
12391 (buffer_slot_type_mismatch):
12392 * xfaces.c (face_attr_equal_p):
12393 * print.c (print_object):
12394 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12395 Use case_Lisp_Int.
12396
12397 2009-11-06 Eli Zaretskii <eliz@gnu.org>
12398
12399 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12400
12401 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12402 warning.
12403
12404 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12405
12406 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12407
12408 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12409
12410 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12411 ButtonPressRelease and MotionNotify (bug#4870).
12412
12413 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12414
12415 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12416
12417 * xterm.c (syms_of_xterm):
12418 * xselect.c (syms_of_xselect):
12419 * xmenu.c (syms_of_xmenu):
12420 * xfns.c (syms_of_xfns):
12421 * xfaces.c (syms_of_xfaces):
12422 * xdisp.c (syms_of_xdisp):
12423 * window.c (syms_of_window):
12424 * w32fns.c (syms_of_w32fns):
12425 * undo.c (syms_of_undo):
12426 * textprop.c (syms_of_textprop):
12427 * terminal.c (syms_of_terminal):
12428 * syntax.c (syms_of_syntax):
12429 * sound.c (syms_of_sound):
12430 * search.c (syms_of_search):
12431 * print.c (syms_of_print):
12432 * minibuf.c (syms_of_minibuf):
12433 * macros.c (syms_of_macros):
12434 * keymap.c (syms_of_keymap, initial_define_key)
12435 (initial_define_lispy_key):
12436 * keyboard.c (syms_of_keyboard):
12437 * insdel.c (syms_of_insdel):
12438 * image.c (syms_of_image):
12439 * fringe.c (syms_of_fringe):
12440 * frame.c (syms_of_frame):
12441 * fontset.c (syms_of_fontset):
12442 * fns.c (syms_of_fns):
12443 * fns.c (syms_of_fns):
12444 * fileio.c (syms_of_fileio):
12445 * fileio.c (syms_of_fileio):
12446 * eval.c (syms_of_eval):
12447 * doc.c (syms_of_doc):
12448 * dispnew.c (syms_of_display):
12449 * dired.c (syms_of_dired):
12450 * dbusbind.c (syms_of_dbusbind):
12451 * data.c (syms_of_data):
12452 * composite.c (syms_of_composite):
12453 * coding.c (syms_of_coding):
12454 * cmds.c (syms_of_cmds):
12455 * charset.c (define_charset_internal, syms_of_character):
12456 * ccl.c (syms_of_ccl):
12457 * category.c (syms_of_category, init_category_once):
12458 * casetab.c (syms_of_casetab):
12459 * casefiddle.c (syms_of_casefiddle):
12460 * callint.c (syms_of_callint):
12461 * bytecode.c (syms_of_bytecode):
12462 * buffer.c (keys_of_buffer, syms_of_buffer):
12463 * alloc.c (syms_of_alloc):
12464 * process.c (syms_of_process, init_process):
12465 * lread.c (syms_of_lread, init_obarray):
12466 * font.c (build_style_table):
12467 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12468 intern_c_string, calls to make_pure_string with
12469 make_pure_c_string. Use pure_cons instead of Fcons.
12470
12471 * process.c (socket_options): Make it const.
12472 (set_socket_option, init_process): Use a const pointer.
12473
12474 * lread.c (intern_c_string): New function.
12475 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12476 (defvar_int): Uset it. Make the name const char*.
12477
12478 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12479 (defvar_int): Update prototypes.
12480 (DEFUN, EXFUN): Support for prototypes is now required.
12481 (intern_c_string): New prototype.
12482 (struct Lisp_Subr): Make symbol_name constant.
12483
12484 * font.c (struct table_entry): Remove unused member. Make NAMES
12485 constant.
12486 (weight_table, slant_table, width_table): Make constant.
12487
12488 * emacs.c (struct standard_args): Make name and longname constant.
12489
12490 * character.h (DEFSYM): Use intern_c_string.
12491
12492 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12493
12494 * alloc.c (make_pure_c_string): New function.
12495
12496 * eval.c (Fautoload): Purecopy all arguments.
12497
12498 2009-11-05 Kenichi Handa <handa@m17n.org>
12499
12500 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12501 the buffer in case of replace.
12502
12503 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12504
12505 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12506
12507 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12508
12509 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12510 when applicable (bug#4851).
12511
12512 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12513 (P_): Support for prototypes is now required.
12514
12515 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
12516
12517 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12518 (Bug#4827).
12519
12520 2009-10-30 Eli Zaretskii <eliz@gnu.org>
12521
12522 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12523
12524 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12525
12526 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12527
12528 * lread.c (Fload): Purecopy the file name when building
12529 Vpreloaded_file_list.
12530
12531 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12532
12533 * w32fns.c (syms_of_w32fns): Change default value of
12534 w32-scroll-lock-modifier to nil. (Bug#2827)
12535
12536 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12537
12538 * minibuf.c (Fall_completions): Fix typos in docstring.
12539
12540 2009-10-26 Andreas Schwab <schwab@redhat.com>
12541
12542 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12543
12544 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12545
12546 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12547 For delta < 0, skip check that only makes sense when the mini-window
12548 is going to be enlarged. (Bug#4534)
12549
12550 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
12551
12552 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12553 string in menu maps (Bug#4471).
12554
12555 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
12556
12557 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12558 FRAME_NS_VIEW on terminal frames (Bug#4765).
12559
12560 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12561
12562 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12563 DBUS_TYPE_UINTnn separately to get proper sign extension.
12564
12565 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12566 can properly handle unsigned types.
12567 (make_uid, make_gid): Remove.
12568
12569 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12570 types again.
12571
12572 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12573 (system_process_attributes): Likewise.
12574
12575 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12576
12577 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12578
12579 * eval.c (Fautoload): Purecopy the filename. Simplify.
12580
12581 * category.c (Fdefine_category): Purecopy docstring.
12582
12583 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12584
12585 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12586
12587 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12588
12589 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
12590
12591 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12592 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12593 (Bug#4775).
12594
12595 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12596
12597 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12598 (init_fileio_once):
12599 * lisp.h (init_fileio_once): Remove.
12600 * emacs.c (main): Don't call init_fileio_once.
12601
12602 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12603
12604 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12605
12606 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12607
12608 * doprnt.c (doprnt): Fix overflow check.
12609
12610 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12611
12612 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12613
12614 * xterm.h (x_wait_for_event): Declare it.
12615
12616 * xterm.c (pending_event_wait): New variable.
12617 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12618 see pending_event_wait.eventtype.
12619 (handle_one_xevent): Don't change gravity when parent changes.
12620 (x_new_font): Call change_frame_size with new rows/columns before we
12621 try to resize the frame.
12622 (x_wait_for_event): New function.
12623 (x_set_window_size_1): Don't change gravity unless change_gravity
12624 is set.
12625 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12626 don't change frame size, instead wait for the ConfigureNotify.
12627 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12628 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12629 (x_initialize): Initialize pending_event_wait.
12630
12631 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12632 size.
12633
12634 * widget.c (EmacsFrameSetValues): Add comment.
12635 (EmacsFrameSetCharSize): Just call x_set_window_size.
12636
12637 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12638 x_wait_for_event.
12639 (flush_and_sync): Remove again.
12640 (xg_get_font_name): Suggest monospace if no previous font is known.
12641
12642 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12643
12644 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12645 8th bit, since that only made sense in the ASCII world (bug#4751).
12646
12647 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12648
12649 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12650 processing pending events when event is filtered for input method.
12651 (Bug#3681)
12652
12653 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
12654
12655 * fns.c: Add #endif accidentally removed in previous change.
12656
12657 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12658
12659 * fns.c: Remove code for unsupported system: MAC_OS.
12660 * image.c: Likewise. Include setjmp.h.
12661
12662 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12663
12664 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12665 pixel -1 (bug #4742).
12666
12667 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12668
12669 * process.c (create_pty): Remove conditionals for no longer
12670 supported systems: UNIPLUS and RTU.
12671
12672 * xterm.c:
12673 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12674
12675 * alloc.c: Do not define struct catchtag.
12676 * eval.c: Move struct catchtag definition ...
12677 * lisp.h: ... here.
12678
12679 * image.c: Move png.h #include earlier to avoid warnings.
12680
12681 * xterm.c:
12682 * xsmfns.c:
12683 * xselect.c:
12684 * xrdb.c:
12685 * xmenu.c:
12686 * xftfont.c:
12687 * xfont.c:
12688 * xfns.c:
12689 * xfaces.c:
12690 * xdisp.c:
12691 * window.c:
12692 * widget.c:
12693 * w32xfns.c:
12694 * w32uniscribe.c:
12695 * w32term.c:
12696 * w32select.c:
12697 * w32reg.c:
12698 * w32proc.c:
12699 * w32menu.c:
12700 * w32inevt.c:
12701 * w32heap.c:
12702 * w32font.c:
12703 * w32fns.c:
12704 * w32console.c:
12705 * w32.c:
12706 * w16select.c:
12707 * vm-limit.c:
12708 * unexsol.c:
12709 * unexec.c:
12710 * unexcw.c:
12711 * unexaix.c:
12712 * undo.c:
12713 * tparam.c:
12714 * textprop.c:
12715 * terminfo.c:
12716 * terminal.c:
12717 * termcap.c:
12718 * term.c:
12719 * syntax.c:
12720 * sound.c:
12721 * sheap.c:
12722 * search.c:
12723 * scroll.c:
12724 * region-cache.c:
12725 * regex.c:
12726 * ralloc.c:
12727 * process.c:
12728 * print.c:
12729 * nsterm.m:
12730 * nsselect.m:
12731 * nsmenu.m:
12732 * nsimage.m:
12733 * nsfont.m:
12734 * nsfns.m:
12735 * msdos.c:
12736 * minibuf.c:
12737 * menu.c:
12738 * marker.c:
12739 * macros.c:
12740 * keymap.c:
12741 * keyboard.c:
12742 * intervals.c:
12743 * insdel.c:
12744 * indent.c:
12745 * gtkutil.c:
12746 * ftxfont.c:
12747 * ftfont.c:
12748 * fringe.c:
12749 * frame.c:
12750 * fontset.c:
12751 * font.c:
12752 * fns.c:
12753 * floatfns.c:
12754 * filelock.c:
12755 * fileio.c:
12756 * emacs.c:
12757 * editfns.c:
12758 * dosfns.c:
12759 * doprnt.c:
12760 * doc.c:
12761 * dispnew.c:
12762 * dired.c:
12763 * dbusbind.c:
12764 * data.c:
12765 * composite.c:
12766 * coding.c:
12767 * cmds.c:
12768 * cm.c:
12769 * chartab.c:
12770 * charset.c:
12771 * character.c:
12772 * ccl.c:
12773 * category.c:
12774 * casetab.c:
12775 * casefiddle.c:
12776 * callproc.c:
12777 * callint.c:
12778 * bytecode.c:
12779 * buffer.c:
12780 * atimer.c: Include setjmp.h. (Bug#4643)
12781
12782 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12783
12784 Remove leftover table unibyte_to_multibyte_table.
12785 * character.c (unibyte_to_multibyte_table): Remove.
12786 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12787 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12788 * character.h (UNIBYTE_TO_CHAR): New macro.
12789 (MAKE_CHAR_MULTIBYTE): Use it.
12790 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12791 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12792 (message_dolog, set_message_1):
12793 * search.c (Freplace_match):
12794 * editfns.c (Fcompare_buffer_substrings):
12795 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12796 (concat):
12797 * insdel.c (copy_text, count_size_as_multibyte):
12798 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12799 * term.c (produce_glyphs):
12800 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12801 * regex.c (RE_CHAR_TO_MULTIBYTE):
12802 * cmds.c (internal_self_insert):
12803 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12804
12805 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12806
12807 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12808
12809 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12810
12811 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12812
12813 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12814
12815 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12816
12817 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12818 still needed under Tiger.
12819
12820 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12821
12822 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12823 __Apple__.
12824
12825 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12826
12827 2009-10-15 Kenichi Handa <handa@m17n.org>
12828
12829 * print.c (print_object): Escape a symbol like "2E10" too.
12830
12831 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12832
12833 Cleanups and changes for 64-bit compile under Snow Leopard.
12834 Based on suggestions by Erik Charlebois.
12835
12836 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12837
12838 * nsfont.m (ns_char_width): Replace deprecated call.
12839 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12840 cast argument.
12841 (nsfont_open): Use ns_char_width() everywhere.
12842 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12843
12844 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12845
12846 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12847 where appropriate.
12848
12849 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12850 where appropriate.
12851 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12852 Use stringWithUTF8String.
12853 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12854
12855 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12856 Add formal protocol mention to inheritance.
12857 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12858
12859 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12860 Fix printf format.
12861 (ns_query_color): Use CGFloat where appropriate.
12862 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12863 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12864 argument.
12865
12866 * config.in (NS_HAVE_NSINTEGER): Drop.
12867
12868 * dbusbind.c (dbus-method-return-internal)
12869 (dbus-method-error-internal): Use long format in printf, and cast
12870 argument.
12871
12872 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12873 in printf, and cast argument.
12874
12875 * process.c (list_processes_1): Use long format in printf, and
12876 cast argument.
12877
12878 2009-10-11 Glenn Morris <rgm@gnu.org>
12879
12880 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12881
12882 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12883
12884 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12885 menu bar with a small width so it doesn't enlarge the frame.
12886
12887 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12888
12889 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12890
12891 2009-10-06 Glenn Morris <rgm@gnu.org>
12892
12893 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12894 SOME_MACHINE_LISP (this enters indirectly via DOC).
12895
12896 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12897
12898 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12899
12900 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12901
12902 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12903 Doc fix.
12904
12905 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12906
12907 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12908
12909 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12910
12911 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12912 used anymore outside fileio.c.
12913
12914 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12915
12916 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12917
12918 * lisp.h (Qdelete_directory_internal):
12919 Declare, instead of Qdelete_directory.
12920
12921 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12922
12923 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12924
12925 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12926
12927 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12928
12929 * fileio.c (Fdelete_directory_internal): Rename from
12930 Fdelete_directory. It is not a command anymore. It has no file
12931 name handler.
12932
12933 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12934
12935 * xdisp.c (get_next_display_element): Use an enum in last change.
12936
12937 2009-09-28 Kenichi Handa <handa@m17n.org>
12938
12939 * xdisp.c (get_next_display_element): Pay attention to
12940 unibyte_display_via_language_environment in handling
12941 Vnobreak_char_display.
12942
12943 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12944
12945 * nsterm.h (ns_app_name): New extern variable.
12946
12947 * nsterm.m (ns_app_name): New variable.
12948 (ns_term_init): Set and use it.
12949 (ns_term_shutdown): Use it.
12950
12951 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12952 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12953
12954 * nsfns.m (ns_set_name_iconic, ns_set_name)
12955 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12956 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12957
12958 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12959 Remove double-casting in client_data comparison.
12960
12961 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12962
12963 * keyboard.c (make_lispy_event): Remember last wheel direction.
12964 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12965
12966 2009-09-26 Glenn Morris <rgm@gnu.org>
12967
12968 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12969 internal.elc. Add term/pc-win.elc.
12970 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12971 term/x-win.elc.
12972 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12973 term/w32-win.elc.
12974 (NS_SUPPORT): New.
12975 (lisp): Add NS_SUPPORT.
12976 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12977
12978 2009-09-25 David Reitter <david.reitter@gmail.com>
12979
12980 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12981 on Mac OS X 10.6+ (bug#4513).
12982
12983 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12984
12985 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12986 some parts of Emacs code (like font selection) don't grok them.
12987 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12988
12989 2009-09-24 Andreas Schwab <schwab@redhat.com>
12990
12991 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12992
12993 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12994
12995 * dired.c (Fdirectory_files): Fix typo in docstring.
12996
12997 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12998
12999 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
13000 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
13001 (EmacsScroller-setPosition:portion:whole:): Remove -display call
13002 under GNUstep.
13003 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
13004
13005 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
13006 glyph advancement.
13007
13008 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13009
13010 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
13011 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
13012
13013 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
13014 deleted (bug #4492).
13015
13016 * nsfont.m (Vns_reg_to_script): New lisp variable.
13017 (syms_of_nsfont): Declare it.
13018 (ns_registry_to_script): New function.
13019 (ns_get_req_script): Call it.
13020 (ns_findfonts): Don't give up on non-unicode registry.
13021
13022 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
13023
13024 2009-09-20 Tom Tromey <tromey@redhat.com>
13025
13026 * eval.c (find_handler_clause): Make stack-trace-on-error work in
13027 batch mode (bug#4228).
13028
13029 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
13030
13031 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
13032 carefully. (Bug #4339)
13033
13034 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
13035
13036 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
13037
13038 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13039
13040 * emacs.c (inhibit_x_resources): Update doc string for NS.
13041 (main) [HAVE_NS]: Don't process --no-init-file option.
13042 Remove legacy code for -NXHost. Fix error printf in daemon case.
13043
13044 * nsterm.h (ns_no_defaults): Remove.
13045
13046 * nsterm.m (ns_no_defaults): Remove.
13047 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
13048 (ns_use_qd_smoothing): Remove legacy variable.
13049 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
13050 don't update the NSWindow itself.
13051 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
13052 Improve state detection and store user rect ourselves. (Bug #3581)
13053
13054 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
13055 ns_use_qd_smoothing.
13056
13057 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
13058 platform versions. Drop support for emacs-20-style face specs.
13059 (x-close-connection): Drop PSFlush() under OS X.
13060 (x-focus-frame): Activate the app first. (Bug #4180)
13061
13062 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
13063
13064 * emacs.c (inhibit_x_resources): New variable.
13065 (main) [HAVE_NS]: Don't process --quick command line option.
13066 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
13067
13068 * lisp.h (inhibit_x_resources): Declare it extern.
13069
13070 * w32reg.c (x_get_string_resource):
13071 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
13072
13073 2009-09-17 Eli Zaretskii <eliz@gnu.org>
13074
13075 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
13076 Add lisp/term/internal.elc.
13077
13078 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13079
13080 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
13081 (bug#4461).
13082
13083 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
13084
13085 * puresize.h (BASE_PURESIZE): Increase to 1290000.
13086
13087 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
13088 (OBJECTS_MACHINE): Remove, unused.
13089
13090 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
13091
13092 * frame.c (x_get_resource_string): Remove unused.
13093
13094 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
13095
13096 * xterm.c (x_new_font): Call change_frame_size before calling
13097 x_set_window_size, in case frame size won't change.
13098
13099 * frame.c (x_set_font): Remove dead code.
13100
13101 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
13102
13103 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
13104
13105 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13106
13107 * lread.c (Fload): Don't output a message after loading an obsolete
13108 package any more (done in Lisp now).
13109
13110 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
13111
13112 * fns.c (syms_of_fns): Doc fix (Bug#4227).
13113
13114 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13115
13116 * keymap.c (Fwhere_is_internal): Use nconc2.
13117
13118 2009-09-11 Alan Mackenzie <acm@muc.de>
13119
13120 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
13121 batch mode.
13122
13123 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
13124
13125 * xdisp.c (display_mode_element): Detect cycles.
13126
13127 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13128
13129 * keymap.c (where_is_internal): Don't erroneously return nil right after
13130 filling the cache.
13131 (where_is_internal_1): Fix up typo.
13132
13133 2009-09-11 Glenn Morris <rgm@gnu.org>
13134
13135 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
13136 share a common doc-string.
13137
13138 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13139
13140 * keymap.c (get_keymap): Return the actual keymap symbol rather than
13141 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
13142
13143 * keymap.c (QCadvertised_binding): New constant.
13144 (syms_of_keymap): Initialize it.
13145 (Fwhere_is_internal): Try and use bindings from :advertised-binding
13146 if applicable.
13147
13148 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13149
13150 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
13151 (parse_menu_item): Streamline since bindings are recomputed all the
13152 time anyway. Don't bother checking Vdefine_key_rebound_commands any
13153 more and don't support lmenu's menu-alias any more either.
13154
13155 * keymap.c (where_is_internal_data): Make noindirect a boolean.
13156 (where_is_internal): Strip it down to only traverse the keymaps.
13157 Move the cache handling from Fwhere_is_internal to here.
13158 (Fwhere_is_internal): Move the handling of remapping and the choice of
13159 the best binding from where_is_internal to here.
13160 Unify the cached/noncached paths, so remapping is also handled
13161 correctly when the cache is used, and so the cache can be used to
13162 speed up remap-handling when applicable.
13163 Give preference to non-remapped bindings.
13164 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
13165 non-remapped bindings.
13166 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
13167 command remapping.
13168
13169 * xdisp.c (display_mode_element): Move list length limit from 50 to
13170 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
13171
13172 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
13173
13174 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
13175
13176 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
13177
13178 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
13179 (Bug#4334)
13180
13181 * keymap.c (where_is_internal): Filter out shadowed remappings.
13182 Assume that where_is_internal returns unshadowed bindings to simplify
13183 the code and get rid of the gotos. Use ASIZE.
13184
13185 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
13186
13187 * xterm.c (x_focus_changed): If we get a focusout and pointer
13188 is invisible, make it visible.
13189
13190 * xterm.h: Remove condition for declaration of
13191 x_*_window_to_frame.
13192
13193 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
13194
13195 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
13196 initial terminal as well.
13197
13198 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
13199
13200 * xterm.h: Rename x_non_menubar_window_to_frame to
13201 x_menubar_window_to_frame.
13202
13203 * xterm.c: Remove declarations also in xterm.h.
13204 (XTmouse_position): Do not return valid positions
13205 for clicks in the menubar and the toolbar for Gtk+.
13206
13207 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
13208 if the widget for the event has the same top level as a frame,
13209 return the frame.
13210 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
13211 internal windows, bug #4122.
13212 (x_non_menubar_window_to_frame): Remove.
13213
13214 2009-09-02 Glenn Morris <rgm@gnu.org>
13215
13216 * buffer.c (default-major-mode): Move most of the doc from here...
13217 (major-mode): ... to here.
13218
13219 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
13220
13221 * process.c (wait_reading_process_output): Keep the descriptor
13222 when pty is used by a non-child process, e.g., in I/O buffer of
13223 GDB this allows inferior to be restarted.
13224
13225 2009-08-29 Eli Zaretskii <eliz@gnu.org>
13226
13227 * xdisp.c (redisplay_internal): Remove redundant test and collapse
13228 both branches into one.
13229
13230 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13231
13232 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
13233 (main): Use enable-multibyte-characters rather than
13234 default-enable-multibyte-characters. Output a warning message when
13235 running a unibyte session.
13236
13237 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13238
13239 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
13240 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
13241 (copy_data_segment): Also copy __program_vars section.
13242 (copy_dyld_info) [LC_DYLD_INFO]: New function.
13243 (dump_it) [LC_DYLD_INFO]: Use it.
13244
13245 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
13246
13247 2009-08-28 Eli Zaretskii <eliz@gnu.org>
13248
13249 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
13250 $(SRC)/buildobj.h.
13251 (buildobj.h): Rename from $(SRC)/buildobj.h.
13252 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
13253 $(SRC)/buildobj.h.
13254 (clean): Add buildobj.h.
13255
13256 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
13257
13258 * print.c (print_object): Set escapeflag to 1 when printing
13259 hashtable keys and values.
13260
13261 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * lread.c (read_integer): Use doubles (and potentially return a float
13264 number) as we do in string-to-number.
13265 (read1): Use strtol to read integers, signal errors on strtol's
13266 overflow and use floats if strtol's output is too large for
13267 Elisp integers.
13268
13269 2009-08-27 Eli Zaretskii <eliz@gnu.org>
13270
13271 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
13272 (make-buildobj-SH): Fix last change.
13273 (SRC): Move to before where it's first used.
13274
13275 2009-08-27 Kenichi Handa <handa@m17n.org>
13276
13277 * process.c (send_process): Use encode_coding_object instead of
13278 encode_coding_string to perform eol-conversion even if the string
13279 is unibyte.
13280
13281 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
13282 character.
13283
13284 * cmds.c (Fself_insert_command): Avoid unnecessay
13285 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
13286
13287 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
13288
13289 * callproc.c (Fcall_process): Remove always true #if.
13290
13291 * lisp.h: Replace #if 0 code for checking with text pointing to
13292 the --enable-checking configure flag.
13293
13294 * emacs.c (main): Mention the --enable-profiling configure flag
13295 instead of using CFLAGS.
13296
13297 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
13298
13299 * Makefile.in (buildobj.h): New target.
13300 (doc.o): Depend on it.
13301 (temacs${EXEEXT}): Don't generate buildobj.lst.
13302 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13303 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13304 ($(BLD)/doc.$(O)): Depend on it.
13305 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13306 provided by Eli Zaretskii.)
13307 ($(TEMACS)): Don't generate buildobj.lst.
13308 * doc.c: Include buildobj.h.
13309 (buildobj): New static variable.
13310 (Fsnarf_documentation): Use it, instead of opening and reading
13311 buildobj.lst.
13312
13313 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
13314
13315 * dbusbind.c (Fdbus_call_method)
13316 (Fdbus_call_method_asynchronously): Use English numeric format for
13317 timeout values in doc string.
13318
13319 2009-08-25 Kenichi Handa <handa@m17n.org>
13320
13321 * alloc.c (mark_char_table): New function.
13322 (mark_object): Use mark_char_table for a char-table.
13323
13324 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13325 (CHAR_TABLE_REF): Use it.
13326
13327 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
13328
13329 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13330 before invoking the newly build emacs to check for load-path
13331 shadowing.
13332
13333 2009-08-22 Glenn Morris <rgm@gnu.org>
13334
13335 * Makefile.in (bootstrap_exe): New variable.
13336 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13337 Use ${bootstrap_exe}.
13338
13339 2009-08-22 Eli Zaretskii <eliz@gnu.org>
13340
13341 * coding.h (encode_coding_string): Don't encode unibyte strings.
13342 (Bug#4047)
13343
13344 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
13345
13346 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13347
13348 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13349 intended as hotfix only.
13350 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13351
13352 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13353
13354 * nsterm.m (ns_get_color): Update documentation properly for last
13355 change, and clean up loose ends in the code left by it.
13356 Fix longstanding bug with 16-bit hex parsing, and add support for
13357 yet another X11 format (rgb:r/g/b) for compatibility.
13358 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13359 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13360
13361 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13362
13363 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13364
13365 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
13366
13367 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13368 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13369 (xd_initialize, xd_pending_messages): Check, whether
13370 $DBUS_SESSION_BUS_ADDRESS is set.
13371
13372 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13373
13374 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13375
13376 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13377
13378 2009-08-20 Glenn Morris <rgm@gnu.org>
13379
13380 * emacs.c (system-type): Doc fix.
13381
13382 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13383
13384 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13385 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13386
13387 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
13388
13389 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13390 New functions.
13391 (xd_initialize): Revert change from 2009-08-16.
13392
13393 2009-08-18 Kenichi Handa <handa@m17n.org>
13394
13395 * fontset.c (Ffontset_font): If a nil element is found in a
13396 font-group vector, return nil.
13397
13398 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
13399
13400 * process.c (status_notify): Don't perform redisplay.
13401 (Fdelete_process, list_processes_1, process_send_signal):
13402 Expliticly perform redisplay.
13403 (wait_reading_process_output): Always check process status, but
13404 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13405
13406 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
13407
13408 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
13409 (XFLOAT_INIT): New macro for storing a float value.
13410 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13411 * fns.c (sxhash): Copy out the value of a float in order to
13412 examine its bytes.
13413 * dbusbind.c (xd_append_arg): Likewise.
13414
13415 * emacs.c (main): Don't call syms_of_data twice.
13416
13417 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
13418
13419 * dbusbind.c (xd_initialize): Add connection file descriptor to
13420 input_wait_mask, in order to let select() detect, whether a new
13421 message has been arrived.
13422 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
13423
13424 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
13425
13426 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13427 New functions.
13428
13429 * lisp.h (xd_pending_messages): Declare.
13430
13431 * keyboard.c (readable_events): Call xd_pending_messages.
13432
13433 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
13434
13435 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
13436
13437 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13438
13439 * buffer.c (set_buffer_internal_1)
13440 (swap_out_buffer_local_variables): Check for unbound local
13441 variables (Bug#4138).
13442
13443 2009-08-14 Eli Zaretskii <eliz@gnu.org>
13444
13445 * process.c (create_pty): Fix last change.
13446
13447 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
13448
13449 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13450 (xbm_load_image): Caller changed.
13451 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13452
13453 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
13454
13455 * process.c (create_pty): New function.
13456 (Fstart_process): Use it to allow Emacs to just associate a pty
13457 with the buffer. See associated change in gdb-mi.el.
13458 (list_processes_1): Deal with no program name.
13459 (start_process_unwind): Use pid == -2 to mean no process.
13460
13461 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13462
13463 * cmds.c (nonundocount): New global variable.
13464 (keys_of_cmds): Initialize it.
13465 (Fself_insert_command): Use it to combine upto 20 sequential chars
13466 into a single undo entry, just like the Qself_insert_command code in
13467 keyboard.c does.
13468 Call frame_make_pointer_invisible, also like the Qself_insert_command
13469 code in keyboard.c does.
13470 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13471 than its own local replacement for it.
13472
13473 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
13474
13475 * fns.c (concat): Don't re-set string length to its current value.
13476
13477 * coding.h (decode_coding_string, encode_coding_string):
13478 Use SBYTES macro.
13479
13480 * doprnt.c (doprnt_lisp): Delete unused function.
13481 (doprnt): Merge with doprnt1, discarding lispstrings code.
13482 * lisp.h (doprnt_lisp): Don't declare.
13483
13484 2009-08-07 Juri Linkov <juri@jurta.org>
13485
13486 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13487
13488 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13489
13490 * print.c (syms_of_print): Undo previous change.
13491
13492 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13493
13494 * lread.c (read1, syms_of_lread): Read hashtables back from the
13495 readable format.
13496
13497 * print.c (print_preprocess, print_object): Print hashtables fully
13498 and readably.
13499 (syms_of_print): Provide 'hashtable-print-readable.
13500
13501 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13502
13503 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13504 no family set.
13505 (nsfont_open): Handle case when entity has no family.
13506
13507 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13508
13509 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13510 element, not a list, for match case.
13511
13512 2009-07-28 Kenichi Handa <handa@m17n.org>
13513
13514 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13515 rigidly.
13516
13517 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13518 font_parse_xlfd. Check font properties more rigidly.
13519
13520 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13521
13522 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13523 bsd-common.h.
13524
13525 2009-07-27 Kenichi Handa <handa@m17n.org>
13526
13527 * xfaces.c (face_with_height): Call font_clear_prop.
13528
13529 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13532
13533 * xterm.c (x_term_init): Use Qx.
13534
13535 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13536
13537 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13538 (ns_get_color): Revert 2009-07-16 change.
13539
13540 2009-07-25 Eli Zaretskii <eliz@gnu.org>
13541
13542 * lread.c (syms_of_lread) <force_load_messages>: New variable.
13543 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13544
13545 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
13546
13547 * coding.h (decode_coding_string, encode_coding_string):
13548 Use SCHARS macro.
13549
13550 * lread.c: Rewrite 2009-07-21 changes.
13551 (load_depth): Delete.
13552 (Qload_in_progress): New variable.
13553 (load_unwind): Don't reference load_depth or load_in_progress.
13554 (Fload): Likewise; specbind Qload_in_progress instead.
13555 (init_lread): Don't initialize load_depth.
13556 (syms_of_lread): Initialize and protect Qload_in_progress.
13557
13558 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13559
13560 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13561
13562 2009-07-23 Yavor Doganov <yavor@gnu.org>
13563
13564 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13565
13566 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13567
13568 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13569 Bugs 3792, 3720, 2402.
13570 (ns_lookup_indexed_color): Check for bad index.
13571 (ns_index_color): Init unused slot to 0.
13572 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13573 Bug 3714, possibly 3082.
13574
13575 2009-07-22 Jason Rumney <jasonr@gnu.org>
13576
13577 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13578 Position IME window at cursor (Bug#2570).
13579 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13580 (globals_of_w32fns): Dynamically load functions required above.
13581
13582 * w32term.c (w32_draw_window_cursor): Send message to reposition
13583 any IME window.
13584
13585 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13586
13587 * fileio.c: Revert 2009-07-16 changes.
13588 (Vauto_save_include_big_deletions): New variable.
13589 (Fdo_auto_save): Disable auto-save only if
13590 auto-save-include-big-deletions is nil.
13591
13592 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13593
13594 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13595 the overflowed pixels into account (Bug#3879).
13596
13597 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
13598
13599 * lread.c (load_depth): New variable.
13600 (Fload, load_unwind, init_lread): Set it to the load recursion
13601 depth; set load_in_progress as a simple boolean based on the
13602 current load_depth. (Bug#3892)
13603
13604 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13605
13606 * nsfont.m (ns_has_attribute): Remove.
13607 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13608
13609 2009-07-18 Juri Linkov <juri@jurta.org>
13610
13611 * process.c (Fset_process_query_on_exit_flag): Mention killing
13612 a buffer in docstring.
13613
13614 2009-07-17 Kenichi Handa <handa@m17n.org>
13615
13616 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13617
13618 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13619
13620 * nsfns.m (Fns_set_alpha): Remove function.
13621 (syms_of_nsfns): Don't defsubr it.
13622
13623 * nsterm.m (ns_get_color): Remove incompatible color formats.
13624 (ns_color_to_lisp): Generate #rrggbb color format string.
13625
13626 2009-07-16 Richard Stallman <rms@gnu.org>
13627
13628 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13629 (Fset_buffer_auto_saved): Handle save_length = -2.
13630
13631 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
13632
13633 * xterm.c (Qx_gtk_map_stock): New var.
13634
13635 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13636 of calling intern each time.
13637
13638 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13639
13640 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13641 does tiling.
13642
13643 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13644
13645 2009-07-14 Kenichi Handa <handa@m17n.org>
13646
13647 * font.c (font_vconcat_entity_vectors): New function.
13648 (struct font_sort_data): New member font_driver_preference.
13649 (font_compare): Check font_driver_preference.
13650 (font_sort_entities): The format of the first argument changed.
13651 (font_delete_unmatched): Likewise.
13652 (font_list_entities): The return type changed.
13653 (font_select_entity): The format of the second argument changed.
13654 (font_find_for_lface): Adjuste for the above changes.
13655 Don't suppress the checking of C even if the repertory supports it.
13656 (Flist_fonts): Adjust for the above changes.
13657
13658 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13659 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13660 Reject a font who has adstyle property that is different from a
13661 langname derived from registry property.
13662 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13663
13664 2009-07-13 Eli Zaretskii <eliz@gnu.org>
13665
13666 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13667 local copy of dirfilename.
13668
13669 2009-07-13 Kenichi Handa <handa@m17n.org>
13670
13671 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13672 against max_char.
13673
13674 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13675 calling XSYMBOL (sym).
13676
13677 2009-07-11 Eli Zaretskii <eliz@gnu.org>
13678
13679 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13680 New function.
13681 (directory_files_internal) [WINDOWSNT]:
13682 Bind w32-get-true-file-attributes to either t or nil, depending whether
13683 the filesystem of the directory is fast or slow.
13684
13685 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13686 file name.
13687 (is_slow_fs): New function.
13688 (stat): Use it to determine whether to issue more system calls to
13689 get accurate file attributes, when w32-get-true-file-attributes is
13690 `local'.
13691
13692 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13693
13694 * xfns.c (Fx_select_font): Remember last font selected in
13695 x_last_font_name and use that the next time. Also try the frame
13696 parameter font-parameter as default to the font dialog.
13697
13698 2009-07-10 Kenichi Handa <handa@m17n.org>
13699
13700 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13701
13702 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13703
13704 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13705
13706 * w32.c (stat): Treat UNC file names as residing on remote
13707 drives. (Bug#3542)
13708
13709 2009-07-09 Kenichi Handa <handa@m17n.org>
13710
13711 * fontset.c (fontset_find_font): Fix previous change.
13712
13713 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13714
13715 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13716 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13717 error flag.
13718
13719 2009-07-08 Kenichi Handa <handa@m17n.org>
13720
13721 * fontset.c (fontset_find_font): Fix the logic of handling
13722 charset_matched.
13723 (font_for_char): Delete unused var.
13724 (generate_ascii_font_name): Delete it.
13725
13726 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13727
13728 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13729 (encode_coding_sjis): Fix the code range check.
13730
13731 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13732
13733 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13734 (Fexpand_file_name): Copy string data properly (Bug#3772).
13735
13736 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13737
13738 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13739 first MapNotify.
13740
13741 2009-07-07 Kenichi Handa <handa@m17n.org>
13742
13743 * character.h (unibyte_has_multibyte_table): Delete extern.
13744 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13745
13746 * charset.c (Fset_charset_priority): Update charset_unibyte.
13747 (syms_of_charset): Initialize charset_unibyte.
13748
13749 * character.c (unibyte_has_multibyte_table): Delete it.
13750 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13751 charset_unibyte.
13752 (multibyte_char_to_unibyte_safe): Likewise.
13753 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13754
13755 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13756 (x_produce_glyphs): Likewise.
13757
13758 * .gdbinit (xcharset): Fix the treating $arg0.
13759
13760 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13761
13762 Emulation of `getloadavg' on MS-Windows.
13763 * w32.c: Include float.h.
13764 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13765 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13766 (get_native_system_info, get_system_times): New functions.
13767 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13768 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13769 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13770 g_b_init_get_system_times, and num_of_processors.
13771
13772 2009-07-03 Jason Rumney <jasonr@gnu.org>
13773
13774 * w32term.c (w32_initialize): Use standard types.
13775
13776 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13777
13778 * dired.c (Ffile_attributes): Decode user and group names by the
13779 locale's encoding. (Bug#3443)
13780
13781 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13782
13783 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13784 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13785
13786 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13787
13788 * term.c (init_tty): Remove spurious #ifdef.
13789
13790 * m/mips.h: Mention this file is also used for netbsd.
13791 * m/pmax.h: Remove file.
13792
13793 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13794
13795 * xterm.h (struct x_display_info): Add invisible_cursor.
13796 (struct x_output): Add current_cursor.
13797
13798 * xterm.c (XTtoggle_invisible_pointer): New function.
13799 (x_define_frame_cursor): Don't define cursor if invisible or the
13800 same as before. Set current_cursor.
13801 (x_create_terminal): Set toggle_invisible_pointer_hook.
13802
13803 * xfns.c (make_invisible_cursor): New function.
13804 (x_set_mouse_color): Call make_invisible_cursor.
13805 Set current_cursor.
13806 (x_window): Set current_cursor.
13807
13808 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13809
13810 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13811 inserting a character.
13812 (read_avail_input): Call frame_make_pointer_visible.
13813
13814 * frame.c (Vmake_pointer_invisible): New variable.
13815 (frame_make_pointer_invisible, frame_make_pointer_visible):
13816 New functions.
13817 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13818
13819 * frame.h: Declare frame_make_pointer_invisible and
13820 frame_make_pointer_visible.
13821 (struct frame): Add pointer_invisible.
13822
13823 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13824
13825 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13826 frame isn't visible.
13827 (xg_frame_resized): If width/height is -1, get size of window
13828 from X server.
13829
13830 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13831 for MapNotify.
13832
13833 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13834 here or call change_frame_size. Just call flush_and_sync.
13835 (flush_and_sync): Reintroduce.
13836
13837 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13838
13839 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13840
13841 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13842 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13843
13844 * frame.h: Declare Qsticky.
13845
13846 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13847
13848 * nsfns.m (ns_frame_parm_handlers): Ditto.
13849
13850 * frame.c: Declare Qsticky.
13851 (frame_parms): Add sticky.
13852
13853 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13854
13855 * xterm.h: Declare x_set_sticky.
13856
13857 * xterm.c (x_set_sticky): New function.
13858
13859 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13860 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13861 xg_tool_bar_proxy_help_callback.
13862
13863 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13864
13865 * frame.c: Qmaximized is new.
13866 (x_set_frame_parameters): Do not handle fullscreen specially.
13867 Only set width and height if explicitly set.
13868 (x_set_fullscreen): Handle Qmaximized.
13869 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13870 (syms_of_frame): Initialize Qmaximized.
13871
13872 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13873 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13874
13875 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13876 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13877 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13878 set gravity to NorthWestGravity when USE_GTK.
13879 (set_wm_state): New function.
13880 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13881 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13882 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13883 or the case when no window manager is running. That means remove calls
13884 to x_real_positions and x_fullscreen_adjust.
13885
13886 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13887 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13888 flush_and_sync.
13889 (xg_height_changed): New function.
13890 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13891 and gtk_window_set_policy. Set frame gravity after parsing the
13892 geometry string.
13893 (xg_update_frame_menubar, free_frame_menubar)
13894 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13895 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13896 Remove calls to xg_frame_set_char_size.
13897
13898 2009-07-01 Kenichi Handa <handa@m17n.org>
13899
13900 * keyboard.c (decode_keyboard_code): New function.
13901 (tty_read_avail_input): Decode the input bytes if necessary.
13902
13903 * coding.c (setup_coding_system):
13904 Initialize coding->carryover_bytes to 0.
13905 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13906 use Qno_conversion.
13907
13908 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13909
13910 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13911
13912 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13913
13914 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13915
13916 2009-06-30 Jason Rumney <jasonr@gnu.org>
13917
13918 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13919 is already loaded.
13920 Set user model ID if supported (bug#1849).
13921
13922 2009-06-29 Jim Meyering <meyering@redhat.com>
13923
13924 Remove useless if-before-xfree test.
13925 * nsfont.m (nsfont_close): Remove useless test.
13926 * term.c (delete_tty): Likewise.
13927 * w32.c (system_process_attributes): Likewise.
13928 * w32font.c (w32font_close): Likewise.
13929 * xfaces.c (x_free_gc): Likewise.
13930 * xselect.c (buffer): Likewise.
13931
13932 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13933
13934 * process.c (send_process): Keep decoded string in a local
13935 variable and protect it from GC. (Bug#3521)
13936
13937 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13938
13939 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13940 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13941
13942 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13943
13944 * xdisp.c (start_display, handle_face_prop)
13945 (move_it_vertically_backward, cursor_row_fully_visible_p)
13946 (redisplay_window, try_window_id, produce_image_glyph):
13947 Delete some #ifdef-ed out code chunks that are now obsolete.
13948
13949 * xterm.c (x_update_window_begin, x_new_focus_frame)
13950 (x_scroll_bar_handle_click, handle_one_xevent)
13951 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13952 (x_make_frame_visible, x_make_frame_invisible)
13953 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13954 code chunks that are now obsolete.
13955
13956 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13957
13958 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13959 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13960 for hours, when optimzation is enabled.
13961 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13962 (xd_read_message): Make them static.
13963
13964 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13965
13966 * term.c (turn_on_face): Allow simultaneously bold and dim
13967 terminal faces (Bug#3530).
13968
13969 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13970
13971 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13972
13973 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13974 truncation glyphs (Bug#3686).
13975
13976 2009-06-27 Glenn Morris <rgm@gnu.org>
13977
13978 * m/pmax.h: Restore file, with only netbsd portions.
13979
13980 2009-06-26 David Reitter <david.reitter@gmail.com>
13981
13982 * nsterm.m (keydown): Avoid infinite loop.
13983
13984 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13985
13986 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13987 the arg FORCE_SYMBOL.
13988
13989 2009-06-25 Kenichi Handa <handa@m17n.org>
13990
13991 * fontset.c (fontset_find_font): When a usable rfont_def is found
13992 in a fallback font-group, make it the first element of the group.
13993
13994 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13995
13996 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13997
13998 2009-06-24 Kenichi Handa <handa@m17n.org>
13999
14000 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
14001 set for C.
14002 (fontset_font): Record the availability of a font for C both in
14003 the realized fontsets of the current one and the default one.
14004
14005 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
14006
14007 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
14008 conditional, it is always defined on AIX.
14009
14010 2009-06-23 Miles Bader <miles@gnu.org>
14011
14012 * window.c (Vrecenter_redisplay): New variable.
14013 (syms_of_window): Initialize it.
14014 (Qtty): New extern declaration.
14015 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
14016
14017 2009-06-23 Jim Meyering <meyering@redhat.com>
14018
14019 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
14020 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
14021 pointer dereferences are guaranteed to be valid.
14022
14023 2009-06-23 Kenichi Handa <handa@m17n.org>
14024
14025 * emacs.c (main): Call init_font ().
14026
14027 * font.h (Vfont_log): Extern it.
14028 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
14029
14030 * font.c (font_sort_entities, font_list_entities)
14031 (font_matching_entity, font_open_entity)
14032 (font_close_object): Change font_add_log to FONT_ADD_LOG.
14033 (Vfont_log): Delete static.
14034 (font_log_env_checked): Delete this variable.
14035 (font_add_log): Don't check font_log_env_checked.
14036 (font_deferred_log): Check Vfont_log.
14037 (init_font): New function.
14038
14039 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
14040
14041 * w32font.c: Change font_add_log to FONT_ADD_LOG.
14042
14043 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
14044
14045 * xfont.c: Change font_add_log to FONT_ADD_LOG.
14046
14047 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
14048 (face_for_char): Don't call font_deferred_log here.
14049 (font_for_char): Likewise.
14050
14051 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
14052
14053 * w32term.c (x_draw_glyph_string): Use the glyph string's width
14054 rather than its background_width for drawing the overline and
14055 underline (Bug#489).
14056
14057 * xterm.c (x_draw_glyph_string): Use the glyph string's width
14058 rather than its background_width for drawing the overline and
14059 underline (Bug#489).
14060 (xg_default_icon_file): New variable.
14061 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
14062 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
14063
14064 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
14065 (load_overlay_strings): Remove externs.
14066 (fast_find_position): Function deleted.
14067 (mouse_face_from_buffer_pos): New function, based on
14068 fast_find_position. Correctly handle before-strings,
14069 display-strings, and after-strings (Bug#1220).
14070 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
14071
14072 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14073
14074 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
14075 (move_it_in_display_line_to, move_it_in_display_line_to)
14076 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
14077
14078 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
14079
14080 * Branch for 23.1.
14081
14082 2009-06-21 Jason Rumney <jasonr@gnu.org>
14083
14084 * w32term.c (keyboard_codepage): New static variable.
14085 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
14086 (w32_read_socket) [WM_CHAR]: Use it to decode character
14087 input (bug#3237).
14088 (w32_initialize): Initialize it.
14089 (codepage_for_locale): New function.
14090
14091 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
14092
14093 * process.c (status_message): Pass Faset index argument as a lisp
14094 object, so as to work with USE_LISP_UNION_TYPE.
14095
14096 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14097
14098 * coding.c (Ffind_coding_systems_region_internal):
14099 Cache checked characters.
14100
14101 2009-06-18 Kenichi Handa <handa@m17n.org>
14102
14103 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
14104
14105 2009-06-18 Andreas Schwab <aschwab@redhat.com>
14106
14107 * xdisp.c (redisplay_internal): Check that the frame is still
14108 live after redisplay of its windows.
14109 (redisplay_windows): Check that the window is still live.
14110
14111 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
14112
14113 * coding.c (detect_coding_utf_16): Fix previous change.
14114
14115 2009-06-16 Kenichi Handa <handa@m17n.org>
14116
14117 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
14118 UTF-16 by checking the dispersion of Eth and Oth bytes.
14119
14120 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
14121
14122 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
14123
14124 2009-06-15 Kenichi Handa <handa@m17n.org>
14125
14126 * process.c (status_message): Fix previous change. Be sure to
14127 decode a localized string.
14128
14129 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14130
14131 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
14132 add comment explaining why.
14133
14134 2009-06-14 Sidney Markowitz <sidney@sidney.com>
14135
14136 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
14137
14138 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
14139
14140 * nsfont.m (ns_attribute_value): Remove.
14141 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
14142 (ns_has_attribute): Shrink the normal range.
14143 (ns_findfonts): Don't worry about requested spec in determining
14144 need for synthItal.
14145 (ns_get_covering_families): Retain scriptToFamilies.
14146
14147 2009-06-14 Seiji Zenitani <zenitani@mac.com>
14148
14149 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
14150
14151 2009-06-11 Kenichi Handa <handa@m17n.org>
14152
14153 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14154 overhang for the static composition case.
14155
14156 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14157
14158 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14159 overhang for the automatic composition case.
14160
14161 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
14162 composition case.
14163
14164 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
14165
14166 * xdisp.c (get_next_display_element): When handling wrap-prefix
14167 and line-prefix, treat \n as a control character (bug#3502).
14168
14169 2009-06-10 Kenichi Handa <handa@m17n.org>
14170
14171 * font.c (font_parse_family_registry): Fix for one-char foundry.
14172 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
14173
14174 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
14175
14176 * process.c (status_message): Fix handling of multibyte signal
14177 string (Bug#3499).
14178
14179 2009-06-09 Jim Meyering <meyering@redhat.com>
14180
14181 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
14182 color name is missing.
14183
14184 2009-06-09 Kenichi Handa <handa@m17n.org>
14185
14186 * charset.c (Fmap_charset_chars): In docstring, state clearly that
14187 FROM-CODE and TO-CODE are codepoints of CHARSET.
14188
14189 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14190
14191 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
14192
14193 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14194
14195 Changes to support :script/:lang/:otf in NS font driver.
14196 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
14197 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
14198 indicate not part of font driver interface, and change callers.
14199 (ns_get_family): Remove pointless null check.
14200 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
14201 ns_spec_to_descriptor, ns_descriptor_to_entity.
14202 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
14203 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
14204 (ns_spec_to_descriptor, ns_descriptor_to_entity)
14205 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
14206 (ns_get_req_script, ns_accumulate_script_ranges)
14207 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
14208 New functions.
14209 (nsfont_list, nsfont_match): Use ns_findfonts.
14210 (nsfont_open): Use font descriptor instead of traits.
14211 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
14212 (dump_glyphstring): Rename to ns_dump_glyphstring.
14213
14214 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
14215
14216 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
14217
14218 * fontset.c (fontset_from_font): Remove NS-specific code.
14219
14220 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
14221
14222 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
14223 nonactive windows.
14224
14225 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
14226
14227 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
14228
14229 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14230
14231 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
14232
14233 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
14234
14235 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
14236 account for the overflowing of newlines into the last glyph on the
14237 display line (Bug#3482).
14238
14239 2009-06-05 David Reitter <david.reitter@gmail.com>
14240
14241 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
14242 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
14243 Fns_selection_exists_p, Fns_selection_owner_p.
14244
14245 2009-06-03 Jason Rumney <jasonr@gnu.org>
14246
14247 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
14248 available. (Bug#3379)
14249
14250 2009-05-29 Kenichi Handa <handa@m17n.org>
14251
14252 * coding.c (get_translation_table):
14253 Check Venable_character_translation.
14254
14255 2009-05-26 David Reitter <david.reitter@gmail.com>
14256
14257 * nsterm.m (ns_raise_frame): Only raise frame if visible.
14258 (x_make_frame_visible): Move frame to front rather than calling
14259 ns_raise_frame().
14260 (keyDown:): Do not swallow events that aren't re-sent if frame
14261 isn't key window.
14262 (drawRect:): Do not set visibility/iconified flags because
14263 drawRect may be called by NSView even if the frame is hidden.
14264
14265 * nsfns.m (Fx_create_frame): Follow other ports in
14266 determining visibility; default to t. Ensure async_visible is set.
14267
14268 2009-05-23 Eli Zaretskii <eliz@gnu.org>
14269
14270 * dired.c (Ffile_attributes): Doc fix.
14271
14272 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
14273
14274 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
14275
14276 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
14277
14278 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
14279 and xfont_scratch_props.
14280 (syms_of_xfont): Do it here instead.
14281 (xfont_find_ccl_program): Delete, unused.
14282 (xfont_open): Delete unused var `i'.
14283
14284 2009-05-21 Kenichi Handa <handa@m17n.org>
14285
14286 * fontset.c (Qlatin): Don't make it static.
14287
14288 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
14289 New functions.
14290 (xfont_scripts_cache, xfont_scratch_props): New variables.
14291 (Qlatin, Vscalable_fonts_allowed): Extern it.
14292 (xfont_list_pattern): Argument changed. Callers changed.
14293 Check Vscalable_fonts_allowed. Check the support of a script.
14294 (xfont_list): Don't reject a font spec with :script property.
14295 (xfont_has_char): Fix setting of encoding.
14296 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
14297 xfont_scratch_props.
14298
14299 2009-05-19 Kenichi Handa <handa@m17n.org>
14300
14301 * font.c (font_sort_entities): Rename from font_sort_entites.
14302 Callers changed.
14303
14304 2009-05-18 Kenichi Handa <handa@m17n.org>
14305
14306 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14307
14308 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14309
14310 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14311 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14312
14313 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14314
14315 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14316 (x_delete_terminal): Dissociate resource database from display and
14317 then call XrmDestroyDatabase before closing display.
14318
14319 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14320
14321 * nsterm.m (ns_read_socket): Remove unused variable.
14322 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14323 whether selected frame is viable before raising it (based on patch
14324 by David Reitter), and improve commentary.
14325 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
14326
14327 2009-05-15 Kenichi Handa <handa@m17n.org>
14328
14329 * font.c (Ffont_spec): Check arguments.
14330
14331 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
14332
14333 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14334 weight when testing attributes (Bug#3282).
14335
14336 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14337
14338 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14339 what we expect to get in the next ConfigureNotify event.
14340
14341 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14342 before Xft one (Bug#1696).
14343
14344 2009-05-07 David Reitter <david.reitter@gmail.com>
14345
14346 * nsfns.m (Fx_display_planes): Compute bitplanes using
14347 NSBitsPerPixelFromDepth (Bug#3207).
14348
14349 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
14350
14351 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14352
14353 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
14354
14355 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14356
14357 2009-05-07 David Reitter <david.reitter@gmail.com>
14358
14359 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14360 Respect mouse face background.
14361
14362 2009-05-07 David Reitter <david.reitter@gmail.com>
14363
14364 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14365 Mouse movement/highlight: bracket drawing operations
14366 in ns_update_begin and ns_update_end.
14367
14368 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14369
14370 * nsfns.m (ns_get_screen): Rewrite.
14371 Don't presume selected-frame is of type `ns'.
14372
14373 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14374 all drivers.
14375
14376 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14377
14378 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14379
14380 * keyboard.h (add_user_signal): Fix typo in extern.
14381
14382 * lisp.h (add_user_signal): Remove extern.
14383
14384 * unexelf.c (unexec): Consider a section to precede the .bss section
14385 if its addresses overlap that of .bss.
14386 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14387 instead of dumping process.
14388
14389 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14390
14391 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14392
14393 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14394
14395 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14396
14397 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14398
14399 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14400 any statements.
14401
14402 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14403
14404 * process.c (read_process_output): Make sure the current buffer is
14405 always restored.
14406
14407 * coding.c (record_conversion_result): Don't modify
14408 Vlast_code_conversion_error for successful result.
14409 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14410
14411 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14412
14413 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
14414 (load_charset_map): Remove unnecessary code.
14415
14416 2009-04-30 David Reitter <david.reitter@gmail.com>
14417
14418 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
14419 through f24.
14420
14421 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
14422
14423 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14424
14425 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14426 face_at_buffer_position.
14427 (face_before_or_after_it_pos, get_next_display_element)
14428 (note_mouse_highlight): Update face_at_buffer_position call.
14429
14430 * term.c (term_mouse_highlight):
14431 * msdos.c (IT_note_mouse_highlight):
14432 * fontset.c (Finternal_char_font):
14433 * font.c (font_at, font_range): Update face_at_buffer_position call.
14434
14435 * dispextern.h (face_at_buffer_position): Update prototype.
14436
14437 2009-04-30 Kenichi Handa <handa@m17n.org>
14438
14439 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
14440
14441 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14442
14443 * callproc.c (Fcall_process): Fix GC protection. Make sure
14444 current buffer is always restored.
14445
14446 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14447
14448 * atimer.c (init_atimer): Also clear stopped_atimers.
14449
14450 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14451
14452 * process.c (create_process): Clean up merger residues of
14453 2008-07-17 change.
14454
14455 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
14456
14457 * lread.c (Vread_circle): New variable.
14458 (read1): Disable recursive read if Vread_circle is nil.
14459
14460 2009-04-29 Kenichi Handa <handa@m17n.org>
14461
14462 * fontset.h (set_default_ascii_font): Delete extern.
14463
14464 * fontset.c (set_default_ascii_font): Delete this unused function.
14465
14466 * frame.c (x_set_font): When ARG is a font-object, check if the
14467 font-object matches with the ASCII font-spec of the frame's
14468 fontset. If not, create a new fontset for the frame. (Bug #3075)
14469
14470 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14471
14472 * fns.c (Flocale_info): Protect vector from GC during decoding.
14473
14474 * process.c (Fstart_process): Protect argv strings from GC during
14475 encoding.
14476
14477 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14478
14479 * sysdep.c: Include <ctype.h>.
14480
14481 2009-04-27 David Reitter <david.reitter@gmail.com>
14482
14483 * nsfont.m (nsfont_open): Remove unused variable shrink.
14484 Remove commented-out code.
14485
14486 2009-04-26 Johan Bockgård <bojohan@gnu.org>
14487
14488 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14489
14490 2009-04-25 Jason Rumney <jasonr@gnu.org>
14491
14492 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14493
14494 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14495
14496 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14497 Swap bytes in short integer if fringe bitmap width > 8.
14498
14499 2009-04-23 Kenichi Handa <handa@m17n.org>
14500
14501 * xfaces.c (Fx_list_fonts): If a font size is specified in
14502 PATTERN, set it in returned scalable fonts.
14503
14504 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
14505
14506 * keyboard.c (Fset_input_meta_mode): Doc fix.
14507
14508 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14509
14510 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14511
14512 * coding.c (Fterminal_coding_system): Doc fix.
14513
14514 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14515 (Fx_display_pixel_height, Fx_display_planes)
14516 (Fx_display_color_cells, Fx_server_max_request_size)
14517 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14518 (Fx_display_mm_height, Fx_display_mm_width)
14519 (Fx_display_backing_store, Fx_display_visual_class)
14520 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14521 Doc fixes, replacing "terminal id" with "terminal object".
14522 (check_x_display_info): Handle terminal objects instead of
14523 terminal ids.
14524
14525 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14526 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14527 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14528 Doc fixes, replacing "terminal id" with "terminal object".
14529
14530 2009-04-21 Kenichi Handa <handa@m17n.org>
14531
14532 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14533 (font_score): Check AVGWIDTH too.
14534
14535 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14536 worst case.
14537 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14538 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14539
14540 2009-04-19 Jason Rumney <jasonr@gnu.org>
14541
14542 The following changes fix Bug#3005 for wide glyphs on each platform,
14543 without reintroducing Bug#1258 for stretch glyphs.
14544
14545 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14546 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14547 get_phys_cursor_geometry.
14548
14549 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14550 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14551 using get_phys_cursor_geometry.
14552
14553 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14554 correctly calculated.
14555
14556 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14557
14558 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14559 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14560 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14561 is deprecated.
14562
14563 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14564
14565 * font.c (font_put_frame_data): Use xfree instead of free.
14566
14567 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
14568
14569 * w32font.c (Qja, Qko): Remove declarations.
14570 (syms_of_w32font): Don't DEFSYM them.
14571
14572 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
14573
14574 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14575
14576 * font.h (Qja, Qko): Extern them.
14577
14578 * ftfont.c (Qja, Qko): Remove declarations.
14579
14580 * xfont.c (Qja, Qko): Remove declarations.
14581
14582 2009-04-17 Kenichi Handa <handa@m17n.org>
14583
14584 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14585 string from a vector to handle Latin-1 characters correctly.
14586
14587 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14588 entity even if the cache hits.
14589
14590 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14591
14592 * search.c (boyer_moore): Use zero as marker value for a possible
14593 match instead of depending on overflow behavior. (Bug#2844)
14594
14595 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14596 * lisp.h: Adjust prototypes.
14597
14598 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14601 change (Bug#3003).
14602
14603 2009-04-16 Kenichi Handa <handa@m17n.org>
14604
14605 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14606
14607 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14608 adstyle.
14609
14610 * ftfont.c (Qja, Qko): Don't make them static.
14611 (enum ftfont_cache_for): New enum.
14612 (fc_charset_table): Undo the previous change.
14613 (ftfont_get_latin1_charset): Delete it.
14614 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14615 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
14616 non-scarable font, try to get AVERAGE_WIDTH.
14617 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14618 Change ft_face_cache from a list of a hash-table. Don't check
14619 `ja' and `ko' adstyle here.
14620 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14621 FTFONT_CACHE_FOR_CHARET.
14622 (ftfont_get_charset): Undo the previous change.
14623 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14624 (ftfont_close): Likewise.
14625 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14626
14627 * font.c (font_sort_entites): Change the meaning of the arg
14628 BEST-ONLY. Don't optimize for VEC of lenght 1.
14629 (font_select_entity): Just return the value of font_sort_entites.
14630
14631 * xfaces.c (merge_face_vectors): Reflect font properties in
14632 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14633 font_clear_prop if a face attribute doesn't change.
14634
14635 * charset.h (charset_ksc5601): Extern it.
14636
14637 * charset.c (charset_ksc5601): New variable.
14638 (Fdefine_charset_internal): Set charset_ksc5601.
14639 (init_charset_once): Initialize charset_ksc5601 to -1.
14640
14641 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14642
14643 * fileio.c (history_delete_duplicates): Remove unused declaration.
14644
14645 * callint.c (history_delete_duplicates): New declaration.
14646 (Fcall_interactively): Remove command history duplicates when
14647 history_delete_duplicates is true.
14648
14649 2009-04-14 Eli Zaretskii <eliz@gnu.org>
14650
14651 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14652
14653 2009-04-14 Kenichi Handa <handa@m17n.org>
14654
14655 * font.c (Ffont_info): Fix docstring. Fix the second element of
14656 the returned value (bug#2949).
14657
14658 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
14659
14660 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14661
14662 2009-04-14 Kenichi Handa <handa@m17n.org>
14663
14664 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14665 encoding charset is ascii_compatible.
14666
14667 * charset.c (Fdefine_charset_internal): Make charset
14668 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14669 code_offset is 0, and covers all ASCII characters.
14670
14671 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14672
14673 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14674 (ns_string_to_pasteboard_internal):
14675 * nsmenu.m (process_dialog):
14676 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14677 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14678 * lisp.h (Fx_load_color_file): Declare.
14679
14680 2009-04-13 Kenichi Handa <handa@m17n.org>
14681
14682 * font.c (font_delete_unmatched): Preserve the order of list elements.
14683 (font_select_entity): Suppress the code to optimize for the same
14684 kind of fonts.
14685 (font_load_for_lface): Get a font that supports at least ASCII
14686 characters.
14687
14688 * ftfont.c (Qja, Qko): New variables.
14689 (fc_charset_table): Delete uniquifier data for iso8859-1.
14690 (ftfont_get_latin1_charset): New function.
14691 (get_adstyle_property): New function.
14692 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14693 bitmap fonts.
14694 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14695 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14696 `ko' or `ja'.
14697 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14698 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14699 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14700 property.
14701 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14702 (syms_of_ftfont): DEFSYM Qja and Qko.
14703
14704 2009-04-09 Kenichi Handa <handa@m17n.org>
14705
14706 * charset.c (map_charset_chars): For a charset of `superset'
14707 method, fix calculation of code range.
14708
14709 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14710 from the list of extra properties.
14711 (font_clear_prop): Be sure to delete `:name' font property.
14712
14713 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14714
14715 * dispnew.c (redraw_overlapping_rows): Fix detection of
14716 overlapping for topmost and bottommost rows.
14717
14718 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14719
14720 2009-04-06 Jason Rumney <jasonr@gnu.org>
14721
14722 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14723
14724 2009-04-06 Kenichi Handa <handa@m17n.org>
14725
14726 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14727
14728 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14729
14730 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14731
14732 * ftfont.c (ftfont_open): Fix checking of the return value of
14733 FT_Load_Char. Fix setting font->underline_thickness.
14734
14735 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14736
14737 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14738 (Fterminal_parameters, Fterminal_parameter)
14739 (Fset_terminal_parameter): In doc string, refer to terminal
14740 objects rather than terminal ids.
14741
14742 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14743
14744 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14745 ret_lim_data. (Bug#2867)
14746
14747 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14748
14749 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14750 so they don't get wider than the window, matching 2006-01-23
14751 change to the partner function in xdisp.c (Bug#2800).
14752
14753 2009-04-03 Kenichi Handa <handa@m17n.org>
14754
14755 * print.c (print_object): Make each lowest sub_char_table start a
14756 new line (Bug#2866).
14757
14758 2009-04-02 Kenichi Handa <handa@m17n.org>
14759
14760 * fontset.c (fontset_font): Record no-font when a fontset
14761 explicitly tells not to try another font-specs.
14762
14763 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14764
14765 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14766
14767 2009-03-30 Kenichi Handa <handa@m17n.org>
14768
14769 * fontset.c (fontset_from_font): Specify only registry in a
14770 font-spec for all characters supported by that registry.
14771
14772 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14773 even if HAVE_M17N_FLT is not defined.
14774
14775 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14776
14777 * ftfont.c: Conditionalize prototyping and use of
14778 ftfont_variation_glyphs.
14779
14780 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14781
14782 * frame.c (delete_frame): Work around compiler bug.
14783
14784 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14785 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14786 Some more EMACS_INT.
14787 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14788
14789 * xdisp.c (dump_glyph): Fix typo.
14790
14791 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14792 (adjust_markers_gap_motion, adjust_markers_for_delete)
14793 (adjust_markers_for_insert, adjust_point)
14794 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14795 (make_gap, copy_text, count_size_as_multibyte, insert)
14796 (insert_and_inherit, insert_before_markers)
14797 (insert_before_markers_and_inherit, insert_1)
14798 (count_combining_before, count_combining_after, insert_1_both)
14799 (insert_from_string, insert_from_string_before_markers)
14800 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14801 (insert_from_buffer_1, adjust_after_replace)
14802 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14803 (replace_range_2, del_range, del_range_1, del_range_byte)
14804 (del_range_both, del_range_2, modify_region)
14805 (prepare_to_modify_buffer, signal_before_change)
14806 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14807 for buffer positions and sizes.
14808 * lisp.h: Adjust prototypes accordingly.
14809
14810 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14811 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14812 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14813
14814 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14815
14816 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14817
14818 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14819 lines and columns so we keep the same pixel height and width.
14820
14821 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14822 the property _NET_WM_STATE has changed.
14823 (x_handle_net_wm_state): New function to update frame parameter
14824 fullscreen.
14825 (x_term_init): Initialize atoms for _NET_WM_STATE.
14826
14827 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14828
14829 2009-03-27 Kevin Ryde <user42@zip.com.au>
14830
14831 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14832 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14833 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14834 (Fgpm_mouse_stop): Pass that new parameter.
14835 * termhooks.h (close_gpm): Adjust prototype.
14836
14837 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14838
14839 * lisp.h (Fx_focus_frame): Declare.
14840
14841 * callint.c (Fcall_interactively): For '^' just delegate the work to
14842 handle-shift-selection.
14843 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14844
14845 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14846
14847 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14848
14849 * data.c (Qinteractive_form): New variable.
14850 (Finteractive_form): Use it.
14851
14852 * eval.c (Fcommandp): Use Qinteractive_form.
14853
14854 2009-03-24 Jason Rumney <jasonr@gnu.org>
14855
14856 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14857 Calculate total size precisely. Decode environment variables
14858 before substituting. (Bug#38)
14859
14860 2009-03-24 Kenichi Handa <handa@m17n.org>
14861
14862 * font.c (find_font_encoding): Return Qnil for unsupported
14863 encoding (Bug#2722).
14864
14865 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14866
14867 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14868 that gdpy is set.
14869
14870 2009-03-22 Alan Mackenzie <acm@muc.de>
14871
14872 * callint.c (Finteractive): Clarify the doc string - even
14873 promptless elements need \n separators.
14874
14875 2009-03-22 Jason Rumney <jasonr@gnu.org>
14876
14877 * w32term.c (syms_of_w32term): Doc fix for
14878 x-use-underline-position-properties.
14879
14880 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14881
14882 * w32.c (getpwuid): Change argument type to unsigned.
14883 (struct w32_id): Change type of `rid' member to unsigned.
14884 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14885 argument ID to unsigned. All callers changed.
14886 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14887
14888 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14889
14890 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14891 negative, produce a float value.
14892
14893 * dired.c (make_uid, make_gid): New functions.
14894 (Ffile_attributes): Use them to avoid negative UID and GID.
14895
14896 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14897
14898 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14899 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14900 Fix typos in docstrings.
14901
14902 2009-03-19 Kenichi Handa <handa@m17n.org>
14903
14904 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14905 changed, use font_load_for_lface to get a new font object.
14906 Call free_realized_fontset after handling ASCII font change.
14907
14908 * frame.c (x_set_font): Handle the case that ARG is a cons.
14909
14910 2009-03-19 Glenn Morris <rgm@gnu.org>
14911
14912 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14913
14914 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14915
14916 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14917
14918 2009-03-19 Kenichi Handa <handa@m17n.org>
14919
14920 * charset.c (load_charset_map_from_file): When a mapfile can't be
14921 loaded, signal an error.
14922
14923 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14924
14925 * dired.c (Ffile_attributes): Make sure UID and GID are always
14926 positive, even if the value is too large for a positive EMACS_INT.
14927 Doc fix.
14928
14929 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14930
14931 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14932
14933 * xmenu.c (xdialog_show): Move Fredisplay call ...
14934 (Fx_popup_dialog): ... here.
14935
14936 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14937
14938 * dired.c (file_name_completion): Disable the first optimization just
14939 installed, since it is not implemented correctly.
14940
14941 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14942
14943 * dired.c (file_name_completion): Check completion-ignored-extensions
14944 only if the entry can affect bestmatch.
14945 Stop the search early, as Ftry_completion already does.
14946
14947 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14948
14949 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14950
14951 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14952
14953 * keyboard.c (parse_menu_item): Don't display remappings as menu
14954 equivalent bindings (Bug#788).
14955
14956 2009-03-15 Jason Rumney <jasonr@gnu.org>
14957
14958 * w32term.h (WM_EMACS_PAINT): New message.
14959 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14960 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14961 before passing to lisp thread. (Bug#950)
14962
14963 2009-03-14 David Reitter <david.reitter@gmail.com>
14964
14965 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14966 variable as it was never reset.
14967 (ns_term_init): Remove initialization of Lisp-settable defaults
14968 and ns_expand_space.
14969 (-setPanelFromDefaultValues): Remove ns_expand_space.
14970 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14971 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14972 i.e. no additional spacing, similar to Carbon port.
14973
14974 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14975 * nsfns.m (ns-popup-prefs-panel): Remove.
14976
14977 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14978
14979 * sound.c (alsa_configure): Remove call to deprecated
14980 snd_pcm_sw_params_set_xfer_align.
14981
14982 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14983
14984 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14985 after clicking in a detached tool bar.
14986 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14987
14988 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14989
14990 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14991 int/Lisp_Object mixup).
14992
14993 2009-03-13 Kenichi Handa <handa@m17n.org>
14994
14995 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14996 Handle NAME nil and t correctly. Callers changed.
14997 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14998 (set_fontset_font): Change ARG to a vector. Handle range_list in
14999 ARG correctly.
15000 (Fset_fontset_font): Fix the case that TARGET is both a script
15001 name and charset name. Adjust the arg to set_fontset_font for
15002 the above change.
15003 (fontset_from_font): Fix previous change.
15004 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
15005 entry. If FONTSET is the default fontset, don't set the extra
15006 slot of the returning char-table.
15007
15008 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
15009
15010 * nsfns.m (Fx_close_connection): Doc fix.
15011 (Fns_do_applescript): Reflow docstring.
15012 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
15013 (Fx_display_pixel_width, Fx_display_pixel_height)
15014 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
15015 Fix typos in docstrings.
15016 (Fns_set_alpha): Fix typos in error messages.
15017
15018 2009-03-12 David Reitter <david.reitter@gmail.com>
15019
15020 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
15021 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
15022 were used for such events.
15023
15024 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
15025 (toggleToolbar, performDragOperation, runHelp): Use it.
15026
15027 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
15028 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
15029
15030 2009-03-11 Kenichi Handa <handa@m17n.org>
15031
15032 * font.h (font_open_by_spec): Extern it.
15033
15034 * font.c (font_open_by_spec): New function.
15035 (font_open_by_name): Use font_open_by_spec.
15036
15037 * frame.c (x_set_font): When ARG is a font-object, don't alter the
15038 fontset of the frame.
15039
15040 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
15041 modify the default font of frames that use this fontset.
15042 (num_auto_fontsets): New variable.
15043 (fontset_from_font): Use num_auto_fontsets to decide a fontset
15044 name. Be sure to set FONTSET_ASCII to the correct font name.
15045 (update_auto_fontset_alist): New function.
15046
15047 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
15048
15049 * makefile.w32-in: Update dependencies.
15050
15051 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15052
15053 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
15054
15055 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15056
15057 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
15058
15059 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
15060
15061 * lread.c (Feval_buffer): Doc fix.
15062
15063 2009-03-09 Kenichi Handa <handa@m17n.org>
15064
15065 * charset.c (Qfile_name_handler_alist): Extern it.
15066 (load_charset_map_from_file): Temporarily bind
15067 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
15068
15069 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
15070
15071 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
15072 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
15073
15074 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15075
15076 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
15077 (x_set_window_size): Change back to calculated method of setting
15078 toolbar height under Cocoa. (Bug#2546)
15079 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
15080 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
15081
15082 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
15083
15084 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
15085 accelerator in parens under GNUstep.
15086
15087 2009-03-06 Kenichi Handa <handa@m17n.org>
15088
15089 These changes are to detect incorrect composition sequence without
15090 looking ahead the source. (Bug#2370)
15091
15092 * coding.h: Include "composite.h".
15093 (enum compisition_state): New enum.
15094 (struct compisition_status): New struct.
15095 (struct iso_2022_spec): New member cmp_status.
15096 (struct emacs_mule_spec): New struct.
15097 (struct coding_system): New members ctext_extended_segment_len and
15098 embedded_utf_8. Change the union member
15099 spec.emacs_mule_full_support to spec.emacs_mule.
15100
15101 * coding.c (CODING_ISO_CMP_STATUS): New macro.
15102 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
15103 (MAX_ANNOTATION_LENGTH): Define to 5.
15104 (ADD_COMPOSITION_DATA): New arg nbytes.
15105 (emacs_mule_char): New arg cmp_status.
15106 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
15107 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
15108 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
15109 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
15110 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
15111 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
15112 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
15113 (EMACS_MULE_COMPOSITION_END): New macro.
15114 (emacs_mule_finish_composition): New function.
15115 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
15116 (decode_coding_emacs_mule): Avoid long looking ahead while
15117 handling composition.
15118 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
15119 (ENCODE_COMPOSITION_RULE): New macro.
15120 (finish_composition): New function.
15121 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
15122 (DECODE_COMPOSITION_START): New implementation.
15123 (DECODE_COMPOSITION_END): Likewise.
15124 (STORE_COMPOSITION_RULE): New macro.
15125 (decode_coding_iso_2022): Avoid long looking ahead while handling
15126 composition, CTEXT extended segment, and embedded UTF-8.
15127 (setup_coding_system): For a coding of type iso-2022, reset
15128 CODING_ISO_EXTSEGMENT_LEN (coding) and
15129 CODING_ISO_EMBEDDED_UTF_8 (coding).
15130 (get_translation): Delete arguments last_block, from_nchars,
15131 to_nchars. Callers changed.
15132 (produce_chars): Don't modify charbuf. Adjusted for the change of
15133 get_translation.
15134 (produce_composition): Adjust for the new annotation sequence.
15135 (handle_composition_annotation): Likewise.
15136 (consume_chars): Adjust for the change of get_translation.
15137
15138 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
15139
15140 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
15141
15142 2009-03-05 Kenichi Handa <handa@m17n.org>
15143
15144 * font.c (font_select_entity): New function.
15145 (font_find_for_lface): Use font_select_entity to select a font.
15146
15147 * fontset.c (fontset_find_font): If a font found without
15148 restricting to the characters C doesn't support C, try to find a
15149 font with C restriction.
15150
15151 2009-03-04 Nikolaj Schumacher <me@nschum.de>
15152
15153 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
15154
15155 2009-03-04 Jason Rumney <jasonr@gnu.org>
15156
15157 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
15158 characters that have already been read. (Bug#2569)
15159
15160 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
15161 Log an error message if check_image_size failed.
15162 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
15163 (gs_load): Mention max-image-size in size error message. (Bug#2560)
15164
15165 2009-03-02 Eli Zaretskii <eliz@gnu.org>
15166
15167 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
15168 when decoding process output.
15169
15170 2009-03-01 Richard M Stallman <rms@gnu.org>
15171
15172 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
15173
15174 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
15175
15176 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15177
15178 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
15179 (decode_coding_emacs_mule, decode_coding_iso_2022)
15180 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15181 (decode_coding_raw_text, decode_coding_charset)
15182 (setup_coding_system, decode_eol, decode_coding, consume_chars):
15183 Honor inhibit-eol-conversion. (Bug #2186)
15184
15185 2009-02-28 Jason Rumney <jasonr@gnu.org>
15186
15187 * coding.c (detect_coding_charset): If not checking latin extra,
15188 fail on characters between 0x80 and 0xA0. (Bug#2354)
15189
15190 2009-02-28 Eli Zaretskii <eliz@gnu.org>
15191
15192 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
15193 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
15194
15195 2009-02-27 Glenn Morris <rgm@gnu.org>
15196
15197 * callint.c (Finteractive): Doc fix.
15198
15199 2009-02-27 Kenichi Handa <handa@m17n.org>
15200
15201 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
15202
15203 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
15204
15205 * font.c (font_style_to_value): Set value for unknown symbols to
15206 100 instead of 255.
15207 (weight_table, slant_table, width_table): Treat "unspecified" as
15208 the default value.
15209
15210 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
15211
15212 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
15213
15214 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
15215
15216 * lread.c (Fload): Stop checking Vloads_in_progress and signal
15217 error as soon as a recursive load is detected.
15218
15219 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15220
15221 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
15222 before caching.
15223
15224 2009-02-24 Kenichi Handa <handa@m17n.org>
15225
15226 * fontset.c (fontset_find_font): Fix the condition for checking
15227 unavailable font.
15228
15229 2009-02-24 Glenn Morris <rgm@gnu.org>
15230
15231 * xfaces.c (Finternal_set_font_selection_order): Remove leading
15232 whitespace that confuses documentation.
15233
15234 2009-02-23 Miles Bader <miles@gnu.org>
15235
15236 * process.c (Flist_system_processes, Fprocess_attributes)
15237 (syms_of_process): Rename `system-process-attributes' to
15238 `process-attributes'.
15239
15240 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
15241
15242 * coding.h (struct coding_system): Make safe_charsets a pointer to
15243 unsigned char.
15244 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
15245 being 255.
15246 (SAFE_CHARSET_P): Likewise.
15247 (setup_iso_safe_charsets): Properly setup safe_charsets.
15248 (Fdefine_coding_system_internal): Likewise.
15249 (setup_coding_system): Likewise. Remove unneeded casts.
15250 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
15251 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
15252 Remove unneeded casts.
15253
15254 * insdel.c (del_range_2): Don't modify gap contents when called
15255 from decode_coding_object. (Bug#1809)
15256
15257 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
15258
15259 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
15260 Qfont_object.
15261 (Ftype_of): Recognize font objects.
15262
15263 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
15264
15265 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
15266 Definitions moved to data.c.
15267
15268 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15269
15270 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15271 async_iconified. Based on a patch by Christian Lynbech
15272 <christian.lynbech@tieto.com>.
15273 (EmacsView-windowDidMiniaturize:): Unset async_visible.
15274
15275 2009-02-20 Glenn Morris <rgm@gnu.org>
15276
15277 * syntax.c (Fskip_chars_forward): Fix doc typo.
15278
15279 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
15280
15281 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
15282
15283 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
15284
15285 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
15286
15287 2009-02-19 Kenichi Handa <handa@m17n.org>
15288
15289 * coding.c (detect_coding): Preserve coding->mode.
15290 Don't overflow coding->carryover. (Bug#2370)
15291
15292 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
15293
15294 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
15295
15296 2009-02-18 Kenichi Handa <handa@m17n.org>
15297
15298 * font.c (font_check_otf_features): Fix handling of `nil' element.
15299 (Ffont_spec): Describe :lang and :otf in the docstring.
15300
15301 2009-02-16 Andreas Schwab <schwab@suse.de>
15302
15303 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15304 string.
15305
15306 2009-02-16 Kenichi Handa <handa@m17n.org>
15307
15308 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
15309 (Bug#1723)
15310
15311 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
15312
15313 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
15314
15315 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15316 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15317
15318 2009-02-14 Eli Zaretskii <eliz@gnu.org>
15319
15320 * msdos.c (MAX_SCREEN_BUF): New macro.
15321 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15322 Encode the entire run of glyphs sharing the same face, instead of
15323 doing that one glyph at a time (fixes a bug with displaying
15324 double-size characters).
15325
15326 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15327
15328 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15329
15330 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15331 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
15332 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
15333
15334 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
15335 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
15336
15337 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15338
15339 * keyboard.c (adjust_point_for_property): Allow stopping between two
15340 invisible areas.
15341
15342 2009-02-12 Jason Rumney <jasonr@gnu.org>
15343
15344 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15345 (add_font_entity_to_list): Call check_face_name even when family
15346 is unspecified.
15347
15348 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15349 Release DC when finished. Use NULL window to refer to desktop.
15350 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
15351
15352 * w32font.c (add_font_entity_to_list): Fix check for substituted
15353 raster fonts. (Bug#2219)
15354
15355 2009-02-12 Kenichi Handa <handa@m17n.org>
15356
15357 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15358 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15359 (autocmp_chars): Use fast_looking_at. Don't compose more
15360 characters than MAX_COMPOSITION_COMPONENTS.
15361 (find_automatic_composition): While looking forward and backward,
15362 check static composition. Fix where to stop looking forward.
15363 (composition_adjust_point): Fix checking of static composition.
15364 (Fcomposition_get_gstring): Pay attention to
15365 MAX_COMPOSITION_COMPONENTS.
15366
15367 * lisp.h (fast_looking_at): Extern it.
15368
15369 * search.c (fast_looking_at): New function.
15370
15371 * term.c (encode_terminal_code): Adjust for the change of
15372 <struct glyph>.u.cmp.to.
15373 (append_composite_glyph): Likewise.
15374
15375 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
15376 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15377 composition.
15378 (append_composite_glyph): Adjust for the change of
15379 <strcut glyph>.u.cmp.to.
15380
15381 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
15382
15383 * casetab.c (init_casetab_once):
15384 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15385 * font.c (font_update_lface):
15386 * fontset.c (Fnew_fontset):
15387 * ftfont.c (ftfont_drive_otf):
15388 * xfont.c (xfont_open):
15389 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15390
15391 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15392
15393 * fileio.c (Fwrite_region): !NILP -> CONSP.
15394
15395 2009-02-10 Andreas Schwab <schwab@suse.de>
15396
15397 * process.c (send_process): Properly relocate pointer into data
15398 when using encoded data. (Bug#2272)
15399
15400 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15401
15402 * coding.c (detect_coding_charset): Fix previous change.
15403
15404 2009-02-08 Jason Rumney <jasonr@gnu.org>
15405
15406 * w32fns.c (w32_hide_hourglass): Handle case where frame
15407 disappeared while hourglass was displayed. (Bug #2193)
15408
15409 2009-02-07 Andreas Schwab <schwab@suse.de>
15410
15411 * unexelf.c (unexec): Fix error message.
15412
15413 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15414
15415 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
15416 when modal window is active. (Bug #2152)
15417 (applicationShouldTerminate:): Remove now-unneeded while loop
15418 around NSRunAlertPanel.
15419
15420 * nsmenu.m (popupSession): New file-global variable.
15421 (pop_down_menu): End the popupSession before closing dialog.
15422 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15423 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15424 don't query NSApp for events (just sleep instead).
15425
15426 2009-02-07 Eli Zaretskii <eliz@gnu.org>
15427
15428 * coding.c (syms_of_coding) <translation-table-for-input>:
15429 Modify doc string to discourage use for character code unification.
15430
15431 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15432
15433 * atimer.c (run_timers): Update pending_atimers.
15434
15435 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
15436
15437 * image.c (svg_load_image): Fix last change.
15438
15439 * xfns.c (Fx_create_frame): Signal an error if no font is
15440 found (Bug#2147).
15441
15442 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
15443
15444 * character.c (syms_of_character) <script-representative-chars>:
15445 Fix typo in docstring.
15446
15447 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15448
15449 * nsmenu.m (pop_down_menu): New function.
15450 (ns_popup_dialog): Call it on unwind.
15451 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15452 call timer_check() (Bug#2154).
15453 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15454 handling_signal is set.
15455 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15456
15457 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15458
15459 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15460
15461 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15462
15463 * keyboard.c (poll_for_input_1, handle_async_input):
15464 Set handling_signal under HAVE_NS.
15465
15466 2009-02-04 Glenn Morris <rgm@gnu.org>
15467
15468 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15469
15470 2009-02-04 Kenichi Handa <handa@m17n.org>
15471
15472 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15473
15474 * charset.c (Fchar_charset): New optional arg restriction.
15475
15476 * coding.h (coding_system_charset_list): Extern it.
15477
15478 * coding.c (coding_system_charset_list): New function.
15479
15480 * composite.c: Include coding.h and termhooks.h.
15481 (composition_gstring_p): Fix for the terminal case.
15482 (composition_gstring_width): Likewise.
15483 (fill_gstring_body): Likewise.
15484 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15485 the frame.
15486 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15487 is within a composition.
15488 (Fcomposition_get_gstring): Fix the terminal case.
15489
15490 * term.c (encode_terminal_code): Fix handling of composition.
15491 (produce_composite_glyph): For static composition, get pixel_width
15492 from struct composition.
15493
15494 2009-02-02 Andreas Schwab <schwab@suse.de>
15495
15496 * unexelf.c (unexec): Handle unaligned bss offset.
15497
15498 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15499
15500 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15501 XT,w32read_socket changes to ns_read_socket.
15502
15503 * keyboard.c (handle_interrupt): Don't call
15504 quit_throw_to_read_char() under NS.
15505
15506 * blockinput.h: Remove NS-specific code.
15507
15508 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15509
15510 * dispnew.c (window_change_signal): Don't try to get the size of a
15511 suspended tty frame.
15512 * term.c (Fresume_tty): Resize if the size has changed while the
15513 tty was suspended.
15514
15515 * alloc.c (mark_stack): Properly conditionalize previous change.
15516
15517 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15518
15519 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15520 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15521 Remove; this code is not used on Windows.
15522
15523 2009-01-30 Eli Zaretskii <eliz@gnu.org>
15524
15525 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15526 EOLs that also has stray ^M characters.
15527
15528 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15529
15530 * atimer.c (run_timers, alarm_signal_handler):
15531 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15532 * w32inevt.c (w32_console_read_socket):
15533 * w32term.c (w32_read_socket):
15534 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15535
15536 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
15537
15538 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15539 Initialize it as a relative filename pattern.
15540 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15541 (Fcall_process_region): Simplify temp file creation using
15542 temporary-file-directory.
15543
15544 2009-01-29 Eli Zaretskii <eliz@gnu.org>
15545
15546 * msdos.c: Rename pending_signals to msdos_pending_signals.
15547 (sig_suspender, sigprocmask): Adjust.
15548
15549 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
15550
15551 * keyboard.c (pending_signals): New var.
15552 (poll_for_input, input_available_signal, init_keyboard): Set it.
15553 (process_pending_signals): New function.
15554
15555 * lisp.h (QUIT): Check pending_signals instead of
15556 interrupt_input_pending. Use process_pending_signals.
15557
15558 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15559
15560 * process.c (wait_reading_process_output): Use process_pending_signals.
15561
15562 * sysdep.c (emacs_write): Use process_pending_signals.
15563
15564 * xterm.c (XTread_socket): Update pending_signals.
15565
15566 * w32term.c (w32_read_socket): Update pending_signals.
15567
15568 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15569
15570 2009-01-29 Kenichi Handa <handa@m17n.org>
15571
15572 * xftfont.c (xftfont_has_char): New function.
15573 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15574
15575 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15576
15577 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15578 under GNUstep.
15579 (ns_query_color): New declaration.
15580
15581 * nsterm.m (ns_confirm_quit): New variable.
15582 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15583 (EmacsApp-applicationShouldTerminate:): Use it.
15584 (EmacsPrefsController): Let user set it.
15585 (ns_query_color): New function.
15586 (ns_defined_color): Use it.
15587 (ns_initialize): Drop.
15588 (ns_term_init): Add two lines from ns_initialize(), and set
15589 input_interrupt_mode to nil.
15590
15591 * image.c (svg_load_image): Don't right-shift background RGB when
15592 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
15593
15594 2009-01-28 Kenichi Handa <handa@m17n.org>
15595
15596 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15597 (fontset_get_font_group): Remember that no font-group is specified
15598 for C.
15599
15600 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
15601
15602 * fns.c (concat): Check for string overflow (bug#1787).
15603
15604 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15605 Quadruple undo limits (bug#1501).
15606
15607 2009-01-27 Kenichi Handa <handa@m17n.org>
15608
15609 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15610 directly use GT_Get_Char_index.
15611
15612 * xftfont.c (struct xftfont_info): New member `index'.
15613
15614 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15615 (Ffontset_font): Adjust for the change of fontset entry.
15616
15617 2009-01-26 Kenichi Handa <handa@m17n.org>
15618
15619 * fontset.c (fontset_find_font): Fix handling of non-cons return
15620 value of fontset_get_font_group.
15621 (fontset_font): Revert last change.
15622
15623 2009-01-26 Jason Rumney <jasonr@gnu.org>
15624
15625 * w32font.c (w32font_list_internal): Return quickly if registry is
15626 unknown. Simplify final return.
15627 (add_font_entity_to_list): Break complex logic down into more
15628 manageable chunks. Move unknown registry check to
15629 w32font_list_internal.
15630
15631 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15632
15633 Changes to remove Feval calls from GUI under NS.
15634
15635 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15636 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15637 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15638
15639 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15640 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15641 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15642 instead of NON_ASCII_KEYSTROKE_EVENT.
15643 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15644 (EmacsApp-applicationShouldTerminate:): Query user.
15645 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15646 instead of Feval.
15647
15648 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15649
15650 * keyboard.c (kbd_buffer_get_event): Check for it.
15651 (keys_of_keyboard): Define lispy keys for
15652 ns-put/unput-working-text.
15653
15654 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15655 versions.
15656 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15657
15658 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
15659
15660 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15661 setting current_buffer directly. (Bug#2044)
15662
15663 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
15664
15665 * fontset.c (fontset_font): If we know there is no font, don't do
15666 any work. (Bug#1952, bug#1990).
15667
15668 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
15669
15670 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15671
15672 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15673 (ns_no_defaults): New declaration.
15674 (main): Use it.
15675
15676 * nsterm.h (ns_no_defaults): New declaration.
15677
15678 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15679
15680 * nsterm.m (ns_no_defaults): New variable.
15681 (ns_initialize): Don't read defaults when ns_no_defaults.
15682 (EmacsView-readSelectionFromPasteboard:)
15683 (writeSelectionToPasteboard:types:): New stubbed-out methods for
15684 NSServicesRequests protocol. (Bug#1435)
15685 (ns_dumpglyphs_stretch): New function.
15686 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15687 of 2008-11-15 to other terms. (Bug#615)
15688
15689 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15690
15691 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15692
15693 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15694 call for Sparc64.
15695
15696 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15697
15698 * nsfns.m:
15699 * nsgui.h:
15700 * nsmenu.m:
15701 * nsselect.m:
15702 * nsterm.h:
15703 * nsterm.m: Remove '23' comments that indicated code added during
15704 update from emacs-20 -> emacs-23.
15705
15706 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15707
15708 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15709 ns_alternate_modifier. (Bug#1217)
15710
15711 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15712 Display all shortcuts, including those w/o super modifier.
15713
15714 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15715
15716 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15717
15718 * fileio.c (Vwrite_region_post_annotation_function)
15719 (Vwrite_region_annotation_buffers): New vars.
15720 (build_annotations_unwind): Just reset
15721 Vwrite_region_annotation_buffers.
15722 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15723 Call write-region-post-annotation-function.
15724 (build_annotations): Add to Vwrite_region_annotation_buffers if
15725 buffer changes.
15726
15727 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15728
15729 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15730 Tiger.
15731 * nsfns.m (ns_do_applescript):
15732 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15733
15734 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15735
15736 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15737
15738 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15739
15740 * nsmenu.m (NSMENUPROFILE): Change #if style.
15741
15742 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15743
15744 * nsterm.m (x_set_frame_alpha): Add prototype.
15745 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15746 handle Ctrl-tab. (Bug#1841)
15747 (ns_get_color): Use unsigned long long for scanned hex string value.
15748 (ns_term_shutdown): Abort on non SIGTERM signals.
15749 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15750 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15751 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15752 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15753 (ns_defined_color): Fix settings of the XColor variable fields:
15754 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15755
15756 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15757 DPI. (Bug#1316)
15758 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15759 values in onTiger section.
15760
15761 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15762
15763 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15764 Check return value of font_spec_from_name.
15765 (Fx_list_fonts): Doc fix. (Bug#1951)
15766
15767 * font.c (font_spec_from_name): Return Qnil if font name could not
15768 be parsed.
15769 (font_parse_name): Treat a `?' character as part of an XLFD.
15770
15771 * fns.c (Fsubstring): Doc fix.
15772
15773 2009-01-19 Kenichi Handa <handa@m17n.org>
15774
15775 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15776 (ftfont_list): Likewise.
15777
15778 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15779
15780 * dbusbind.c (Fdbus_register_signal):
15781 * process.c (conv_sockaddr_to_lisp):
15782 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15783
15784 * callproc.c (Fgetenv_internal): Doc fix.
15785
15786 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15787
15788 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15789 it is not even used.
15790
15791 2009-01-16 Glenn Morris <rgm@gnu.org>
15792
15793 * font.c (Ffont_variation_glyphs): Silence compiler.
15794
15795 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15796
15797 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15798 Reported by David Robinow <drobinow@gmail.com>.
15799
15800 2009-01-15 Kenichi Handa <handa@m17n.org>
15801
15802 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15803
15804 2009-01-14 Jason Rumney <jasonr@gnu.org>
15805
15806 * frame.c (x_set_font): Always store a font to the font parameter,
15807 never a fontset. (Bug#1562)
15808
15809 2009-01-14 Kenichi Handa <handa@m17n.org>
15810
15811 * coding.c (TWO_MORE_BYTES): New macro.
15812 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15813
15814 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15815
15816 * font.c (font_clear_prop): If clearing the family, clear the font
15817 width index too.
15818
15819 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15820
15821 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15822
15823 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15824 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15825 functions, use sizeof.
15826
15827 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15828
15829 * keyboard.c (read_char): Fix case where last_nonmenu_event
15830 returned a bad value with submenus. (Bug#447)
15831
15832 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15833
15834 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15835 family, clear the font width index too.
15836
15837 2009-01-11 Jason Rumney <jasonr@gnu.org>
15838
15839 * keyboard.c (cmd_error_internal): Exit when errors occur before
15840 frame creation and not in daemon mode. (Bug#1836)
15841
15842 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15843
15844 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15845 of a display vector, backtrack.
15846 (try_window_reusing_current_matrix): Check glyph type before
15847 referencing charpos member.
15848
15849 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15850
15851 Fix Bug #876:
15852
15853 * coding.c (inhibit_null_byte_detection): New variable.
15854 (detect_coding, detect_coding_system): Don't pay attention to null
15855 bytes if inhibit_null_byte_detection is non-zero.
15856 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15857 <inhibit-iso-escape-detection>: Doc fix.
15858
15859 2009-01-09 Jason Rumney <jasonr@gnu.org>
15860
15861 * w32font.c (add_font_entity_to_list): Don't report unknown
15862 Windows charset as any unrecognized registry. (Bug#1548)
15863 Only report Unicode Plane 2 fonts as unicode-sip.
15864
15865 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15866
15867 * xfaces.c (Fx_font_family_list): Delete function.
15868 Move compatibility version to faces.el.
15869
15870 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15871
15872 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15873
15874 * frame.c (x_set_frame_parameters): Remember requested value for
15875 fullscreen before it's reset by the parameter handler.
15876
15877 2009-01-09 Glenn Morris <rgm@gnu.org>
15878
15879 * keyboard.c (last_command_char): For clarity, rename to...
15880 (last_command_event): ... and update all users.
15881 (last_input_char): For clarity, rename to...
15882 (last_input_event): ... and update all users.
15883 (last-command-char, last-input-char): Move to subr.el as aliases.
15884 * cmds.c, commands.h: Update for last_command_char rename.
15885
15886 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15887
15888 * font.c (font_open_for_lface): Handle unspecified height attribute.
15889
15890 2009-01-08 Jason Rumney <jasonr@gnu.org>
15891
15892 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15893 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15894 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15895 Don't declare.
15896 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15897 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15898
15899 2009-01-07 Kenichi Handa <handa@m17n.org>
15900
15901 * fileio.c (Finsert_file_contents): In the case of replace,
15902 remember the coding system used for decoding in
15903 coding_system (Bug#1039).
15904
15905 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15906 breaking the loop. (Bug#870)
15907 (decode_coding_utf_16, decode_coding_emacs_mule)
15908 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15909 (decode_coding_charset): Likewise.
15910
15911 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15912
15913 * frame.c (x_set_frame_parameters): Make sure height (width) get
15914 applied when fullwidth (fullheight) is set. (Bug#1522)
15915
15916 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15917
15918 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15919 (utc_base): Declare as ULONGLONG, not long double.
15920 (convert_time_raw): Delete.
15921 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15922 (initialize_utc_base): New function.
15923 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15924 (convert_from_time_t): Use initialize_utc_base; compute result with
15925 64-bit arithmetic.
15926 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15927
15928 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15929
15930 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15931 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15932 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15933 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15934 [!subprocesses]: Define.
15935 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15936 (Flist_system_processes, Fsystem_process_attributes)
15937 [!subprocesses]: Call list_system_processes and
15938 system_process_attributes instead of returning Qnil.
15939
15940 * dosfns.c (system_process_attributes, list_system_processes):
15941 New functions.
15942
15943 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15944
15945 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15946 Don't use the default (no-op) implementation.
15947
15948 2009-01-03 Jason Rumney <jasonr@gnu.org>
15949
15950 * keyboard.c (parse_modifiers_uncached): Wheel events are
15951 clicks (bug#687).
15952
15953 * w32term.c (x_query_colors, x_query_color): New functions.
15954
15955 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15956 (svg_load_image): Cast returned pointers from dynamically loaded
15957 functions. Eliminate W32 specific code.
15958
15959 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15960
15961 * nsfns.m (x_set_foreground_color, x_set_background_color)
15962 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15963 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15964 x_ prefix instead of ns_. Update references.
15965 (syms_of_nsfns): Add a FIXME comment.
15966
15967 * nsterm.m (x_set_cursor_type): New prototype.
15968 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15969
15970 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15971 for Solaris instead of incorrectly providing Qutime and Qcutime.
15972
15973 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15974
15975 * w32.c (process_times): Compute sum of utime and stime.
15976 (system_process_attributes): Add Qtime to the alist.
15977
15978 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15979 and add them to the alist.
15980
15981 * process.c (top level) <Qtime, Qctime>: New variables.
15982 (syms_of_process): staticpro them.
15983 (Fsystem_process_attributes): Add their documentation to the doc
15984 string.
15985
15986 * process.h: Declare Qtime and Qctime.
15987
15988 2009-01-02 Jason Rumney <jasonr@gnu.org>
15989
15990 * image.c (Qgobject): New symbol.
15991 (syms_of_image): Initialize it.
15992 (init_svg_functions): Load some functions from gobject library.
15993
15994 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15995
15996 * frame.c (make_terminal_frame): Remove redundant code and useless
15997 block.
15998
15999 2009-01-01 Andreas Schwab <schwab@suse.de>
16000
16001 * process.c (conv_sockaddr_to_lisp): Add workaround for
16002 getsockname bug on BSD.
16003
16004 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
16005
16006 * xfns.c (x_create_tip_frame): Set border width of the X window.
16007
16008 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
16009
16010 2009-01-01 Jason Rumney <jasonr@gnu.org>
16011
16012 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
16013 Don't block input, as per earlier xterm.c changes.
16014
16015 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
16016
16017 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
16018 (ns_appkit_version_int): New function.
16019 (x-server-version): Use ns_appkit_version_int and follow 21+
16020 convention of returning 3 integers.
16021
16022 2008-12-30 Kenichi Handa <handa@m17n.org>
16023
16024 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
16025 (CHAR_SURROGATE_PAIR_P): New macro.
16026
16027 * font.h (struct font_driver): New member get_variation_glyphs.
16028
16029 * font.c (font_range): Don't require a font for a variation selector.
16030 (Ffont_variation_glyphs): New function.
16031 (syms_of_font): Defsubr it.
16032
16033 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
16034 ftfont_variation_glyphs.
16035 (setup_otf_gstring): New function.
16036 (ftfont_drive_otf): Use it.
16037 (ftfont_shape_by_flt): Handle variation selector.
16038 (ftfont_variation_glyphs): New function.
16039
16040 2008-12-30 Martin Rudalics <rudalics@gmx.at>
16041
16042 * frame.c (Vemacs_iconified): Remove.
16043
16044 2008-12-30 Jason Rumney <jasonr@gnu.org>
16045
16046 * frame.c (store_frame_param, x_get_arg): Enable newer code on
16047 WINDOWSNT too, as related changes have already been synced. (Bug#117)
16048
16049 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
16050
16051 * indent.c (Fvertical_motion): Don't advance iterator if we have
16052 reseated to the desired position.
16053
16054 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
16055 checking for pos match.
16056
16057 2008-12-30 Kenichi Handa <handa@m17n.org>
16058
16059 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
16060 just get the low 8-bit of the code.
16061
16062 * font.c (font_intern_prop): Validate str as multibyte.
16063
16064 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
16065
16066 * dispextern.h (struct face): Move lface and hash from the middle
16067 of bitfields.
16068
16069 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
16070
16071 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
16072
16073 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
16074 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
16075 instead of intervals.h.
16076
16077 2008-12-26 Andreas Schwab <schwab@suse.de>
16078
16079 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
16080 cons.
16081
16082 2008-12-26 Martin Rudalics <rudalics@gmx.at>
16083
16084 * textprop.c (Qminibuffer_prompt): New variable.
16085 (syms_of_textprop): Initialize it.
16086 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
16087 in minibuffer-prompt face. (Bug#1662)
16088
16089 2008-12-25 Jason Rumney <jasonr@gnu.org>
16090
16091 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
16092
16093 2008-12-24 Jason Rumney <jasonr@gnu.org>
16094
16095 * ralloc.c (r_alloc_reset_variable): New function.
16096
16097 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
16098 record of what points where. (Bug#716)
16099
16100 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
16101
16102 * minibuf.c (read_minibuf): Follow the non-interactive case when
16103 running as a daemon, before detaching.
16104
16105 2008-12-22 Andreas Schwab <schwab@suse.de>
16106
16107 * buffer.c (init_buffer): Use realloc instead of xrealloc.
16108 * gtkutil.c (free_widget_value): Use xfree instead of free.
16109
16110 2008-12-22 Martin Rudalics <rudalics@gmx.at>
16111
16112 * frame.c (delete_frame): New function derived from
16113 Fdelete_frame to handle Qnoelisp value for FORCE argument.
16114 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
16115 (Fdelete_frame): Call delete_frame. Remove line from doc-string
16116 saying that FORCE non-nil doesn't run `delete-frame-functions'.
16117 * frame.h: Extern delete_frame.
16118 * window.c (window_loop):
16119 * terminal.c (delete_terminal):
16120 * xterm.c (x_connection_closed):
16121 * xfns.c (Fx_hide_tip):
16122 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
16123
16124 2008-12-21 Jason Rumney <jasonr@gnu.org>
16125
16126 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
16127 when character maps to .notdef character.
16128
16129 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
16130
16131 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
16132
16133 2008-12-20 Jason Rumney <jasonr@gnu.org>
16134
16135 * frame.c (Fmake_terminal_frame): Raise an error when called from
16136 a graphical frame on Windows. (Bug#1325)
16137
16138 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
16139
16140 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
16141
16142 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
16143
16144 * minibuf.c (Fread_buffer): Doc fix.
16145
16146 2008-12-20 Jason Rumney <jasonr@gnu.org>
16147
16148 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
16149 server name in UNC paths. (Bug#719)
16150
16151 * coding.c (decode_coding): Clear chars_at_source flag when using
16152 charbuf. (Bug#1035)
16153
16154 2008-12-19 Daniel Engeler <engeler@gmail.com>
16155
16156 * sysdep.c (serial_configure): Fix typo.
16157
16158 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16159
16160 * sysdep.c: Include alloca.h.
16161 (system_process_attributes): Add implementation for Solaris.
16162
16163 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
16164
16165 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16166
16167 Reorganize implementation of Flist_system_processes and
16168 Fsystem_process_attributes. No functional changes.
16169 * process.c: Don't #include pwd.h, grp.h and limits.h.
16170 (Flist_system_processes): Just call list_system_processes.
16171 (Fsystem_process_attributes): Just call system_process_attributes.
16172 (procfs_list_system_processes, time_from_jiffies)
16173 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16174 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
16175
16176 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
16177 (list_system_processes): Rename from
16178 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
16179 Provide a do nothing implementation.
16180 (system_process_attributes): Rename from
16181 procfs_list_system_processes.
16182 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16183 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
16184
16185 * w32.c (list_system_processes): Rename from
16186 w32_list_system_processes.
16187 (system_process_attributes): Rename from
16188 w32_system_process_attributes.
16189
16190 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
16191
16192 * process.h (w32_list_system_processes)
16193 (w32_system_process_attributes): Remove.
16194 (list_system_processes, system_process_attributes):
16195 New prototypes.
16196
16197 2008-12-19 Kenichi Handa <handa@m17n.org>
16198
16199 * xfont.c (xfont_decode_coding_xlfd): New function.
16200 (xfont_encode_coding_xlfd): New function.
16201 (xfont_list_pattern): Decode XLFD by iso-8859-1.
16202 (xfont_list): Decode and encode XLFD by iso-8859-1.
16203 (xfont_match): Likewise.
16204 (xfont_list_family): Likewise.
16205 (xfont_open): Likewise.
16206
16207 * ftfont.c (ftfont_open): Generate a multibyte string if given
16208 names are utf-8.
16209
16210 * xftfont.c (xftfont_open): Generate a multibyte string if given
16211 names are utf-8.
16212
16213 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
16214
16215 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
16216 changed.
16217 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
16218 clicked on a detached tool bar button.
16219
16220 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
16221
16222 * emacs.c (main): Print and error and exit when no data is read
16223 from the pipe.
16224
16225 2008-12-17 Jason Rumney <jasonr@gnu.org>
16226
16227 * w32font.c (w32font_has_char): Always return -1.
16228
16229 2008-12-16 Kenichi Handa <handa@m17n.org>
16230
16231 * font.c (font_open_entity): Fix previous change.
16232
16233 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
16234
16235 * process.c: Include <limits.h>.
16236
16237 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
16238
16239 * font.c (font_update_drivers): Fix mistake in reconstructing the
16240 driver list.
16241
16242 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
16243
16244 * font.c (font_clear_cache): Fix format of font cache data.
16245
16246 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
16247
16248 * xftfont.c (xftfont_open): Free Xft font pattern if
16249 XftFontOpenPattern fails.
16250
16251 * xterm.c (x_free_frame_resources): Remove extraneous call to
16252 free_frame_faces.
16253
16254 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16255
16256 * xterm.c (x_delete_display): Move xim_close_dpy call to
16257 x_delete_terminal.
16258 (x_delete_terminal): Call xim_close_dpy.
16259
16260 2008-12-13 Jason Rumney <jasonr@gnu.org>
16261
16262 * w32font.c (intern_font_name): New function.
16263 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
16264 (w32font_open_internal, Fx_select_font): Decode font name.
16265 (fill_in_logfont, list_all_matching_fonts): Encode font name.
16266
16267 * w32font.h (intern_font_name): Declare new function.
16268
16269 * w32uniscribe.c (add_opentype_font_name_to_list):
16270 Use intern_font_name.
16271
16272 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16273
16274 * frame.c (Fdelete_frame): Call free_font_driver_list.
16275
16276 * font.c (free_font_driver_list): Implement missing function.
16277
16278 * w32term.c (w32_term_init): Don't initialize the image cache
16279 here; it will be done in init_frame_faces.
16280
16281 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
16282 (struct x_display_info): Remove unused member null_pixel.
16283 New member xim_callback_data.
16284
16285 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
16286 (xim_initialize): Save pointer to callback function data.
16287 (xim_close_dpy): Free callback function data. Call XCloseIM,
16288 reverting 2008-11-04 change by David Smith.
16289 (x_term_init): Don't initialize the image cache here; it will be
16290 done in init_frame_faces. Remove ancient "null_pixel" cruft.
16291 (x_delete_display): Free x_dnd_atoms member.
16292
16293 2008-12-13 Kenichi Handa <handa@m17n.org>
16294
16295 * font.c (font_rescale_ratio): Move from xfaces.c.
16296 Argument type changed. Handle a font-spec too.
16297 (font_score): Check Vface_font_rescale_alist.
16298 (font_open_entity): Likewise. (Bug#1547)
16299
16300 * xfaces.c (font_rescale_ratio): Move to font.c.
16301
16302 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16303
16304 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16305
16306 2008-12-12 Jason Rumney <jasonr@gnu.org>
16307
16308 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16309 Set Vwindow_system_version to the real w32 major version.
16310
16311 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16312
16313 * term.c (init_tty): Move setting the terminal name before the
16314 potential user: maybe_fatal.
16315
16316 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
16317
16318 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
16319 all callers changed. Call free_frame_faces to free the face cache.
16320
16321 2008-12-11 Jason Rumney <jasonr@gnu.org>
16322
16323 * w32font.c (fill_in_logfont): Don't assume symbol script means
16324 SYMBOL_CHARSET. (Bug#547)
16325
16326 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
16327 size for surrogates. (Bug#1096, bug#872)
16328
16329 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16330
16331 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16332
16333 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16334
16335 * process.c (Fsystem_process_attributes, syms_of_process):
16336 Fix typo in name of Ssystem_process_attributes.
16337 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16338
16339 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16340
16341 * syntax.c (Fmodify_syntax_entry): Doc fix.
16342
16343 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16344
16345 * font.c (Ffont_spec): Move usage to end of docstring.
16346
16347 2008-12-10 Jason Rumney <jasonr@gnu.org>
16348
16349 * w32font.c (Qcham): New symbol.
16350 (font_supported_scripts): Add cham, and comments for other new
16351 scripts in bitfield from OpenType spec.
16352 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16353 contain characters beyond the bmp.
16354
16355 2008-12-10 Kenichi Handa <handa@m17n.org>
16356
16357 * ftfont.c (fc_charset_table): Add "unicode-sip".
16358 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
16359 Qunicode_sip.
16360
16361 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16362
16363 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16364 (Fcoding_system_put): Use QCdefault_char.
16365 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16366
16367 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
16368
16369 * xftfont.c (syms_of_xftfont): Fix typo.
16370
16371 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
16372
16373 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16374
16375 * emacs.c (main): Close daemon_pipe on exec.
16376
16377 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
16378
16379 * termchar.h (struct tty): New members termcap_term_buffer and
16380 termcap_strings_buffer.
16381
16382 * term.c (encode_terminal_code): Free any previous memory blocks
16383 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
16384 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16385 All callers changed.
16386 (init_tty): Store termcap data and string buffers in new struct
16387 tty members termcap_term_buffer and termcap_strings_buffer.
16388 (delete_tty): Free them.
16389 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
16390
16391 2008-12-07 Seiji Zenitani <zenitani@mac.com>
16392
16393 * nsfns.m (ns_set_background_color): Remove code duplication.
16394 It was a substitute for face-transparency on OS X 10.3.
16395
16396 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
16397
16398 * coding.c (make_conversion_work_buffer): Disable buffer
16399 modification hooks in the work buffer.
16400
16401 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16402
16403 * process.c (procfs_system_process_attributes): If `nread' has a
16404 negative value, assign zero to it.
16405
16406 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
16407
16408 * eval.c (Vdebug_on_error): Doc fix.
16409
16410 2008-12-05 Kenichi Handa <handa@m17n.org>
16411
16412 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16413 second character is a combining character.
16414
16415 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16416
16417 * process.c (procfs_system_process_attributes): Don't use cmd,
16418 cmdsize, and q without initializing them first.
16419
16420 2008-12-04 Jason Rumney <jasonr@gnu.org>
16421
16422 * w32font.c (w32font_draw): Initialize orig_clip before getting
16423 it, and delete it when finished.
16424
16425 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16426
16427 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16428 case when running as a daemon before detaching.
16429
16430 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
16431
16432 * w32.c (init_environment): Don't unload library shell32.dll.
16433
16434 2008-12-03 Kenichi Handa <handa@m17n.org>
16435
16436 * font.c (font_at): Set `multibyte' at first.
16437
16438 * coding.c (decode_coding_charset): Check type of an element of
16439 vector VALIDS.
16440 (encode_coding_emacs_mule): Be sure to set `code'.
16441
16442 * fontset.c (face_for_char): Handle invalid charset property correctly.
16443 (font_for_char): Likewise.
16444
16445 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
16446
16447 * font.c (Fopen_font): Compute pixel size correctly.
16448 (font_update_lface): Handle fonts with corrupted size specs,
16449 i.e. non-int and non-float.
16450
16451 * ftfont.c (ftfont_match): Initialize entity variable.
16452 (ftfont_resolve_generic_family): Avoid using uninitialized var.
16453 (ftfont_list_family): Initialize list var earlier.
16454
16455 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16456
16457 * xterm.c (x_draw_glyph_string): Fall back on
16458 underline_minimum_offset for underline position.
16459
16460 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16461
16462 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16463
16464 * character.c (c_string_width): Specify the type for LEN.
16465
16466 2008-12-03 Kenichi Handa <handa@m17n.org>
16467
16468 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16469 (decode_coding_utf_8): Likewise.
16470 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16471 (produce_chars): Initialize consumed_chars to 0.
16472
16473 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16474
16475 * keyboard.c (make_lispy_position): Only use PT if the selected
16476 window is current.
16477
16478 2008-12-02 Andreas Schwab <schwab@suse.de>
16479
16480 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16481
16482 * doprnt.c (doprnt1): Fix size of charbuf.
16483
16484 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16485
16486 * keyboard.c (timer_check): Revert last change.
16487
16488 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
16489
16490 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16491
16492 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
16493
16494 * makefile.w32-in: Update dependencies.
16495 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16496
16497 2008-12-01 Andreas Schwab <schwab@suse.de>
16498
16499 * font.c (register_font_driver): Use xmalloc.
16500 (font_put_frame_data): Likewise.
16501
16502 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
16503
16504 * xfaces.c (realize_x_face): Make abort condition clearer.
16505
16506 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16507
16508 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
16509
16510 * keyboard.c (timer_check): After a timer runs, ensure that the
16511 selected window's buffer is current.
16512
16513 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
16514
16515 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16516 It was accidentally restored by the Unicode merge.
16517
16518 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16519
16520 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
16521
16522 * w32proc.c: Include "coding.h".
16523 (Fw32_short_file_name): Encode filename passed to Windows API.
16524 (Fw32_long_file_name): Encode filename passed to Windows API and
16525 decode back the result. (Bug#1433)
16526
16527 2008-11-29 Kenichi Handa <handa@m17n.org>
16528
16529 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16530 not before accessing it.
16531
16532 * charset.c (Fdefine_charset_internal): After calculating
16533 min_char, max_char, and fastmap, copy the charset structure again.
16534 (encode_char): Fix the previous change.
16535
16536 2008-11-28 Seiji Zenitani <zenitani@mac.com>
16537
16538 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16539
16540 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16541
16542 * nsterm.m (x_set_frame_alpha): New function.
16543
16544 2008-11-27 Eli Zaretskii <eliz@gnu.org>
16545
16546 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16547
16548 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
16549
16550 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16551 pointer to check_face_name.
16552
16553 2008-11-27 Kenichi Handa <handa@m17n.org>
16554
16555 * category.h (SET_CATEGORY_SET): Call set_category_set.
16556 (set_category_set): Extern it.
16557
16558 * category.c (hash_get_category_set): New function.
16559 (Fmodify_category_entry): Adjust for the change of
16560 char_table_ref_and_range. Call hash_get_category_set to get a
16561 category set to store in the table.
16562
16563 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16564 Funify_charset.
16565
16566 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16567 (DECODE_CHAR): Check if the decoder vector is ready.
16568 (ENCODE_CHAR): Check if the encoder char-table is ready.
16569 (maybe_unify_char): Extern it.
16570
16571 * charset.c (Vchar_unified_charset_table): Delete it.
16572 (inhibit_load_charset_map): New variable.
16573 (temp_charset_work): New variable.
16574 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16575 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16576 New macros.
16577 (load_charset_map): Meaning of control_flag changed.
16578 If inhibit_load_charset_map is nonzero, setup a table in
16579 temp_charset_work.
16580 (load_charset): New argument control_flag.
16581 (map_charset_for_dump): New function.
16582 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16583 map_charset_for_dump.
16584 (Fdefine_charset_internal): If the charset method is MAP, load
16585 mapping tables by calling load_charset.
16586 (Funify_charset): Don't load a mapping table but directly set
16587 Vchar_unify_table.
16588 (maybe_unify_char): New function.
16589 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16590 Handle the case of inhibit_load_charset_map being nonzero.
16591 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16592 Handle the case of inhibit_load_charset_map being nonzero.
16593 (Fclear_charset_maps): Just free temp_charset_work.
16594 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16595 variable.
16596
16597 * chartab.c (sub_char_table_ref_and_range): Adjust for the
16598 change of char_table_ref_and_range.
16599 (char_table_ref_and_range): Change the meaning of argument FROM
16600 and TO. Now the caller must provide initial values for *FROM
16601 and *TO.
16602
16603 * fontset.c (fontset_add): Adjust for the change of
16604 char_table_ref_and_range.
16605 (fontset_get_font_group): Likewise.
16606 (Ffontset_info): Likewise.
16607
16608 * keymap.c (describe_vector): Adjust for the change of
16609 char_table_ref_and_range. For char-table, put boundary between
16610 non-ASCII and 8-bit characters.
16611
16612 * print.c (print_object): For bool-vector, delete unnecessary
16613 check of ASCII_BYTE_P.
16614
16615 2008-11-26 Jason Rumney <jasonr@gnu.org>
16616
16617 * w32font.c (w32font_open_internal): Don't include external
16618 leading in font height. (Bug#879)
16619
16620 2008-11-26 Glenn Morris <rgm@gnu.org>
16621
16622 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16623 redefinition with ifdef. (Bug#1383)
16624
16625 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16626
16627 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16628
16629 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
16630
16631 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16632 New EmacsView methods.
16633 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16634 Fixes bug #1048,1357,1414.
16635
16636 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16637
16638 Fix bug #1362.
16639 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16640 is not an indexed color.
16641 * nsterm.m (free_indexed_color): Add argument checking.
16642 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16643
16644 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
16645
16646 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16647 Document confirm-after-completion value for
16648 minibuffer-completion-confirm.
16649
16650 2008-11-24 Jason Rumney <jasonr@gnu.org>
16651
16652 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16653 warning.
16654
16655 2008-11-23 Jason Rumney <jasonr@gnu.org>
16656
16657 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16658 restored before returning.
16659
16660 * w32font.c (check_face_name): New function.
16661 (add_font_entity_to_list): Use it to filter out common substituted
16662 fonts. (Bug#642)
16663
16664 2008-11-22 Martin Rudalics <rudalics@gmx.at>
16665
16666 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16667 confirm-nonexistent-file-or-buffer in doc-string.
16668
16669 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16672 Fix copy/paste typo. Add checks.
16673
16674 2008-11-21 Kenichi Handa <handa@m17n.org>
16675
16676 * coding.c (detect_coding_iso_2022): Reject invalid composition
16677 sequence.
16678 (DECODE_COMPOSITION_START): If the current source is the last
16679 block, and the current composition doesn't end, regard this
16680 sequence as invalid.
16681 (decode_coding_iso_2022): Handle invalid composition sequence.
16682
16683 2008-11-20 Martin Rudalics <rudalics@gmx.at>
16684
16685 * window.c (coordinates_in_window): Don't return
16686 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16687 line when the window is not the rightmost one. (Bug#1372)
16688
16689 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16690
16691 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16692
16693 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16694
16695 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16696 and bright_bg if noninteractive is non-zero.
16697
16698 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16699
16700 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16701 x_draw_glyph_string_background.
16702
16703 * w32term.c (x_draw_glyph_string): Likewise.
16704
16705 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16706
16707 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16708 the next glyph string once past the overhang width.
16709
16710 * nsterm.m (ns_draw_glyph_string): Likewise.
16711
16712 * w32term.c (x_draw_glyph_string): Likewise.
16713
16714 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16715
16716 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16717 double file close.
16718
16719 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16720
16721 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16722 dedicated status of window before attempting to display another
16723 buffer in it.
16724
16725 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16726
16727 * msdos.c (Fmsdos_long_file_names):
16728 (syms_of_msdos) <dos-unsupported-char-glyph>:
16729 * dosfns.c (Fint86): Fix typos in docstrings.
16730
16731 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16732
16733 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16734
16735 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16736
16737 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16738
16739 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16740
16741 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16742
16743 * frame.h: Negative alpha means "don't touch".
16744
16745 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16746
16747 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16748
16749 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16750
16751 * hftctl.c:
16752 * chpdef.h:
16753 * acldef.h: Remove files used only for systems no longer supported.
16754
16755 * Makefile.in: Fix .o alphabetical ordering.
16756 (hftctl.o): Remove dependency, file removed.
16757 (keymap.o, print.o): Depend on charset.h.
16758
16759 2008-11-10 Kenichi Handa <handa@m17n.org>
16760
16761 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16762
16763 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16764
16765 * dired.c (file_name_completion): If completion_ignore_case is
16766 enabled, ignore case when checking completion-regexp-list.
16767
16768 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16769
16770 * vm-limit.c (get_lim_data): Fix last change.
16771
16772 2008-11-08 Kenichi Handa <handa@m17n.org>
16773
16774 * character.c (Fget_byte): New function.
16775 (syms_of_character): Defsubr Fget_byte.
16776
16777 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16778
16779 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16780 cursor position is valid after scrolling.
16781
16782 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16783
16784 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16785
16786 2008-11-06 Glenn Morris <rgm@gnu.org>
16787
16788 * xterm.c (handle_one_xevent): Don't let popup menus cause
16789 mouse-autoselect-window related window switching. (Bug#1261)
16790
16791 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16792
16793 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16794
16795 2008-11-04 Andreas Schwab <schwab@suse.de>
16796
16797 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16798
16799 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16800
16801 * xfns.c (Fx_wm_set_size_hint): New function.
16802
16803 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16804
16805 * textprop.c (Fprevious_single_char_property_change): Return 0
16806 when there's no change in a string. (Bug#1301)
16807
16808 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16809
16810 * frame.c (do_switch_frame): New argument NORECORD passed to
16811 Fselect_window.
16812 (Fselect_frame): New argument NORECORD passed to
16813 do_switch_frame.
16814 (Fset_frame_selected_window): New argument NORECORD passed to
16815 Fselect_frame.
16816 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16817 in call of do_switch_frame.
16818 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16819 Handle NORECORD argument in call of Fselect_frame.
16820 * lisp.h (do_switch_frame, Fselect_frame)
16821 (Fset_frame_selected_window): Adjust declarations.
16822 * window.c (select_frame_norecord): New function.
16823 (run_window_configuration_change_hook): Use it and call
16824 Fselect_frame with NORECORD set.
16825 (Fselect_window): Pass NORECORD to Fselect_frame.
16826 (Fset_window_configuration): Handle NORECORD argument in call of
16827 do_switch_frame.
16828 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16829 Fset_frame_selected_window.
16830 * keyboard.c (command_loop_1): Handle NORECORD in call of
16831 Fselect_frame (currently ifdefd).
16832
16833 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16834
16835 * emacs.c (USAGE2): Untabify.
16836
16837 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16838
16839 * composite.c (fill_gstring_header): Fix copy/paste typo.
16840
16841 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16842
16843 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16844 (Fother_window): Rename argument and rewrite doc-string.
16845 (select_window_norecord): Fix return value. (Bug#1276)
16846
16847 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16848
16849 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16850 new frames overriding foreground for tooltips. Based on similar patch
16851 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16852
16853 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16854
16855 * emacs.c (Fdaemon_initialized): Initialize nfd.
16856
16857 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16858
16859 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16860 (Fwindow_text_height): Clarify doc-strings.
16861 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16862 doc-string of window-scroll-functions.
16863
16864 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16865
16866 * category.c (syms_of_category): Fix typo in docstring.
16867
16868 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16869
16870 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16871 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16872 Fix typos in docstrings.
16873
16874 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16875
16876 * emacs.c (daemon_pipe): Make non-static.
16877 (IS_DAEMON): Move definition ...
16878 * lisp.h (IS_DAEMON): ... here.
16879 (daemon_pipe): Declare.
16880 (is_daemon): Remove.
16881 * dispnew.c (init_display): Use IS_DAEMON.
16882
16883 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16884
16885 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16886 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16887
16888 * emacs.c (is_daemon): Remove.
16889 (main): Don't set is_daemon.
16890 (IS_DAEMON): New macro.
16891 (Fdaemonp, Fdaemon_initialized): Use it.
16892 (Fdaemon_initialized): Write a char into the pipe to make sure the
16893 parent exits.
16894 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16895
16896 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16897
16898 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16899 over-sized glyph, draw it with the default glyph width.
16900
16901 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16902 glyph, draw it with the default glyph width.
16903
16904 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16905 glyph, draw it with the default glyph width.
16906
16907 * xdisp.c (try_scrolling): When computing the distance from the
16908 scroll margin to PT, try moving some distance past the window
16909 bottom before giving up.
16910
16911 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16912
16913 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16914 (Fset_window_buffer): Explain in doc-string that a window can be
16915 "strongly" dedicated to its buffer.
16916
16917 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16918
16919 * emacs.c (daemon_name): New variable.
16920 (main): Deal with --daemon=SERVER_NAME.
16921 (Fdaemonp): Return a name if one was passed to --daemon.
16922
16923 2008-10-26 Romain Francoise <romain@orebokech.com>
16924
16925 * emacs.c (daemon_pipe): New variable.
16926 (main): Create a pipe before forking, make the parent exit only after
16927 the child has closed its end of the pipe. Move closing the
16928 descriptors ...
16929 (Fdaemon_initialized): ... here. New function.
16930
16931 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16932
16933 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16934 the previous unoptimized table.
16935
16936 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16937 the distinction between non-nil and non-t value of `dedicated'.
16938
16939 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16940
16941 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16942 read_char_minibuf_menu_text is large enough to hold the menu string.
16943
16944 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16945
16946 * window.c (Fget_buffer_window, Fdelete_windows_on)
16947 (Freplace_buffer_in_windows): Make buffer argument optional and
16948 rename to buffer_or_name.
16949
16950 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16951
16952 * xdisp.c (handle_single_display_spec, handle_display_prop):
16953 Undo 2005-05-16 change.
16954 (handle_stop): Pop iterator if it's loaded with an empty string.
16955 (get_overlay_strings_1): Don't save iterator if it's loaded with
16956 an empty string (bug#1201).
16957
16958 2008-10-24 Kenichi Handa <handa@m17n.org>
16959
16960 * ftfont.c (ftfont_otf_features): Fix previous change.
16961 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16962 calling ftfont_otf_features.
16963
16964 2008-10-24 Kenichi Handa <handa@m17n.org>
16965
16966 * font.c (font_match_p): Fix for the case that a vector of
16967 characters is in script-representative-chars.
16968
16969 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16970
16971 * dbusbind.c (xd_in_read_queued_messages): New variable.
16972 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16973 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16974 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16975 macro. (Bug#1186)
16976
16977 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16978
16979 * s/sol2-10.h: New file.
16980
16981 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16982
16983 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16984 poor beast has survived 9+ years and the jump from xterm.c!).
16985
16986 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16987
16988 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16989 Reword doc-string.
16990 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16991
16992 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16993
16994 * character.c (syms_of_character) <script-representative-chars>:
16995 <unicode-category-table>: Doc fixes.
16996
16997 2008-10-23 Noah Friedman <friedman@splode.com>
16998
16999 * coding.c (make_conversion_work_buffer): Check that
17000 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
17001 Fget_buffer_create.
17002
17003 2008-10-23 Kenichi Handa <handa@m17n.org>
17004
17005 * font.c (font_add_log): Check the values of extra properties.
17006
17007 2008-10-22 Martin Rudalics <rudalics@gmx.at>
17008
17009 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
17010 Reword doc-string.
17011 (Fset_window_parameter): Use NILP.
17012 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
17013 (Frecenter): Use "selected" instead of "current" window in doc-strings.
17014
17015 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
17016
17017 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
17018
17019 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17020
17021 * nsfns.m (ns_appkit_version): New function.
17022 (x-server-version): Use it.
17023 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
17024 (x-server-vendor): Don't check_ns().
17025
17026 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
17027
17028 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
17029
17030 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
17031 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
17032
17033 2008-10-22 Kenichi Handa <handa@m17n.org>
17034
17035 * syntax.c (scan_words): Call word_boundary_p instead of comparing
17036 scripts.
17037
17038 * category.c (word_boundary_p): Check scripts instead of charset.
17039 Handle nil value in word-separating-categories and
17040 word-combining-categories.
17041 (syms_of_category): Fix docstrings of word-separating-categories
17042 and word-combining-categories.
17043
17044 2008-10-21 Eli Zaretskii <eliz@gnu.org>
17045
17046 * coding.c (Fencode_coding_region, Fdecode_coding_region)
17047 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
17048
17049 2008-10-21 Martin Rudalics <rudalics@gmx.at>
17050
17051 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
17052 Rename arg "buffer" to "buffer_or_name".
17053 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
17054 it optional.
17055 (no_switch_window): Remove since the return value is not used.
17056 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
17057 Consider window as dedicated when Fwindow_dedicated_p returns a
17058 non-nil value.
17059 * lisp.h: Remove prototype for no_switch_window.
17060
17061 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
17062
17063 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
17064 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
17065
17066 2008-10-21 Kenichi Handa <handa@m17n.org>
17067
17068 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
17069 check Vlatin_extra_code_table.
17070
17071 2008-10-20 Eli Zaretskii <eliz@gnu.org>
17072
17073 * fileio.c (Fset_file_modes): Doc fix.
17074
17075 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
17076
17077 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
17078 in arrays.
17079
17080 2008-10-19 Martin Rudalics <rudalics@gmx.at>
17081
17082 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
17083 Mention kill-buffer in doc-string.
17084 (Fset_window_buffer): Reinsert tem check removed in last commit.
17085 (Fenlarge_window, Fshrink_window): Have argument names and
17086 doc-string follow Elisp manual more closely.
17087
17088 2008-10-18 Eli Zaretskii <eliz@gnu.org>
17089
17090 * fileio.c (Fset_file_modes): Doc fix.
17091
17092 2008-10-18 Martin Rudalics <rudalics@gmx.at>
17093
17094 * window.c (Fwindow_width, Fset_window_start)
17095 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
17096 (Fdelete_windows_on, Freplace_buffer_in_windows):
17097 Make doc-strings follow code and Elisp manual more closely.
17098 (Fwindow_dedicated_p): Make window argument optional.
17099 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
17100 (Fset_window_buffer): Respect any non-nil dedicated value for
17101 window. Rename "buffer" argument to "buffer_or_name".
17102
17103 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
17104
17105 * m/sh3.h: New file, machine description for SuperH.
17106
17107 2008-10-17 Martin Rudalics <rudalics@gmx.at>
17108
17109 * window.c (Fsplit_window): Rename arg horflag to horizontal.
17110
17111 2008-10-17 Kenichi Handa <handa@m17n.org>
17112
17113 * ftfont.c (ftfont_otf_features): Fix indexing
17114 gsub_gpos->FeatureList.Feature. Check the validity of indices.
17115
17116 2008-10-16 Magnus Henoch <mange@freemail.hu>
17117
17118 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
17119 (Fdbus_call_method_asynchronously): Ditto.
17120 This change makes C-h f display the argument list.
17121
17122 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
17123
17124 * fileio.c (Fexpand_file_name): Doc fix.
17125
17126 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
17127 of :foreground and :background equivalent to unspecified (20.x
17128 compatibility).
17129
17130 2008-10-15 Eli Zaretskii <eliz@gnu.org>
17131
17132 * buffer.c (syms_of_buffer): Doc fix.
17133
17134 2008-10-14 Kenichi Handa <handa@m17n.org>
17135
17136 * font.c (font_clear_prop): When clearing font width, clear the
17137 average width field too.
17138
17139 2008-10-12 Andreas Schwab <schwab@suse.de>
17140
17141 * ftfont.c (ftfont_shape_by_flt): Make static.
17142 * ftfont.h (ftfont_shape_by_flt): Don't declare.
17143
17144 * font.c: Don't include <m17n-flt.h>.
17145
17146 2008-10-10 Eli Zaretskii <eliz@gnu.org>
17147
17148 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
17149
17150 2008-10-09 Eli Zaretskii <eliz@gnu.org>
17151
17152 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
17153 away code.
17154
17155 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
17156
17157 * dispnew.c (update_text_area): Avoid looping due to large glyph
17158 overhangs (bug#1070).
17159
17160 2008-10-09 Kenichi Handa <handa@m17n.org>
17161
17162 * fontset.c (face_for_char): If face->fontset is negative, just
17163 return ascii_face.
17164
17165 * font.c (font_delete_unmatched): Fix previous change.
17166 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
17167
17168 2008-10-09 Martin Rudalics <rudalics@gmx.at>
17169
17170 * frame.c (Fraise_frame): On text-only terminals select frame in
17171 order to make it visible. (Bug#1061)
17172
17173 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
17174
17175 * fontset.c (fontset_find_font): Check frame validity.
17176
17177 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
17178
17179 * gtkutil.c (xg_display_open): Reset default display if none exists.
17180 (xg_display_close): Allow Emacs to close all displays (bug#985).
17181
17182 2008-10-06 Andreas Schwab <schwab@suse.de>
17183
17184 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
17185
17186 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
17187
17188 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
17189
17190 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
17191
17192 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
17193 during initialization.
17194
17195 2008-10-04 Eli Zaretskii <eliz@gnu.org>
17196
17197 * xdisp.c (redisplay_internal): If frame switched, redisplay the
17198 whole thing on MSDOS frames as well as on a TTY.
17199
17200 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
17201 well as for TTY.
17202 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
17203 well as on a TTY.
17204
17205 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
17206 as well as for TTY.
17207
17208 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
17209
17210 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
17211 MSDOS frames as well.
17212
17213 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17214
17215 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
17216 correct arguments.
17217 * menu.c (find_and_return_menu_selection): Add cast.
17218
17219 2008-10-03 Glenn Morris <rgm@gnu.org>
17220
17221 * emacs.c (USAGE1): Add --daemon.
17222
17223 2008-10-02 Eli Zaretskii <eliz@gnu.org>
17224
17225 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
17226 100, so it's in percents as advertised.
17227
17228 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17229
17230 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
17231 (ns_output.current_cursor, ns_output.desired_cursor)
17232 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
17233 (FRAME_NEW_CURSOR_COLOR): Remove.
17234
17235 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
17236 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
17237 enumeration (HOLLOW_BOX_CURSOR, etc.).
17238
17239 * nsterm.m (ns_frame_rehighlight): Remove commented code.
17240 (draw_window_cursor): Simplify code.
17241 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
17242 Don't change cursor type. In latter, call rehighlight instead of doing
17243 updates manually.
17244 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
17245 Use core Emacs cursor types.
17246
17247 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
17248
17249 2008-10-02 Martin Rudalics <rudalics@gmx.at>
17250
17251 * process.c (Faccept_process_output): Fix doc-string.
17252
17253 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
17254
17255 * gmalloc.c (__sbrk): Also define for uClibc.
17256
17257 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
17258 for uClibc.
17259
17260 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17261
17262 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
17263 styles.
17264 (nsfont_open): Reenable the cache.
17265
17266 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17267
17268 * font.c (font_matching_entity): Reflect ATTRS in font selection.
17269 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
17270
17271 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
17272
17273 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
17274 a suspended terminal.
17275
17276 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
17277
17278 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
17279
17280 2008-09-30 Eli Zaretskii <eliz@gnu.org>
17281
17282 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
17283
17284 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
17285
17286 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
17287 in a continued line coincides with a line beginning.
17288
17289 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
17290
17291 * nsfont.m (nsfont_trait_distance): Fix bug.
17292 (nsfont_list): Return a list rather than a vector (syncs with Handa
17293 changes of 2008-05-14).
17294 (nsfont_open): Improve logging.
17295
17296 2008-09-29 Andreas Schwab <schwab@suse.de>
17297
17298 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
17299
17300 2008-09-28 Martin Rudalics <rudalics@gmx.at>
17301
17302 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17303 name as char-resolve-modifiers.
17304 Reported by: Markus Triska <markus.triska@gmx.at>
17305
17306 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17307
17308 * dispnew.c (init_display): Return earlier when running as a daemon.
17309
17310 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17311
17312 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17313
17314 2008-09-27 Eli Zaretskii <eliz@gnu.org>
17315
17316 * composite.c (Fcomposition_get_gstring)
17317 (Fcompose_region_internal, Fcompose_string_internal)
17318 (Ffind_composition_internal): Doc fix.
17319 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17320 (syms_of_composite) <auto-composition-function>: Doc fix.
17321 (syms_of_composite) <composition-function-table>: Doc fix.
17322
17323 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
17324
17325 * search.c (wordify): New argument for lax word-ends.
17326 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17327
17328 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17329
17330 * lisp.h (is_daemon): Declare.
17331 * dispnew.c (init_display): Do not try to initialize the terminal
17332 when running as a daemon.
17333
17334 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
17335
17336 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17337 x_display_pixel_height.
17338
17339 2008-09-22 Martin Rudalics <rudalics@gmx.at>
17340
17341 * undo.c (record_point): Don't call Fundo_boundary for first
17342 change. (Bug#731)
17343
17344 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
17345
17346 * emacs.c (Fdaemonp): Doc fix.
17347
17348 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17349
17350 * emacs.c (main): Place #ifdef in the proper place.
17351
17352 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17353
17354 * emacs.c (standard_args): Add --daemon.
17355 (main): Disconnect from the terminal when --daemon is passed.
17356 (is_daemon): New variable.
17357 (Fdaemonp): New function.
17358 (syms_of_emacs): Defsubr it.
17359
17360 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
17361
17362 * xdisp.c (get_next_display_element): Handle string display
17363 correctly when checking for the end of a box run.
17364
17365 2008-09-20 Glenn Morris <rgm@gnu.org>
17366
17367 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17368 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17369 (Frename_file): Avoid copying to trash if a rename involves
17370 a delete. (Bug#964).
17371
17372 2008-09-20 Eli Zaretskii <eliz@gnu.org>
17373
17374 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17375 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17376 frames as well as termcap frames.
17377 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17378 get_named_tty.
17379
17380 2008-09-19 Eli Zaretskii <eliz@gnu.org>
17381
17382 * process.c (procfs_system_process_attributes): Fix cmdline in
17383 case /proc/PID/cmdline is empty.
17384
17385 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17386 x_display_pixel_height.
17387
17388 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
17389
17390 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17391
17392 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17393 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17394
17395 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17396
17397 * dispextern.h (struct it): Move line_wrap away from the middle of
17398 bitfields. Move voffset in struct iterator_stack_entry after the
17399 bitfields. Move tab_width near after another short.
17400
17401 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17402
17403 * frame.h (struct frame): Move alpha from the middle of bitfields.
17404
17405 * window.h (struct window): Move frozen_window_start_p after the
17406 rest of the bitfields to reduce padding.
17407
17408 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
17409
17410 * xterm.h (x_display_info): Remove `height' and `width' members.
17411
17412 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17413
17414 * w32term.h (w32_display_info): Remove `height', `width',
17415 `height_in', and `width_in' members.
17416
17417 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17418 New functions.
17419 (x_calc_absolute_position): Use them.
17420 (x_term_init): Omit removed `height' and `width' members.
17421
17422 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17423 New functions.
17424 (w32_read_socket, x_calc_absolute_position): Use them.
17425 (w32_initialize_display_info, w32_term_init): Omit removed members
17426 of w32_display_info.
17427
17428 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17429 New functions.
17430 (ns_initialize_display_info): Omit removed members of ns_display_info.
17431
17432 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17433 New functions.
17434 (x_calc_absolute_position): Use them.
17435 (x_term_init): Omit removed `height' and `width' members.
17436
17437 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17438 (compute_tip_xy):
17439 * frame.c (x_fullscreen_adjust):
17440 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17441 x_display_pixel_width.
17442
17443 2008-09-18 Kenichi Handa <handa@m17n.org>
17444
17445 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17446 (composition_compute_stop_pos): Fix handling of static composition.
17447 (Fcomposition_get_gstring): Check FROM and TO at first.
17448
17449 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17450
17451 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17452 mixup (YAILOM).
17453
17454 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
17455
17456 * indent.c (Fvertical_motion): Use position reported by iterator
17457 instead of PT for determining screen motion (bug#943).
17458
17459 2008-09-17 Romain Francoise <romain@orebokech.com>
17460
17461 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17462
17463 2008-09-17 Kenichi Handa <handa@m17n.org>
17464
17465 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17466
17467 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17468 if necessary.
17469
17470 2008-09-16 Kenichi Handa <handa@m17n.org>
17471
17472 * coding.c (make_conversion_work_buffer): Avoid calling
17473 Fget_buffer_create if it is not necessary.
17474
17475 2008-09-15 Martin Rudalics <rudalics@gmx.at>
17476
17477 * window.c (Fselect_window): Don't update window_select_count and
17478 use_time when norecord is not nil.
17479
17480 2008-09-14 Kenichi Handa <handa@m17n.org>
17481
17482 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17483 specpdl_ptr.
17484
17485 2008-09-12 Kenichi Handa <handa@m17n.org>
17486
17487 * indent.c (scan_for_column): Don't handle automatic composition
17488 if the current buffer is not associated with a window.
17489
17490 * composite.c (composition_reseat_it): If the current buffer is
17491 not associated with a window, ignore the automatic composition.
17492 (find_automatic_composition): Likewise.
17493
17494 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17495
17496 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17497 (Fgpm_mouse_stop): Use it.
17498 * termhooks.h (close_gpm): Declare.
17499 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17500 connection if Gpm_GetEvent fails.
17501
17502 * window.c (set_window_buffer): Always preserve current-buffer.
17503
17504 2008-09-12 Glenn Morris <rgm@gnu.org>
17505
17506 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17507
17508 2008-09-11 Glenn Morris <rgm@gnu.org>
17509
17510 * charset.c (charset-map-path): Doc fix.
17511
17512 2008-09-10 Kenichi Handa <handa@m17n.org>
17513
17514 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17515
17516 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17517 compose a grapheme cluster with the preceding base glyph.
17518
17519 * composite.c (composition_compute_stop_pos): Fix previous change.
17520 Reset cmp_it->id to -1 at first.
17521
17522 2008-09-10 Glenn Morris <rgm@gnu.org>
17523
17524 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17525
17526 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
17527
17528 * keyboard.c (read_key_sequence): Reapply translation maps when
17529 switching keyboards.
17530
17531 2008-09-09 Kenichi Handa <handa@m17n.org>
17532
17533 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17534 characters.
17535
17536 * composite.c (FORWARD_CHAR): Fix calculation
17537 of (POSITION).pos_byte.
17538 (composition_compute_stop_pos): Limit the search of composition to
17539 at most 500 characters ahead. If we reach the limit or find a
17540 newline, set cmp_it->ch to -2 and return 0.
17541 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17542
17543 2008-09-08 Kenichi Handa <handa@m17n.org>
17544
17545 * indent.c (Fvertical_motion): Be sure to set
17546 it_overshoot_expected if it.cmp_it.id is non-negative.
17547
17548 2008-09-07 Andreas Schwab <schwab@suse.de>
17549
17550 * callproc.c (Fcall_process): Don't hold references to string data
17551 across garbage collection. Move initialisation of new_argv down
17552 to avoid compiler bug.
17553
17554 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17555
17556 * process.c (Fsystem_process_attributes): Doc fix.
17557
17558 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
17559
17560 * callproc.c (Fcall_process): Canonicalize current directory name.
17561
17562 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17563 iterator advances to the next line if the current line ends in a
17564 continued tab.
17565
17566 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17567
17568 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17569 member to point to cmp_from.
17570
17571 * xdisp.c: Doc fix for references to gidx data member.
17572
17573 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17574
17575 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17576
17577 2008-09-07 Kenichi Handa <handa@m17n.org>
17578
17579 * composite.c (FORWARD_CHAR): Check STOP after
17580 incrementing (POSITION).pos.
17581
17582 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17583
17584 * process.c (Fsystem_process_attributes): Doc fix.
17585
17586 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
17587
17588 * keyboard.c (Ftop_level): Doc fix.
17589
17590 2008-09-06 Eli Zaretskii <eliz@gnu.org>
17591
17592 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17593 minibuffer, don't let lower part of menu invade the echo area.
17594
17595 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17596 "char *q" to access menu text and advance through it. Revert the
17597 change that displayed ">" instead of ASCII character 0x10.
17598
17599 2008-09-05 Eli Zaretskii <eliz@gnu.org>
17600
17601 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17602 toggle boxes and radio buttons on MS-DOS as well.
17603
17604 2008-09-05 Kenichi Handa <handa@m17n.org>
17605
17606 * composite.c (autocmp_chars): Check lookback count.
17607 (composition_compute_stop_pos): Set cmp_it->lookback.
17608 (composition_reseat_it): Check lookback count.
17609 (struct position_record): New struct.
17610 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17611 (find_automatic_composition): New function.
17612 (composition_adjust_point): Use find_automatic_composition.
17613
17614 * dispextern.h (struct composition_it): New member lookback.
17615
17616 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
17617
17618 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17619 if moving by a single line.
17620
17621 2008-09-02 Andreas Schwab <schwab@suse.de>
17622
17623 * xterm.c (x_delete_display): Fix merge error.
17624
17625 * fileio.c (Fexpand_file_name): Remove unused variables.
17626
17627 2008-09-02 Eli Zaretskii <eliz@gnu.org>
17628
17629 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17630 storage on all platforms, not just on DOS_NT.
17631
17632 2008-09-02 Jason Rumney <jasonr@gnu.org>
17633
17634 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17635 Ensure mouse is not grabbed after menu is finished.
17636
17637 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
17638
17639 * xfaces.c (Finternal_set_alternative_font_family_alist)
17640 (Finternal_set_alternative_font_registry_alist): Properly copy
17641 entire alist structure.
17642
17643 2008-09-01 Kenichi Handa <handa@m17n.org>
17644
17645 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17646 representative chars of the script is a vector.
17647 (ftfont_list): Handle the case where the representative chars of
17648 the script is a vector.
17649
17650 * character.c (syms_of_character): Docstring of
17651 script-representative-chars fixed.
17652
17653 2008-08-31 Eli Zaretskii <eliz@gnu.org>
17654
17655 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17656 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17657 the menu. Allocate larger buffer for `text', to account for
17658 possible ^C characters.
17659
17660 2008-08-31 Martin Rudalics <rudalics@gmx.at>
17661
17662 * xdisp.c (prepare_menu_bars): Don't call
17663 Vwindow_size_change_functions with arg Qt.
17664
17665 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17666
17667 * font.h (font_range):
17668 * fileio.c (report_file_error):
17669 * composite.c (composition_update_it): Yet another int/Lisp_Object
17670 mixup (YAILOM).
17671
17672 2008-08-30 Glenn Morris <rgm@gnu.org>
17673
17674 * data.c (Fmake_variable_frame_local): Doc fix.
17675
17676 * frame.c (Fmodify_frame_parameters): Doc fix.
17677
17678 2008-08-30 Eli Zaretskii <eliz@gnu.org>
17679
17680 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17681 needed by GetTokenInformation.
17682 (w32_system_process_attributes): Check return values of all system
17683 APIs.
17684
17685 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17686 only when the state changes.
17687 (IT_update_begin, IT_update_end): Add termscript trace.
17688
17689 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17690 clipboard is unavailable. Set dst to NULL if it doesn't point to
17691 malloc'ed data.
17692 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17693 passing random values to xfree.
17694
17695 * dispnew.c (init_display): Set `tty's association in frame's
17696 parameters alist to the name of the terminal device, if that is known.
17697
17698 2008-08-29 Jason Rumney <jasonr@gnu.org>
17699
17700 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17701
17702 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17703
17704 * composite.c (fill_gstring_body): Avoid compiler warnings.
17705
17706 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17707 LGLYPH_SET_CODE to avoid compiler warnings.
17708
17709 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17710
17711 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17712
17713 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17714 LGLYPH_SET_CODE.
17715
17716 2008-08-29 Kenichi Handa <handa@m17n.org>
17717
17718 * fileio.c (report_file_error): Don't downcase the first character
17719 of errstring if it is still unibyte.
17720
17721 2008-08-29 Kenichi Handa <handa@m17n.org>
17722
17723 These changes are to re-implement the automatic composition so
17724 that it doesn't use text properties.
17725
17726 * Makefile.in (ftfont.o): Depend on composite.h.
17727 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17728
17729 * character.h (Vunicode_category_table): Extern it.
17730
17731 * character.c (Vunicode_category_table): New variable.
17732 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17733
17734 * chartab.c (optimize_sub_char_table): Perform more greedy
17735 optimization.
17736
17737 * composite.h (enum composition_method):
17738 Delete COMPOSITION_WITH_GLYPH_STRING.
17739 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17740 (Vcomposition_function_table): Extern it.
17741 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17742 (composition_gstring_put_cache, composition_gstring_from_id)
17743 (composition_gstring_p, composition_gstring_width)
17744 (composition_compute_stop_pos, composition_reseat_it)
17745 (composition_update_it, composition_adjust_point): Extern them.
17746 (Fcomposition_get_gstring): EXFUN it.
17747
17748 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17749 (Vcomposition_function_table)
17750 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17751 (gstring_hash_table, gstring_work, gstring_work_headers):
17752 New variables.
17753 (gstring_lookup_cache, composition_gstring_put_cache)
17754 (composition_gstring_from_id, composition_gstring_p)
17755 (composition_gstring_width, fill_gstring_header)
17756 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17757 (composition_reseat_it, composition_update_it)
17758 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17759 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17760 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17761 Defsubr composition_get_gstring.
17762
17763 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17764 cmp_id.
17765 (struct glyph_string): Delete the member gidx. New members
17766 cmp_id, cmp_from, and cmp_to.
17767 (enum it_method): Delete GET_FROM_COMPOSITION.
17768 (struct composition_it): New struct.
17769 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17770 Delete c, len, cmp_id, cmp_len in u.comp.
17771
17772 * font.h (enum lgstring_indices): Delete it.
17773 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17774 (enum lglyph_indices): Likewise.
17775 (font_range): Adjust extern.
17776 (font_fill_lglyph_metrics): Extern it.
17777
17778 * font.c (QCf): New variable.
17779 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17780 (font_prepare_composition): Delete this function.
17781 (font_range): Type and arguments changed.
17782 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17783 (font_fill_lglyph_metrics): New function.
17784 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17785 (syms_of_font): DEFSYM QCf. Delete defsubr for
17786 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17787 Defsubr Sfont_shape_gstring.
17788
17789 * fontset.h (font_for_char): Extern it.
17790
17791 * fontset.c (font_for_char): New function.
17792
17793 * ftfont.c: Include composite.h.
17794 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17795 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17796
17797 * indent.c: Include composite.h and dispextern.h.
17798 (check_composition): Delete this function.
17799 (scan_for_column): Handle composition by
17800 composition_compute_stop_pos, composition_reseat_it, and
17801 composition_update_it.
17802 (compute_motion): Likewise.
17803 (Fvertical_motion): Fix checking of composition.
17804
17805 * keyboard.c (adjust_point_for_property): Check composition by
17806 composition_adjust_point.
17807
17808 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17809 struct glyph_string.
17810
17811 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17812 (append_composite_glyph): Adjust for the change of struct it and
17813 struct glyph.
17814 (produce_composite_glyph): Likewise.
17815
17816 * w32term.c (x_draw_composite_glyph_string_foreground):
17817 Adjust for the change of struct glyph_string.
17818 (x_draw_glyph_string): Likewise.
17819
17820 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17821 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17822
17823 * xdisp.c: Include font.h.
17824 (it_props): Delete the entry for Qauto_composed.
17825 (init_iterator): Initialize it->cmp_it.id to -1.
17826 (compute_stop_pos): Call composition_compute_stop_pos.
17827 (face_before_or_after_it_pos): Adjust for the change of struct it.
17828 (handle_auto_composed_prop): Delete it.
17829 (handle_composition_prop): Handle only static composition.
17830 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17831 from xassert. Initialize it->cmp_it.stop_pos.
17832 (push_it): Adjust for the change of struct it.
17833 (pop_it): Likewise.
17834 (get_next_element): Delete next_element_from_composition.
17835 (CHAR_COMPOSED_P): New macro.
17836 (get_next_display_element): For automatic composition, get a face
17837 from the font in the glyph-string.
17838 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17839 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17840 (next_element_from_string): Check if the character at the current
17841 position is composed by CHAR_COMPOSED_P.
17842 (next_element_from_buffer): Likewise.
17843 (next_element_from_composition): Adjust for the change of struct it.
17844 Update it->cmp_it.
17845 (dump_glyph): Adjust for the change of struct glyph.
17846 (fill_composite_glyph_string): Adjust for the change of struct
17847 it and struct glyph. Don't handle automatic composition here.
17848 (fill_gstring_glyph_string): New function.
17849 (x_get_glyph_overhangs): Handle automatic composition.
17850 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17851 (BUILD_GSTRING_GLYPH_STRING): New macro.
17852 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17853 automatic composition.
17854 (append_composite_glyph): Adjust for the change of struct it and
17855 struct glyph.
17856 (x_produce_glyphs): Adjust for the change of struct it.
17857
17858 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17859 the change of struct glyph_string.
17860 (x_draw_glyph_string): Likewise.
17861
17862 2008-08-29 Glenn Morris <rgm@gnu.org>
17863
17864 * buffer.c (word-wrap): Doc fix.
17865 * xdisp.c (truncate-partial-width-windows): Doc fix.
17866 Increase default to 50.
17867
17868 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17869
17870 * xdisp.c (update_tool_bar_unwind): New function.
17871 (update_tool_bar): Temporarily set selected frame before building
17872 tool-bar items.
17873
17874 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17875
17876 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17877 snprintf, respectively.
17878 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17879
17880 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17881
17882 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17883 LDFLAGS to GNUstep CC invocation.
17884
17885 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17886
17887 * indent.c (Fvertical_motion): Revert last change. Handle the
17888 general case where we are moving forward, and PT spans multiple
17889 screen lines.
17890
17891 * eval.c (find_handler_clause): Temporarily increase
17892 max-lisp-eval-depth while printing the backtrace buffer, to
17893 guarantee that help-mode code can run.
17894
17895 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17896
17897 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17898 colors under -rv.
17899 (IT_set_frame_parameters): Don't swap foreground and background
17900 colors if `(reverse . t)' is present in the frame properties.
17901 (internal_terminal_init): Call init_frame_faces only for the
17902 initial frame.
17903
17904 2008-08-27 Andreas Schwab <schwab@suse.de>
17905
17906 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17907
17908 2008-08-27 Andreas Schwab <schwab@suse.de>
17909
17910 * search.c (search_buffer): Set char_base to zero only at the end.
17911
17912 2008-08-27 Kenichi Handa <handa@m17n.org>
17913
17914 * fileio.c (report_file_error): Fix handling of multibyte error string.
17915
17916 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17917
17918 * xterm.c (x_term_init): Temporarily hide the partially
17919 initialized terminal while calling vendor-specific-keysyms.
17920
17921 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17922
17923 * msdos.c (internal_terminal_init): Most initializations done only
17924 once, especially initial_screen_colors[] and termscript open.
17925
17926 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17927
17928 * eval.c (Fcondition_case): Doc fix.
17929
17930 * widgetprv.h (EmacsFramePart): Change font member to the new font
17931 struct.
17932
17933 * widget.c: Include character.h and font.h for XSETFONT.
17934 (setup_frame_gcs): Compute X font id from font struct, just once.
17935
17936 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17937
17938 * term.c (get_named_tty): Fix last change.
17939
17940 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17941
17942 * indent.c (Fvertical_motion): If moving forward starting from a
17943 multi-line string, move the iterator to the last line of that string.
17944
17945 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17946
17947 * frame.c (do_switch_frame): Mark previously displayed frame as
17948 obscured for FRAME_MSDOS_P frames as well.
17949
17950 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17951
17952 * frame.c (make_terminal_frame): Initialize f->terminal,
17953 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17954 Set the top frame to newly created frame.
17955 (Fmake_terminal_frame): Reuse the_only_display_info.
17956
17957 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17958 estimating available memory.
17959
17960 2008-08-23 David Reitter <david.reitter@gmail.com>
17961
17962 * nsterm.m (ns_draw_window_cursor): Don't call
17963 NSDisableScreenUpdates and NSEnableScreenUpdates on
17964 non-NS_IMPL_COCOA systems.
17965
17966 2008-08-23 Andreas Schwab <schwab@suse.de>
17967
17968 * process.c (procfs_system_process_attributes): Fix use of
17969 uninitialized variables.
17970
17971 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17972
17973 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17974
17975 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17976 calling tty-set-up-initial-frame-faces.
17977
17978 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17979 Allow MSDOS frames along with X frames.
17980
17981 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17982 addition to output_termcap.
17983
17984 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17985
17986 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17987 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17988 highlight.
17989
17990 * process.c [!subprocesses]: Define QCname.
17991 (syms_of_process): Intern and staticpro it.
17992
17993 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17994 Adjust for changes in encoding/decoding routines.
17995 Use encode_coding_object and decode_coding_object instead of
17996 encode_coding and decode_coding.
17997
17998 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17999
18000 * dosfns.c: Include frame.h before termhooks.h.
18001 (dos_cleanup): Use CURTTY ()->termscript instead of a global
18002 variable termscript.
18003
18004 * s/msdos.h (USER_FULL_NAME): Define.
18005 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
18006
18007 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
18008 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
18009 pw->pw_gecos.
18010
18011 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
18012 SELECTED_FRAME as additional (1st) argument.
18013 (tty_read_avail_input): Handle output_msdos_raw in
18014 addition to output_termcap.
18015
18016 * msdos.c: Include frame.h before termhooks.h.
18017 (mouse_on, mouse_off, mouse_moveto, mouse_init)
18018 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
18019 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
18020 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
18021 (IT_set_terminal_modes, IT_reset_terminal_modes)
18022 (IT_set_frame_parameters): Use tty->termscript instead of a global
18023 variable termscript.
18024 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
18025 global variable terminal_coding. Don't refer to
18026 Vnonascii_translation_table.
18027 (internal_terminal_init): Set Vwindow_system in current_kboard.
18028 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
18029 Announce date and time of session start, if termscript is open.
18030 Don't zero out the_only_display_info (it is done in
18031 term.c:init_tty). Open termscript only of not already open.
18032 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
18033 here instead of dos_ttraw. Don't initialize display if this is an
18034 initial tty. Don't set FRAME_FONT.
18035 (Vwindow_system_version): Bump to 23.
18036 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
18037 is available, set up mouse_position_hook.
18038 (dos_ttraw, IT_set_terminal_modes): If called with initial
18039 terminal, do nothing.
18040 (IT_set_frame_parameters): Handle the Qtty_type frame
18041 parameter by calling internal_terminal_init.
18042 (dos_set_window_size, show_mouse_face)
18043 (clear_mouse_face, IT_note_mode_line_highlight)
18044 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
18045 (dos_rawgetc): Use tty_display_info instead of x_display_info.
18046 (initialize_msdos_display): New function.
18047 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
18048 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
18049 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
18050 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
18051 Accept additional argument: a pointer to a frame. Update all callers.
18052 (request_sigio, unrequest_sigio): Don't define, now defined on
18053 sysdep.c.
18054 (IT_write_glyphs): Rewrite to use encode_terminal_code.
18055
18056 * term.c [MSDOS]: Include msdos.h.
18057 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
18058 conditional to DOS_NT. Allow only one call to this function in a
18059 session. Don't allocate a new struct tty_display_info; instead,
18060 reuse the_only_display_info. Call get_tty_size to get screen
18061 dimensions. Call init_baud_rate to set bad_rate.
18062 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
18063 (Fsuspend_tty) [MSDOS]: Don't close input and output.
18064 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
18065 (get_tty_terminal, get_named_tty, Ftty_type)
18066 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
18067 output_termcap.
18068 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
18069 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
18070 only when subprocesses are supported.
18071
18072 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
18073 f->output_data.x.
18074 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
18075 terminal devices.
18076
18077 * msdos.h: Remove definition of struct x_display_info and struct
18078 x_output.
18079 (FRAME_FONT): Use output_data.tty.
18080 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
18081 (struct x_display_info): Rename from display_info. Update all users in
18082 msdos.c.
18083 (struct x_output): Remove background_pixel and foreground_pixel.
18084 (the_only_display_info): Rename from the_only_x_display.
18085 (dos_ttraw): Update prototype.
18086
18087 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
18088 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
18089
18090 2008-08-23 Jason Rumney <jasonr@gnu.org>
18091
18092 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
18093 (fn_TIFFSetDirectory): New library function used.
18094 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
18095 (tiff_load): Use :index to select among multiple images. Set count
18096 property when multiple images exist.
18097 (gif_format): Use :index, not :image.
18098
18099 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
18100
18101 * xdisp.c (try_scrolling): Check INT_MAX instead of
18102 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
18103 to obtain INT_MAX.
18104
18105 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
18106
18107 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
18108
18109 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
18110
18111 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
18112 GNUstep library location.
18113
18114 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
18115
18116 * xfaces.c (x_update_menu_appearance): Check validity of menu font
18117 before using it.
18118
18119 * puresize.h (BASE_PURESIZE): Increase to 1250000.
18120
18121 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18122
18123 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
18124 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
18125 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
18126 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
18127 (EmacsApp-cursor_blink_handler): Remove declaration.
18128 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
18129 match 01 Feb 2008 changes in xterm.c.
18130 (ns_read_socket): Add cast to avoid warning.
18131 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
18132 GNUstep.
18133
18134 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
18135
18136 * xselect.c (x_get_foreign_selection): Return nil if desired
18137 selection could not be obtained, instead of signalling an error.
18138
18139 2008-08-20 David Reitter <david.reitter@gmail.com>
18140
18141 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
18142 * nsterm.m: Remove ns-specific code for cursor blinking.
18143 (ns_draw_window_cursor): Clear cursor properly rather than
18144 redrawing the area. Respect width of bar cursors.
18145 These changes enable the use of generic blink-cursor-mode and
18146 generic cursor types in NS and support smooth cursor movements (do
18147 not blink off after command).
18148 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
18149 Nextstep, too.
18150
18151 2008-08-19 Kenichi Handa <handa@m17n.org>
18152
18153 * font.c (Vfont_log_deferred): New variable.
18154 (font_add_log): Check Vfont_log_deferred.
18155 (font_deferred_log): New function.
18156
18157 * font.h (font_deferred_log): Extern it.
18158
18159 * fontset.c (reorder_font_vector): Use encoding charset of fonts
18160 for sorting.
18161 (face_for_char): Use deferred log.
18162
18163 2008-08-18 Kenichi Handa <handa@m17n.org>
18164
18165 * fontset.c (face_for_char): Add font log.
18166
18167 * font.c (font_add_log): Add the font properties :script, :lang,
18168 and :otf in the log.
18169
18170 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
18171
18172 * xdisp.c: Remove dead code.
18173 (handle_invisible_prop, next_overlay_string): Defer call to
18174 setup_for_ellipsis.
18175 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
18176
18177 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
18178
18179 * xfaces.c (lookup_derived_face): Properly handle possible zero
18180 return value of get_lface_attributes.
18181 (merge_faces): Don't tell lookup_derived_face to signal an error
18182 if face is not found.
18183
18184 * dired.c (Fdirectory_files): Doc fix.
18185
18186 * process.c (make_process): Initialize kill_without_query struct
18187 member.
18188
18189 2008-08-15 Eli Zaretskii <eliz@gnu.org>
18190
18191 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
18192 Alternative calculation of totphys for Visual Studio 6.
18193
18194 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
18195
18196 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
18197 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
18198 All users changed.
18199 (stat): Only root directory passed to GetDriveType. Allow RAM
18200 disk as well as local fixed disk when w32-get-true-file-attributes
18201 is set to `local'.
18202 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
18203 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
18204 (w32_cached_id, w32_add_to_cache): New functions.
18205 (get_name_and_id): Look account names in the cache before calling
18206 lookup_account_sid.
18207 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
18208 New initialization flags.
18209 (globals_of_w32): Initialize them to zero.
18210 (w32_system_process_attributes): Use w32_cached_id and
18211 w32_add_to_cache.
18212
18213 2008-08-14 Lawrence Mitchell <wence@gmx.li>
18214
18215 * lread.c (Fread_char, Fread_char_exclusive): If no character
18216 event is read before timeout is reached, return nil, rather than
18217 converting to a number.
18218
18219 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
18220
18221 * fns.c (use_dialog_box): Doc fix.
18222
18223 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
18224 on OS X.
18225
18226 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
18227
18228 * frame.c (Qns_parse_geometry): New var.
18229 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
18230
18231 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
18232
18233 * xdisp.c (x_produce_glyphs): Handle the case when font has no
18234 space character in calculating tabs.
18235
18236 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
18237
18238 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
18239
18240 2008-08-10 Glenn Morris <rgm@gnu.org>
18241
18242 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
18243 silence gcc "limited range of data type" warnings in some
18244 make_fixnum_or_float calls.
18245
18246 2008-08-09 Eli Zaretskii <eliz@gnu.org>
18247
18248 * w32.c (w32_system_process_attributes): If the process does not
18249 exist, return nil.
18250
18251 * w32.c: Include thelp32.h, psapi.h and coding.h.
18252 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
18253 declarations.
18254 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
18255 (Process32Next_Proc): New typedefs.
18256 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
18257 (g_b_init_process32_next, g_b_init_open_thread_token)
18258 (g_b_init_impersonate_self, g_b_init_revert_to_self)
18259 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
18260 (g_b_init_get_process_working_set_size)
18261 (g_b_init_global_memory_status_ex): New static variables.
18262 (globals_of_w32): Initialize them.
18263 (create_toolhelp32_snapshot, process32_first, process32_next)
18264 (open_thread_token, impersonate_self, revert_to_self)
18265 (get_process_memory_info, get_process_working_set_size)
18266 (global_memory_status, global_memory_status_ex): New wrapper
18267 functions.
18268 (w32_list_system_processes, w32_system_process_attributes)
18269 (enable_privilege, restore_privilege, ltime, process_times):
18270 New functions.
18271 (convert_time_raw): New function.
18272 (convert_time): Remove conversion of FILETIME into time in 100
18273 nsec units, call convert_time_raw instead.
18274
18275 * process.h (w32_list_system_processes, w32_system_process_attributes):
18276 Add prototypes.
18277 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
18278 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
18279 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
18280 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
18281
18282 * process.c (Fsystem_process_attributes): Doc fix.
18283
18284 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
18285
18286 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
18287 a continued multi-char glyph; if so, advance to the actual glyph.
18288
18289 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
18290
18291 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
18292
18293 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
18294 (.m.o): Use it.
18295 * config.in: Regenerate.
18296
18297 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
18298
18299 * xdisp.c (redisplay_window): Revert last change.
18300 (try_window): Check bottom scroll margin too.
18301
18302 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18303
18304 * config.in: Regenerate.
18305
18306 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18307 -list-load-path-shadows'.
18308 (nsgui.h): Reduce number of things depending on it.
18309
18310 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
18311
18312 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18313 instead of window-end which does the wrong thing at eob.
18314 (try_cursor_movement): Minor optimization.
18315 (redisplay_window): If scroll margin is defined, don't assume
18316 window doesn't need scrolling.
18317
18318 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18319
18320 * config.in: Regenerate.
18321
18322 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18323 (mostlyclean): Don't delete *.d under NS.
18324
18325 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18326
18327 2008-08-06 Kenichi Handa <handa@m17n.org>
18328
18329 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18330
18331 2008-08-06 Andreas Schwab <schwab@suse.de>
18332
18333 * config.in: Regenerate.
18334
18335 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
18336
18337 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18338 forcing a window start.
18339
18340 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18341 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18342
18343 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18344
18345 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18346 argument.
18347
18348 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
18349
18350 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18351 <scroll-down-aggressively, before-change-functions>:
18352 <after-change-functions>: Reflow docstrings.
18353
18354 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18355 Ken Raeburn <raeburn@gnu.org>
18356
18357 Dock menu customization, based on a patch by Ken Raeburn, plus some
18358 other fixes.
18359 * nsmenu.m (dockMenu): New variable.
18360 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18361
18362 * nsterm.h (dockMenu): Declare.
18363
18364 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18365 (ns_term_init): Initialize dockMenu.
18366 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18367 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18368 left.
18369
18370 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18371
18372 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18373
18374 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18375
18376 * config.in: Regenerate.
18377
18378 2008-08-04 Seiji Zenitani <zenitani@mac.com>
18379
18380 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18381
18382 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18383
18384 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18385
18386 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18387
18388 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18389
18390 * keyboard.h: Comment an #endif.
18391
18392 * lisp.h (have_menus_p): Adjust comment.
18393
18394 * menu.c (find_and_return_menu_selection): Fix comparison with
18395 client_data.
18396
18397 * nsmenu.m (popup_activated_flag): New variable.
18398 (popup_activated): New function.
18399 (menu-or-popup-active-p): New exported lisp definition.
18400 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18401 when popup done.
18402 (ns_popup_dialog): Set popup_activated_flag.
18403
18404 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18405 version for GNUstep (handled by conditional typedef in nsterm.m).
18406 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18407 in rgb.txt).
18408
18409 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18410
18411 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18412
18413 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18414
18415 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18416 shortcircuit if popup_activated like GTK and X toolkit.
18417
18418 * m/inter386.h: Change DARWIN to DARWIN_OS.
18419
18420 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18421 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
18422 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18423 Expand comment on NO_SOCK_SIGIO.
18424
18425 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
18426
18427 * nsterm.m (windowDidResize): Remove stopModal call.
18428
18429 2008-08-03 Andreas Schwab <schwab@suse.de>
18430
18431 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18432 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18433
18434 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
18435
18436 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18437 Don't use uninitialized pointer variable when using getrlimit.
18438
18439 2008-08-02 Jason Rumney <jasonr@gnu.org>
18440
18441 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18442
18443 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18444
18445 * alloc.c (NSTATICS): Bump to 0x640.
18446
18447 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18448
18449 * lisp.h: Add prototype for directory_files_internal.
18450
18451 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18452 New functions.
18453 (syms_of_process): Defsubr them. Add initializations for various
18454 Q* symbols used in procfs_system_process_attributes.
18455 (procfs_list_system_processes, procfs_system_process_attributes)
18456 [HAVE_PROCFS]: New functions.
18457 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18458 (procfs_get_total_memory): New functions.
18459
18460 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18461
18462 * xfaces.c (Fx_load_color_file): Fix previous change;
18463 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18464
18465 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
18466
18467 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18468
18469 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18470
18471 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18472
18473 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
18474
18475 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18476
18477 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18478 define NSApplicationDelegateReplySuccess.
18479 (EmacsView -converstationIdentifier): Use long instead of
18480 NSInteger for GNUstep, since it doesn't have NSInteger.
18481
18482 * xmenu.c: Revert last change.
18483
18484 * keyboard.h: Fix last change.
18485
18486 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18487
18488 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18489 on Windows.
18490
18491 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18492
18493 Warning clearing and clean-up in NS port.
18494 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18495 Add prototypes.
18496 * nsgui.h (FACE_DEFAULT): Remove, unused.
18497 (XGCValues): Change colors to unsigned long.
18498 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18499 nsterm.m.
18500 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18501 (ns_list_fonts): Remove, unused.
18502 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18503 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18504 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18505 (nsfont_draw): Compare face colors to 0, not nil.
18506 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18507 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18508 (-addSubmenuWithTitle:): Use NSMenuItem class.
18509 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18510 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18511 (ns_clip_to_row): Make gc arg a BOOL.
18512 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18513 ns_clip_to_row() call.
18514 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18515 used). Cast FRAME_FONT assignments.
18516 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18517 (ns_string_to_lispmod): Change arg to const char.
18518 (ns_term_init): Use NSMenuItem class.
18519 (EmacsApp -openFile:): Move to different section of file.
18520 (EmacsApp -application:openFiles:): Don't return a value, call
18521 -replyToOpenOrPrint:.
18522 (EmacsView -keyDown:): Fix up cast.
18523 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18524 (EmacsView -menuDown:): Cast tag in call to
18525 find_and_call_menu_selection().
18526 (ns_list_fonts): Remove, unused.
18527 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18528 (ns_fontname_to_xlfd): Make static.
18529 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18530 Remove prototypes (now in keyboard.h).
18531 (next_menubar_widget_id): Remove, unused.
18532 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18533 Remove prototypes (now in keyboard.h).
18534 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18535
18536 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18537
18538 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18539 (floatfns.o): Depend on syssignal.h.
18540 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18541
18542 * systty.h: Fix previous change that removed BSD_TERMIOS.
18543 Add comments to #ifdefs.
18544
18545 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18546
18547 * w32fns.c (w32-load-color-file): Remove.
18548 (x-open-connection): Use renamed Fx_load_color_file.
18549 * xfaces.c (x-load-color-file): Add.
18550 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18551 Emacs.clr.
18552 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18553
18554 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
18555
18556 * dbusbind.c (Fdbus_call_method_asynchronously)
18557 (Fdbus_method_error_internal): New defuns.
18558 (xd_read_message): Handle also reply messages.
18559 (Vdbus_registered_functions_table): Extend docstring.
18560
18561 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
18562
18563 * keyboard.c (gobble_input): Fix previous change.
18564
18565 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18566
18567 * bitmaps/README:
18568 * xfns.c:
18569 * termcap.c:
18570 * term.c:
18571 * syswait.h:
18572 * systty.h:
18573 * systime.h:
18574 * syssignal.h:
18575 * sysdep.c:
18576 * process.h:
18577 * process.c:
18578 * print.c:
18579 * ndir.h:
18580 * lread.c:
18581 * keyboard.c:
18582 * getpagesize.h:
18583 * floatfns.c:
18584 * fileio.c:
18585 * emacs.c:
18586 * doc.c:
18587 * dispnew.c:
18588 * dired.c:
18589 * data.c:
18590 * callproc.c:
18591 * buffer.c:
18592 * README:
18593 * Makefile.in:
18594 * s/template.h:
18595 * s/msdos.h:
18596 * m/vax.h: Remove VMS support.
18597 * s/vms.h:
18598 * vlimit.h:
18599 * uaf.h:
18600 * temacs.opt:
18601 * param.h:
18602 * ioctl.h: Remove file.
18603
18604 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18605
18606 * s/ms-w32.h (MULTI_KBOARD): Remove.
18607 * xterm.c:
18608 * xselect.c:
18609 * xfns.c:
18610 * window.c:
18611 * w32term.c:
18612 * w32fns.c:
18613 * terminal.c:
18614 * termhooks.h:
18615 * term.c:
18616 * sysdep.c:
18617 * keyboard.h:
18618 * keyboard.c:
18619 * frame.h:
18620 * frame.c:
18621 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18622 * config.in: Regenerate.
18623
18624 2008-07-30 Jason Rumney <jasonr@gnu.org>
18625
18626 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18627
18628 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18629 (w32font_open_internal): Get unicode version of textmetrics.
18630 Don't enable or disable glyph indices here.
18631 (w32font_open): Disable use of glyph indices.
18632
18633 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18634
18635 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
18636
18637 * minibuf.c (Vread_buffer_function): Doc fix.
18638
18639 2008-07-30 John Paul Wallington <jpw@pobox.com>
18640
18641 * minibuf.c (read_buffer_completion_ignore_case): New var.
18642 (Fread_buffer): Use it.
18643
18644 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18645
18646 * systty.h (sensemode): Remove empty #if. Remove reference to
18647 BSD_TERMIOS, unused.
18648
18649 * sysdep.c: Remove reference to DGUX.
18650 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18651
18652 * config.in: Regenerate.
18653
18654 2008-07-30 Jason Rumney <jasonr@gnu.org>
18655
18656 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18657
18658 2008-07-29 Jason Rumney <jasonr@gnu.org>
18659
18660 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18661 is populated.
18662 (uniscribe_encode_char): Always use uniscribe.
18663 Avoid using context if cache is populated.
18664
18665 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18666
18667 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18668 open menu.
18669
18670 * gtkutil.c (menu_nav_ended): Remove.
18671 (create_menus): Remove signal connect for menu_nav_ended.
18672
18673 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
18674
18675 * xdisp.c (redisplay_window): Check return value of
18676 compute_window_start_on_continuation_line before forcing a window
18677 start.
18678
18679 2008-07-28 Jason Rumney <jasonr@gnu.org>
18680
18681 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18682
18683 * w32term.c (w32_enable_unicode_output, cleartype_active):
18684 Remove obsolete display options.
18685 (x_draw_glyph_string_background): Don't use old cleartype_active
18686 workaround.
18687 (w32_initialize): Remove cleartype_active initialization.
18688 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18689
18690 2008-07-28 Andreas Schwab <schwab@suse.de>
18691
18692 * lisp.h (init_weak_hash_tables, syms_of_font)
18693 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18694 (remove_hash_entry): Don't declare.
18695 * eval.c (maybe_call_debugger): Make static and move before use.
18696 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18697 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18698 * xterm.h (x_set_frame_alpha): Declare.
18699
18700 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18701
18702 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18703 (create_menus): Connect selection-done to menu_nav_ended.
18704
18705 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18706
18707 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18708 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18709 parameter with read of 'alpha' one.
18710 (Qns_frame_parameter): Remove.
18711 * nsselect.m (selection-coding-system)
18712 (next-selection-coding-system, Vselection_coding_system)
18713 (Vnext_selection_coding_system): Drop.
18714
18715 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18716
18717 * nsfns.m (do-applescript, do_applescript): Rename to
18718 ns-do-applescript, ns_do_applescript, and move within file.
18719
18720 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18721
18722 Remove support for Mac Carbon.
18723 * mactoolbox.c:
18724 * macterm.h:
18725 * macterm.c:
18726 * macselect.c:
18727 * macmenu.c:
18728 * macgui.h:
18729 * macfns.c:
18730 * mac.c: Remove file.
18731 * s/darwin.h:
18732 * m/intel386.h:
18733 * xfaces.c:
18734 * xdisp.c:
18735 * window.c:
18736 * tparam.c:
18737 * termhooks.h:
18738 * termcap.c:
18739 * term.c:
18740 * syssignal.h:
18741 * sysselect.h:
18742 * sysdep.c:
18743 * process.c:
18744 * lread.c:
18745 * lisp.h:
18746 * keyboard.c:
18747 * image.c:
18748 * fringe.c:
18749 * frame.h:
18750 * frame.c:
18751 * fontset.c:
18752 * font.h:
18753 * font.c:
18754 * fns.c:
18755 * fileio.c:
18756 * emacs.c:
18757 * dispnew.c:
18758 * dispextern.h:
18759 * config.in:
18760 * atimer.c:
18761 * Makefile.in: Remove code for Carbon.
18762
18763 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18764
18765 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18766
18767 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18768
18769 * macterm.h (kCGBitmapByteOrder32Host): New define for
18770 non-universal SDKs.
18771
18772 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18773 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18774
18775 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18776 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18777
18778 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18779
18780 * w32inevt.c: Include dispextern.h.
18781
18782 2008-07-26 Andreas Schwab <schwab@suse.de>
18783
18784 * print.c (print_object): Fix off-by-one in last change.
18785
18786 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18787
18788 * term.c (syms_of_term): Don't initialize default_orig_pair,
18789 default_set_foreground and default_set_background on Windows.
18790
18791 2008-07-25 Jason Rumney <jasonr@gnu.org>
18792
18793 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18794 ScriptItemize. Clean up return value checking. Remove unused
18795 variables.
18796 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18797 shaping engine.
18798
18799 * w32font.c (w32font_has_char): Handle the case where we can't
18800 determine the script for a character.
18801
18802 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18803
18804 * term.c (syms_of_term): Initialize default_orig_pair,
18805 default_set_foreground, and default_set_background.
18806
18807 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18808 clash (bug#86).
18809 (getloadavg): Callers changed.
18810
18811 * image.c (svg_load_image): Fix last change.
18812 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18813 image size is valid. Use g_object_unref instead of deprecated
18814 rsvg_handle_free to free rsvg handle.
18815 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18816
18817 2008-07-25 Jason Rumney <jasonr@gnu.org>
18818
18819 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18820 surrogates before looking up glyph index.
18821 (w32font_text_extents): Encode as surrogates if falling back to
18822 functions that need UTF-16 wide chars.
18823
18824 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18825 BMP as surrogates before looking up glyph index.
18826
18827 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18828
18829 * image.c (svg_load_image): Check for failure in return value of
18830 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18831
18832 2008-07-25 Jason Rumney <jasonr@gnu.org>
18833
18834 * w32font.c (Fx_select_font): Reverse sense of second arg.
18835
18836 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18837
18838 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18839 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18840
18841 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18842 (PURESIZE): Use it.
18843
18844 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18845
18846 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18847 * m/alpha.h (TEXT_END):
18848 * m/ibmrs6000.h (TEXT_END):
18849 * m/macppc.h (TEXT_END):
18850 * s/darwin.h (TEXT_END):
18851 * s/msdos.h (TEXT_END): Remove, unused.
18852 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18853 * s/cygwin.h: Remove comment.
18854
18855 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18856 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18857 * m/intel386.h (DOT_GLOBAL_START):
18858 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18859 (USG): Remove, file not used on USG platforms.
18860
18861 * Makefile.in (HAVE_X11): Remove empty #else.
18862
18863 2008-07-24 Andreas Schwab <schwab@suse.de>
18864
18865 * fileio.c (Finsert_file_contents): Properly adjust undo list
18866 after format conversion.
18867
18868 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18869
18870 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18871 (menu_nav_ended): Remove.
18872 (create_menus): Remove signal connect for menu_nav_ended.
18873 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18874 create_menus.
18875 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18876
18877 2008-07-23 Jason Rumney <jasonr@gnu.org>
18878
18879 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18880 with opened font.
18881 (w32font_open): Set font type to gdi.
18882
18883 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18884
18885 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18886
18887 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18888 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18889 defines it.
18890 * unexec.c (ADDR_CORRECT): Define unconditionally.
18891
18892 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18893
18894 * unexec.c: Remove code depending on !COFF and USG, the file is
18895 not used for such systems.
18896
18897 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18898 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18899 (LD_SWITCH_SYSTEM_1): Remove, update users.
18900
18901 * s/darwin.h (DATA_END):
18902 * m/intel386.h (DATA_END):
18903 * m/ibmrs6000.h (DATA_END):
18904 * m/alpha.h (DATA_END): Remove, unused.
18905
18906 * config.in: Regenerate.
18907 * s/ms-w32.h (subprocesses): Define unconditionally.
18908 * s/template.h (subprocesses): Update comment.
18909 * s/vms.h (subprocesses):
18910 * s/usg5-4.h (subprocesses):
18911 * s/hpux10-20.h (subprocesses):
18912 * s/gnu-linux.h (subprocesses):
18913 * s/cygwin.h (subprocesses):
18914 * s/bsd-common.h (subprocesses):
18915 * s/aix4-2.h (subprocesses):
18916 * s/darwin.h (subprocesses): Do not define, defined by default now.
18917
18918 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18919 Remove all references.
18920 (temacs): Add GNUstep specific ld flags.
18921
18922 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18923 similarly to what X does.
18924
18925 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18926
18927 * nsfns.m (x-list-fonts): Remove.
18928 (syms_of_nsfns): Drop the x-list-fonts declaration.
18929 * nsterm.m: Get rid of remaining "//" comments.
18930
18931 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18932
18933 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18934
18935 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18936 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18937 (Fns_own_selection_internal, Fx_disown_selection_internal)
18938 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18939
18940 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18941 ... */' style of docstrings. Doc fixes.
18942
18943 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18944
18945 * terminfo.c (UP, BC, PC): Undo previous change.
18946
18947 * nsfns.m: Rename ns prefixed functions/variables to the
18948 corresponding x versions. Update references.
18949
18950 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18951
18952 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18953
18954 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18955
18956 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18957 Remove forwarding functions.
18958 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18959 non-static.
18960 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18961 non-static.
18962 (ns_frame_parm_handlers): Use the new names.
18963 (syms_of_nsfns): Move to the end of file.
18964
18965 * nsterm.m (syms_of_nsterm): Move to the end of file.
18966
18967 * dispnew.c (init_display): Remove code for X10.
18968
18969 2008-07-22 Jason Rumney <jasonr@gnu.org>
18970
18971 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18972 bare drive.
18973
18974 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18975
18976 * nsterm.m (syms_of_nsterm): Remove debugging println.
18977
18978 2008-07-22 David Reitter <david.reitter@gmail.com>
18979
18980 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18981 Carbon implementation of the same functionality: execute arbitrary
18982 AppleScript code.
18983
18984 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18985
18986 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18987 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18988 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18989 (Fx_display_mm_height, Fx_display_mm_width)
18990 (Fx_display_backing_store, Fx_display_visual_class)
18991 (Fx_display_save_under, Fx_open_connection)
18992 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18993 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18994 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18995 (Fx_display_pixel_width, Fx_display_pixel_height)
18996 (Fx_display_usable_bounds, Fx_display_planes)
18997 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18998 ... */' style of docstrings.
18999
19000 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
19001
19002 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
19003 on this platform.
19004 (mips):
19005 * m/iris4d.h (mips): Do not define.
19006 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
19007
19008 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
19009
19010 * image.c:
19011 * nsfns.m:
19012 * nsselect.m:
19013 * nsterm.h:
19014 * nsterm.m: Rename ns prefixed functions/variables to the
19015 corresponding x versions. Update references.
19016
19017 * m/ibms390x.h (NO_REMAP): Do not undefine.
19018
19019 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
19020
19021 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
19022
19023 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
19024 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
19025 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
19026 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
19027 (Fns_display_mm_height, Fns_display_mm_width)
19028 (Fns_display_backing_store, Fns_display_visual_class)
19029 (Fns_display_save_under, Fns_open_connection)
19030 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
19031 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
19032 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
19033 (Fns_display_pixel_width, Fns_display_pixel_height)
19034 (Fns_display_usable_bounds, Fx_display_planes)
19035 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
19036
19037 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
19038
19039 * print.c (print_object): Check print_depth before searching for
19040 circularities.
19041
19042 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
19043
19044 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
19045 only sprintf.
19046
19047 2008-07-21 Kenichi Handa <handa@m17n.org>
19048
19049 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
19050
19051 2008-07-20 Andreas Schwab <schwab@suse.de>
19052
19053 * syntax.c (find_start_pos, find_start_value)
19054 (find_start_value_byte, find_start_begv, find_defun_start)
19055 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
19056
19057 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
19058
19059 * s/sol2-3.h: Insert contents of s/sol2.h.
19060 (LD_SWITCH_SYSTEM): Remove redundant definition.
19061 * s/sol2.h: Remove, unused.
19062
19063 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
19064
19065 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
19066
19067 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
19068
19069 * Makefile.in (ns_appdir): Fix typo in find command.
19070
19071 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
19072
19073 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
19074
19075 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
19076 added not supported anymore.
19077
19078 * s/usg5-4-2.h (LIBS_SYSTEM):
19079 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
19080
19081 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19082 * s/lynxos.h (GETPGRP_NO_ARG):
19083 * s/hpux10-20.h (NO_SIOCTL_H):
19084 * s/gnu.h (GETPGRP_NO_ARG):
19085 * s/gnu-linux.h (NO_SIOCTL_H):
19086 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
19087 * s/cygwin.h (GETPGRP_NO_ARG):
19088 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
19089 (C_DEBUG_SWITCH): Remove duplicate definition.
19090
19091 * m/ibms390.h: Remove boilerplate comments.
19092
19093 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
19094
19095 * process.c (HAVE_SERIAL): Consolidate ifdefs.
19096 (wait_reading_process_output): Remove code for SunOS, platform not
19097 supported anymore. Use SOLARIS2 instead of sun.
19098
19099 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19100
19101 * font.c (font_open_by_name): Under NS, default lface height to zero.
19102 (font_open_for_lface): Under NS, set size based on frame fontsize.
19103 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
19104 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
19105
19106 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19107
19108 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
19109 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
19110 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
19111 YES/NO.
19112 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
19113 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
19114 * Makefile.in (clean): Clear out build destination dir.
19115
19116 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19117
19118 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
19119 xterm, xselect.
19120 * lisp.h: Remove declaration of hash_remove.
19121 * nsgui.h: Remove redefinitions of hash_remove.
19122 * fns.c (hash_remove): Rename to hash_remove_from_table.
19123
19124 2008-07-19 Seiji Zenitani <zenitani@mac.com>
19125
19126 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
19127 strdup() the family UTF8String before modifying it.
19128
19129 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19130
19131 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
19132 NS_FACE_BACKGROUND with 0 instead of nil.
19133 * nsfont.m (nsfont_draw): Same.
19134
19135 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
19136
19137 * nsfns.m (ns_set_background_color): Fix crash.
19138
19139 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
19140
19141 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
19142
19143 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
19144
19145 * puresize.h (BASE_PURESIZE): Increase to 1240000.
19146
19147 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19148
19149 * gtkutil.c: Include <config.h> instead of "config.h".
19150
19151 * lisp.h (Foverlay_buffer): Add EXFUN.
19152
19153 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
19154 child process to complete child_setup. Undo 2005-09-21 change.
19155
19156 * s/darwin.h: Mention setsid after vfork.
19157
19158 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19159
19160 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
19161 Depend on macgui.h.
19162
19163 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
19164 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
19165
19166 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
19167 and f19.
19168 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
19169
19170 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
19171 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
19172 Remove enumerators.
19173
19174 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
19175 Check if FACE_FROM_ID returns NULL.
19176
19177 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
19178
19179 * w32inevt.c (change_frame_size): Remove extern declaration.
19180 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
19181 change_frame_size.
19182
19183 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19184
19185 * getloadavg.c: Revert last change (2008-07-15).
19186
19187 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19188
19189 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
19190 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
19191 from configure.
19192
19193 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
19194
19195 * s/sol2.h:
19196 * s/sol2-4.h: Reorganize conditionals.
19197
19198 * ecrt0.c: Remove code depending on m68000, not used anymore.
19199
19200 * fns.c (hash_remove): Make static.
19201 * lisp.h (hash_remove): Don't prototype.
19202
19203 * m/ibmrs6000.h:
19204 * m/ibms390x.h:
19205 * m/macppc.h: Remove boilerplate comments.
19206
19207 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
19208 Solaris, which does not need them.
19209
19210 * m/vax.h: Remove comments about unsupported systems.
19211
19212 * s/darwin.h: Reorganize ifdefs.
19213
19214 2008-07-17 Andreas Schwab <schwab@suse.de>
19215
19216 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
19217
19218 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19219
19220 Use SDATA. Follow coding convention of placing operators at
19221 beginning of next line rather than end of previous line, and placing
19222 spaces around infix operators.
19223
19224 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
19225 in case it was defined already.
19226 USE @GNUSTEP_MAKEFILES@ rather than envvars.
19227 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
19228 ns_default.
19229 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
19230 Lisp_Objects.
19231 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
19232 (ns_defined_color, ns_color_to_lisp): Declare.
19233 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
19234 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
19235 it's accepted even with USE_LISP_UNION_TYPE.
19236 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
19237 (update_frame_tool_bar): Remove apparently obsolete tests for
19238 non-integerness of f->tool_bar_lines.
19239 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
19240 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
19241 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
19242 (nsfont_open): Don't confuse NULL for Qnil.
19243 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
19244 * menu.h (find_and_call_menu_selection):
19245 * menu.c (find_and_call_menu_selection): Use just int for vector size.
19246 (find_and_return_menu_selection): Always return something.
19247 * frame.h: Include dispextern.h for Display_Info.
19248 (display_x_get_resource): Declare.
19249
19250 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
19251
19252 * syntax.c: Remove stdio.h include accidentally introduced in
19253 Emacs.app commit.
19254 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
19255 NS_IMPL_COCOA.
19256 * keyboard.c (handle_async_input, input_available_signal): Remove
19257 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
19258
19259 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19260
19261 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
19262 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
19263 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
19264 Use SDATA.
19265
19266 * keymap.c: Remove all NS-specific code.
19267 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
19268 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
19269 where_is_preferred_modifier, return a different value depending on how
19270 preferred is the binding.
19271 (where_is_internal): Adjust accordingly.
19272 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
19273 Adjust to new preferred_sequence_p.
19274 (syms_of_keymap): Declare `where-is-preferred-modifier'.
19275 * keyboard.c (parse_solitary_modifier): Not static any more.
19276 * keyboard.h (parse_solitary_modifier): Declare.
19277
19278 2008-07-16 Andreas Schwab <schwab@suse.de>
19279
19280 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
19281 of easymenu.
19282
19283 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
19284
19285 * xdisp.c (move_it_in_display_line): Account for word wrap, so
19286 that we don't move off the line.
19287
19288 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19289
19290 * keyboard.c (Qsuper): Remove.
19291 (parse_menu_item): Don't call where_is_internal specially for NS.
19292
19293 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19294
19295 * s/gnu-linux.h: Remove boilerplate comments.
19296
19297 * m/alpha.h (__ELF__): Consolidate conditions.
19298
19299 * m/m68k.h (linux): Use GNU_LINUX instead.
19300 Remove boilerplate comments.
19301
19302 * m/intel386.h: Undo refactoring from previous change.
19303 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19304 too, remove dead code.
19305 (linux): Use GNU_LINUX instead.
19306
19307 2008-07-16 Jason Rumney <jasonr@gnu.org>
19308
19309 * w32gui.h: Repeat 26 June changes lost by last change.
19310
19311 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19312
19313 * systty.h: Remove code for Aix on 386, unsupported platform.
19314
19315 * s/ms-w32.h: Remove boilerplate comments.
19316 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19317
19318 * s/gnu-linux.h (TERM): Remove support.
19319 (HAVE_SYSVIPC): Remove, unused.
19320 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19321 for this system.
19322
19323 * process.c: Remove support for IRIS, unused.
19324 Remove support for TERM, not relevant anymore.
19325
19326 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19327 used with the definition.
19328
19329 * s/aix4-2.h (static): Do not undef.
19330
19331 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19332 only used on Aix.
19333 (HAVE_SYSVIPC): Remove, unused.
19334
19335 * m/hp800.h (CANNOT_DUMP): Do not undef.
19336
19337 * m/alpha.h: Fix comment.
19338
19339 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19340 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19341 used by this configuration.
19342 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19343 * unexec.c: Remove code depending on HPUX and
19344 USG_SHARED_LIBRARIES, not used with this file. Remove code
19345 depending on IRIS, unused. Remove if 0-ed code.
19346
19347 * s/template.h: Remove comments about static.
19348
19349 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19350 Remove if 0-ed code.
19351 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19352 were the same as the default.
19353 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19354 Remove boilerplate comments.
19355 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19356 (HAVE_SYSVIPC): Remove, unused.
19357 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19358
19359 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19360 Remove boilerplate comments.
19361 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19362 Remove boilerplate comments.
19363 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19364 Remove boilerplate comments.
19365 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19366
19367 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19368 USG systems which do not use DATA_SEG_BITS.
19369 Refactor code. Remove boilerplate comments.
19370
19371 * m/ibms390.h:
19372 * m/m68k.h:
19373 * s/bsd-common.h:
19374 * s/cygwin.h:
19375 * s/darwin.h:
19376 * s/freebsd.h:
19377 * s/gnu.h:
19378 * s/msdos.h: Remove boilerplate comments.
19379
19380 * m/iris4d.h: Remove boilerplate comments and code for systems that
19381 do not use this file.
19382 (IRIS_4D): Remove, unused.
19383
19384 * m/mips.h: Remove boilerplate comments and code for systems that
19385 do not use this file.
19386 (SIGN_EXTEND_CHAR):
19387 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19388 * unexmips.c: Remove file, unused.
19389
19390 * editfns.c (Fuser_full_name): Replace the only use of
19391 USER_FULL_NAME with its value.
19392 * config.in: Regenerate.
19393
19394 2008-07-16 David Reitter <david.reitter@gmail.com>
19395
19396 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19397 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19398
19399 2008-07-16 Glenn Morris <rgm@gnu.org>
19400
19401 * emacs.c (system-type): Doc fix.
19402
19403 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19404
19405 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19406 If the cache doesn't work, let's fix it, rather than work around it.
19407
19408 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19409
19410 * Makefile.in: Correct additions for nsfont.o in last commit.
19411 * nsfont.m: New file (forgot last commit).
19412
19413 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19414
19415 * callproc.c (set_initial_environment):
19416 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
19417 batch-compiling for bootstrap).
19418
19419 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19420 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19421
19422 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19423 CANNOT_DUMP case -- fix crash due to different init order.
19424
19425 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19426
19427 Changes and additions for NeXTstep windowing system (Cocoa and
19428 GNUstep) support.
19429
19430 * Makefile.in:
19431 * config.in: Support defines and build commands for NS port.
19432 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19433 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19434 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19435 windowing.
19436 (struct face): Add synth_ital field.
19437 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19438 (init_display): Initialize Vinitial_window_system to "ns" when so
19439 compiled.
19440 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19441 (display_arg): Use under NS.
19442 (main): Under NS, allocate autorelease pool and handle command line
19443 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19444 (standard_args): Add NS-specific args.
19445 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19446 * font.c (DEFAULT_ENCODING): New variable.
19447 (font_find_for_lface): Use it.
19448 (syms_of_font): Load syms_of_nsfont under NS.
19449 * font.h: Declare nsfont_driver when compiled under NS.
19450 * fontset.c: When compiling under NS, include nsterm.h.
19451 (fontset_from_font): Autoconstruct fontset under NS.
19452 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19453 symbol, document and use it.
19454 (do_switch_frame): When for_deletion under Cocoa, add
19455 Fraise_frame(Qnil).
19456 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19457 (x_get_arg): Allow "yes" and "no" as boolean values.
19458 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19459 Qright under Cocoa.
19460 (focus-follows-mouse): Default to 0 under NS.
19461 * frame.h (enum output_method): Add output_ns.
19462 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19463 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19464 (FRAME_WINDOW_P): NS-specific definition.
19465 * fringe.c (max_used_fringe_bitmap): Make public.
19466 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19467 (getloadavg): Use NeXT code under descendant OS's.
19468 * image.c (includes and header section, x_create_bitmap_from_data)
19469 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19470 (image_background_transparent, x_clear_image_1)
19471 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19472 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19473 (x_to_xcolors, x_from_xcolors, x_disable_image)
19474 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19475 other GUIs, including XPM support using code originally written for
19476 Carbon GUI.
19477 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19478 using NS API.
19479 (image_ascent): Use font metrics macros instead of direct struct field
19480 access.
19481 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19482 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19483 Also, handle NS as GTK for menu bar purposes.
19484 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19485 toolkit where they differ.
19486 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19487 use cachelist, still needed under NS.
19488 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19489 (struct widget_value): Define it here for menu.c.
19490 * keymap.c (includes): Include modifier internals.
19491 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19492 NS.
19493 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19494 support for preferring sequences using certain modifiers, specified by
19495 the FIRSTONLY argument.
19496 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19497 under NS GNUstep implementation.
19498 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19499 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19500 * menu.c: Include nsterm.h under NS.
19501 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19502 (free_menubar_widget_tree_value, update_submenu_strings)
19503 (find_and_call_menu_selection): Treat NS as X and NT.
19504 (find_and_return_menu_selection): New function, used for popup menus.
19505 * nsgui.h:
19506 * nsterm.h:
19507 * nsfns.m:
19508 * nsimage.m:
19509 * nsmenu.m:
19510 * nsselect.m:
19511 * nsterm.m: New files.
19512 * process.c (wait_reading_process_output): Under NS, call ns_select()
19513 instead of plain select().
19514 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19515 beginning of buffer.
19516 * sysselect.h (init_process): Rename when compiling under Cocoa to
19517 avoid name conflict.
19518 * termhooks.h (display_info): Add ns_display_info to union.
19519 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19520 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19521 COCOA environment.
19522 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19523 unexec() signature. (Note, this will dump, but the resulting file
19524 crashes; unexosx is used instead; keeping around for reference and
19525 possible aid in getting dump working under GNUstep.)
19526 * w32gui.h (button_type, widget_value): Remove definitions (now in
19527 keyboard.h).
19528 * window.c: Include nsterm.h when compiling under NS.
19529 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19530 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19531 other GUI windowing systems.
19532 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19533 GTK.
19534 (x_consider_frame_title): Under NS, set icon type and frame
19535 modified-state indicator; use ns_set_name_as_filename() when using
19536 formatted title.
19537 (update_window_cursor): Make public when compiling under NS.
19538 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19539 (hourglass_atimer, Vhourglass_delay
19540 * xfaces.c (header section, init_frame_faces, clear_font_table)
19541 (defined_color, unload_color, x_face_list_fonts)
19542 (prepare_face_for_display): Add NS support parallel to other GUIs.
19543 Emulate GCs like other non-X GUIs.
19544 (split_font_name): Don't lowercase font name under NS.
19545 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19546 under NS.
19547 * s/darwin.h: Add support for compilation under NS.
19548
19549 2008-07-15 Jason Rumney <jasonr@gnu.org>
19550
19551 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19552 (w32_show_hourglass): Rename from show_hourglass.
19553 (w32_hide_hourglass): Rename from hide_hourglass.
19554 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19555 (Vhourglass_delay): Declare extern.
19556 (hourglass_started): Remove.
19557
19558 * xdisp.c (Vhourglass_delay): Remove static.
19559 (hourglass_started, start_hourglass, cancel_hourglass):
19560 Don't include these versions on WINDOWSNT.
19561
19562 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19563
19564 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19565 variables (formerly in xfns.c).
19566 (show_hourglass, hide_hourglass): New prototypes (same).
19567 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19568 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19569 in xfns.c).
19570 (syms_of_xdisp): Declare/initialize display-hourglass,
19571 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19572 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19573 formerly in xfns.c.
19574 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19575 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19576 (start_hourglass, cancel_hourglass): Remove.
19577 (show_hourglass, hide_hourglass): Remove prototypes and static
19578 modifiers.
19579 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19580 hourglass_atimer, hourglass_shown_p declaration/initialization.
19581 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19582 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19583 (start_hourglass, cancel_hourglass): Remove.
19584 (show_hourglass, hide_hourglass): Remove prototypes and static
19585 modifiers.
19586 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19587 hourglass_atimer, hourglass_shown_p declaration/initialization.
19588 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19589 (DEFAULT_HOURGLASS_DELAY): Remove.
19590 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19591 hourglass_shown_p declaration/initialization.
19592
19593 2008-07-14 Jason Rumney <jasonr@gnu.org>
19594
19595 * w32fns.c (w32_get_arg): Remove wrapper function.
19596 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19597 directly.
19598 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19599
19600 2008-07-14 Kenichi Handa <handa@m17n.org>
19601
19602 * xfont.c (xfont_open): Add workaround for X's bug.
19603
19604 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19605
19606 * fontset.c: Include <stdio.h> unconditionally.
19607
19608 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
19609
19610 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19611 for filtering.
19612
19613 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19614
19615 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19616
19617 * m/macppc.h:
19618 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19619
19620 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19621 (SPECIAL_EMACS_INT):
19622 * m/ia64.h (SPECIAL_EMACS_INT):
19623 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19624 * s/gnu.h (NLIST_STRUCT):
19625 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19626 * s/gnu-linux.h (LINUX):
19627 * s/msdos.h (HAVE_FACES):
19628 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19629
19630 * systty.h:
19631 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19632 anymore.
19633
19634 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19635
19636 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19637 always defined as int.
19638
19639 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19640 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19641 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19642 * s/freebsd.h (HAVE_WAIT_HEADER):
19643 * s/bsd-common.h (HAVE_UNION_WAIT):
19644 * s/aix4-2.h (HAVE_WAIT_HEADER):
19645 * m/mips.h (HAVE_UNION_WAIT):
19646 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19647 (COFF, static): Do not define, they are undefined later in the file.
19648
19649 * process.c (update_status): Don't use a union.
19650 (status_convert):
19651 (sigchld_handler): Use int instead of WAITTYPE.
19652
19653 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
19654
19655 * indent.c (Fvertical_motion): Restore hscroll before moving to
19656 goal column.
19657
19658 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19659
19660 * lisp.h: Remove left over code.
19661
19662 2008-07-11 Andreas Schwab <schwab@suse.de>
19663
19664 * lisp.h: Fix logic in last change.
19665
19666 * menu.h: New file.
19667 * menu.c: Include it.
19668 * xmenu.c: Likewise.
19669 * Makefile.in: Update dependencies.
19670
19671 2008-07-11 Kenichi Handa <handa@m17n.org>
19672
19673 * fontset.c (fontset_from_font): Cancel the previous change.
19674
19675 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19676
19677 * lisp.h:
19678 * w32heap.c:
19679 * emacs.c:
19680 * alloc.c: Replace all references of NO_UNION_TYPE with
19681 USE_LISP_UNION_TYPE.
19682
19683 * m/xtensa.h (NO_UNION_TYPE):
19684 * m/vax.h (NO_UNION_TYPE):
19685 * m/template.h (NO_UNION_TYPE):
19686 * m/sparc.h (NO_UNION_TYPE):
19687 * m/mips.h (NO_UNION_TYPE):
19688 * m/macppc.h (NO_UNION_TYPE):
19689 * m/m68k.h (NO_UNION_TYPE):
19690 * m/iris4d.h (NO_UNION_TYPE):
19691 * m/intel386.h (NO_UNION_TYPE):
19692 * m/ibms390x.h (NO_UNION_TYPE):
19693 * m/ibms390.h (NO_UNION_TYPE):
19694 * m/ibmrs6000.h (NO_UNION_TYPE):
19695 * m/ia64.h (NO_UNION_TYPE):
19696 * m/hp800.h (NO_UNION_TYPE):
19697 * m/arm.h (NO_UNION_TYPE):
19698 * m/amdx86-64.h (NO_UNION_TYPE):
19699 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19700 defining it the same.
19701
19702 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19703
19704 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19705
19706 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19707
19708 * fileio.c:
19709 * sysdep.c:
19710 * systty.h:
19711 * m/ibmrs6000.h:
19712 * m/iris4d.h:
19713 * s/aix4-2.h:
19714 * s/freebsd.h:
19715 * s/gnu-linux.h:
19716 * s/hpux10-20.h:
19717 * s/hpux11.h:
19718 * s/netbsd.h:
19719 * s/sol2-3.h:
19720 * s/sol2-4.h:
19721 * s/sol2.h:
19722 * s/usg5-4.h:
19723 * s/vms.h: Remove references to unused variables.
19724
19725 2008-07-10 Andreas Schwab <schwab@suse.de>
19726
19727 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19728 pattern before matching the generic family.
19729
19730 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19731
19732 * unexec.c:
19733 * s/vms.h:
19734 * s/usg5-4-2.h:
19735 * s/sol2-5.h:
19736 * s/freebsd.h:
19737 * s/darwin.h: Remove dead code.
19738
19739 * m/template.h:
19740 * m/sparc.h:
19741 * m/mips.h:
19742 * m/m68k.h:
19743 * m/iris4d.h:
19744 * m/intel386.h:
19745 * m/ibms390x.h:
19746 * m/ibms390.h:
19747 * m/ia64.h:
19748 * m/hp800.h:
19749 * m/arm.h:
19750 * m/amdx86-64.h: Remove dead code and references to unused
19751 and compiler defined symbols.
19752
19753 * unexmips.c:
19754 * unexelf.c: Remove references to desupported systems.
19755
19756 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19757
19758 * m/powermac.h: Remove boilerplate comments.
19759 (NO_REMAP): Remove unused definition.
19760
19761 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19762 define them.
19763
19764 2008-07-10 Kenichi Handa <handa@m17n.org>
19765
19766 * xfont.c (xfont_open): Log the reason of failure.
19767
19768 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19769
19770 * fontset.c (fontset_get_font_group):
19771 * font.c (font_check_otf): Specify argument types.
19772
19773 2008-07-09 Kenichi Handa <handa@m17n.org>
19774
19775 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19776 non-ASCII char is found.
19777
19778 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19779 (reorder_font_vector): Change the arg preferred_family to font.
19780 Prefer the spec matching with font.
19781 (fontset_get_font_group): New function.
19782 (fontset_find_font): Change the format of an element of a realized
19783 fontset. Use fontset_get_font_group.
19784 (fontset_font): Try the current fontset, the default fontset, the
19785 fallbacks of the current fontset, and the fallbacks of the default
19786 fontset in this order.
19787 (face_for_char): Delete the shortcut to use the current font.
19788 (fontset_from_font): Don't set fonts for Latin in the fontset.
19789
19790 * font.h (font_make_object, font_match_p): Adjust prototypes.
19791
19792 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19793
19794 * font.c (font_make_object): New arg entity and pixelsize.
19795 (font_check_otf_features, font_check_otf): New functions.
19796 (font_match_p): Check :lang, :script, and :otf properties.
19797
19798 * xfont.c (xfont_open): Adjust it for the change of
19799 font_make_object.
19800 (xfont_text_extents): Fix initial setting of metrics.
19801
19802 * ftfont.c (struct ftfont_info): New member index, delete member
19803 fc_charset_idx. Make the member order compatible with struct
19804 xftfont_info.
19805 (fc_charset_table): Change charset names to registry names.
19806 (ftfont_pattern_entity): Delete the args registry and
19807 fc_charset_idx. Change the value of :font-entity property
19808 to (FONTNAME . INDEX). Always set :registry property to
19809 `iso10646-1'.
19810 (struct ftfont_cache_data): New struct.
19811 (ftfont_lookup_cache): New arg for_face.
19812 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19813 (ftfont_driver): Set the member otf_capability.
19814 (ftfont_get_charset): Adjust it for the change of
19815 fc_charset_table.
19816 (OTF_TAG_SYM): New macro.
19817 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19818 for the change of fc_charset_table.
19819 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19820 ftfont_pattern_entity. Add FC_INDEX to objset.
19821 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19822 and ftfont_pattern_entity.
19823 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19824 font_make_object, struct ftfont_info.
19825 (ftfont_has_char): Use ftfont_get_fc_charset.
19826 (ftfont_otf_features, ftfont_otf_capability): New functions.
19827 (ftfont_shape): Use ftfont_get_otf.
19828 (ftfont_text_extents): Fix initial setting of metrics.
19829
19830 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19831 member order compatible with struct ftfont_info.
19832 (xftfont_open): Add FC_CHARSET to the pattern.
19833 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19834 properties if appropriate.
19835 (xftfont_close): Unlock the face.
19836 (xftfont_anchor_point, xftfont_shape): Delete.
19837 (syms_of_xftfont): Don't set members anchor_point and shape of
19838 xftfont_driver.
19839
19840 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19841 font_make_object.
19842
19843 * w32font.c (w32font_open): Adjust it for the change of
19844 font_make_object.
19845 (w32font_open_internal): Don't set properties of font_object here.
19846
19847 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19848
19849 * macfns.c (x_create_tip_frame):
19850 * w32fns.c (x_create_tip_frame):
19851 * xfns.c (x_create_tip_frame): Pass parameter argument to
19852 face-set-after-frame-default.
19853
19854 * xfaces.c (Finternal_merge_in_global_face): Save merged
19855 attributes for the default face back into the face vector.
19856
19857 2008-07-08 Andreas Schwab <schwab@suse.de>
19858
19859 * fontset.h: Declare fontset_from_font. Don't declare
19860 new_fontset_from_font and fontset_from_font_name.
19861 * xterm.c: Include "fontset.h".
19862 * Makefile.in (xterm.o): Update dependencies.
19863
19864 2008-07-08 Glenn Morris <rgm@gnu.org>
19865
19866 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19867 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19868
19869 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19870
19871 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19872 (x_set_frame_parameters): Don't bind it.
19873
19874 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19875
19876 * w32fns.c (map_w32_filename): Declare extern.
19877
19878 2008-07-07 Jason Rumney <jasonr@gnu.org>
19879
19880 * w32term.c (WS_EX_LAYERED): Define if not already.
19881
19882 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19883
19884 * xfaces.c (set_font_frame_param): Don't try to set the font
19885 parameter if it is still unspecified in the lface.
19886
19887 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19888
19889 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19890 face if it didn't already exist.
19891
19892 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19893
19894 2008-07-05 Andreas Schwab <schwab@suse.de>
19895
19896 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19897
19898 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19899
19900 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19901 word-wrapping.
19902 (IT_DISPLAYING_WHITESPACE): New macro.
19903 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19904 when word-wrapping. Simplify word-wrapping logic. Use correct
19905 pixel positions when saving copies of the iterator.
19906 (display_line): Use proper wrap point if the last character on a
19907 line was preceded by whitespace.
19908
19909 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19910
19911 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19912
19913 2008-07-04 Kenichi Handa <handa@m17n.org>
19914
19915 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19916
19917 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19918
19919 2008-07-02 Jason Rumney <jasonr@gnu.org>
19920
19921 * xfns.c (syms_of_xfns): Only define x-select-font when both
19922 HAVE_FREETYPE and USE_GTK.
19923
19924 * xdisp.c (next_element_from_display_vector): Move assignment out
19925 of if statement.
19926
19927 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19928
19929 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19930
19931 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19932 (syms_of_fileio): Initialize and export them.
19933 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19934
19935 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19936 (Fsystem_move_file_to_trash): New function.
19937 (syms_of_w32fns): Export it to lisp.
19938
19939 2008-07-01 Jason Rumney <jasonr@gnu.org>
19940
19941 * w32font.c (w32font_text_extents): Don't count overhang as part
19942 of width.
19943
19944 2008-06-30 Miles Bader <miles@gnu.org>
19945
19946 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19947 Add `avoid_cursor_p' field.
19948
19949 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19950 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19951 (append_glyph, append_composite_glyph, produce_image_glyph)
19952 (append_stretch_glyph): Initialize avoid_cursor_p.
19953 (get_it_property): Rename from `get_line_height_property'.
19954 (x_produce_glyphs): Use get_it_property.
19955 (handle_line_prefix, push_display_prop): New functions.
19956 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19957 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19958 New variables.
19959 (syms_of_xdisp): Initialize them.
19960
19961 2008-06-30 Kenichi Handa <handa@m17n.org>
19962
19963 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19964 XftDefaultSubstitute (they are called in XftFontMatch).
19965 (xftfont_open): Fix args to ftfont_font_format.
19966
19967 * ftfont.c (fc_charset_table): New member lang.
19968 (ftfont_resolve_generic_family): New arg pattern.
19969 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19970 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19971 (ftfont_open): Fix args to ftfont_font_format.
19972 (ftfont_font_format): New arg filename.
19973
19974 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19975
19976 * xfaces.c (Finternal_merge_in_global_face): If default face was
19977 modified, realize it again. Update the font face attribute.
19978
19979 2008-06-29 Jason Rumney <jasonr@gnu.org>
19980
19981 * w32term.c (x_set_frame_alpha): Fix logic.
19982
19983 2008-06-29 Kenichi Handa <handa@m17n.org>
19984
19985 * fontset.c (Finternal_char_font): Return font-object instead of
19986 font-name.
19987
19988 * composite.c (get_composition_id): Fix the width calculation for TAB.
19989
19990 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19991
19992 * indent.c (Fvertical_motion): Properly handle float column arg.
19993
19994 2008-06-28 Jason Rumney <jasonr@gnu.org>
19995
19996 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19997 (pfnSetLayeredWindowAttributes): New function pointer.
19998 (w32_initialize): Initialize it when supported.
19999 (x_set_frame_alpha): New function.
20000
20001 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
20002 (w32_frame_parm_handlers): Set alpha handler.
20003
20004 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
20005
20006 2008-06-27 Jason Rumney <jasonr@gnu.org>
20007
20008 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
20009 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
20010 (w32_to_x_charset, x_to_w32_charset)
20011 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
20012 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
20013 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
20014 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
20015 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
20016 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
20017 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
20018 (Qw32_charset_unicode): Remove.
20019 (syms_of_w32fns): Update for above changes.
20020
20021 * w32font.c (w32_to_x_charset, x_to_w32_charset)
20022 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
20023 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
20024 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
20025 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
20026 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
20027 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
20028 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
20029 (syms_of_w32font): Update for above changes.
20030
20031 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
20032
20033 * s/usg5-4.h: Fix previous change: keep the correct branch of a
20034 removed #if.
20035 (USG_SHARED_LIBRARIES): Remove duplicate definition.
20036
20037 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
20038 Eli Zaretskii <eliz@gnu.org>
20039
20040 * makefile.w32-in (LOCAL_FLAGS):
20041 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
20042
20043 * sysdep.c (_spawnlp, _getpid):
20044 Declare with explicit _cdecl instead of _CRTAPI1.
20045
20046 * editfns.c (Fget_internal_run_time):
20047 Check for WINDOWSNT with #ifdef, not #if.
20048
20049 2008-06-26 Jason Rumney <jasonr@gnu.org>
20050
20051 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
20052
20053 * w32term.c (x_draw_glyph_string_foreground)
20054 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
20055 Use FONT_HANDLE macro.
20056 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
20057
20058 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20059 (uniscribe_encode_char): Use FONT_HANDLE macro.
20060
20061 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
20062 (w32font_text_extents): Use precast w32_font.
20063 (w32font_close): Free cached metrics.
20064 (w32font_open_internal): Allocate space for name on stack.
20065
20066 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
20067
20068 * xdisp.c (extend_face_to_end_of_line): Fix last change.
20069
20070 2008-06-26 Jason Rumney <jasonr@gnu.org>
20071
20072 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
20073 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
20074
20075 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
20076
20077 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
20078
20079 2008-06-26 Jason Rumney <jasonr@gnu.org>
20080
20081 * w32bdf.c, w32bdf.h: Remove obsolete files.
20082
20083 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
20084
20085 * w32gui.h: Don't include w32bdf.h.
20086 (XCharStruct, enum w32_char_font_type, W32FontStruct):
20087 Remove obsolete font support.
20088
20089 * w32font.h (struct w32font_info): Remove compat_w32_font.
20090 Add hfont member.
20091 (FONT_COMPAT): Remove obsolete macro.
20092
20093 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
20094 (w32font_encode_char, w32font_text_extents): Use new hfont member.
20095 (w32font_open_internal): Remove compat code. Set new hfont member.
20096 (Fx_select_font): Use new hfont member.
20097
20098 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20099 (uniscribe_encode_char): Use new hfont member.
20100
20101 * w32term.c (x_draw_glyph_string_foreground)
20102 (x_draw_composite_glyph_string_foreground): Use new hfont member.
20103 (x_draw_glyph_string): Use metrics in w32font_info.
20104
20105 2008-06-26 Kenichi Handa <handa@m17n.org>
20106
20107 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
20108
20109 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
20110
20111 * unexnext.c:
20112 * m/ews4800.h:
20113 * m/hp9000s300.h:
20114 * m/ibm370aix.h:
20115 * m/mips-siemens.h:
20116 * m/ncr386.h:
20117 * m/next.h:
20118 * m/pmax.h:
20119 * m/powerpcle.h:
20120 * m/tandem-s2.h:
20121 * s/386bsd.h:
20122 * s/bsd386.h:
20123 * s/bsd4-1.h:
20124 * s/bsd4-2.h:
20125 * s/bsdos2-1.h:
20126 * s/bsdos2.h:
20127 * s/bsdos3.h:
20128 * s/bsdos4.h:
20129 * s/nextstep.h:
20130 * s/ultrix4-3.h:
20131 * s/usg5-0.h:
20132 * s/usg5-2-2.h:
20133 * s/usg5-2.h:
20134 * s/usg5-4-3.h:
20135 * s/ux4800.h:
20136 * s/uxpds.h:
20137 * s/uxpv.h: Remove support for obsolete systems.
20138 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
20139 Remove, insert contents in s/hpux10-20.h.
20140 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
20141 Remove, insert contents in s/aix4-2.h.
20142 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
20143 * s/bsd4-3.h: Rename to ...
20144 * s/bsd-common.h: ... this.
20145 * data.c:
20146 * doc.c:
20147 * ecrt0.c:
20148 * emacs.c:
20149 * fileio.c:
20150 * floatfns.c:
20151 * keyboard.c:
20152 * mem-limits.h:
20153 * print.c:
20154 * process.c:
20155 * sysdep.c:
20156 * syssignal.h:
20157 * systty.h:
20158 * syswait.h:
20159 * term.c:
20160 * unexec.c:
20161 * unexelf.c:
20162 * unexhp9k800.c:
20163 * m/hp800.h:
20164 * m/ibmrs6000.h:
20165 * m/mips.h:
20166 * m/vax.h:
20167 * s/darwin.h:
20168 * s/freebsd.h:
20169 * s/gnu.h:
20170 * s/ms-w32.h:
20171 * s/msdos.h:
20172 * s/netbsd.h:
20173 * s/template.h: Remove references to obsolete variables.
20174
20175 * Makefile.in: Add dependencies for all unexec files.
20176 (admindir): Remove unused variable.
20177 (UNEXEC_SRC): Remove references.
20178
20179 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
20180
20181 * xfns.c (x_default_font_parameter): If Xft is available, first
20182 try Monospace-12 for the default font.
20183
20184 2008-06-25 Jason Rumney <jasonr@gnu.org>
20185
20186 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
20187
20188 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
20189
20190 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
20191
20192 * buffer.c (syms_of_buffer): Remove default-word-wrap.
20193
20194 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
20195
20196 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
20197 <scroll-conservatively>: Fix typo in docstring.
20198
20199 * xselect.c (Fx_send_client_event): Doc fix.
20200
20201 2008-06-25 Kenichi Handa <handa@m17n.org>
20202
20203 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
20204
20205 * font.c (font_parse_fcname): Remove unused variables.
20206 (font_sort_entites): Delete the arg SPEC. Caller changed.
20207 Fix for the case of ! best_only.
20208 (font_delete_unmatched): Check DPI and AVGWIDTH too.
20209
20210 * lisp.h (Fstring_to_unibyte): EXFUN it.
20211
20212 * character.h (str_to_unibyte): Extern it.
20213
20214 * character.c (str_to_unibyte): New function.
20215
20216 * fns.c (Fstring_to_unibyte): New function.
20217 (syms_of_fns): Defsubr it.
20218
20219 2008-06-24 Kenichi Handa <handa@m17n.org>
20220
20221 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
20222 DPI too.
20223 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
20224
20225 2008-06-24 Andreas Schwab <schwab@suse.de>
20226
20227 * Makefile.in (${lispsource}loaddefs.el): Rename from
20228 ../lisp/loaddefs.el.
20229 (bootstrap-clean): Do what distclean does but don't remove
20230 Makefile.
20231 (distclean): Depend on bootstrap-clean and remove Makefile.
20232
20233 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
20234
20235 * buffer.h (struct buffer): New member word_wrap.
20236
20237 * buffer.c (syms_of_buffer): New variables default-word-wrap and
20238 word-wrap.
20239 (init_buffer_once): Initialize them.
20240
20241 * dispextern.h (struct it): Replace bool truncate_lines_p with a
20242 line_wrap enum possessing three possible values.
20243
20244 * termopts.h: Replace truncate_partial_width_windows with
20245 Vtruncate_partial_width_windows.
20246
20247 * dispnew.c (direct_output_for_insert): Avoid direct output when
20248 inserting a space with word wrap on.
20249
20250 * indent.c (compute_motion): Obey integer values of
20251 truncate-partial-width-windows.
20252
20253 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
20254 replacing truncate_partial_width_windows.
20255 (init_iterator): If Vtruncate_partial_width_windows is an integer,
20256 truncate only if the window width is below that integer.
20257 (start_display, resize_mini_window, produce_stretch_glyph)
20258 (display_string, move_it_in_display_line_to): Use line_wrap.
20259 (back_to_previous_visible_line_start, reseat_1):
20260 Reset string_from_display_prop_p.
20261 (display_line): Extend default face to end of line when wrapping.
20262
20263 2008-06-24 Kim F. Storm <storm@cua.dk>
20264
20265 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
20266 to wrap continued lines at word boundaries.
20267
20268 2008-06-24 Jason Rumney <jasonr@gnu.org>
20269
20270 * font.c (Ffont_face_attributes): Multiply pixel size before point
20271 conversion to avoid multiplying rounding error.
20272
20273 2008-06-23 Jason Rumney <jasonr@gnu.org>
20274
20275 * w32term.c (x_draw_glyph_string_background)
20276 (x_draw_glyph_string): Remove old bdf font code.
20277
20278 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
20279
20280 2008-06-22 Kenichi Handa <handa@m17n.org>
20281
20282 * font.c (font_find_for_lface): Try the adstyle specified in
20283 the property of LFACE_FONT of LFACE (if any).
20284
20285 2008-06-21 Seiji Zenitani <zenitani@mac.com>
20286 Ryo Yoshitake <ryo@shiftmode.net>
20287
20288 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
20289
20290 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
20291
20292 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
20293 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
20294 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
20295 (witness-emacs): Remove.
20296 (lisp, shortlisp): Move loaddefs.el earlier.
20297 (mostlyclean): Forget about witness-emacs.
20298
20299 2008-06-22 Glenn Morris <rgm@gnu.org>
20300
20301 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20302 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20303
20304 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20305
20306 * Makefile.in (PRECOMP): Remove.
20307 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20308 (witness-emacs): Run `compile-first'.
20309 (.el.elc): Use the new compile-onefile target.
20310
20311 2008-06-21 Kenichi Handa <handa@m17n.org>
20312
20313 * xftfont.c (xftfont_open): Handle QCembolden only when
20314 FC_EMBOLDEN is defined.
20315
20316 2008-06-21 Andreas Schwab <schwab@suse.de>
20317
20318 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20319 (.el.elc): Likewise.
20320
20321 2008-06-21 Miles Bader <miles@gnu.org>
20322
20323 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20324 build dir, not the lisp source dir.
20325
20326 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20327
20328 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20329 (bootstrapclean): Remove.
20330 (.el.elc): New rule.
20331 (PRECOMP): New var.
20332 (../lisp/subdirs.el): Remove.
20333 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20334 (witness-emacs): New target.
20335 (mostlyclean): Remove witness-emacs as well.
20336 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20337 Add witness-emacs dependency.
20338
20339 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
20340
20341 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20342 defined by the font.
20343
20344 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20345
20346 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20347 (bootstrap-clean): New target that keeps TAGS around.
20348 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20349 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20350
20351 2008-06-20 Jason Rumney <jasonr@gnu.org>
20352
20353 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20354 Remove obsolete font code.
20355
20356 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20357 to determine language support.
20358
20359 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20360
20361 * sysdep.c (cfsetspeed): New fun extracted from the code.
20362 (cfmakeraw): Move before first use.
20363
20364 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20365
20366 * sysdep.c (cfmakeraw): Provide fallback implementation.
20367 (serial_configure): Provide fallback implementation of cfsetspeed.
20368
20369 2008-06-20 Kenichi Handa <handa@m17n.org>
20370
20371 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20372 the pattern.
20373
20374 * fontset.c (fontset_from_font): Copy font_spec before changing
20375 the elements.
20376
20377 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20378
20379 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20380
20381 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20382 for explicit `font' parameters.
20383
20384 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20385
20386 2008-06-19 Kenichi Handa <handa@m17n.org>
20387
20388 * frame.c: Include <ctype.h>.
20389 (x_set_font_backend): Allow spacing characters in the X resource
20390 for FontBackend.
20391
20392 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20393
20394 * w32fns.c, xfns.c (Qfont_param): New var.
20395 (syms_of_w32fns): Initialize it.
20396 (x_default_font_parameter): Record explicit `font' into
20397 `font-parameter'.
20398
20399 2008-06-18 Kenichi Handa <handa@m17n.org>
20400
20401 * font.c (font_parse_xlfd): Fix previous change.
20402 (font_parse_fcname): Don't use :fc-unknown-spec.
20403 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20404 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20405 (font_add_log): Prepend the driver name to the resulting fonts.
20406
20407 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20408 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20409 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20410
20411 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20412 (QCembolden): New variables.
20413 (syms_of_xftfont): DEFSYM them.
20414 (xftfont_open): Call XftFontMatch. Don't trust the result of
20415 XftTextExtents8 if the pixel_size is less than 5.
20416
20417 2008-06-18 Andreas Schwab <schwab@suse.de>
20418
20419 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20420 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20421
20422 2008-06-18 Jason Rumney <jasonr@gnu.org>
20423
20424 * w32font.c (w32font_list, w32font_match): Add logging.
20425
20426 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20427
20428 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
20429
20430 * font.c (font_parse_fcname): Store divider characters for
20431 unknown-spec list. For known key symbols, intern using correct
20432 symbol name.
20433
20434 2008-06-17 Kenichi Handa <handa@m17n.org>
20435
20436 * xfaces.c (realize_default_face): If the frame is not on window
20437 system, set the fontset of face to nil.
20438
20439 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20440
20441 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20442
20443 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20444
20445 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20446 (build_font_name_from_vector): Delete externs.
20447
20448 * xfaces.c (struct font_name): Don't declare.
20449
20450 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20451
20452 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20453
20454 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20455
20456 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20457
20458 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20459
20460 * font.c (Ffont_spec): Fix usage in docstring.
20461 (Ffont_face_attributes): Doc fix.
20462
20463 2008-06-16 Andreas Schwab <schwab@suse.de>
20464
20465 * font.c (Ffont_face_attributes): Fix definition.
20466
20467 2008-06-16 Jason Rumney <jasonr@gnu.org>
20468
20469 * font.h (font_style_symbolic_from_value): Remove.
20470
20471 * font.c (font_style_symbolic_from_value): Remove.
20472 (font_style_symbolic): Revert to pre 2008-06-13 version.
20473
20474 * w32font.c (w32_to_fc_weight): New function.
20475 (w32font_full_name, logfont_to_fcname): Use it.
20476
20477 2008-06-16 Kenichi Handa <handa@m17n.org>
20478
20479 * font.c (font_check_object): Delete it.
20480 (font_clear_cache): Check if a font-object is alive.
20481 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20482 font-object to nil.
20483 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20484 (font_at): Don't call font_check_object.
20485 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20486
20487 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20488
20489 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20490
20491 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20492
20493 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20494
20495 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
20496
20497 * font.c (font_parse_fcname): Only one decimal point.
20498 (font_unparse_fcname): Handle data in family and foundry indices
20499 as symbols, not strings.
20500 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20501
20502 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20503
20504 * font.h (font_unparse_gtkname): Add prototype.
20505
20506 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20507
20508 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20509
20510 2008-06-15 Andreas Schwab <schwab@suse.de>
20511
20512 * font.c (font_update_drivers): Fix crash when no drivers match.
20513
20514 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20515
20516 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20517 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20518
20519 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20520
20521 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20522
20523 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20524
20525 * process.c (Fserial_process_configure, Fprocess_send_eof):
20526 Use EQ to compare Lisp_Objects.
20527
20528 2008-06-13 Jason Rumney <jasonr@gnu.org>
20529
20530 * w32fns.c (Fw32_select_font): Remove old font API function.
20531
20532 * w32font.c (logfont_to_fcname): New function.
20533 (Fx_select_font): New font dialog function compatible with
20534 GTK/fontconfig version.
20535
20536 * font.c (font_style_symbolic_from_value): New function.
20537 (font_style_symbolic): Use it.
20538
20539 * font.h (font_style_symbolic_from_value): Declare new function.
20540
20541 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
20542
20543 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20544 <font-width-table>: Fix typos in docstrings.
20545
20546 2008-06-13 Daniel Engeler <engeler@gmail.com>
20547
20548 These changes add serial port access.
20549 * process.c: Add HAVE_SERIAL.
20550 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20551 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20552 (list_processes_1, select_wrapper, Fstop_process)
20553 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20554 (status_notify): Modify to handle serial processes.
20555 [HAVE_SERIAL] (Fserial_process_configure)
20556 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20557 New functions.
20558 * process.h (struct Lisp_Process): Add `type'.
20559 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20560 New functions.
20561 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20562 serial ports.
20563 (serial_open, serial_configure): New functions.
20564 * w32.h: Add FILE_SERIAL.
20565 (struct _child_process): Add ovl_read, ovl_write.
20566
20567 2008-06-13 Kenichi Handa <handa@m17n.org>
20568
20569 * dispextern.h (enum lface_attribute_index): New member
20570 LFACE_FOUNDRY_INDEX.
20571
20572 * font.c (font_score): Delete arg alternate_families. Check only
20573 weight, slant, width, and size. Ignore the difference of alias
20574 style symbols.
20575 (font_sort_entites): Adjust for the above change. Reflect the
20576 order of font-driver to scores.
20577 (font_list_entities): Don't check alternate_familes here.
20578 (font_clear_prop): Handle foundry.
20579 (font_update_lface): Don't parse "foundry-family" form here.
20580 Handle FONT_FOUNDRY_INDEX.
20581 (font_find_for_lface): Likewise. Handle alternate families here.
20582 If registry is nil, try iso8859-1 and ascii-0.
20583 (font_open_for_lface): Pay attention to size in ENTITY.
20584 (font_open_by_name): Simplify by calling font_load_for_lface.
20585 (free_font_driver_list): Delete it.
20586 (font_update_drivers): Preserve the order of backends.
20587 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20588 of font_score and font_sort_entites.
20589 (font_update_sort_order): Likewise.
20590
20591 * xfaces.c (LFACE_FOUNDRY): New macro.
20592 (check_lface_attrs): Check foundry.
20593 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20594 (merge_face_vectors): Check foundry.
20595 (merge_face_ref): Likewise.
20596 (Finternal_set_lisp_face_attribute): Likewise.
20597 (x_update_menu_appearance): Likewise.
20598 (Finternal_get_lisp_face_attribute): Likewise.
20599 (lface_hash): Likewise.
20600 (lface_same_font_attributes_p): Likewise.
20601 (x_supports_face_attributes_p): Likewise.
20602 (tty_supports_face_attributes_p): Likewise.
20603 (Finternal_set_alternative_font_family_alist): Intern strings.
20604 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20605 (realize_default_face): Set LFACE_FOUNDRY (lface).
20606
20607 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20608 font-driver at first.
20609
20610 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20611
20612 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20613
20614 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20615
20616 2008-06-12 Jim Meyering <meyering@redhat.com>
20617
20618 Make unexec_free handle NULL the same way free does.
20619 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20620
20621 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20622
20623 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20624 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20625 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20626 (WEAK_ALIAS): Simplify.
20627 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20628 when searching a unibyte buffer.
20629
20630 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
20631
20632 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20633
20634 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
20635
20636 * w32font.c: Include ctype.h.
20637
20638 2008-06-11 Jason Rumney <jasonr@gnu.org>
20639
20640 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20641 misreported as space.
20642 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20643 as aliases for registry iso10646-1.
20644
20645 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20646
20647 * buffer.c (clone_per_buffer_values): Skip `name'.
20648
20649 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
20650
20651 * font.c (font_parse_fcname): Fix last change; accept decimal
20652 points in font size.
20653
20654 2008-06-10 Jason Rumney <jasonr@gnu.org>
20655
20656 * w32uniscribe.c (add_opentype_font_name_to_list):
20657 Skip non unicode fonts.
20658
20659 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20660
20661 * xfns.c (Fx_font_dialog): New function.
20662
20663 * gtkutil.c (xg_dialog_response_cb): Rename from
20664 xg_file_response_callback.
20665 (pop_down_dialog): Rename from pop_down_file_dialog.
20666 (xg_get_file_name): Callers changed.
20667 (xg_get_font_name): New function.
20668
20669 * gtkutil.h (xg_get_font_name): Insert prototype.
20670
20671 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20672
20673 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20674 x_underline_minimum_display_offset.
20675 (syms_of_xdisp): Declare it here rather than in xterm.c.
20676 * dispextern.h (underline_minimum_offset): Declare it.
20677 * w32term.c (x_draw_glyph_string): Use it.
20678 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20679 (syms_of_xterm): Don't declare it any more.
20680 (x_draw_glyph_string): Adjust to the new name.
20681
20682 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
20683
20684 * xterm.c (x_underline_minimum_display_offset): New var.
20685 (x_draw_glyph_string): Use it.
20686 (syms_of_xterm): Declare it.
20687
20688 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20689
20690 * font.c (font_parse_fcname): Accept GTK-style font names too.
20691
20692 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20693
20694 * dired.c (file_name_completion): Don't return t if the match is exact
20695 but with different capitalization.
20696 * minibuf.c (Ftry_completion): Simplify.
20697
20698 * window.c (Vwindow_point_insertion_type): New var.
20699 (set_window_buffer): Use it.
20700 (syms_of_window): Init and export it to Lisp.
20701
20702 2008-06-10 Kenichi Handa <handa@m17n.org>
20703
20704 * font.h (font_intern_prop): Prototype adjusted.
20705
20706 * font.c (font_intern_prop): New arg force_symbol.
20707 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20708 Adjust for the change of font_intern_prop.
20709
20710 * ftfont.c (ftfont_pattern_entity):
20711 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20712 (w32_registry):
20713 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20714 the change of font_intern_prop.
20715
20716 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20717
20718 * w32menu.c (digest_single_submenu): Declare extern.
20719
20720 2008-06-09 Jason Rumney <jasonr@gnu.org>
20721
20722 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20723
20724 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20725 (parse_single_submenu): Remove.
20726 (digest_single_submenu): Remove.
20727 (syms_of_w32menu): Don't initialise variables that have moved
20728 to menu.c.
20729 (set_frame_menubar): Sync with version in xmenu.c.
20730 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20731
20732 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20733 Make static again.
20734
20735 2008-06-09 Jason Rumney <jasonr@gnu.org>
20736
20737 Changes to w32 files related to the move of common menu code
20738 to menu.c on 2008-06-08 by Chong Yidong.
20739
20740 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20741 defs to w32gui.h.
20742 (single_keymap_panes, push_menu_item, push_menu_pane):
20743 Make globally visible.
20744
20745 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20746 (local_free, malloc_widget_value, free_widget_value)
20747 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20748 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20749 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20750 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20751 (menu_items, menu_items_allocated, menu_items_used)
20752 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20753 (init_menu_items, finish_menu_items, discard_menu_items)
20754 (grow_menu_items, push_submenu_start, push_submenu_end)
20755 (push_left_right_boundary, push_menu_pane, push_menu_item)
20756 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20757 (free_menubar_widget_tree_value, parse_single_submenu)
20758 (update_submenu_strings): Remove functions.
20759 (xmalloc_widget_value): Remove and declare extern.
20760
20761 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20762 (OBJ1): Build it.
20763
20764 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20765 (local_heap, local_alloc, local_free, malloc_widget_value)
20766 (free_widget_value): Define here.
20767
20768 2008-06-09 Kenichi Handa <handa@m17n.org>
20769
20770 * font.h (Qascii_0): Extern it.
20771
20772 * font.c (Qascii_0): New variable.
20773 (syms_of_font): DEFSYM it.
20774 (font_open_by_name): If the registry "iso8859-1" fails, try also
20775 "ascii-0".
20776
20777 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20778
20779 2008-06-08 Kenichi Handa <handa@m17n.org>
20780
20781 * .gdbinit (xfont): New command.
20782
20783 2008-06-08 Andreas Schwab <schwab@suse.de>
20784
20785 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20786 * Makefile.in (menu.o): Update dependencies.
20787
20788 * Makefile.in (obj): Always add menu.o.
20789 * emacs.c (main): Always call syms_of_menu.
20790 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20791
20792 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20793
20794 * Makefile.in: Compile menu.c.
20795
20796 * lisp.h: Declare syms_of_menu.
20797
20798 * emacs.c (main): Call syms_of_menu.
20799
20800 * keyboard.h: Relocate platform-independent menu definitions from
20801 xmenu.c.
20802
20803 * menu.c: New file. Relocate platform-independent menu
20804 definitions from xmenu.c. Suggested by Adrian Robert.
20805
20806 * xmenu.c: Remove platform-independent menu definitions.
20807 (menu_items, menu_items_inuse, menu_items_allocated)
20808 (menu_items_used, menu_items_n_panes)
20809 (menu_items_submenu_depth): Move to keyboard.h.
20810 (init_menu_items, finish_menu_items, unuse_menu_items)
20811 (discard_menu_items, restore_menu_items, save_menu_items)
20812 (grow_menu_items, push_submenu_start, push_submenu_end)
20813 (push_left_right_boundary, push_menu_pane, push_menu_item)
20814 (keymap_panes, single_keymap_panes, single_menu_item)
20815 (list_of_panes, list_of_items, find_and_call_menu_selection)
20816 (xmalloc_widget_value, free_menubar_widget_value_tree)
20817 (parse_single_submenu, digest_single_submenu)
20818 (update_submenu_strings): Move to menu.c.
20819
20820 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20821
20822 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20823
20824 2008-06-06 Miles Bader <miles@gnu.org>
20825
20826 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20827 face, not frame default.
20828
20829 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20830
20831 * window.c (pop_up_windows, pop_up_frames)
20832 (display_buffer_reuse_frames, Vpop_up_frame_function)
20833 (Vdisplay_buffer_function, Veven_window_heights)
20834 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20835 (Vspecial_display_function, Vsame_window_buffer_names)
20836 (Vsame_window_regexps, split_height_threshold)
20837 (Vsplit_window_preferred_function): Move those vars to window.el.
20838 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20839 (Fdisplay_buffer): Move those functions to window.el.
20840 (syms_of_window): Remove corresponding declarations.
20841 (display_buffer): New function.
20842 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20843 * dispnew.c (Flast_nonminibuf_frame): New function.
20844 * buffer.c (Fpop_to_buffer): Move to window.el.
20845
20846 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20847
20848 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20849
20850 2008-06-05 Kenichi Handa <handa@m17n.org>
20851
20852 * coding.c (detect_coding): Fix previous change.
20853 (detect_coding_system): Likewise.
20854
20855 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20856
20857 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20858
20859 * keymap.c (Vminibuffer_local_filename_must_match_map):
20860 Rename from Vminibuffer_local_must_match_filename_map.
20861 (syms_of_keymap):
20862 * minibuf.c (Fcompleting_read): Adjust accordingly.
20863 * commands.h: Rename declaration as well.
20864
20865 2008-06-05 Kenichi Handa <handa@m17n.org>
20866
20867 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20868 family name.
20869 (Ffont_put): Likewise.
20870
20871 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20872 current font-spec.
20873
20874 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20875 is unspecified.
20876
20877 * xfaces.c (realize_x_face): If the font-related face attributes
20878 are the same as those of default face, realize a new fontset from
20879 default->fontset.
20880 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20881
20882 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20883
20884 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20885 (move_it_in_display_line): New wrapper.
20886
20887 * window.c (window_scroll_pixel_based_preserve_x)
20888 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20889 (window_scroll_pixel_based, window_scroll_line_based):
20890 Use them to preserve column positions.
20891 (syms_of_window): Initialize them.
20892
20893 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20894 (HPOS . VPOS) pair.
20895
20896 * dispextern.h (move_it_in_display_line): Declare.
20897
20898 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20899
20900 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20901 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20902 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20903
20904 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20905
20906 * window.c (Fset_window_parameter): Doc fix.
20907 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20908
20909 2008-06-04 Joakim Verona <joakim@verona.se>
20910
20911 * window.h (struct window): Add new member window_parameters.
20912
20913 * window.c (Fwindow_parameters, Fwindow_parameter)
20914 (Fset_window_parameter): New defuns.
20915 (syms_of_window): Defsubr the new defuns.
20916 (make_window): Initialize window_parameters to nil.
20917
20918 2008-06-04 John Paul Wallington <jpw@pobox.com>
20919
20920 * eval.c (Fdefmacro): Doc fix.
20921
20922 2008-06-04 Kenichi Handa <handa@m17n.org>
20923
20924 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20925 Be sure to call setup_coding_system when we find a proper coding system.
20926 (detect_coding_system): Fix handling of coding->head_ascii.
20927
20928 2008-06-03 Andreas Schwab <schwab@suse.de>
20929
20930 * font.c (font_prop_validate_spacing): Fix last change.
20931
20932 2008-06-03 Kenichi Handa <handa@m17n.org>
20933
20934 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20935 (font_parse_fcname): Fix handling of unknown key.
20936
20937 * xfont.c (xfont_list): Try an alias.
20938
20939 * charset.c (char_charset): Return NULL if the arg charset_list is
20940 specified and C doesn't belong to any of them.
20941
20942 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20943
20944 * font.c (font_pixel_size): Don't take cdr of an integer.
20945
20946 2008-06-02 Jim Meyering <meyering@redhat.com>
20947
20948 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20949 * alloc.c (xfree): Return right away for a NULL arg.
20950 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20951 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20952 * mac.c (create_apple_event_from_event_ref): Likewise.
20953 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20954 Likewise.
20955 * doprnt.c (doprnt1): Likewise.
20956 * frame.c (frame): Likewise.
20957 * keyboard.c (wipe_kboard): Likewise.
20958 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20959 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20960 * term.c (tty_default_color_capabilities, maybe_fatal)
20961 (delete_tty): Likewise.
20962 * w16select.c (string): Likewise.
20963 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20964 * w32bdf.c (w32_free_bdf_font): Likewise.
20965 * w32fns.c (w32_unload_font): Likewise.
20966 * w32font.c (w32font_close): Likewise.
20967 * window.c (size_window): Likewise.
20968 * xselect.c (receive_incremental_selection): Likewise.
20969 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20970 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20971 * w32.c (stat): Likewise.
20972
20973 Remove useless if-before-free tests.
20974 * editfns.c (Fset_time_zone_rule): Likewise.
20975 * lread.c (nosuffix): Likewise.
20976 * ralloc.c (get_bloc): Likewise.
20977 * regex.c (reg_free): Likewise.
20978 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20979 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20980 * xsmfns.c (smc_save_yourself_CB): Likewise.
20981
20982 2008-06-02 Kenichi Handa <handa@m17n.org>
20983
20984 * font.c (font_find_for_lface): Handle float font size.
20985 (font_open_for_lface): Likewise.
20986
20987 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20988 comparing the properties.
20989
20990 2008-06-01 Jason Rumney <jasonr@gnu.org>
20991
20992 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20993 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20994 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20995 Don't add empty script list.
20996 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20997
20998 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20999
21000 * Makefile.in (dot, dotdot): Remove, update users.
21001 ".." has been used elsewhere in the file for a long time.
21002 (LIBXT_STATIC): Remove conditional based on unused variable.
21003
21004 2008-06-01 Miles Bader <miles@gnu.org>
21005
21006 * xfaces.c (Vface_remapping_alist): New variable.
21007 (syms_of_xfaces): Initialize it.
21008 (enum named_merge_point_kind): New type.
21009 (struct named_merge_point): Add `named_merge_point_kind' field.
21010 (push_named_merge_point): Make cycle detection respect different
21011 named-merge-point kinds.
21012 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
21013 Remove face-name alias resolution.
21014 (lface_from_face_name): New definition using
21015 `lface_from_face_name_no_resolve'.
21016 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
21017 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
21018 (get_lface_attributes): New definition that layers face-remapping on
21019 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
21020 (lookup_basic_face): New function.
21021 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
21022 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
21023 `get_lface_attributes'.
21024 (face_at_buffer_position): Use `lookup_basic_face' to lookup
21025 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
21026 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
21027
21028 * xdisp.c (init_iterator): Pass base_face_id through
21029 `lookup_basic_face' when we actually use it as a face-id.
21030 (handle_single_display_prop): Use `lookup_basic_face' to lookup
21031 DEFAULT_FACE_ID.
21032
21033 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
21034 lookup the initial face-id.
21035
21036 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
21037
21038 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
21039
21040 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
21041 (Fremove_text_properties): Fix typos in docstrings.
21042
21043 2008-05-31 Kenichi Handa <handa@m17n.org>
21044
21045 * font.c (font_list_entities): Fix the car part of data to be
21046 stored in the cache.
21047
21048 * ftfont.c (ftfont_font_format): Don't use strcasestr.
21049
21050 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
21051
21052 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
21053 Add a `test' argument so another predicate than `equal' can be used.
21054 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
21055 (map_char_table): Remove unused vars `c' and `i'.
21056 * lisp.h (Foptimize_char_table): Adjust declaration.
21057 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
21058
21059 2008-05-30 Kenichi Handa <handa@m17n.org>
21060
21061 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
21062 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
21063 defined.
21064
21065 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
21066
21067 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21068 (Fmake_variable_frame_local): Disallow mixing buffer-local and
21069 frame-local settings for the same variable.
21070
21071 2008-05-30 Kenichi Handa <handa@m17n.org>
21072
21073 * fontset.c (Ffont_info): Move to font.c.
21074 (syms_of_fontset): Delete defsubr of Sfont_info.
21075
21076 * font.c (font_style_to_value, font_score): Delete casting of the
21077 args to xstcasecmp.
21078 (register_font_driver): Increment num_font_drivers only when
21079 registering the driver globally.
21080 (Ffont_info): Move from fontset.c. Handle a font object too.
21081 (syms_of_font): Defsubr Sfont_info.
21082
21083 2008-05-29 Kenichi Handa <handa@m17n.org>
21084
21085 * coding.h (enum define_coding_utf8_arg_index): New enum.
21086 (enum coding_attr_index): Change coding_attr_utf_16_bom to
21087 coding_attr_utf_bom.
21088 (enum utf_bom_type): Rename from utf_16_bom_type.
21089 (struct utf_16_spec): Adjust for the above change.
21090 (struct coding_system): Add utf_8_bom in `spec' union.
21091
21092 * coding.c (CODING_UTF_8_BOM): New macro.
21093 (enum coding_category): Delete coding_category_utf_8, add
21094 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
21095 coding_category_utf_8_sig.
21096 (CATEGORY_MASK_UTF_8): Delete it.
21097 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
21098 (CATEGORY_MASK_UTF_8_SIG): New macros.
21099 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
21100 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
21101 CATEGORY_MASK_UTF_8_SIG.
21102 (CATEGORY_MASK_UTF_8): New macro.
21103 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
21104 (detect_coding_utf_8): Check BOM.
21105 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
21106 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
21107 (encode_coding_utf_16): Likewise.
21108 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
21109 (detect_coding, detect_coding_system): Handle utf-8-auto.
21110 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
21111 (syms_of_coding): Fix setting up of Vcoding_category_table.
21112
21113 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
21114
21115 * process.c (Faccept_process_output): If `millisec' is non-nil,
21116 `seconds' default to 0.
21117 (wait_reading_process_output): Also return non-nil if we read output
21118 from a non-running process.
21119
21120 2008-05-29 Jason Rumney <jasonr@gnu.org>
21121
21122 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
21123 `raster' specified.
21124 (add_font_entity_to_list): Allow non-opentype truetype fonts back
21125 in the uniscribe backend, but disallow any font that has no
21126 unicode subrange support.
21127
21128 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
21129
21130 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
21131 Fix typos in docstrings.
21132
21133 2008-05-29 Kenichi Handa <handa@m17n.org>
21134
21135 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
21136 (Fx_family_fonts): Set frame correctly.
21137
21138 2008-05-28 Jason Rumney <jasonr@gnu.org>
21139
21140 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
21141
21142 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
21143
21144 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
21145 calling build_annotations.
21146
21147 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
21148
21149 * coding.c (Fdecode_coding_region, Fencode_coding_region)
21150 (Fencode_coding_string):
21151 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
21152 <latin-extra-code-table>: Fix typos in docstrings.
21153 (syms_of_coding) <coding-system-alist>: Doc fix.
21154 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
21155
21156 2008-05-28 Kenichi Handa <handa@m17n.org>
21157
21158 * fontset.c (Ffont_info): Don't call font_close_object.
21159
21160 * font.c (font_parse_family_registry): Use Ffont_put to validate
21161 foundry and family.
21162 (font_delete_unmatched): Don't check spacing.
21163 (font_list_entities): Add spacing to the spec to list fonts.
21164
21165 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
21166 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
21167
21168 * coding.c (encode_coding_raw_text): Fix previous change.
21169 (encode_coding_object): When the dst_object is a buffer and is
21170 different from src_object, move gap to PT.
21171
21172 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21173
21174 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
21175
21176 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21177
21178 * coding.c (encode_coding_raw_text): Set coding->produced_char for
21179 all branches. Compute it differently.
21180
21181 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
21182
21183 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
21184
21185 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
21186 into "else if () ... else ...".
21187
21188 2008-05-27 Jason Rumney <jasonr@gnu.org>
21189
21190 * w32font.c (w32font_open_internal): Determine if glyph indices
21191 are likely to work here.
21192
21193 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
21194
21195 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
21196 draw overlap glyphs with appropriate highlighting.
21197
21198 2008-05-27 Kenichi Handa <handa@m17n.org>
21199
21200 * xfont.c (xfont_open): Fix calculation of font->average_width.
21201
21202 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21203
21204 * casefiddle.c (casify_object): Try to guess better whether the
21205 argument is a byte or a char.
21206
21207 2008-05-26 Andreas Schwab <schwab@suse.de>
21208
21209 * xselect.c (x_reply_selection_request): Properly handle format == 32.
21210 Always send multiples of format size.
21211
21212 * xterm.c (x_set_frame_alpha): Fix type mismatch.
21213
21214 2008-05-26 Jason Rumney <jasonr@gnu.org>
21215
21216 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
21217 (compute_metrics): Don't set failure if we just cleared the cache.
21218 (w32_weight_table): Remove unused variable.
21219 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
21220 backwards compatibility.
21221
21222 2008-05-25 Kenichi Handa <handa@m17n.org>
21223
21224 * w32term.c (x_draw_glyph_string):
21225 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
21226
21227 * xfaces.c: Delete unused function prototypes.
21228 (xstrlwr, font_frame): Delete them.
21229 (clear_face_cache): Delete unused variable.
21230
21231 * xftfont.c (xftfont_open): Delete unused variable.
21232 If underline_thickness is not 1, adjust underline_position.
21233
21234 * ftxfont.c (ftxfont_open): Delete unused variable.
21235
21236 * fontset.c (face_for_char): Optimize for the case of no charset
21237 property.
21238
21239 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
21240 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
21241 (otf_open, font_otf_capability, generate_otf_features)
21242 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21243 Comment out by surrounding "#if 0" and "#endif" for the moment.
21244 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
21245 (syms_of_font): Codes for accessing above commented out.
21246
21247 2008-05-24 Eli Zaretskii <eliz@gnu.org>
21248
21249 * w32proc.c: Include dispextern.h.
21250
21251 * w32.c: Include dispextern.h.
21252
21253 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
21254
21255 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
21256 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
21257 Fix typos in docstrings.
21258
21259 2008-05-23 Jason Rumney <jasonr@gnu.org>
21260
21261 * xsmfns.c: Remove includes that are already included by config.h.
21262
21263 2008-05-23 Kenichi Handa <handa@m17n.org>
21264
21265 * charset.c (Qemacs, charset_emacs): New variables.
21266 (char_charset): Fix for non-Unicode characters.
21267 (syms_of_charset): Define charset_emacs.
21268
21269 * w32term.c (x_draw_glyph_string): Be sure to update
21270 s->underline_thickness and s->underline_position. Be sure to draw
21271 underline within the current line area.
21272
21273 * xterm.c (x_draw_glyph_string): Be sure to update
21274 s->underline_thickness and s->underline_position. Be sure to draw
21275 underline within the current line area.
21276
21277 * fontset.c: Delete unused variables and add casting for char *
21278 throughout the file.
21279 (fontset_font): Try the fallback fonts of the current fontset
21280 before consulting the default fontset.
21281
21282 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
21283
21284 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
21285
21286 2008-05-22 Jason Rumney <jasonr@gnu.org>
21287
21288 * font.c: Don't include strings.h.
21289
21290 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
21291
21292 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
21293 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
21294 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
21295 to call xstrcasecmp.
21296
21297 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
21298
21299 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21300
21301 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21302
21303 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21304
21305 2008-05-22 Kenichi Handa <handa@m17n.org>
21306
21307 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21308
21309 * font.c (font_prop_validate_style): Adjust for the format
21310 change of font_style_table.
21311
21312 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21313 two args.
21314
21315 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21316 two args.
21317
21318 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21319
21320 * minibuf.c (keys_of_minibuf): Delete.
21321 * lisp.h (keys_of_minibuf): Delete.
21322 * emacs.c (main): Don't call keys_of_minibuf.
21323
21324 2008-05-22 Kenichi Handa <handa@m17n.org>
21325
21326 * ftfont.c (ftfont_resolve_generic_family): Rename from
21327 ftfont_list_generic_family. Return a single family for each
21328 generic family.
21329 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21330 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21331 Call font_add_log.
21332 (ftfont_match): Call font_add_log.
21333
21334 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21335 (FONT_DEBUG): Define it.
21336 (font_add_log): Extern it.
21337 (font_assert): Rename from xassert.
21338
21339 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21340 (xfont_list_family): Call font_add_log.
21341 (xfont_match): Likewise.
21342 (memq_no_quit): Delete.
21343
21344 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21345 call of Ffont_xlfd_name.
21346
21347 * xfaces.c (struct table_entry, slant_table, weight_table)
21348 (swidth_table): Move to font.c.
21349
21350 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21351 xassert are changed to font_assert. Delete many unused variables.
21352 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21353 New variables.
21354 (struct table_entry): Move from xfaces.c and modified.
21355 (weight_table, slant_table, width_table): Move from xfaces.c and
21356 contents adjusted for the change of struct table_entry.
21357 (font_style_to_value, font_style_symbolic): Adjust for the
21358 format change of font_style_table.
21359 (font_parse_family_registry): Don't overwrite existing foundry and
21360 family of font_spec.
21361 (font_score): Fix calculation of diff for sizes.
21362 (font_sort_entites): Call font_add_log.
21363 (font_delete_unmatched): Return a newly created list.
21364 (font_list_entities): Fix previous change. Call font_add_log.
21365 (font_matching_entity, font_open_entity, font_close_entity):
21366 Call font_add_log.
21367 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21368 (Finternal_set_font_style_table): Delete.
21369 (BUILD_STYLE_TABLE): New macro.
21370 (build_style_table): New function.
21371 (Vfont_log, font_log_env_checked): New variables.
21372 (font_add_log): New function.
21373 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21374 Declare Lisp variables "font-weight-table", "font-slant-table",
21375 "font-width-table", and "font-log". Initialize font_style_table.
21376
21377 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21378
21379 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21380
21381 2008-05-21 Seiji Zenitani <zenitani@mac.com>
21382 Ryo Yoshitake <ryo@shiftmode.net>
21383
21384 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21385 (Vframe_alpha_lower_limit): New variable.
21386 (x_set_alpha): New function.
21387
21388 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21389
21390 * xfns.c (x-create-frame, Qalpha):
21391 Initialize the frame parameter `alpha'.
21392 * xterm.c (OPAQUE, OPACITY): New.
21393 (x_set_frame_alpha): New function.
21394 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21395
21396 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21397 * w32fns.c (w32_frame_parm_handlers): Likewise.
21398
21399 2008-05-20 Jason Rumney <jasonr@gnu.org>
21400
21401 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21402 truetype fonts to opentype list.
21403
21404 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
21405
21406 * fontset.c (Ffontset_info): Doc fix.
21407 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21408 <ignore-relative-composition>: Fix typos in docstrings.
21409
21410 * font.c (syms-of-font) <font-encoding-alist>:
21411 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21412 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21413 (Ffont_otf_alternates): Doc fixes.
21414
21415 2008-05-20 Kenichi Handa <handa@m17n.org>
21416
21417 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21418 font.h through out the file.
21419 (FONT_DRIVERS): Rename from FONTOBJ.
21420 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21421 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21422
21423 * emacs.c (main): Call syms_of_font unconditionally.
21424
21425 * font.h (find_font_encoding): Extern it.
21426
21427 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21428 fontset.c.
21429 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
21430 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21431 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21432 only when HAVE_WINDOW_SYSTEM is defined.
21433 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21434 when HAVE_WINDOW_SYSTEM is defined.
21435
21436 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21437 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21438
21439 * xfaces.c: Include font.h unconditionally.
21440 (merge_face_ref, merge_face_vectors)
21441 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21442
21443 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21444
21445 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21446 indirect_variable.
21447 * eval.c (lisp_indirect_variable): New fun.
21448 (Fuser_variable_p): Use it.
21449
21450 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21451
21452 * lisp.h (indirect_variable):
21453 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21454 Use Lisp_Symbol pointers rather than Lisp_Object.
21455 Adjust callers.
21456 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21457 To this end, change calling-convention.
21458
21459 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21460 if some non-hidden buffers are selected by string&pred.
21461
21462 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
21463
21464 * process.c (wait_reading_process_output): Always check status
21465 when in batch mode.
21466
21467 2008-05-19 Kenichi Handa <handa@m17n.org>
21468
21469 * font.c (font_list_entities): Fix handling of cache.
21470 (font_matching_entity): Likewise.
21471
21472 * ftfont.c (cs_iso8859_1): Delete.
21473 (ft_face_cache): New variable.
21474 (struct ftfont_info): New member fc_charset_idx.
21475 (ftfont_build_basic_charsets): Delete.
21476 (fc_charset_table): New variable.
21477 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21478 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21479 Callers changed.
21480 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21481 (ftfont_spec_pattern): New argument fc_charset_idx.
21482 Check registry more rigidly. Change callers.
21483 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21484 change of :font-entity property of the font.
21485
21486 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21487 property of the font.
21488
21489 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
21490
21491 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21492 (Funencodable_char_position, Fcheck_coding_systems_region)
21493 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21494 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21495 (Ffind_operation_coding_system, Fset_coding_system_priority)
21496 (Fcoding_system_eol_type): Doc fixes.
21497
21498 2008-05-17 Glenn Morris <rgm@gnu.org>
21499
21500 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21501
21502 2008-05-16 Eli Zaretskii <eliz@gnu.org>
21503
21504 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21505 and st_gid.
21506
21507 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21508 HAVE_WINDOW_SYSTEM is not defined.
21509
21510 * xfaces.c (merge_face_ref, merge_face_vectors)
21511 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21512 HAVE_WINDOW_SYSTEM is defined.
21513 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21514
21515 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21516
21517 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21518
21519 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21520
21521 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21522
21523 2008-05-15 Kenichi Handa <handa@m17n.org>
21524
21525 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21526 preference.
21527
21528 2008-05-15 Glenn Morris <rgm@gnu.org>
21529
21530 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21531
21532 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
21533
21534 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21535 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21536
21537 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21538
21539 2008-05-15 Kenichi Handa <handa@m17n.org>
21540
21541 * ftfont.c (ftfont_list): Downcase family name to check generic
21542 families.
21543
21544 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21545 font-spec for QCfont value.
21546
21547 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21548 buffer. Check the return value of it.
21549
21550 2008-05-14 Jason Rumney <jasonr@gnu.org>
21551
21552 * w32term.c (w32_get_glyph_overhangs): Remove.
21553 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21554
21555 2008-05-14 Kenichi Handa <handa@m17n.org>
21556
21557 * font.c (font_prop_validate): Make nil a valid value.
21558 (font_clear_cache): Check if the cached vector of entities is nil
21559 or not.
21560
21561 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21562
21563 * emacs.c (main_thread): Conditionalize on
21564 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21565 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21566
21567 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21568 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21569 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21570
21571 2008-05-14 Kenichi Handa <handa@m17n.org>
21572
21573 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21574 has no corresponding coding system.
21575
21576 2008-05-14 Jason Rumney <jasonr@gnu.org>
21577
21578 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21579
21580 * w32font.h (w32font_open_internal): Update declaration.
21581
21582 * w32font.c (w32font_open_internal): Change last argument from
21583 w32font_info struct to font object. Fill in font object from
21584 font_entity. Get Outline metrics if possible. Use them to
21585 calculate underline position and thickness. Use xlfd name as name
21586 property. Don't set codepage.
21587 (w32font_open): Pass font_object to w32font_open_internal. Don't
21588 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21589 (w32font_draw): Use s->font.
21590 (clear_cached_metrics): Don't clear non-existent blocks.
21591
21592 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21593 font was not found.
21594 (x_draw_glyph_string): Use underline position and thickness from font.
21595
21596 * w32uniscribe.c (uniscribe_open): Pass font_object to
21597 w32font_open_internal.
21598
21599 2008-05-14 Kenichi Handa <handa@m17n.org>
21600
21601 These changes are to delete all legacy font-handling codes, and
21602 make Emacs use only font-backends.
21603
21604 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21605 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21606
21607 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21608
21609 * charset.h (Vcharset_non_preferred_head)
21610 (Vcurrent_iso639_language): Extern them.
21611
21612 * charset.c (Vcharset_non_preferred_head): New variable.
21613 (Vcurrent_iso639_language): New variable.
21614 (syms_of_charset): Declare it as a Lisp variable.
21615 (char_charset): Don't check non preferred charsets. As a last
21616 resort, return charset_unicode.
21617 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21618
21619 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21620 conditionals. Don't check enable_font_backend. Delete all codes
21621 used only when USE_FONT_BACKEND is not defined.
21622
21623 * dispextern.h (struct glyph_string): Change type of `font' to
21624 `struct font *'.
21625 (struct glyph_string): New member underline_position and
21626 underline_thickness.
21627 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21628 (struct face): Change type of `font' to `struct font *'.
21629 Remove members `font_name', `font_info_id'.
21630 (per_char_metric, encode_char): Delete externs.
21631 (calc_pixel_width_or_height): Adjust the prototype.
21632
21633 * emacs.c (enable_font_backend): Delete extern.
21634 (main): Don't set enable_font_backend. Don't check the command
21635 line argument "-disable-font-backend".
21636
21637 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21638 (enum font_property_index): New members FONT_DPI_INDEX,
21639 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21640 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21641 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21642 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21643 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21644 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21645 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21646 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21647 (struct font_spec, struct font_entity): New structs.
21648 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21649 (struct font): Many members from old "struct font_info" moved to
21650 here. Members font and entity deleted.
21651 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21652 the new font-related objects.
21653 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21654 (CHECK_FONT_GET_OBJECT): Likewise.
21655 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21656 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21657 (struct font_driver): New members case_sensitive anc check.
21658 Type of the member list and open changed.
21659 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21660 (font_symbolic_width, font_find_object, font_get_spec)
21661 (font_set_lface_from_name): Delete extern.
21662 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21663
21664 * font.c: Include <strings.h>.
21665 (enable_font_backend): Delete it.
21666 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21667 (CHECK_VALIDATE_FONT_SPEC): Delete it.
21668 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21669 (null_string): Delete it.
21670 (null_vector): Make it static.
21671 (font_family_alist): Delete it.
21672 (Qnormal): Extern it.
21673 (QCextra, QClanguage): Delete it.
21674 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21675 (font_make_spec, font_make_entity, font_make_object)
21676 (font_intern_prop): Rename from intern_downcase. Don't downcase
21677 the string. Callers changed.
21678 (font_pixel_size): Adjust for the format change of font-related
21679 objects.
21680 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21681 (font_style_to_value, font_style_symbolic): New function.
21682 (build_font_family_alist): Delete it.
21683 (font_registry_charsets): Use Fassoc_string instead of
21684 assq_no_quit.
21685 (font_prop_validate_symbol): Don't return null_string.
21686 (font_prop_validate_style): Adjust for the change of
21687 style-related values in a font vector.
21688 (font_property_table): Delete entries for QClanguage and
21689 QCantialias, add entries for QCavgwidth.
21690 (get_font_prop_index): Delete the 2nd argument FROM.
21691 (font_prop_validate): Arguments changed.
21692 (font_put_extra): Adjust for the change of font-related objects.
21693 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21694 (font_parse_fcname, font_unparse_fcname)
21695 (font_prepare_composition): Likewise.
21696 (font_parse_family_registry): Rename from font_merge_old_spec.
21697 (otf_open): Delete the 1st arg entity.
21698 (font_otf_capability): Adjust for the above change.
21699 (font_score): New arg alternate_families. Adjusted for the change
21700 of font-related objects.
21701 (font_sort_entites): New arg best_only.
21702 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21703 Delete them.
21704 (font_match_p): Check alternate families.
21705 (font_find_object): Delete it.
21706 (font_check_object): New function.
21707 (font_clear_cache): Adjust for the change of font-related objects.
21708 (font_delete_unmatched): New arg.
21709 (font_list_entities): Call font_driver->list with a spec that
21710 doesn't specify style-related properties.
21711 (font_matching_entity): Arguments changed. Caller changed.
21712 (font_open_entity): Adjust for the change of font-related objects.
21713 (font_close_object, font_has_char, font_encode_char)
21714 (font_get_name, font_get_spec): Likewise.
21715 (font_spec_from_name, font_clear_prop, font_update_lface):
21716 New functions.
21717 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21718 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21719 (font_at): Adjust for the change of font-related objects.
21720 (font_range): New function.
21721 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21722 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21723 (Fcopy_font_spec, Fmerge_font_spec): New function.
21724 (Ffont_family_list): Rename from list-families.
21725 (Finternal_set_font_style_table): Arguments changed.
21726 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21727 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21728 change of font-related objects.
21729 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21730
21731 * fontset.h (struct font_info): Delete it. Most members go to
21732 struct font.
21733 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21734 (enum FONT_SPEC_INDEX): Delete it.
21735 (font_info, list_fonts_func, load_font_func, query_font_func)
21736 (set_frame_fontset_func, find_ccl_program_func)
21737 (get_font_repertory_func, new_fontset_from_font_name):
21738 Delete externs.
21739 (fontset_from_font_name): Extern it.
21740 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21741 (FONT_INFO_FROM_FACE): Delete.
21742 (face_for_font): Adjust prototype.
21743
21744 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21745 conditionals. Don't check enable_font_backend. Delete all codes
21746 used only when USE_FONT_BACKEND is not defined.
21747 (get_font_info_func, list_font_func, load_font_func)
21748 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21749 (get_font_repertory_func): Delete them.
21750 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21751 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21752 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21753 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21754 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21755 (fontset_compare_rfontdef): New function.
21756 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21757 rfont-defs by qsort. Adjusted for the change of font-group vector.
21758 (load_font_get_repertory): Delete.
21759 (fontset_find_font): Use new macros to ref/set elements of
21760 font-def and rfont-def.
21761 (fontset_font): Fix the timing of remembering that no font for C.
21762 (free_face_fontset): Do nothing if the face has no fontset.
21763 (face_suitable_for_char_p): Use new macros to ref/set elements of
21764 rfont-def.
21765 (face_for_char): Likewise. Call face_for_char with font_object.
21766 (fs_load_font): Delete. Delete #pragma surrounding it.
21767 (fs_query_fontset): Use strcasecmp instead of strcmp.
21768 (generate_ascii_font_name): Adjust for the format change of
21769 font-spec.
21770 (Fset_fontset_font): Likewise. Use new macros to set elements of
21771 font-def.
21772 (Fnew_fontset): Use font_unparse_xlfd to generate
21773 FONTSET_ASCII (fontset).
21774 (new_fontset_from_font_name): Delete.
21775 (fontset_from_font): Rename from new_fontset_from_font. Check if
21776 a fontset is already created for the font. FIx updating of
21777 Vfontset_alias_alist.
21778 (fontset_ascii_font): Delete.
21779 (Ffont_info): Adjust for the format change of font-spec.
21780 (Finternal_char_font): Likewise.
21781 (Ffontset_info): Likewise.
21782 (syms_of_fontset): Don't check load_font_func.
21783
21784 * fns.c (internal_equal): Handle PREV_FONT.
21785
21786 * frame.h: Delete USE_FONT_BACKEND conditional.
21787
21788 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21789 conditionals. Don't check enable_font_backend. Delete all codes
21790 used only when USE_FONT_BACKEND is not defined.
21791 (x_set_font): Call x_new_font, not x_new_fontset2.
21792 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21793 already set for the frame.
21794
21795 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21796 Make a font-entity by font_make_entity. Use font_intern_prop instead
21797 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21798 font property. If a font is scalable, set avgwidth property to 0.
21799 Set font-entity property by font_put_extra.
21800 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21801 (ffont_driver): Adjust for the change of struct font_driver.
21802 (ftfont_spec_pattern): New function.
21803 (ftfont_list): Return a list, not vector.
21804 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21805 (ftfont_list_family): Don't downcase names.
21806 (ftfont_free_entity): Delete.
21807 (ftfont_open): Return a font-object. Adjusted for the change of
21808 struct font. Get underline_thickness and underline_position from
21809 font property. Don't update dpyinfo->smallest_font_height and
21810 dpyinfo->smallest_char_width.
21811 (ftfont_close): Don't free `struct font'.
21812 (ftfont_has_char): Adjust for the format change of font-entity.
21813 (ftfont_encode_char, ftfont_text_extents): Likewise.
21814
21815 * ftxfont.c (ftxfont_list): Return a list, not vector.
21816 (ftxfont_open): Return a font-object. Adjusted for the change of
21817 struct font. Get underline_thickness and underline_position from
21818 font property. Don't update dpyinfo->smallest_font_height and
21819 dpyinfo->smallest_char_width.
21820 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21821 (ftxfont_draw): Adjust for the change of struct font.
21822
21823 * image.c (image_ascent): Don't include "charset.h".
21824 Include "character.h" and "font.h".
21825
21826 * lisp.h (enum pvec_type): New member PREV_FONT.
21827 (Fassoc_string): EXFUN it.
21828
21829 * print.c: Include font.h.
21830 (print_object): Handle font-related objects.
21831
21832 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21833 conditionals. Don't check enable_font_backend. Delete all codes
21834 used only when USE_FONT_BACKEND is not defined.
21835 (handle_auto_composed_prop): Do nothing if it->f is not on a
21836 window system. Check how many following characters can be
21837 displayed by the same font.
21838 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21839 'struct font *'.
21840 (get_char_face_and_encoding): Assign the whole encoding task to
21841 the `encode-char' method of a font driver.
21842 (fill_composite_glyph_string): Adjust for the change of `struct
21843 face' and `struct glyph_string'.
21844 (fill_glyph_string): Likewise.
21845 (get_per_char_metric): Arguments changed.
21846 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21847 and `struct glyph_string'.
21848 (produce_stretch_glyph, calc_line_height_property)
21849 (x_produce_glyphs): Likewise.
21850
21851 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21852 conditionals. Don't check enable_font_backend. Delete all codes
21853 used only when USE_FONT_BACKEND is not defined.
21854 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21855 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21856 (Qp): Extern them.
21857 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21858 Delete.
21859 (struct font_name): Delete.
21860 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
21861 (compare_fonts_by_sort_order): New function.
21862 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21863 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21864 Delete.
21865 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21866 compare_fonts_by_sort_order.
21867 (Fx_font_family_list): Call Ffont_family_list.
21868 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21869 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21870 (face_symbolic_slant, face_symbolic_swidth)
21871 (split_font_name_into_vector, build_font_name_from_vector)
21872 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21873 (font_rescale_ratio, split_font_name, build_font_name)
21874 (free_font_names, sort_fonts, x_face_list_fonts)
21875 (face_font_available_p, sorted_font_list, cmp_font_names)
21876 (font_list_1, concat_font_list, font_list, remove_duplicates):
21877 Delete.
21878 (Fx_list_fonts): Use Ffont_list.
21879 (LFACE_AVGWIDTH): Delete.
21880 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21881 by FONTP.
21882 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21883 (set_lface_from_font_name): Delete it.
21884 (set_lface_from_font): Rename from
21885 set_lface_from_font_and_fontset. Caller changed. Don't set
21886 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21887 for face.
21888 (merge_face_vectors): Copy font-spec if necessary.
21889 Clear properties of the font-spec if necessary.
21890 (merge_face_ref): Clear properties of the font-spec if necessary.
21891 (Finternal_set_lisp_face_attribute): Likewise.
21892 (set_font_frame_param): Use font_load_for_lface to load a
21893 font-object, and call Fmodify_frame_parameters with it.
21894 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21895 font name by Ffont_xlfd_name.
21896 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21897 QCslant, and QCwidth.
21898 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21899 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21900 Compare fonts by EQ.
21901 (lookup_non_ascii_face): Delete.
21902 (face_for_font): The 2nd argument changed.
21903 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21904 Check atomic font properties by case insensitive.
21905 (realize_non_ascii_face): Set face->overstrike correctly.
21906 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21907 (dump_realized_face): Get font name from
21908 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21909
21910 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21911 conditionals. Don't check enable_font_backend. Delete all codes
21912 used only when USE_FONT_BACKEND is not defined.
21913 (xic_create_xfontset): Original code deleted and renamed from
21914 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21915 (x_make_gc): Don't set GCFont in GCs.
21916 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21917 opened by "fixed".
21918 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21919 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21920 get_font_repertory_func.
21921
21922 * xfont.c: Include <stdlib.h> and "ccl.h".
21923 (struct xfont_info): New structure.
21924 (xfont_query_font): Delete.
21925 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21926 moved from xterm.c.
21927 (xfont_driver): Adjust for the change of struct font_driver.
21928 (compare_font_names): New function.
21929 (xfont_list_pattern): Sort font names case insensitively.
21930 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21931 (xfont_list): Return a list, not vector.
21932 (xfont_match): If the font doesn't have QCname property, generate
21933 a name from the other font properties.
21934 (xfont_open): Return a font-object. Adjusted for the change of
21935 struct font. Get underline_thickness and underline_position from
21936 font property. Don't update dpyinfo->smallest_font_height and
21937 dpyinfo->smallest_char_width.
21938 (xfont_close): Don't free struct font.
21939 (xfont_prepare_face): Adjust for the change of struct font.
21940 (xfont_done_face): Delete.
21941 (xfont_has_char): Adjust for the change of struct font.
21942 (xfont_encode_char, xfont_draw): Likewise.
21943 (xfont_check): New function.
21944
21945 * xftfont.c (xftfont_list): Adjust for the change of `list'
21946 callback function.
21947 (xftfont_match): Adjust for the format change of font-entity.
21948 (xftfont_open): Adjust for the format change of font-entity and
21949 font-object. Adjusted for the change of struct font. Return a
21950 font-object. Don't update dpyinfo->smallest_font_height and
21951 dpyinfo->smallest_char_width.
21952 (xftfont_close): Block input while calling XftFontClose.
21953 (xftfont_prepare_face): Don't block input while calling
21954 xftfont_get_colors. Adjusted for the change of struct font.
21955 (xftfont_shape): Return value of error case fixed.
21956
21957 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21958
21959 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21960 conditionals.
21961 (FONT_WIDTH): Return (f)->max_width.
21962 (struct x_display_info): Delete member `font'.
21963 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21964 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21965 (struct x_output): Change type of `font' to `struct font *'.
21966
21967 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21968 conditionals. Don't check enable_font_backend. Delete all codes
21969 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21970 (x_per_char_metric, x_encode_char): Delete.
21971 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21972 (x_compute_glyph_string_overhangs): Adjust for the change of
21973 `struct face'.
21974 (x_draw_glyph_string_foreground)
21975 (x_draw_composite_glyph_string_foreground): Likewise.
21976 (x_draw_glyph_string): Likewise. Use font->underline_position and
21977 font->underline_thickness.
21978 (x_new_font): Rename from x_new_fontset2.
21979 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
21980 (x_check_font): Call `check' method of a font driver.
21981 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21982 (x_query_font, x_get_font_repertory): Delete.
21983 (x_find_ccl_program): Rename and moved to xfont.c.
21984 (x_redisplay_interface): Adjust for the change of `struct
21985 redisplay_interface'.
21986
21987 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21988 conditionals. Don't check enable_font_backend. Delete all codes
21989 used only when USE_FONT_BACKEND is not defined. Surround non-used
21990 code by "#ifdef OLD_FONT" and "endif".
21991 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21992
21993 * w32font.h (struct w32font_info): New member.
21994 (FONT_COMPAT): New macro.
21995 (w32font_open_internal): Prototype adjusted.
21996
21997 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21998 OLD_FONT" and "endif".
21999
22000 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
22001 conditionals. Don't check enable_font_backend. Delete all codes
22002 used only when USE_FONT_BACKEND is not defined.
22003 (w32font_open): Return a font-object. Make a font-object by
22004 font_make_object. Adjusted for the change of struct w32font_info.
22005 (w32font_close): Don't free struct font. Adjusted for the change
22006 of struct w32font_info.
22007 (w32font_encode_char, w32font_text_extents, w32font_draw):
22008 Adjust for the change of struct w32font_info.
22009 (w32font_draw): Likewise.
22010 (w32font_list_internal): Return a list, not vector.
22011 (w32font_open_internal): Change the 4th arg to font-object.
22012 Adjusted for the change of struct w32font_info and font-object format.
22013 (add_font_name_to_list): Don't downcase names.
22014 (w32_enumfont_pattern_entity): Make a font-entity by
22015 font_make_entity. Adjusted for the format change of font-entity.
22016 Use FONT_SET_STYLE to set a style-related font property. If a
22017 font is scalable, set avgwidth property to 0. Set font-entity
22018 property by font_put_extra.
22019 (font_matches_spec): Adjust for the format change of font-entity.
22020 (w32_weight_table, w32_decode_weight): New variables.
22021 (w32_encode_weight): New function.
22022 (fill_in_logfont): Adjust for the format change of font-spec.
22023 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
22024 weight value.
22025 (w32font_driver): Adjust for the change of struct font_driver.
22026
22027 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
22028 conditionals. Don't check enable_font_backend. Surround non-used
22029 code by "#ifdef OLD_FONT" and "endif".
22030 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
22031 (FONT_AVG_WIDTH): Adjust for the change of struct font.
22032
22033 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
22034 conditionals. Don't check enable_font_backend. Delete all codes
22035 used only when USE_FONT_BACKEND is not defined. Surround non-used
22036 code by "#ifdef OLD_FONT" and "endif".
22037
22038 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
22039 (uniscribe_open): Return value changed to font-object.
22040 Adjusted for the format change of font-object.
22041 (uniscribe_otf_capability): Adjust for the change of struct font.
22042 (add_opentype_font_name_to_list): Don't downcase names.
22043 (uniscribe_font_driver): Adjust for the change of struct
22044 font_driver.
22045
22046 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
22047
22048 * dispnew.c (update_frame_1): Check if tty output is still valid
22049 before flushing it.
22050
22051 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
22052
22053 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
22054 to Gtk+ menus.
22055
22056 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
22057
22058 * dired.c (file_name_completion): Tweak the code so as to always do it
22059 in a single pass. Tighten the scope of some variables.
22060
22061 * dired.c (Qdefault_directory): New var.
22062 (file_name_completion): Use it instead of Fexpand_file_name.
22063 (syms_of_dired): Initialize it.
22064
22065 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
22066
22067 * fileio.c (double_dollars): Remove dead code.
22068
22069 2008-05-10 Eli Zaretskii <eliz@gnu.org>
22070
22071 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
22072 Mention w32-get-true-file-attributes in doc string.
22073
22074 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
22075
22076 2008-05-09 Glenn Morris <rgm@gnu.org>
22077
22078 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
22079 2008-04-23.
22080
22081 2008-05-09 Eli Zaretskii <eliz@gnu.org>
22082
22083 Support for reporting owner and group of each file on MS-Windows:
22084 * dired.c (stat_uname, stat_gname): New functions, with special
22085 implementation for w32.
22086 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
22087
22088 * w32.c: Rename the_passwd_* to dflt_passwd_*.
22089 (dflt_group_name): New static variable.
22090 (dflt_group): Rename from the_group.
22091 (init_user_info): Init dflt_group fields. Get user's group name
22092 from LookupAccountSid.
22093 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
22094 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
22095 New initialization states.
22096 (globals_of_w32): Initialize them to zero. Initialize the default
22097 group name to "None".
22098 (GetFileSecurity_Name): New global var, the name of the function
22099 to call for GetFileSecurity.
22100 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
22101 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
22102 (get_file_security, get_security_descriptor_owner)
22103 (get_security_descriptor_group, is_valid_sid)
22104 (get_file_security_desc, get_rid, get_name_and_id)
22105 (get_file_owner_and_group): New functions.
22106 (stat): Use get_file_security_desc and get_file_owner_and_group to
22107 report the owner and primary group of each file. Don't ignore the
22108 high 32 bits of file's size, now that st_size is 64-bit wide.
22109 Fix test when to get true file attributes.
22110 (init_user_info): Use get_rid instead of equivalent inline code.
22111 (fstat): Don't ignore the high 32 bits of file's size.
22112
22113 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
22114
22115 * image.c (png_load): Use correct bit-depth for setting background
22116 color.
22117
22118 2008-05-08 Eli Zaretskii <eliz@gnu.org>
22119
22120 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
22121 epa-hook.elc.
22122
22123 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
22124
22125 * font.c (Ffont_match_p): Don't use `iff' in docstring.
22126
22127 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
22128
22129 * macfns.c (Fx_create_frame): Make a copy of frame parameters
22130 because the original parameters are in pure storage now.
22131 (mac_window): Remove unused params. Update callers.
22132
22133 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
22134
22135 * lread.c (substitute_object_recurse): Use lower-level primitives.
22136 Don't signal errors when traversing sub-char-tables.
22137 Don't loop over all the possible characters when traversing char-tables.
22138
22139 * print.c (print_preprocess): Add sub-char-tables to the print-table,
22140 just like we do in print.c.
22141
22142 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
22143
22144 * minibuf.c (Ftry_completion): Remove code left over from when we used
22145 scmp instead of Fcompare_strings.
22146
22147 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
22148
22149 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
22150
22151 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22152
22153 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
22154 Create bitmap context in native byte order.
22155
22156 * macterm.c (XDrawLine)
22157 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
22158 context in native byte order.
22159
22160 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22161
22162 * config.in: Regenerate.
22163
22164 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
22165 New definitions for Image I/O support.
22166 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
22167 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
22168 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22169 (mac_data_provider_release_data, image_load_image_io)
22170 [USE_MAC_IMAGE_IO]: New functions.
22171 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
22172 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
22173 (init_image_func_pointer) [MAC_OSX]: Remove function.
22174 (image_load_quartz2d) [MAC_OSX]: Check availability of
22175 CGImageCreateWithPNGDataProvider at compile time.
22176 Use lowercase `false' for boolean constant.
22177 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
22178 Use image_load_image_io.
22179 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
22180 Don't check MyCGImageCreateWithPNGDataProvider.
22181 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
22182 Don't call init_image_func_pointer.
22183
22184 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
22185
22186 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
22187 Make variable non-static.
22188 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
22189 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22190
22191 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
22192 (RED_FROM_ULONG): Mask off higher bits.
22193 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
22194
22195 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
22196 Include AvailabilityMacros.h.
22197 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
22198 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
22199
22200 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
22201
22202 * chartab.c (Fset_char_table_range): If range is t, really set all
22203 chars to that value.
22204
22205 2008-05-03 Eli Zaretskii <eliz@gnu.org>
22206
22207 * dired.c (Ffile_attributes): Don't allow the device number become
22208 negative.
22209
22210 2008-05-02 Daiki Ueno <ueno@unixuser.org>
22211
22212 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
22213
22214 2008-05-02 Juri Linkov <juri@jurta.org>
22215
22216 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
22217 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
22218 DEFAULT argument as a list of default values in docstrings.
22219
22220 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
22221
22222 * puresize.h (BASE_PURESIZE): Increase to 1210000.
22223
22224 2008-05-01 Martin Rudalics <rudalics@gmx.at>
22225
22226 * dispnew.c (change_frame_size_1): Preserve small windows when
22227 shrinking frames by calling set_window_height|width with third
22228 arg 2.
22229
22230 * window.h (struct window): Replace field too_small_ok by field
22231 resize_proportionally.
22232
22233 * window.c (make_window): Initialize resize_proportionally.
22234 (enlarge_window): Temporarily set resize_proportionally to make
22235 sure that shrink_windows does scale the window proportionally.
22236 (shrink_windows): When window has resize_proportionally set try
22237 to shrink it proportionally by stealing from other windows.
22238 (struct saved_window, Fset_window_configuration)
22239 (compare_window_configurations): Handle resize_proportionally.
22240 (WINDOW_TOTAL_SIZE): New macro.
22241 (window_min_size, shrink_windows, size_window): Use it.
22242 (check_min_window_sizes): Remove. Invalid values of
22243 window-min-height|width are handled by window_min_size_2 now.
22244 (size_window, Fsplit_window, enlarge_window)
22245 (adjust_window_trailing_edge, grow_mini_window): Don't call
22246 check_min_window_sizes.
22247 (window_min_size_2, window_min_size_1, window_min_size):
22248 New argument safe_p for retrieving "safe" minimum sizes.
22249 (Fdisplay_buffer, Fsplit_window, enlarge_window)
22250 (adjust_window_trailing_edge, grow_mini_window):
22251 Adjust arguments of window_min_size... functions.
22252 (shrink_windows): Argument min_size removed. New argument
22253 safe_p allows shrinking windows to their safe minimum sizes.
22254 Calculate minimum size and decide whether a window shall be
22255 deleted for each window individually.
22256 (size_window): When nodelete_p equals 2, tell shrink_windows to
22257 delete windows only if their new minimum size is no more safe.
22258 (shrink_window_lowest_first): Call window_min_size_1 to make
22259 sure to preserve modeline of bottom-most window when resizing
22260 the minibuffer.
22261 (Fset_window_configuration, Fcurrent_window_configuration)
22262 (compare_window_configurations): Do not handle
22263 window-min-height|width any more.
22264 (syms_of_window): Clarify window-min-height|width doc-strings.
22265
22266 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
22267
22268 * dired.c (file_name_completion): Fix up the encoding/decoding issue
22269 some more. Copy some of the code from Ftry_completions.
22270 Remove special case code that dates back to initial revision when the
22271 slash was only added when necessary and that can't trigger nowadays.
22272
22273 2008-04-27 Kenichi Handa <handa@m17n.org>
22274
22275 * font.c (font_prop_validate): Signal `error' instead of `font'.
22276
22277 2008-04-29 Jason Rumney <jasonr@gnu.org>
22278
22279 * w32fns.c (Fw32_battery_status): New defun.
22280 (syms_of_w32fns): Defsubr it.
22281
22282 2008-04-28 Andreas Schwab <schwab@suse.de>
22283
22284 * dired.c (file_name_completion): Fix another mixing of encoded
22285 and decoded names.
22286
22287 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
22288
22289 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
22290
22291 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
22292
22293 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
22294
22295 2008-04-27 Andreas Schwab <schwab@suse.de>
22296
22297 * dired.c (file_name_completion): Fix inappropriate mixing of
22298 encoded and decoded names.
22299
22300 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22301
22302 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22303
22304 2008-04-26 Eli Zaretskii <eliz@gnu.org>
22305
22306 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22307 2008-03-31, it's not needed anymore with `struct stat' definition
22308 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22309 for the same reasons.
22310
22311 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22312
22313 * m/sparc.h: Additional redefinitions for GNU/Linux.
22314
22315 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22316
22317 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22318 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22319 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22320 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22321 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22322 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22323 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22324 Likewise.
22325
22326 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22327 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22328 (mac_ax_number_of_characters): Add externs.
22329 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22330 [USE_MAC_TSM]: Likewise.
22331 (mac_handle_text_input_event) [MAC_OSX]:
22332 Handle kEventTextInputOffsetToPos for no active input area case.
22333 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22334 (mac_handle_document_access_event)
22335 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22336 (install_application_handler) [MAC_OSX]: Register handlers for
22337 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22338 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22339 Register mac_handle_document_access_event.
22340
22341 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22342 Make functions non-static.
22343
22344 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22345
22346 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22347 (read_file_name_completion_ignore_case, insert_default_directory)
22348 (Qdefault_directory): Move to minibuffer.el.
22349 (Fread_file_name): Call the new `read-file-name' instead.
22350
22351 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22352
22353 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22354 Make function non-static.
22355 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22356 Remove function.
22357 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22358 Move to mactoolbox.c.
22359 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22360
22361 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22362 (mac_rect_make): New macro.
22363
22364 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22365 instead of float.
22366 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22367 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22368 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22369 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22370 CGRectMake.
22371 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22372 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22373 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22374 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22375 instead of WindowRef in argument type.
22376 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22377 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22378 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22379 instead of DISPLAY. All uses changed.
22380 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22381 (x_calc_absolute_position): Simplify so as not to use
22382 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22383
22384 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22385 instead of WindowRef in argument type.
22386 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22387 [TARGET_API_MAC_CARBON]: Remove externs.
22388 (create_apple_event, mac_event_parameters_to_lisp)
22389 [TARGET_API_MAC_CARBON]: Add externs.
22390
22391 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22392 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22393 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22394 is clicked.
22395 (x_activate_menubar): Remove extern for saved_menu_event_location.
22396 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22397 Move from mac.c.
22398
22399 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22400
22401 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22402 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22403
22404 2008-04-23 Jason Rumney <jasonr@gnu.org>
22405
22406 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22407 attributes only for local files.
22408
22409 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22410 default to Qlocal.
22411
22412 2008-04-22 Juri Linkov <juri@jurta.org>
22413
22414 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22415 read-buffer-to-switch instead of using the letter "B".
22416
22417 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22418
22419 * fileio.c (Qdefault_directory): New variable.
22420 (Fread_file_name): Use it to pass `dir' to the completion functions.
22421
22422 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
22423
22424 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22425
22426 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22427
22428 * keyboard.c (Vpre_help_message): Remove.
22429 (show_help_echo): Remove default C code.
22430
22431 * dired.c (directory_files_internal, file_name_completion):
22432 Only call ENCODE_FILE if the string is indeed decoded.
22433
22434 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22435
22436 * Makefile.in (TOOLKIT_DEFINES): Remove.
22437 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22438
22439 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22440
22441 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22442 (mactoolbox.o): New target.
22443
22444 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22445 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22446
22447 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22448 Use mac_set_frame_window_background instead of XSetWindowBackground.
22449 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22450 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22451 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22452 instead of SetWindowTitleWithCFString.
22453 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22454 Move function to mactoolbox.c.
22455 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22456 Use mac_set_window_modified instead of SetWindowModified.
22457 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22458 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22459 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22460 FrontNonFloatingWindow. Use mac_activate_window instead of
22461 ActivateWindow. Use mac_active_non_floating_window instead of
22462 ActiveNonFloatingWindow.
22463 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22464 Use mac_show_hourglass and mac_hide_hourglass.
22465 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22466 instead of GetGlobalMouse.
22467 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22468 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22469 Use mac_bring_window_to_front instead of BringToFront.
22470 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22471 mactoolbox.c.
22472 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22473 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22474 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22475 mactoolbox.c.
22476
22477 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22478 (XtPointer): Move typedef from macmenu.c.
22479 (enum button_type): Move enum from macmenu.c.
22480 (widget_value): Move typedef from macmenu.c.
22481 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22482 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22483 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22484 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22485 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22486 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22487 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22488 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22489 (Selection): Move typedef from macselect.c.
22490 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22491 macterm.c.
22492 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22493 (mac_is_window_collapsed, mac_bring_window_to_front)
22494 (mac_send_window_behind, mac_hide_window, mac_show_window)
22495 (mac_collapse_window, mac_front_non_floating_window)
22496 (mac_active_non_floating_window, mac_activate_window)
22497 (mac_move_window_structure, mac_move_window, mac_size_window)
22498 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22499
22500 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22501 (enum mac_menu_kind): Move enum to mactoolbox.c.
22502 (min_menu_id): Move variable to mactoolbox.c.
22503 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22504 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22505 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22506 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22507 [TARGET_API_MAC_CARBON]: Likewise.
22508 (XtPointer): Move typedef to macgui.h.
22509 (enum button_type): Move enum to macgui.h.
22510 (widget_value): Move typedef to macgui.h.
22511 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22512 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22513 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22514 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22515 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22516 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22517 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22518 (popup_activated_flag): Make variable non-static.
22519 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22520 (add_menu_item, fill_menu, dispose_menus):
22521 Move functions to mactoolbox.c.
22522 (restore_show_help_function, menu_target_item_handler)
22523 (install_menu_target_item_handler, mac_handle_dialog_event)
22524 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22525 [TARGET_API_MAC_CARBON]: Likewise.
22526 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22527 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22528 (find_and_call_menu_selection, name_is_separator): Make function
22529 non-static.
22530 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22531 to mactoolbox.c.
22532 (set_frame_menubar): Don't call install_menu_quit_handler.
22533 (menu_item_selection): New variable.
22534 (mac_menu_show): Use create_and_show_popup_menu.
22535 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22536 selection but set variable menu_item_selection. All uses changed.
22537 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22538 Call install_menu_quit_handler. Move to mactoolbox.c.
22539
22540 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22541 (Selection): Move typedef to macgui.h.
22542 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22543 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22544 Make variables non-static.
22545 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22546 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22547 Make functions non-static.
22548 (Vmac_service_selection) [MAC_OSX]: Likewise.
22549 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22550 (mac_valid_selection_target_p, mac_clear_selection)
22551 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22552 (mac_put_selection_value, mac_selection_has_target_p)
22553 (mac_get_selection_value, mac_get_selection_target_list)
22554 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22555 Move functions to mactoolbox.c.
22556 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22557 Likewise.
22558 (copy_scrap_flavor_data, mac_handle_service_event)
22559 (install_service_handler) [MAC_OSX]: Likewise.
22560 (syms_of_macselect) <Vmac_dnd_known_types>:
22561 Use mac_dnd_default_known_types.
22562
22563 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22564 Move to mactoolbox.c.
22565 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22566 (Fx_selection_owner_p): Add EXFUN.
22567 (install_window_handler, remove_window_handler, XSetWindowBackground):
22568 Remove externs.
22569 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22570 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22571 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22572 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22573 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22574 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22575 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22576 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22577 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22578 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22579 (mac_valid_selection_target_p, mac_clear_selection)
22580 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22581 (mac_put_selection_value, mac_selection_has_target_p)
22582 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22583 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22584 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22585 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22586 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22587 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22588 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22589 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22590 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22591
22592 * mactoolbox.c: New file.
22593
22594 2008-04-18 Jason Rumney <jasonr@gnu.org>
22595
22596 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22597
22598 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22599
22600 * character.c (Fmultibyte_char_to_unibyte):
22601 Return latin1 chars unchanged.
22602
22603 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22604 relocated if it points to `name'.
22605
22606 2008-04-17 Kenichi Handa <handa@m17n.org>
22607
22608 * data.c (Faset): Allow setting a multibyte character in an
22609 ASCII-only unibyte string.
22610
22611 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22612
22613 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22614
22615 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22616 done in config.h.
22617
22618 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
22619
22620 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22621 (Fchar_direction): Add usage in the docstring.
22622
22623 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
22624
22625 * keyboard.c (read_key_sequence): Remove always-true checks.
22626
22627 2008-04-14 Jason Rumney <jasonr@gnu.org>
22628
22629 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22630 compatibility struct, for better underline positioning.
22631
22632 2008-04-13 David Hansen <david.hansen@gmx.net>
22633
22634 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22635 string.
22636
22637 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22638
22639 * m/hp800.h (XUINT, XSET): Remove.
22640
22641 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
22642
22643 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22644 previous change.
22645
22646 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22647
22648 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22649 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22650
22651 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22652
22653 * keymap.h (map_keymap_canonical): Declare.
22654 * xmenu.c (single_keymap_panes): Use it.
22655
22656 2008-04-11 Glenn Morris <rgm@gnu.org>
22657
22658 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22659 set the target's value to that of the alias.
22660
22661 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22662
22663 * term.c (set_tty_color_mode): Left over typo.
22664
22665 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
22666
22667 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22668 only after check for file name handler functions. Signal, when
22669 native functionality is not supported.
22670 (syms_of_fileio): Declare it unconditionally.
22671
22672 2008-04-10 Jason Rumney <jasonr@gnu.org>
22673
22674 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22675 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22676
22677 * w32.c (logon_network_drive): Also logon to remote drives that
22678 are mapped to drive letters.
22679
22680 2008-04-10 Glenn Morris <rgm@gnu.org>
22681
22682 * xdisp.c (truncate-partial-width-windows): Doc fix.
22683
22684 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22685
22686 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22687 Move functions to minibuffer.el.
22688 (syms_of_fileio): Don't declare them.
22689
22690 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22691
22692 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22693 (syms_of_minibuf): Remove its initialization.
22694
22695 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22696
22697 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22698
22699 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22700
22701 2008-04-09 Jason Rumney <jasonr@gnu.org>
22702
22703 * makefile.w32-in (distclean): Delete makefile too.
22704 (maintainer-clean): New target.
22705
22706 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22707
22708 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22709 for new font backend and composite cases.
22710
22711 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22712
22713 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22714 Most of the code moved to run_timers.
22715 (do_pending_atimers): Call run_timers.
22716 (run_timers): New function.
22717
22718 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22719 run atimers.
22720
22721 * process.c (wait_reading_process_output): The same as above.
22722
22723 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22724
22725 * minibuf.c (last_exact_completion): Remove variable.
22726 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22727 (complete_and_exit_1, complete_and_exit_2)
22728 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22729 (Fdisplay_completion_list, display_completion_list_1)
22730 (Fminibuffer_completion_help, Fself_insert_and_exit)
22731 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22732 minibuffer.el.
22733 (syms_of_minibuf): Remove corresponding initializations.
22734
22735 * keyboard.c (Qdeactivate_mark): New var.
22736 (command_loop_1): Use it to call `deactivate-mark'.
22737 (syms_of_keyboard): Initialize it.
22738
22739 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22740 to another frame.
22741 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22742 Don't call set_tty_color_mode.
22743 (store_frame_param): Reset previous_frame rather than call
22744 set_tty_color_mode.
22745 * term.c (set_tty_color_mode): Rewrite.
22746 * dispextern.h (set_tty_color_mode): New type.
22747 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22748
22749 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22750
22751 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22752 for generic chars, which do not exist any more in emacs-unicode.
22753
22754 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22755
22756 * coding.c (detect_coding_emacs_mule)
22757 (Ffind_operation_coding_system): Fix typo.
22758
22759 2008-04-08 Jason Rumney <jasonr@gnu.org>
22760
22761 * w32uniscribe.c (SNAME): Extract only symbol name.
22762
22763 * w32font.h (struct w32_metric_cache): New struct.
22764 (w32font_info): Use it.
22765 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22766 (CACHE_BLOCKSIZE): New constants.
22767
22768 * w32font.c (Qja, Qko, Qzh): New symbols.
22769 (syms_of_w32font): Initialise them.
22770 (font_matches_spec): Use them to filter by language.
22771 (recompute_cached_metrics): Remove function.
22772 (compute_metrics, clear_cached_metrics): New functions.
22773 (w32font_encode_char): Use them to manage metric cache.
22774 (w32font_text_extents): Cache metrics for all glyphs on demand.
22775 Delay converting glyph indices to WORD until needed.
22776 (w32font_open_internal): Initialize metric cache to empty.
22777 (registry_to_w32_charset): Charset should always be a symbol.
22778 (fill_in_logfont, list_all_matching_fonts): Family should
22779 always be a symbol.
22780
22781 2008-04-06 Jason Rumney <jasonr@gnu.org>
22782
22783 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22784 Give up if glyph indices not supported. Use uniscribe obtained
22785 ABC widths for individual metrics. Map glyph clusters back to
22786 characters using fClusterStart flag. Return number of glyphs
22787 produced, not chars processed.
22788 (uniscribe_shape): Map char at FROM to current glyph.
22789
22790 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22791
22792 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22793 Use SetMenuItemHierarchicalMenu.
22794
22795 2008-04-05 Jason Rumney <jasonr@gnu.org>
22796
22797 * image.c (pbm_load): Allow color values up to 65535.
22798 Throw an error if max_color_idx is outside the supported range.
22799 Report an error when image size is invalid.
22800 Read two bytes at a time when raw images have max_color_idx above 255.
22801
22802 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22803
22804 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22805 append "CCL: Quitted" when the CCL program is quitted.
22806 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22807
22808 * ccl.h (struct ccl_program): New member quit_silently.
22809
22810 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22811
22812 * search.c (compile_pattern_1): Treat non-nil and non-string of
22813 search-spaces-regexp as nil.
22814
22815 * minibuf.c (Fassoc_string): Tweak docstring.
22816
22817 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22818
22819 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22820 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22821 2008-03-14 to force inode be positive.
22822
22823 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22824 _S_* ones, since we now use our own sys/stat.h.
22825 (stat, fstat): Don't mangle the inode number.
22826 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22827
22828 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22829
22830 * frame.h (struct frame): Give one more bit to `visible' since we use
22831 values larger than 1 to indicate obscured frames on ttys.
22832
22833 * keymap.c (Qkeymap_canonicalize): New var.
22834 (Fmap_keymap_internal): New fun.
22835 (describe_map): Use keymap-canonicalize.
22836
22837 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22838 (Fundo_boundary): Set them.
22839 (syms_of_undo): Initialize them.
22840 (record_point): Use them instead of last_point_position*.
22841 (last_undo_buffer): Change type.
22842
22843 2008-04-04 Jason Rumney <jasonr@gnu.org>
22844
22845 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22846 (recompute_cached_metrics): Don't set ascent and descent per char.
22847
22848 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22849 (uniscribe_check_otf): Add GC protection before consing.
22850 Rearrange loop for counting features.
22851
22852 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22853
22854 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22855 buffer with byte-size of source buffer.
22856
22857 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22858
22859 * callint.c (Fcall_interactively): Handle temporary region even
22860 when shift-select-mode is off.
22861
22862 2008-04-03 Jason Rumney <jasonr@gnu.org>
22863
22864 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22865
22866 2008-04-03 Kenichi Handa <handa@m17n.org>
22867
22868 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22869 (CATEGORY_MASK_UTF_16): Likewise.
22870 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22871 binary file.
22872 (detect_coding): Add null-byte detection for a binary file.
22873 (detect_coding_system): Likewise.
22874
22875 2008-04-03 Jason Rumney <jasonr@gnu.org>
22876
22877 * w32uniscribe.c: New file.
22878
22879 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22880
22881 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22882
22883 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22884 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22885 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22886 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22887 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22888 (Qphonetic): New symbols.
22889 (syms_of_w32font): Initialize them.
22890 (font_supported_scripts): Use them.
22891 (w32font_list_family): List all charsets.
22892 (w32font_text_extents, recompute_cached_metrics): Fix metric
22893 calculations.
22894 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22895 Give opentype fonts their own format.
22896 (font_matches_spec): New arguments backend and logfont.
22897 Handle :otf spec for uniscribe backend.
22898 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22899 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22900
22901 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22902 font backend.
22903 (globals_of_w32fns): Initialize uniscribe font backend.
22904
22905 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22906 dependencies.
22907 (w32uniscribe.$(O)): New file to build.
22908 (FONT_OBJ): Include w32uniscribe.$(O).
22909 (LIBS): Add uniscribe libraries.
22910
22911 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22912
22913 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22914
22915 * callint.c (Vshift_select_mode): New var.
22916 (Finteractive): Document new ^ spec.
22917 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22918 is present.
22919
22920 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22921 (command_loop_1): Avoid running the direct display versions of
22922 forward-char and backward-char if shift-selection may occur.
22923 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22924 shift-translation takes place.
22925
22926 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22927 avoid clobbering by define-minor-mode.
22928
22929 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22930 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22931
22932 * syntax.c (Fforward_word): Add ^ interactive spec.
22933
22934 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22935 (Fscroll_right): Add ^ interactive spec.
22936
22937 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22938
22939 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22940
22941 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22942
22943 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22944
22945 2008-03-31 Juri Linkov <juri@jurta.org>
22946
22947 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22948
22949 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22950
22951 * gtkutil.c (xg_set_geometry): Fix indentation.
22952 (xg_resize_outer_widget): Remove.
22953 (x_wm_size_hint_off): Fix indentation.
22954 (xg_frame_set_char_size): Call flush_and_sync after
22955 gtk_window_resize.
22956 (x_wm_set_size_hint): Pass NULL as geometry window to
22957 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22958 Add menu bar and tool bar height to base height.
22959 (xg_update_frame_menubar, free_frame_menubar)
22960 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22961 (update_frame_tool_bar, free_frame_tool_bar):
22962 Change xg_resize_outer_widget to xg_frame_set_char_size.
22963
22964 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22965
22966 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22967 (Fdbus_call_method): New parameter TIMEOUT.
22968 (dbus-send-signal): Optimize UNGCPRO call.
22969
22970 2008-03-29 Juri Linkov <juri@jurta.org>
22971
22972 * window.c (Fdisplay_buffer): Move call to
22973 Vsplit_window_preferred_function out of conditions that check
22974 if window is eligible for vertical splitting.
22975 When Vsplit_window_preferred_function is non-nil, call it and use
22976 its non-nil return value as window. Otherwise, continue doing
22977 vertical splitting using Fsplit_window with arg horflag=nil.
22978 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22979 default value from `split-window' to nil.
22980
22981 2008-03-29 Juri Linkov <juri@jurta.org>
22982
22983 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22984 for interactive code letters 'b' and 'B'.
22985
22986 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22987
22988 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22989 multibyte string.
22990
22991 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22992
22993 * keyboard.c (pending_funcalls): New var.
22994 (timer_check): Run it.
22995 (syms_of_keyboard): Initialize it.
22996 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22997 (Vdelete_terminal_functions): New vars.
22998 (syms_of_terminal): Initialize them.
22999 (Fdelete_terminal): Run delete-terminal-functions.
23000 * xdisp.c (safe_eval): Rewrite.
23001 (safe_call2): New fun.
23002 * frame.c (Qdelete_frame_functions): New var.
23003 (syms_of_frame): Initialize it.
23004 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
23005 * lisp.h (safe_call2, pending_funcalls): Declare.
23006
23007 2008-03-28 Andreas Schwab <schwab@suse.de>
23008
23009 * indent.c (Fmove_to_column): Move declaration before statements.
23010
23011 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
23012
23013 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
23014 (struct frame): Use bit fields for boolean vars.
23015
23016 * process.c (server_accept_connection): Simplify naming.
23017 (emacs_get_tty_pgrp): Use SDATA.
23018
23019 * coding.c (decode_coding_object): Fix last change.
23020
23021 2008-03-27 Jason Rumney <jasonr@gnu.org>
23022
23023 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
23024
23025 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
23026
23027 * charset.c (Fdefine_charset_internal): Change the way of
23028 registering charsets in Vcharset_order_list.
23029 (syms_of_charset): Make the charset `eight-bit' supplementary.
23030
23031 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
23032
23033 * regex.c (EXTEND_BUFFER): Change order of pointer addition
23034 operations, to avoid having the difference between pointers
23035 overflow.
23036
23037 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
23038
23039 * indent.c (check_display_width): New fun.
23040 (scan_for_column): Use it.
23041
23042 * data.c (syms_of_data): Mark most-positive-fixnum and
23043 most-negative-fixnum as constants.
23044
23045 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
23046
23047 * indent.c (scan_for_column): Extract from current_column_1.
23048 Merge with the same code from Fmove_to_column.
23049 (current_column_1, Fmove_to_column): Use it.
23050
23051 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
23052
23053 * keymap.c (map_keymap_internal): New fun.
23054 (map_keymap): Use it.
23055 (Fmap_keymap_internal): New fun.
23056 (Fmap_keymap): Remove left-out test from before make_save_value.
23057
23058 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
23059
23060 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
23061 Use XCAR/XCDR.
23062
23063 * process.h (struct Lisp_Process): Remove filter_multibyte.
23064 * process.c (QCfilter_multibyte): Remove.
23065 (setup_process_coding_systems): Don't use filter_multibyte.
23066 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
23067 (read_process_output): Don't adjust multibyteness to filter_multibyte.
23068 (Fset_process_filter_multibyte): Change the coding-system to
23069 approximate the previous behavior.
23070 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
23071 coding-system.
23072
23073 * coding.c (decode_coding_object): When not decoding into a buffer,
23074 obey the coding system's preference of (uni|multi)byte.
23075
23076 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
23077
23078 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
23079 every char is changed and has a different byte-length.
23080 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
23081 Fix int -> EMACS_INT.
23082
23083 2008-03-23 David Hansen <david.hansen@gmx.net>
23084
23085 * dbusbind.c (xd_read_message): Remove extra copying of message
23086 strings. Check for NULL `interface' or `member'.
23087
23088 2008-03-22 Eli Zaretskii <eliz@gnu.org>
23089
23090 * w32.c (readdir): If FindFirstFile/FindNextFile return in
23091 cFileName a file name that includes `?' characters, use the 8+3
23092 alias in cAlternateFileName instead.
23093
23094 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
23095
23096 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
23097
23098 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23099
23100 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
23101 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
23102 work on current_buffer only instead (that was already the case
23103 for some of the code anyway).
23104 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
23105 (temp_set_point, temp_set_point_both): Use EMACS_INT.
23106 (SET_PT, SET_PT_BOTH): Adjust.
23107 * intervals.h (set_point, temp_set_point, set_point_both)
23108 (temp_set_point_both): Remove redundant declarations.
23109
23110 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23111
23112 * fileio.c (Finsert_file_contents):
23113 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
23114 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
23115 when buffer != current_buffer anyway.
23116
23117 2008-03-20 Andreas Schwab <schwab@suse.de>
23118
23119 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
23120 as default.
23121
23122 2008-03-19 Jason Rumney <jasonr@gnu.org>
23123
23124 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
23125 (syms_of_w32fns): Initialize them.
23126 (HOURGLASS_ID): New constant.
23127 (x_window_to_frame): Don't check hourglass_window.
23128 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
23129 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
23130 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
23131 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
23132 Only change the cursor if hourglass is not active.
23133 (Fx_create_frame): Initialize frame's current_cursor.
23134 (hourglass_atimer): Remove.
23135 (hourglass_started): New function.
23136 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
23137 (show_hourglass): Adapt to w32, changing argument to frame.
23138
23139 * w32term.h (struct w32_output): Remove hourglass_window.
23140 Add current_cursor.
23141
23142 * eval.c (call_debugger, Fsignal):
23143 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
23144 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
23145 (Fexecute_extended_command, cancel_hourglass_unwind):
23146 * minibuf.c (read_minibuf):
23147 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
23148
23149 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
23150
23151 * window.c (run_funs): New fun.
23152 (run_window_configuration_change_hook): Use it to run the buffer-local
23153 and the global part of the hook.
23154
23155 * xdisp.c (format_mode_line_unwind_data): Add window argument.
23156 (unwind_format_mode_line): Restore selected window.
23157 (x_consider_frame_title, Fformat_mode_line): Set selected window.
23158
23159 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
23160
23161 * editfns.c (Fchar_equal): Check they are valid characters.
23162
23163 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
23164
23165 2008-03-17 Andreas Schwab <schwab@suse.de>
23166
23167 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
23168 against a charset.
23169
23170 * lisp.h (Fbuffer_list): Declare.
23171
23172 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
23173
23174 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
23175 handlebox_widget is != 0.
23176
23177 2008-03-16 Juri Linkov <juri@jurta.org>
23178
23179 * callint.c (Fcall_interactively): For interactive code letters
23180 'b' and 'B' put the buffer list into the list of default "future"
23181 values of the minibuffer.
23182
23183 2008-03-16 Andreas Schwab <schwab@suse.de>
23184
23185 * keyboard.c (read_key_sequence): Fix downcasing of letters with
23186 modifiers.
23187
23188 * regex.c (re_match_2_internal): Correct matching of a charset
23189 against latin-1 characters.
23190
23191 2008-03-16 Kenichi Handa <handa@m17n.org>
23192
23193 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
23194 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
23195 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
23196 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
23197 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
23198 CHAR_STRING_ADVANCE.
23199 (produce_chars): Fix for the case that the source and the
23200 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
23201 instead of CHAR_STRING_ADVANCE.
23202 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
23203 STRING_CHAR_ADVANCE.
23204
23205 2008-03-15 Andreas Schwab <schwab@suse.de>
23206
23207 * regex.c (re_match_2_internal): Correct matching of eight bit
23208 characters in unibyte strings.
23209
23210 2008-03-15 Martin Rudalics <rudalics@gmx.at>
23211
23212 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
23213 at end of range when it coincides with the end of the buffer.
23214
23215 2008-03-14 Eli Zaretskii <eliz@gnu.org>
23216
23217 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
23218
23219 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
23220
23221 2008-03-14 Jason Rumney <jasonr@gnu.org>
23222
23223 * editfns.c (initial_tz): New variable.
23224 (syms_of_editfns): Initialize it.
23225 (Fset_time_zone_rule): Set it when first called.
23226 Use it when TZSTRING is nil.
23227
23228 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
23229 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
23230 (monitor_from_point_fn, get_monitor_info_fn): New globals.
23231 (globals_of_w32fns): Initialize them.
23232 (compute_tip_xy): Use them to position tooltips.
23233
23234 2008-03-14 Glenn Morris <rgm@gnu.org>
23235
23236 * emacs.c (main): Revert previous change.
23237 (standard_args): Revert -internal-script back to -scriptload,
23238 and remove the long-option form.
23239
23240 2008-03-13 Glenn Morris <rgm@gnu.org>
23241
23242 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
23243 Remove option -enable-font-backend.
23244
23245 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
23246
23247 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
23248
23249 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
23250
23251 * xterm.c (x_connection_closed): For GTK: If this is the last
23252 terminal just exit without closing the display.
23253
23254 2008-03-11 Jason Rumney <jasonr@gnu.org>
23255
23256 * w32font.c (w32font_full_name): Use floor to round.
23257
23258 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23259
23260 * sound.c (alsa_configure): Declare vol at beginning of block.
23261
23262 * fontset.c (Ffontset_info): Remove extra semicolon.
23263
23264 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
23265
23266 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
23267 size of resulting string.
23268
23269 2008-03-10 Jason Rumney <jasonr@gnu.org>
23270
23271 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
23272
23273 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23274
23275 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
23276 Don't pretend as if characters with display property haven't been
23277 consumed for string-replacing-string case.
23278
23279 2008-03-08 Kim F. Storm <storm@cua.dk>
23280
23281 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
23282 (get_next_display_element, next_element_from_string)
23283 (next_element_from_ellipsis, next_element_from_buffer): Use it.
23284
23285 2008-03-08 Andreas Schwab <schwab@suse.de>
23286
23287 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
23288
23289 2008-03-06 Jason Rumney <jasonr@gnu.org>
23290
23291 * w32font.c (w32_registry): Take font_type argument. Use ANSI
23292 when charset not specified. Only translate ANSI to unicode when
23293 font_type is truetype.
23294 (w32font_coverage_ok): New function.
23295 (add_font_entity_to_list): Use it to filter unsuitable fonts.
23296
23297 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
23298
23299 * lread.c (Fread_char): Resolve modifiers.
23300 (Fread_char_exclusive): Likewise.
23301
23302 * character.c (char_resolve_modifier_mask): New function.
23303 (char_string): Use char_resolve_modifier_mask.
23304 (Fchar_resolve_modifiers): New function.
23305 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23306 function.
23307
23308 2008-03-04 Jason Rumney <jasonr@gnu.org>
23309
23310 * makefile.w32-in: Always include w32font.c in the build.
23311 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23312
23313 2008-03-04 Andreas Schwab <schwab@suse.de>
23314
23315 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23316 (versionclean): Likewise.
23317
23318 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
23319
23320 * .cvsignore: Add oo.
23321
23322 2008-03-03 Andreas Schwab <schwab@suse.de>
23323
23324 * coding.c (decode_coding_object): Inhibit gap shrinking while
23325 decoding in place.
23326
23327 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23328
23329 * w32term.c: Remove unused include "gnu.h".
23330 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23331
23332 * gnu.h: Rename to ...
23333 * emacs-icon.h: ... this.
23334 * xterm.c: Use emacs-icon.h instead of gnu.h.
23335 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23336
23337 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
23338
23339 * w32font.c: Include math.h.
23340
23341 2008-03-03 Jason Rumney <jasonr@gnu.org>
23342
23343 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23344 Compute options separately.
23345 (w32font_open_internal): Set glyph_idx before caching metrics.
23346
23347 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23348 Define if system headers don't.
23349 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23350 (w32font_encode_char): Don't declare here.
23351
23352 * w32font.c (Quniscribe, QCformat): New symbols.
23353 (syms_of_w32font): Define them.
23354 (w32font_has_char): Indicate uncertainty.
23355 (w32font_encode_char): Encode as glyph point. Make static.
23356 (recompute_cached_metrics): New function.
23357 (w32font_open_internal): Use it. Set font to use glyph points
23358 initially. Set format based on type of font.
23359 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23360 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23361 on it. Set format based on information available here.
23362 (add_font_entity_to_list): Identify backend based on opentype_only.
23363
23364 2008-03-02 Andreas Schwab <schwab@suse.de>
23365
23366 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23367
23368 * coding.c (decode_coding_big5, produce_chars):
23369 Fix typos in last change.
23370
23371 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23372
23373 * gnu.h: New icon.
23374
23375 2008-03-02 Kenichi Handa <handa@m17n.org>
23376
23377 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23378 `dos', don't decode '\r' if that is the last in the source.
23379 (decode_coding_utf_16, decode_coding_emacs_mule)
23380 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23381 (decode_coding_raw_text, decode_coding_charset): Likewise.
23382 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23383
23384 2008-03-01 Jason Rumney <jasonr@gnu.org>
23385
23386 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23387
23388 2008-03-01 Kim F. Storm <storm@cua.dk>
23389
23390 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23391
23392 2008-03-01 Jason Rumney <jasonr@gnu.org>
23393
23394 * w32font.c (w32font_full_name): New function.
23395 (w32font_open_internal): Use it.
23396
23397 2008-03-01 Kim F. Storm <storm@cua.dk>
23398
23399 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23400
23401 2008-03-01 Jason Rumney <jasonr@gnu.org>
23402
23403 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23404
23405 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23406
23407 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23408 xg_frame_resized when the event is for the edit widget.
23409
23410 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
23411
23412 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23413 set_char_size.
23414 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
23415 operations on widgets here. Just set frame size if needed.
23416 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23417 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23418 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23419 the whole frame.
23420 (xg_create_tool_bar): Move attachment of the tool bar to
23421 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23422 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23423
23424 2008-03-01 Jason Rumney <jasonr@gnu.org>
23425
23426 * w32fns.c (w32_msg_pump): Disable debug code.
23427
23428 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23429
23430 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23431
23432 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23433
23434 * xdisp.c (next_overlay_string): Don't set
23435 overlay_strings_at_end_processed_p if we're currently reading from
23436 a display string.
23437
23438 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23439
23440 * xdisp.c (get_overlay_strings_1): Fix typo.
23441
23442 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23443
23444 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23445
23446 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23447
23448 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23449
23450 * xdisp.c (display_mode_element): Cancel the previous change.
23451 (decode_mode_spec): Likewise.
23452 (handle_auto_composed_prop): Don't make composition if it->string
23453 is a string.
23454
23455 2008-02-27 Kim F. Storm <storm@cua.dk>
23456
23457 * lisp.h (GLYPH): Change type from int to struct with separate char
23458 and face_id members.
23459 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23460 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23461 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23462 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23463 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23464 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23465 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23466 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23467 handle new Lisp glyph code encoding, either an integer or a cons.
23468
23469 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23470 (GLYPH_ALIAS): Delete.
23471 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23472 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23473 (GLYPH_FROM_CHAR): Replace macro by ...
23474 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23475
23476 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23477 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23478 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23479 (GLYPH_INVALID_P): New macro.
23480 (spec_glyph_lookup_face): Update prototype.
23481
23482 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23483 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23484 new glyph code encoding.
23485 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23486 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23487
23488 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23489 Adapt to new glyph type and new glyph code encoding.
23490
23491 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23492
23493 * indent.c (current_column, current_column_1, Fmove_to_column)
23494 (compute_motion): Adapt to new glyph code encoding.
23495
23496 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23497
23498 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
23499
23500 * process.c (wait_reading_process_output): Check for window
23501 changes caused by timers.
23502 Suggested by Johan Bockgård.
23503
23504 2008-02-27 Glenn Morris <rgm@gnu.org>
23505
23506 * emacs.c (USAGE1): Add `--disable-font-backend'.
23507
23508 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23509
23510 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23511 is made to the buffer.
23512
23513 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23514
23515 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23516 (face_at_string_position):
23517 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23518 (face_at_string_position):
23519 * xdisp.c (display_string, next_overlay_change):
23520 * buffer.h (overlays_at):
23521 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23522 Update callers.
23523
23524 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
23525
23526 * editfns.c (Fformat): Doc fix.
23527
23528 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
23529
23530 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23531 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23532 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23533
23534 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23535
23536 * buffer.c (Fbuffer_swap_text): New function.
23537 (syms_of_buffer): Defsubr it.
23538
23539 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
23540
23541 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23542
23543 2008-02-25 Jason Rumney <jasonr@gnu.org>
23544
23545 * w32font.c (w32font_draw): Draw one character at a time when padding.
23546
23547 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23548
23549 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23550 Handle a nil arg. Use run_window_configuration_change_hook.
23551 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23552 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23553 Use run_window_configuration_change_hook.
23554
23555 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23556
23557 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23558 1-pixel width.
23559
23560 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23561
23562 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23563 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23564 if the glyph in the font is zero pixel with.
23565
23566 * dispextern.h (struct glyph_string): New member padding_p.
23567
23568 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23569
23570 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23571
23572 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23573
23574 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23575
23576 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23577
23578 2008-02-25 Jason Rumney <jasonr@gnu.org>
23579
23580 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23581
23582 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23583
23584 Allow fine-grained image-cache flushing.
23585 * dispextern.h (struct image): Add `dependencies' field.
23586 (clear_image_caches): Change arg to Lisp_Object.
23587 * image.c (make_image): Initialize `dependencies' field.
23588 (clear_image_cache): Change arg to allow fine-grained flushing.
23589 Perform the flush even if image-cache-eviction-delay is nil.
23590 (clear_image_caches): Change arg to Lisp_Object.
23591 (Fclear_image_cache): Expand meaning of the argument.
23592 (mark_image): Mark `dependencies' field.
23593 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23594 (lface_hash): Use XHASH rather than XFASTINT.
23595 (face_at_buffer_position): Fix int -> EMACS_INT position.
23596 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23597 (select_frame_for_redisplay): Remove code duplication.
23598 (redisplay_internal): Adapt arg to call to clear_image_caches.
23599
23600 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23601
23602 * s/vms4-0.h:
23603 * s/vms4-2.h:
23604 * s/vms4-4.h:
23605 * s/vms5-5.h: Remove, unused.
23606
23607 * s/irix5-2.h:
23608 * s/irix6-0.h:
23609 * s/riscos5.h:
23610 * s/mach-bsd4-3.h:
23611 * m/mips4.h: Remove files for obsolete systems.
23612
23613 * Makefile.in:
23614 * filelock.c:
23615 * unexmips.c:
23616 * m/hp9000s300.h:
23617 * m/iris4d.h:
23618 * s/aix3-1.h:
23619 * s/hpux.h:
23620 * s/msdos.h:
23621 * s/usg5-0.h:
23622 * s/usg5-2-2.h:
23623 * s/usg5-2.h:
23624 * s/usg5-3.h: Remove references to obsolete variables.
23625
23626 * s/irix5-0.h: Remove, move all the contents ...
23627 * s/irix6-5.h: ... here. Simplify.
23628 * config.in: Regenerate.
23629
23630 2008-02-24 Jason Rumney <jasonr@gnu.org>
23631
23632 * w32term.c (x_draw_glyph_string_background): Clear the background
23633 manually when cleartype is in use.
23634 (x_draw_glyph_string_foreground): Draw text transparently when
23635 cleartype is in use.
23636
23637 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23638 a font into it unless we have to.
23639
23640 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23641
23642 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23643 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23644
23645 2008-02-18 Jason Rumney <jasonr@gnu.org>
23646
23647 * w32fns.c (Fw32_shell_execute): Encode parameters.
23648
23649 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23650
23651 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23652
23653 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
23654
23655 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23656
23657 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23658
23659 * xterm.c (x_set_offset): Don't change the gravity if
23660 CHANGE_GRAVITY is -1.
23661
23662 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
23663
23664 * fileio.c (auto_save_error_occurred): New var.
23665 (auto_save_error): Set it.
23666 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23667 error occurred.
23668
23669 2008-02-23 Eli Zaretskii <eliz@gnu.org>
23670
23671 * w32.c (globals_of_w32): Add initializations for
23672 g_b_init_get_sid_sub_authority and
23673 g_b_init_get_sid_sub_authority_count.
23674
23675 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23676
23677 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23678 (font_parse_xlfd): Use them for sanity check.
23679 (Finternal_set_font_style_table): Make sure the table is bijective.
23680
23681 Consolidate the image_cache to the terminal struct.
23682 * termhooks.h (P_): Remove redundant def.
23683 (struct terminal): New field `image_cache'.
23684 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23685 of FRAME_X_IMAGE_CACHE.
23686 * xterm.h (struct x_display_info): Remove image_cache field.
23687 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23688 * w32term.h (struct w32_display_info): Remove image_cache field.
23689 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23690 * macterm.h (struct mac_display_info): Remove image_cache field.
23691 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23692 * xterm.c (x_term_init):
23693 * w32term.c (w32_term_init):
23694 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23695 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23696 Remove declarations.
23697 (clear_image_caches, mark_image_cache): New declarations.
23698 * xfaces.c (clear_face_cache):
23699 * xdisp.c (redisplay_internal): Use clear_image_caches.
23700 * image.c (clear_image_cache): Don't check that a frame is on
23701 a window-system before checking if it shares the same cache.
23702 (clear_image_caches): New function.
23703 (Fclear_image_cache): Use it.
23704 (mark_image): Move from allo.c.
23705 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23706 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23707 (mark_object): Don't call mark_image_cache for frames.
23708 (mark_terminals): Call mark_image_cache.
23709
23710 * lisp.h (Fdelete_terminal): Declare.
23711
23712 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23713 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23714 wrong_type_argument.
23715
23716 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23717
23718 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23719 malayalam.el, and tamil.el. Add sinhala.el.
23720
23721 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23722
23723 * xterm.c (x_connection_closed): Consolidate identical tests.
23724 (x_delete_terminal): Don't crash if called via x_connection_closed.
23725
23726 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23727
23728 * xdisp.c (decode_mode_spec): New arg string.
23729 (display_mode_element): Adjust for the above change.
23730
23731 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23732
23733 * callint.c (Fcall_interactively): Use AREF.
23734
23735 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23736
23737 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23738
23739 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23740
23741 * xfns.c (Fx_show_tip): Set string to " " if empty.
23742
23743 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23744
23745 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23746 with Qt.
23747
23748 2008-02-17 Kenichi Handa <handa@m17n.org>
23749
23750 * ftfont.c (ftfont_shape): Return Lispy number.
23751
23752 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23753 for GCs.
23754 (Finternal_set_font_selection_order): Call font_update_sort_order
23755 only when enable_font_backend is set.
23756 (realize_x_face): Set face->font_info to that of default face only
23757 when enable_font_backend is set.
23758
23759 * xdisp.c (handle_composition_prop): Set it->c to the fist
23760 character of the composed region.
23761 (fill_composite_glyph_string): Set base_face->font_info to
23762 s->font_info. Get a face for ascii from base_face->ascii_face.
23763 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23764 with a face already decided.
23765 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23766 non-negative.
23767 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23768 call font_prepare_composition unconditionally.
23769
23770 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23771
23772 * xterm.h (struct x_display_info): New member font.
23773
23774 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23775 (x_set_mouse_face_gc, x_new_font): Likewise.
23776 (x_term_init): Setup display_info->font.
23777 (x_delete_terminal): Free display_info->font.
23778
23779 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23780
23781 * ftxfont.c (ftxfont_default_fid): Delete it.
23782 (ftxfont_open): Set xfont->fid to 0.
23783 (ftxfont_end_for_frame): Clear data specific to the frame and the
23784 font-driver.
23785
23786 * xftfont.c (xftfont_default_fid): Delete it.
23787 (xftfont_open): Set xfont->fid to 0.
23788
23789 * fontset.c (FONTSET_OBJLIST): New macro.
23790 (fontset_find_font): Update font-object list of the fontset.
23791 (free_realized_fontset): New function.
23792 (free_face_fontset): Call free_realized_fontset.
23793 (Ffont_info): Call font_close_object only when enable_font_backend
23794 is set.
23795
23796 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23797 [HAVE_NTGUI]: Include w32term.h.
23798 [MAC_OS]: Include macterm.ch.
23799 (font_otf_ValueRecord): Use make_number.
23800 (font_finish_cache): Fix handling of reference count.
23801 (font_clear_cache): Update num_fonts.
23802 (font_open_entity): Update smallest_char_width and
23803 smallest_font_height of the frame.
23804 (font_close_object): Update num_fonts.
23805 (Fclear_font_cache): Fix finding the target cache data.
23806
23807 2008-02-16 Glenn Morris <rgm@gnu.org>
23808
23809 * fontset.c (Finternal_char_font): Fix compilation warning.
23810
23811 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23812
23813 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23814 instead of char arrays. Enlarge the size of array passed to
23815 get_token_information.
23816
23817 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23818 warnings.
23819
23820 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23821
23822 * .gdbinit: Don't set `args', it breaks gdb --args.
23823
23824 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23825
23826 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23827 within a narrowed buffer.
23828
23829 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23830
23831 * coding.c (decode_coding_object, encode_coding_object):
23832 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23833
23834 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23835
23836 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23837 hardcoding 1.
23838 (detect_coding_system):
23839 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23840 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23841 * insdel.c (insert_from_gap):
23842 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23843 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23844 (string_to_multibyte):
23845 * character.c (chars_in_text, multibyte_chars_in_text):
23846 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23847
23848 * character.h (FETCH_STRING_CHAR_ADVANCE)
23849 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23850 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23851 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23852
23853 * casefiddle.c (casify_region): Only call after-change and composition
23854 functions on the part of the region that was changed.
23855
23856 * keyboard.c (read_avail_input):
23857 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23858
23859 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23860
23861 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23862 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23863
23864 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23865
23866 * w32menu.c (push_submenu_start, push_submenu_end)
23867 (push_left_right_boundary, push_menu_pane, push_menu_item):
23868 * keyboard.c (read_key_sequence): Don't pass args with side effects
23869 to AREF, it fails when compiling with -DENABLE_CHECKING.
23870
23871 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23872
23873 * Makefile.in (${lispsource}international/charprop.el):
23874 Delete this target.
23875
23876 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23877 emacs-unicode-2.
23878
23879 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23880
23881 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23882
23883 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23884
23885 * frame.c (Qnoelisp): New symbol.
23886 (syms_of_frame): Initialize it.
23887 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23888 harmless Elisp code, from a strong `force' from x_connection_closed.
23889 * frame.h (Qnoelisp): Declare.
23890 * xterm.c (x_connection_closed): Pass `noelisp'.
23891
23892 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23893 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23894 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23895 rather than `int' for the type of `type'.
23896
23897 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23898
23899 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23900
23901 * Makefile.in (GNUC): Remove support for gcc-1.x.
23902
23903 2008-02-10 Richard Stallman <rms@gnu.org>
23904
23905 * lisp.h (ASET): Use AREF, not ASLOT.
23906
23907 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23908
23909 * lisp.h (ASET): Check bounds.
23910
23911 2008-02-10 Glenn Morris <rgm@gnu.org>
23912
23913 * buffer.c (mode-name): Doc fix.
23914
23915 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23916
23917 * Makefile.in:
23918 * emacs.c:
23919 * gmalloc.c:
23920 * keyboard.c:
23921 * lisp.h:
23922 * m/ibm370aix.h:
23923 * process.c:
23924 * regex.c:
23925 * s/hpux.h:
23926 * sysdep.c:
23927 * sysselect.h:
23928 * systty.h:
23929 * unexec.c:
23930 * w32term.c:
23931 * xsmfns.c:
23932 * xterm.c: Remove code that deals with obsolete variables.
23933
23934 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23935
23936 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23937 nothing else needs it anymore.
23938
23939 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23940
23941 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23942 instead of unibyte_char_to_multibyte.
23943
23944 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23945
23946 * s/gnu-linux.h: Remove commented out code.
23947
23948 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23949
23950 * Makefile.in: Update what RMS says about using autoconf.
23951 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23952 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23953 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23954 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23955
23956 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23957
23958 * keymap.c (Fkey_description): Move side effect outside of macro call.
23959
23960 * xfaces.c (Finternal_make_lisp_face):
23961 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23962
23963 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23964 (syms_of_fontset): Use ASET.
23965
23966 * fns.c (concat): Move side effect outside of macro call.
23967 (hash_clear): Use ASET.
23968
23969 2008-02-08 Richard Stallman <rms@gnu.org>
23970
23971 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23972 If FORCE, and frame has a surrogate minibuffer for another frame,
23973 delete the other frame first.
23974
23975 2008-02-07 Timo Savola <timo.savola@iki.fi>
23976
23977 * xterm.c (x_detect_focus_change): Handle embed client message.
23978 (handle_one_xevent): Ditto.
23979 (handle_one_xevent): If embedded and we get a button press/release,
23980 request focus.
23981 (xembed_set_info, xembed_send_message): New functions.
23982 (x_make_frame_visible): Call xembed_set_info if embedded.
23983 (x_make_frame_invisible): Call xembed_set_info if embedded.
23984 (x_term_init): Initialize Xatom_XEMBED.
23985 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23986 (x_iconify_frame): Ditto.
23987
23988 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23989 (enum xembed_info, enum xembed_message, enum xembed_focus)
23990 (enum xembed_modifier, enum xembed_accelerator): New.
23991 (xembed_set_info, xembed_send_message): Declare.
23992 (FRAME_X_EMBEDDED_P): New.
23993
23994 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23995 gtk_plug_new.
23996
23997 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23998 window ID of a frame.
23999 (x_window): Reparent frame if embedded.
24000 (Fx_create_frame): Don't set border width if embedded.
24001
24002 * emacs.c (USAGE3): Add --parent-id.
24003 (standard_args): Ditto.
24004
24005 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
24006
24007 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
24008
24009 2008-02-07 Jim Meyering <meyering@redhat.com>
24010
24011 Use "do...while (0)", not "if (1)...else" in macro definitions.
24012 The latter provokes a warning from gcc about the empty else, when
24013 followed by ";". Also, without that trailing semicolon, it would
24014 silently swallow up any following statement.
24015 * syntax.h (SETUP_SYNTAX_TABLE)
24016 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
24017 * buffer.h (DECODE_POSITION): Likewise.
24018 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
24019 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
24020 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
24021 (FETCH_CHAR_ADVANCE): Likewise.
24022 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
24023
24024 2008-02-07 Jim Meyering <meyering@redhat.com>
24025
24026 * lread.c [lint]: Don't include <sys/inode.h>.
24027
24028 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
24029
24030 * xselect.c (x_handle_dnd_message):
24031 * xmenu.c (digest_single_submenu, xmenu_show):
24032 * xdisp.c (with_echo_area_buffer_unwind_data)
24033 (format_mode_line_unwind_data, unwind_format_mode_line)
24034 (display_menu_bar):
24035 * eval.c (Ffetch_bytecode):
24036 * doc.c (store_function_docstring):
24037 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
24038 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
24039 * buffer.c (add_overlay_mod_hooklist): Use ASET.
24040
24041 2008-02-07 Kenichi Handa <handa@m17n.org>
24042
24043 * ftxfont.c (ftxfont_open): Don't set
24044 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
24045
24046 * ftfont.c (ftfont_open): Fix previous change.
24047
24048 2008-02-06 Jason Rumney <jasonr@gnu.org>
24049
24050 * w32font.c (w32font_text_extents): Fill in lbearing metric.
24051 Use cached metrics for ASCII characters.
24052 (w32font_open_internal): Don't set font's owning_frame.
24053 Cache metrics for ASCII characters.
24054
24055 * w32font.h (struct w32font_info): Add ascii_metrics.
24056 Remove owning_frame.
24057
24058 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
24059
24060 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
24061 to negative value.
24062
24063 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
24064
24065 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
24066
24067 * charset.c (syms_of_charset): Set QCtest and Qeq.
24068
24069 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
24070
24071 * process.c (Fstart_process):
24072 * callproc.c (Fcall_process): Handle the case where
24073 Funhandled_file_name_directory returns nil.
24074
24075 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
24076 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
24077 * font.c (check_gstring): Use them and AREF to access the vector before
24078 we know it's really a gstring.
24079 (Ffont_shape_text): Fix typo.
24080 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
24081
24082 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
24083 Declare.
24084
24085 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
24086
24087 2008-02-05 Jason Rumney <jasonr@gnu.org>
24088
24089 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
24090 Set smallest_font_height and smallest_char_width in display info.
24091
24092 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
24093
24094 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
24095
24096 2008-02-05 Miles Bader <miles@gnu.org>
24097
24098 * xfaces.c (get_lface_attributes, merge_named_face)
24099 (lookup_named_face, lookup_derived_face, realize_named_face):
24100 Revert 2008-02-01 change by cyd@stupidchicken.com.
24101
24102 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
24103
24104 * fontset.c (Ffontset_info): Handle the case of inhibitting the
24105 fallback fonts.
24106 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
24107
24108 2008-02-04 Jason Rumney <jasonr@gnu.org>
24109
24110 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
24111 set full_name.
24112 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
24113
24114 2008-02-03 Jason Rumney <jasonr@gnu.org>
24115
24116 * makefile.w32-in (OBJ1): Include font.o here.
24117 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
24118
24119 2008-02-02 Jason Rumney <jasonr@gnu.org>
24120
24121 * makefile.w32-in (temacs): Bump EMHEAP to 21.
24122
24123 2008-02-01 Jason Rumney <jasonr@gnu.org>
24124
24125 * s/cygwin.h: Define VIRT_ADDR_VARIES.
24126
24127 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
24128
24129 2008-02-01 Andreas Schwab <schwab@suse.de>
24130
24131 * Makefile.in (shortlisp, lisp): Update for rename of
24132 ../lisp/language/myanmar.el.
24133
24134 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
24135
24136 * xfaces.c (get_lface_attributes): Delete function.
24137 (merge_named_face, lookup_named_face, lookup_derived_face)
24138 (realize_named_face): Call lface_from_face_name directly, and use
24139 the fact that merge_face_vectors does not alter its FROM argument.
24140
24141 2008-02-01 Jason Rumney <jasonr@gnu.org>
24142
24143 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
24144 input in the default locale. Handle non-Unicode multibyte input.
24145
24146 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24147
24148 * fontset.c (reorder_font_vector): Exclude nil elements from the
24149 font group. Don't try multiple fonts.
24150 (fontset_font): Adjust for the above change.
24151 (Finternal_char_font): Return nil if the found font doesn't
24152 contain the character ch.
24153
24154 * Makefile.in (lisp, shortlisp): Add cham.el.
24155
24156 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24157
24158 * font.h (FONTP): Make it return 1 also for a font-object.
24159
24160 * .gdbinit (xfontset): New function.
24161
24162 * font.c (font_find_for_lface): Check if the character C is
24163 supported or not only for the first font.
24164
24165 * fontset.c (reorder_font_vector): Fix typo.
24166 (fontset_find_font): Don't add a font-spec specifying a script.
24167 Use 0 (not Qt) for the indication of empty font-group. Change the
24168 format of RFONT-DEF. Return Qt if no font in the font-group
24169 support the character.
24170 (fontset_font): Adjust for the above change. If no font was
24171 found the character, remember that.
24172 (face_for_char): Adjust for the change of RFONT-DEF.
24173 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
24174 no font for the target.
24175 (Finternal_char_font): Adjust for the change of RFONT-DEF.
24176
24177 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24178
24179 * font.c (font_load_for_face): Handle the case that the font in
24180 face->lface is a string.
24181
24182 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24183
24184 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
24185
24186 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24187
24188 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
24189 Fix previous change. If the frame is not on a window system,
24190 signal an error.
24191
24192 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24193
24194 * coding.c (decode_coding_object, encode_coding_object):
24195 Adjust marker positions after conversion.
24196
24197 * lisp.h (struct Lisp_Marker): New member need_adjustment.
24198
24199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24200
24201 * font.c (font_find_for_lface): Fix the handling of the return
24202 value of font_has_char.
24203 (Ffont_shape_text): Fix previous change.
24204
24205 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
24206 (fontset_ref_and_range): Delete it.
24207 (fontset_find_font): Call char_table_ref_and_range instead of
24208 FONTSET_REF_AND_RANGE.
24209 (make_fontset): Don't setup font groups of Latin here.
24210 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
24211 (new_fontset_from_font): Make the specified font the default for
24212 all Latin characters.
24213
24214 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24215
24216 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
24217 is on a window system before accessing the fontset of the frame.
24218
24219 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24220
24221 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
24222
24223 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
24224 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
24225
24226 * font.c (Ffont_shape_text): If the font driver doesn't have a
24227 shaper function, make zero-width glyphs to have at least one-pixel
24228 width. Fix setting of `to' field of glyphs.
24229
24230 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24231
24232 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
24233 glyphs.
24234
24235 * font.h (struct font_driver): Improve docstring of member `shape'.
24236
24237 2008-02-01 Kenichi Handa <handa@m17n.org>
24238
24239 * composite.c (syms_of_composite): Fix docstring of
24240 auto-composition-function.
24241
24242 * font.h (LGLYPH_SIZE): New macro.
24243
24244 * font.c (Ffont_fill_gstring): Stop filling when a character not
24245 supported by the font is found.
24246 (Ffont_shape_text): When a shape callback function returns nil,
24247 try at most two more times with larger gstring.
24248 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
24249
24250 * xdisp.c (handle_auto_composed_prop): Change the argument to
24251 auto-composition-function.
24252
24253 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
24254 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
24255 Lispy glyph and store it in the lgstring.
24256
24257 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
24258
24259 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
24260
24261 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24262
24263 * font.c (Ffont_shape_text): Avoid unnecessary composition.
24264
24265 * fontset.c (Vfont_encoding_charset_alist): New variable.
24266 (syms_of_fontset): DEFVAR it.
24267 (reorder_font_vector, fontset_find_font): Optimize for the case of
24268 no need of reordering.
24269 (face_for_char): Map the charset property by
24270 Vfont_encoding_charset_alist.
24271
24272 2008-02-01 Jason Rumney <jasonr@gnu.org>
24273
24274 * w32font.c (logfonts_match): Don't check adstyle here.
24275 (font_matches_spec): Check here against physical font instead.
24276 (add_font_entity_to_list): Avoid some substitutions.
24277
24278 * font.c (font_parse_fcname): Default weight and slant to normal.
24279 (font_score): Prefer normal fonts if weight or slant unspecified.
24280 (font_score) [WINDOWSNT]: Scale weight difference down to closer
24281 match freetype scores.
24282
24283 2008-02-01 Jason Rumney <jasonr@gnu.org>
24284
24285 * w32font.c (w32font_text_extents): Don't use the frame stored in the
24286 font, as it may have been deleted.
24287 (w32_enumfont_pattern_entity): Map generic family to adstyle using
24288 most common hyphenless variation.
24289 (logfonts_match): Check generic family.
24290 (font_matches_spec): Don't check generic family here.
24291 (fill_in_logfont): Set generic family based on adstyle.
24292
24293 * w32font.h (w32font_get_cache): Update declaration.
24294
24295 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24296
24297 * ftfont.c (ftfont_get_cache): Adjust the argument type.
24298
24299 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24300 If none of the new drivers are available, call font_update_drivers
24301 with the old drivers.
24302
24303 * w32font.c (w32font_get_cache): Adjust the argument type.
24304
24305 * xfont.c (xfont_get_cache): Adjust the argument type.
24306
24307 * font.h (struct font_driver): Change argument type of get_cache.
24308
24309 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24310
24311 * font.c (Ffont_get): Fix arguments to Fassoc.
24312 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24313 (font_clear_cache): New function.
24314 (font_list_entities, font_matching_entity): Use font_get_cache.
24315 (font_update_drivers): Call font_clear_cache when finishing a driver.
24316
24317 * fontset.c (fontset_find_font): Fix previous change.
24318
24319 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24320
24321 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24322 dpyinfo->font_table.
24323 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24324 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24325
24326 * font.c (font_at): Handle the case that the arg C is negative.
24327 Handle the unibyte case.
24328 (Ffont_at): Call font_at with the arg C -1.
24329
24330 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24331 the position here, and call font_at with the arg C -1.
24332 Don't check the range of the existing composition at the point.
24333
24334 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24335
24336 * fontset.c (fontset_add): New args charset_id and family.
24337 Change caller.
24338 (load_font_get_repertory, fontset_find_font): Assume that
24339 font_spec is always a font-spec object.
24340 (Fset_fontset_font): Always store a font-spec object in a fontset.
24341
24342 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24343 instead of get_property_and_range.
24344
24345 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24346
24347 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24348 (xftfont_open): Don't keep locking face.
24349 (xftfont_close): Don't unlock face.
24350 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24351
24352 * fontset.c (fontset_find_font): Don't prefer a font of
24353 supplementary charset.
24354
24355 2008-02-01 Kenichi Handa <handa@m17n.org>
24356
24357 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24358 script, langsys_tag to langsys, new member script.
24359 (OTF_TAG_STR): Terminate by '\0'.
24360 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
24361 listing to the script specified in that property. Fix arg to
24362 OTF_check_features.
24363
24364 2008-02-01 Jason Rumney <jasonr@gnu.org>
24365
24366 * w32font.h: New file.
24367
24368 * w32font.c: Include it.
24369 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24370 (w32font_open): Set owning_frame.
24371 (w32font_text_extents): Use owning_frame.
24372 (struct font_callback_data): Add opentype_only field.
24373 (add_font_entity_to_list): Use it to filter fonts.
24374 Don't check against full name.
24375 (w32font_list_internal): New function.
24376 (w32font_list): Use it.
24377 (w32font_match_internal): New function.
24378 (w32font_match): Use it.
24379 (w32font_open_internal): New function.
24380 (w32font_open): Use it.
24381 (w32font_get_cache, w32font_close, w32font_has_char)
24382 (w32font_encode_char, w32font_text_extents, w32font_draw):
24383 Make non-static.
24384
24385 * makefile.w32-in (w32font.o): Depend on w32font.h.
24386
24387 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24388
24389 * charset.c (Fdefine_charset_internal): Record a supplementary
24390 charset at the tail of Vcharset_order_list.
24391
24392 * font.c (Ffont_shape_text): Fix the return value.
24393
24394 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24395
24396 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24397
24398 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24399
24400 * ftfont.c (struct OpenTypeSpec): New struct.
24401 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24402 (ftfont_get_open_type_spec): New function.
24403 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24404
24405 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24406
24407 2008-02-01 Jason Rumney <jasonr@gnu.org>
24408
24409 * w32font.c (add_font_entity_to_list): Compare only the beginning
24410 of full name.
24411
24412 2008-02-01 Kenichi Handa <handa@m17n.org>
24413
24414 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24415 Never return HANDLED_RECOMPUTE_PROPS.
24416
24417 2008-02-01 Kenichi Handa <handa@m17n.org>
24418
24419 * font.c (font_gstring_produce): Delete it.
24420
24421 * composite.h (COMPOSITION_METHOD):
24422 Handle COMPOSITION_WITH_GLYPH_STRING.
24423
24424 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24425
24426 * xfont.c (Qx): Delete.
24427 (syms_of_xfont): Don't initialize Qx.
24428
24429 * composite.h (enum composition_method):
24430 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24431
24432 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24433
24434 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24435 (choose_face_font): Accept new form of font-spec.
24436
24437 * frame.h (font_driver_list): Declare it unconditionally.
24438 (struct frame): Define members font_driver_list and font_data_list
24439 unconditionally.
24440
24441 * fontset.c: Include "font.h" unconditionally.
24442 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24443 (Fset_fontset_font): Accept a font-spec object.
24444
24445 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24446 PIXEL_SIZE part a wild card.
24447
24448 * dispextern.h (struct glyph_string): Define members clip and
24449 num_clips unconditionally.
24450 (struct face): Define members font_info and extra unconditionally.
24451
24452 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24453 ftfont_info only when HAVE_LIBOTF is defined.
24454
24455 2008-02-01 Andreas Schwab <schwab@suse.de>
24456
24457 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24458 and end.
24459
24460 2008-02-01 Jason Rumney <jasonr@gnu.org>
24461
24462 * w32font.c (w32font_driver): Add new fields.
24463
24464 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24465
24466 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24467 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24468 (LIBES): Add @M17N_FLT_CFLAGS@.
24469
24470 * composite.c (compose_text): Don't treat the new style
24471 composition specially.
24472
24473 * emacs.c (main): Call syms_of_font unconditionally.
24474
24475 * font.h (FONT_ENTITY_NOT_LOADABLE)
24476 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24477 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24478 (struct font_driver): New member shape.
24479 (font_registry_charsets): Extern it.
24480 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24481 (font_otf_capability, font_drive_otf): Delete their externs.
24482
24483 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24484 (font_charset_alist, font_registry_charsets): Move from xfont.c
24485 and rename.
24486 (font_prop_validate_otf): New function.
24487 (font_property_table): Register it for QCotf.
24488 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24489 (font_drive_otf): Delete.
24490 (font_prepare_composition): New arg F. Adjust for the change of
24491 lispy gstring.
24492 (font_find_for_lface): New arg C.
24493 (font_load_for_face): Adjust for the change of font_find_for_lface.
24494 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24495 lispy gstring.
24496 (Ffont_shape_text): New function.
24497 (Fopen_font): If the font size is not given, use 12-pixel.
24498 (Ffont_at): New arg STRING.
24499 (syms_of_font): Initialize font_charset_alist.
24500 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24501 conditionally.
24502
24503 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24504 fonts of the same font-spec. Change the format of RFONT-DEF.
24505 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24506 Adjust for the change of RFONT-DEF.
24507 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24508
24509 * ftfont.h: New file.
24510
24511 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24512 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24513 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24514 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24515 font_otf_capability and font_drive_otf, set ftfont_shape.
24516 (ftfont_list): Adjust for the change of :otf property value.
24517 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24518 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24519 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24520 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24521 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24522 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24523
24524 * w32term.c (x_draw_composite_glyph_string_foreground):
24525 Adjust for the change of lispy gstring.
24526
24527 * xdisp.c (handle_composition_prop): Adjust for the change of
24528 lispy gstring. Call a function for auto-composition with the
24529 third arg it->window.
24530 (fill_composite_glyph_string): Adjust for the change of lispy string.
24531 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24532
24533 * xfaces.c (set_font_frame_param): Adjust for the change of
24534 font_find_for_lface.
24535
24536 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24537 (xfont_registry_charsets): Likewise. Change caller.
24538 (syms_of_xfont): Don't handle x_font_charset_alist.
24539
24540 * xftfont.c: Include "ftfont.h".
24541 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24542 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24543 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24544 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24545 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24546 Set xftfont_driver.shape to xftfont_shape.
24547
24548 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24549 the change of lispy gstring.
24550
24551 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24552
24553 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24554
24555 2008-02-01 Jason Rumney <jasonr@gnu.org>
24556
24557 * w32font.c (w32font_draw): Fill background manually.
24558
24559 2008-02-01 Jason Rumney <jasonr@gnu.org>
24560
24561 * font.c (Qfontp): Remove unused symbol.
24562 (QCantialias): New symbol.
24563 (syms_of_font): Define it.
24564 (font_property_table): Set a validator for QCantialias.
24565
24566 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24567 Define if not already.
24568 (QCfamily): Share with xfaces.c.
24569 (Qstandard, Qsubpixel, Qnatural): New symbols.
24570 (syms_of_w32font): Define them. Don't define QCfamily here.
24571 (w32_antialias_type, lispy_antialias_type): New functions.
24572 (w32_enumfont_pattern_entity): New arg requested_font.
24573 Set antialias parameter if non-default was requested.
24574 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24575
24576 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24577
24578 * lread.c (read1): Undo the previous change.
24579
24580 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24581
24582 * frame.c (Fdelete_frame): Call font_update_drivers only when
24583 USE_FONT_BACKEND is defined.
24584
24585 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24586
24587 * font.h (struct font_bitmap): New member bits_per_pixel.
24588 (struct font_driver): New members start_for_frame and end_for_frame.
24589 (struct font_data_list): New struct.
24590 (font_put_frame_data, font_get_frame_data): Extern them.
24591
24592 * frame.h (struct frame): New member font_data_list.
24593
24594 * font.c (font_update_drivers): Call driver->start_for_frame and
24595 driver->end_for_frame at proper timings.
24596 (font_put_frame_data, font_get_frame_data): New functions.
24597 (Ffont_spec): Add usage in the docstring.
24598
24599 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24600 (Fdelete_frame): Call font_update_drivers.
24601
24602 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24603 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24604 (xftfont_get_xft_draw): New function.
24605 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24606 (xftfont_end_for_frame): New function.
24607 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24608
24609 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24610 Change argument. Cache GCs in the per-frame data.
24611 (struct ftxfont_frame_data): New struct.
24612 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24613 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24614 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24615 (ftxfont_end_for_frame): New function.
24616 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24617
24618 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24619
24620 2008-02-01 Kenichi Handa <handa@m17n.org>
24621
24622 * xselect.c (Vselection_coding_system)
24623 (Vnext_selection_coding_system): Delete them.
24624 (syms_of_xselect): Don't declare selection-coding-system and
24625 next-selection-coding-system. They are declared in select.el.
24626
24627 2008-02-01 Jason Rumney <jasonr@gnu.org>
24628
24629 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24630
24631 * w32fns.c: Include imm.h.
24632 (get_composition_string_fn, get_ime_context_fn): New optional
24633 system functions.
24634 (globals_of_w32fns): Load them from imm32.dll.
24635 (ignore_ime_char): New flag.
24636 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24637 WM_IME_ENDCOMPOSITION messages.
24638
24639 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24640 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24641
24642 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24643
24644 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24645 (READCHAR_REPORT_MULTIBYTE): New macro.
24646 (readchar): New 2nd arg MULTIBYTE.
24647 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24648 Make symbol's name multibyte according to the multibyteness of the
24649 source.
24650
24651 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24652
24653 * xfaces.c (face_for_overlay_string): Call lookup_face with
24654 correct arguments (fix of synching with the trunk).
24655
24656 2008-02-01 Kenichi Handa <handa@m17n.org>
24657
24658 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24659 (font_prop_validate_non_neg, font_prop_validate_spacing):
24660 Delete argument prop_index.
24661 (font_property_table): Change arguments to validater. Change Callers.
24662 (font_lispy_object): Delete.
24663 (font_at): Use font_find_object instead fo font_lispy_object.
24664
24665 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24666
24667 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24668 and file names.
24669
24670 2008-02-01 Jason Rumney <jasonr@gnu.org>
24671
24672 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24673 (font_matches_spec): Remove debug output.
24674 (add_font_entity_to_list): Avoid using substituted fonts.
24675
24676 2008-02-01 Jason Rumney <jasonr@gnu.org>
24677
24678 * doc.c (Fsnarf_documentation):
24679 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24680
24681 2008-02-01 Miles Bader <miles@gnu.org>
24682
24683 * dispextern.h (struct glyph_row): Only define "clip" field if
24684 HAVE_WINDOW_SYSTEM is defined.
24685
24686 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24687
24688 Fix up multi-tty merge.
24689
24690 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24691 and indentation.
24692
24693 * xfaces.c (free_realized_face, clear_face_gcs):
24694 Include font_done_for_face in the input_blocked section, just in case.
24695
24696 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24697 (get_char_face_and_encoding): Undo last change and remove the *other*
24698 duplicate definition (i.e. keep the one that's better scoped and that
24699 includes code for the font-backend).
24700
24701 * terminal.c (create_terminal): Default keyboard_coding to
24702 `no-conversion' and terminal_coding to `undecided'.
24703
24704 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24705
24706 * fontset.c (free_realized_fontsets): Check that the table entry does
24707 contain a fontset before trying to compare it to `base'.
24708
24709 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24710 syms_of_charset, and syms_of_coding earlier because init_window_once
24711 now needs Vcoding_system_hash_table to be setup.
24712
24713 * coding.h (default_buffer_file_coding): Remove.
24714
24715 * coding.c (default_buffer_file_coding): Remove.
24716 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24717 than ->symbol, and use the terminal-local coding system.
24718 (syms_of_coding): Don't setup the coding-systems that are not
24719 terminal-local.
24720 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24721
24722 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24723 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24724
24725 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24726 in chartab.c and were re-added here by mistake.
24727 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24728
24729 * doc.c (Fsnarf_documentation):
24730 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24731 src to etc.
24732
24733 * ChangeLog.10: Add mistakenly removed entry.
24734
24735 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24736
24737 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24738
24739 2008-02-01 Miles Bader <miles@gnu.org>
24740
24741 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24742 Add extra args to FACE_FOR_CHAR.
24743
24744 2008-02-01 Kenichi Handa <handa@m17n.org>
24745
24746 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24747 in sequence.
24748
24749 * chartab.c (map_sub_char_table, map_char_table): If the range
24750 contains just one character, call the function with that character
24751 even if the depth is not 3.
24752
24753 2008-02-01 Jason Rumney <jasonr@gnu.org>
24754
24755 * w32font.c (w32font_text_extents): Calculate metrics for the
24756 whole string.
24757
24758 2008-02-01 Jason Rumney <jasonr@gnu.org>
24759
24760 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24761
24762 2008-02-01 Jason Rumney <jasonr@gnu.org>
24763
24764 * w32term.c (x_set_glyph_string_clipping):
24765 Use get_glyph_string_clip_rects.
24766 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24767 Adjust for the change of struct glyph_string.
24768
24769 * w32font.c (w32font_draw): Do clipping here.
24770
24771 2008-02-01 Kenichi Handa <handa@m17n.org>
24772
24773 * xftfont.c (xftfont_draw): Adjust for the change of struct
24774 glyph_string.
24775
24776 * xterm.c (x_set_glyph_string_clipping):
24777 Use get_glyph_string_clip_rects.
24778 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24779 Adjust for the change of struct glyph_string.
24780
24781 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24782 the resulting clip(s}.
24783 (expose_overlaps): Add arg r. Change callers. Set it to
24784 row->clip temporarily.
24785 (expose_window): Redraw rows overlapping the exposed area.
24786
24787 * dispextern.h (struct glyph_row): New member clip.
24788 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24789 clip_height, new member clip, and num_clips.
24790
24791 2008-02-01 Kenichi Handa <handa@m17n.org>
24792
24793 * data.c (Fchar_or_string_p): Fix docstring.
24794
24795 2008-02-01 Kenichi Handa <handa@m17n.org>
24796
24797 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24798 create a temporary XftDraw object.
24799
24800 2008-02-01 Kenichi Handa <handa@m17n.org>
24801
24802 * font.c (Ffontp): Fix docstring.
24803
24804 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24805 strong evidence of ISO-2022.
24806
24807 2008-02-01 Kenichi Handa <handa@m17n.org>
24808
24809 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24810 SYNTAX_ENTRY_FOLLOW_PARENT.
24811
24812 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24813
24814 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24815 its type.
24816 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24817 Update to the new type of weak_hash_tables and next_weak.
24818
24819 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24820 a plain C pointer to Lisp_Hash_Table.
24821
24822 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24823 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24824 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24825 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24826 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24827 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24828 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24829 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24830 (GC_EQ): Remove since they've been identical to their non-GC_
24831 alter-egos ever since the markbit was eradicated.
24832
24833 * alloc.c:
24834 * buffer.c:
24835 * buffer.h:
24836 * data.c:
24837 * fileio.c:
24838 * filelock.c:
24839 * fns.c:
24840 * frame.h:
24841 * lisp.h:
24842 * macterm.c:
24843 * print.c:
24844 * process.c:
24845 * w32fns.c:
24846 * w32menu.c:
24847 * w32term.c:
24848 * xfns.c:
24849 * xmenu.c:
24850 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24851
24852 2008-02-01 Kenichi Handa <handa@m17n.org>
24853
24854 * chartab.c (map_sub_char_table): Make it work for the top-level
24855 char-table. Fix handling of parent char-table.
24856 (map_char_table): Adjust for the above change.
24857
24858 2008-02-01 Jason Rumney <jasonr@gnu.org>
24859
24860 * w32font.c (Qgdi): Rename from Qw32.
24861
24862 2008-02-01 Jason Rumney <jasonr@gnu.org>
24863
24864 * w32bdf.c (get_quoted_string): Make function static.
24865
24866 2008-02-01 Kenichi Handa <handa@m17n.org>
24867
24868 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24869 bigger ascent and descent than those of the font, use them as
24870 font's ascent and descent.
24871
24872 2008-02-01 Kenichi Handa <handa@m17n.org>
24873
24874 * Makefile.in (${lispsource}international/charprop.el): Move this
24875 target within "#ifdef HAVE_UNIDATA" and "#endif".
24876
24877 2008-02-01 Kenichi Handa <handa@m17n.org>
24878
24879 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24880 (shortlisp): Add ../lisp/language/tai-viet.el.
24881
24882 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24883
24884 * Makefile.in (${lispsource}international/charprop.el): Depend on
24885 temacs${EXEEXT}.
24886
24887 2008-02-01 Jason Rumney <jasonr@gnu.org>
24888
24889 * w32font.c (w32font_close): Delete the GDI font object.
24890
24891 * w32menu.c: Include character.h.
24892
24893 * w32proc.c: Likewise.
24894
24895 * w32select.c: Likewise.
24896
24897 * makefile.w32-in (w32proc.o): Depend on character.h.
24898
24899 2008-02-01 Jason Rumney <jasonr@gnu.org>
24900
24901 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24902
24903 * w32menu.c (syms_of_w32menu): Likewise.
24904
24905 * w32proc.c (syms_of_ntproc): Likewise.
24906
24907 * w32select.c (syms_of_w32select): Likewise.
24908
24909 * w32term.c (syms_of_w32term): Likewise.
24910
24911 2008-02-01 Jason Rumney <jasonr@gnu.org>
24912
24913 * w32font.c (w32font_draw): Delete brush after using it.
24914
24915 2008-02-01 Jason Rumney <jasonr@gnu.org>
24916
24917 * w32font.c (w32font_open): Don't set font_idx.
24918 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24919 to font settings.
24920 (w32font_draw): Fill background explicitly.
24921
24922 2008-02-01 Jason Rumney <jasonr@gnu.org>
24923
24924 * w32term.c (w32_initialize): Don't call w32font_initialize.
24925
24926 * w32font.c (w32font_info): Remove subranges.
24927 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24928 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24929 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24930 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24931 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24932 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24933 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24934 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24935 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24936 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24937 New symbols.
24938 (font_callback_data): New struct.
24939 (w32font_list, w32font_match): Use it.
24940 (w32font_open): Don't populate subranges.
24941 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24942 (w32font_encode_char): Always return unicode code-point as-is.
24943 (w32font_text_extents): Supply a transformation matrix to
24944 GetGlyphOutline. Never look up by glyph index. Avoid looping
24945 twice. Use unicode version of GetTexExtentPoint32 instead of
24946 glyph index version.
24947 (set_fonts_frame): Remove.
24948 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24949 set frame parameter. Use backward compatible fake foundries.
24950 Save generic family in extra slot under QCfamily. Make width slot
24951 constant. Save QCspacing value. Save list of scripts instead of
24952 binary subranges.
24953 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24954 (add_font_entity_to_list): Use font_callback_data struct.
24955 Filter unwanted fonts.
24956 (add_one_font_entity_to_list): Use font_callback_data struct.
24957 (w32_registry): Default to iso10646_1.
24958 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24959 string font registries. Don't fill in font name if it is a generic
24960 family name, fill family instead. Use spacing, family and script
24961 extra info to fill pitch, family and charset fields.
24962 (list_all_matching_fonts): Use font_callback_data struct.
24963 (unicode_range_for_char): Remove.
24964 (font_supported_scripts): New function.
24965 (w32font_initialize): Remove.
24966 (syms_of_w32font): Update which symbols are defined.
24967
24968 2008-02-01 Jason Rumney <jasonr@gnu.org>
24969
24970 * font.c (font_pixel_size): Reverse assq_no_quit args.
24971
24972 * w32term.h (FONT_WIDTH): Report max width, not average.
24973 (FONT_MAX_WIDTH): Remove.
24974 (FONT_AVG_WIDTH): New macro.
24975
24976 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24977 redefinition of FONT_WIDTH.
24978
24979 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24980 (w32_cache_char_metrics): Use FONT_WIDTH.
24981
24982 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24983
24984 2008-02-01 Jason Rumney <jasonr@gnu.org>
24985
24986 * w32font.c (w32font_open): Make lfHeight negative.
24987
24988 * w32fns.c (x_default_font_parameter): Use new style font name.
24989 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24990
24991 2008-02-01 Jason Rumney <jasonr@gnu.org>
24992
24993 * w32font.c (QCsubranges): New symbol.
24994 (w32font_open, w32font_has_char): Get subranges from subproperty
24995 of extra.
24996 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24997 (syms_of_w32font): Define :subranges symbol.
24998
24999 * font.c (font_put_extra): Expose externally.
25000
25001 * font.h (font_put_extra): Move declaration from font.c.
25002
25003 * font.c (Ffont_get): Use font driver to determine otf capability.
25004 (adjust_anchor): Check if driver defines anchor_point before using.
25005
25006 * w32font.c (w32font_open): Handle size, height and pixel_size better.
25007 (w32font_draw): Use options.
25008 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
25009 Fix detection of truetype fonts.
25010 (registry_to_w32_charset): Handle charsets other than iso8859-1
25011 expressed as lisp symbols.
25012 (w32_registry): Express charset as lisp symbol.
25013 (fill_in_logfont): Reverse pixel and point height logic.
25014 Don't set width here. Set quality to default.
25015
25016 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
25017 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
25018
25019 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
25020 Remove redundant loop and allocation.
25021
25022 * makefile.w32-in (font.o, w32font.o): New objects.
25023 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
25024 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
25025
25026 * xdisp.c (fill_composite_glyph_string): Make the first arg to
25027 STORE_XCHARB a valid l-value.
25028
25029 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
25030 calculations for non-Truetype fonts.
25031 (x_draw_glyph_string): Sync with xterm.c.
25032 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
25033 Remove redundant code.
25034 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
25035
25036 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
25037 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
25038
25039 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
25040 (x_to_w32_charset, w32_to_x_charset): Expose externally.
25041
25042 * w32font.c: New file for w32 font backend.
25043
25044 2008-02-01 Kenichi Handa <handa@m17n.org>
25045
25046 * term.c: Don't include "buffer.h" twice.
25047
25048 2008-02-01 Kenichi Handa <handa@m17n.org>
25049
25050 * character.c (Funibyte_string): New function.
25051 (syms_of_character): Defsubr it.
25052
25053 2008-02-01 Jason Rumney <jasonr@gnu.org>
25054
25055 * w32term.c [USE_FONT_BACKEND]:
25056 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
25057 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
25058 (x_draw_glyph_string, x_draw_glyph_string_foreground)
25059 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
25060 (x_free_frame_resources): Sync with xterm.c.
25061
25062 2008-02-01 Andreas Schwab <schwab@suse.de>
25063
25064 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
25065 char-table size.
25066
25067 2008-02-01 Kenichi Handa <handa@m17n.org>
25068
25069 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
25070
25071 2008-02-01 Kenichi Handa <handa@m17n.org>
25072
25073 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
25074 font_otf_gpos, add font_drive_otf.
25075
25076 * fontset.c (fontset_find_font): Pay attention to font size
25077 specified for a font.
25078 (reorder_font_vector): Check contents of font_def.
25079
25080 * font.c (struct otf_list): Delete it.
25081 (otf_list): Make it a lisp variable.
25082 (otf_open): Use lispy otf_list.
25083 (generate_otf_features): Rename from parse_gsub_gpos_spec.
25084 (check_otf_features): New function.
25085 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
25086 New functions.
25087 (font_drive_otf): New function merging font_otf_gsub and
25088 font_otf_gpos.
25089 (font_open_for_lface): New arg spec. Change argument order.
25090 (font_load_for_face): Adjust for the change of font_open_for_lface.
25091 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
25092 Ffont_otf_gpos.
25093 (syms_of_font): Staticpro otf_list. Delete defsubr of
25094 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
25095
25096 * xfaces.c (set_font_frame_param): Adjust for the change of
25097 font_open_for_lface.
25098
25099 * font.h (font_open_for_lface): Adjust prototype.
25100 (struct font_driver): Delete members otf_gsub and otf_gpos, add
25101 member otf_drive.
25102 (font_otf_gsub, font_otf_gpos): Delete externs.
25103 (font_drive_otf): Extern it.
25104
25105 2008-02-01 Kenichi Handa <handa@m17n.org>
25106
25107 * font.c (font_at): If the window W is not on a window system,
25108 return Qnil.
25109
25110 * coding.c (produce_chars, encode_coding): Don't call
25111 insert_from_gap if no characters to produce.
25112
25113 2008-02-01 Kenichi Handa <handa@m17n.org>
25114
25115 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
25116 Fclear_face_cache.
25117
25118 * xfaces.c (face_for_font): Check also face->font==font->font.font.
25119
25120 2008-02-01 Miles Bader <miles@gnu.org>
25121
25122 * emacs.c (main): Change default value of `enable_font_backend' to 1.
25123 Parse "--disable-font-backend" option.
25124 (standard_args): Add "--disable-font-backend" option.
25125
25126 2008-02-01 Kenichi Handa <handa@m17n.org>
25127
25128 * fontset.c (fontset_find_font): New function.
25129 (fontset_font): Use fontset_find_font.
25130 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
25131 Register the specified font for all Latin characters.
25132 (new_fontset_from_font): Register the specified font for all Latin
25133 characters.
25134 (dump_fontset): For a realized fontset, include the base fontset
25135 name in the returned vector.
25136
25137 2008-02-01 Kenichi Handa <handa@m17n.org>
25138
25139 * character.h (CHAR_STRING): Cast C to unsigned on calling
25140 char_string.
25141
25142 * character.c (char_string): Type of arg C changed to unsigned.
25143 Signal an error if C is an invalid character code.
25144
25145 * editfns.c (general_insert_function, Fchar_to_string):
25146 Use CHARACTERP, not INTEGERP.
25147
25148 2008-02-01 Kenichi Handa <handa@m17n.org>
25149
25150 * character.h (MIN_MULTIBYTE_LEADING_CODE)
25151 (MAX_MULTIBYTE_LEADING_CODE): New macros.
25152
25153 * regex.c (analyse_first): Fix for multibyte characters in "case
25154 charset:" and "case categoryspec:".
25155
25156 2008-02-01 Andreas Schwab <schwab@suse.de>
25157
25158 * Makefile.in (LIBES): Move standard libraries to the end.
25159
25160 2008-02-01 Kenichi Handa <handa@m17n.org>
25161
25162 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
25163 nonzero, don't shrink the buffer nextb.
25164
25165 * buffer.h (struct buffer_text): New member inhibit_shrinking.
25166
25167 * coding.c (coding_alloc_by_making_gap): New arg offset.
25168 (alloc_destination): Call coding_alloc_by_making_gap with the arg
25169 offset.
25170 (decode_coding_iso_2022): Update coding->safe_charsets.
25171 (decode_coding_gap): Temporarily set
25172 current_buffer->text->inhibit_shrinking to 1.
25173
25174 2008-02-01 Kenichi Handa <handa@m17n.org>
25175
25176 * xterm.c (x_draw_composite_glyph_string_foreground):
25177 Fix indexing into elements of s->cmp and s->char2b.
25178
25179 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
25180
25181 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
25182
25183 2008-02-01 Kenichi Handa <handa@m17n.org>
25184
25185 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
25186 target_multibyte instead of multibyte.
25187 (re_match_2_internal): Call bcmp_translate with target_multibyte.
25188 (bcmp_translate): Change the argument name from multibyte to
25189 target_multibyte.
25190
25191 2008-02-01 Kenichi Handa <handa@m17n.org>
25192
25193 These changes are to compile a regexp into a pattern that can be
25194 used both for multibyte and unibyte targets.
25195
25196 * Makefile.in (search.o): Depend on charset.h.
25197
25198 * character.c (multibyte_char_to_unibyte_safe): New function.
25199
25200 * search.c: Include "charset.h".
25201 (compile_pattern_1): Delete argument multibyte. Don't set
25202 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
25203 (compile_pattern): Don't compare cp->buf.target_multibyte.
25204 Compare cp->buf.charset_unibyte.
25205 (compile_pattern): Set cp->buf.target_multibyte.
25206
25207 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
25208
25209 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
25210
25211 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
25212 multibyte. Change callers.
25213 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
25214 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
25215 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
25216 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
25217 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
25218 (regex_compile): Make the compiled pattern usable both for
25219 multibyte and unibyte targets.
25220 (analyse_first): Make the fastmap usable both for multibyte and
25221 unibyte targets.
25222 (TRANSLATE_VIA_MULTIBYTE): Delete.
25223 (re_match_2_internal): Pay attention to the case that the
25224 multibyteness of bufp and target may be different.
25225
25226 2008-02-01 Kenichi Handa <handa@m17n.org>
25227
25228 * xdisp.c (x_produce_glyphs): When a font is not found, make the
25229 empty box occupy at least one column width.
25230
25231 2008-02-01 Miles Bader <miles@gnu.org>
25232
25233 * Makefile.in: Remove redundant HAVE_XFT clause.
25234
25235 2008-02-01 Kenichi Handa <handa@m17n.org>
25236
25237 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
25238
25239 2008-02-01 Kenichi Handa <handa@m17n.org>
25240
25241 * fontset.c (Finternal_char_font): Fix for the case of POSITION
25242 being nil.
25243
25244 2008-02-01 Kenichi Handa <handa@m17n.org>
25245
25246 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
25247
25248 2008-02-01 Kenichi Handa <handa@m17n.org>
25249
25250 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
25251
25252 2008-02-01 Kenichi Handa <handa@m17n.org>
25253
25254 * search.c (simple_search): Fix previous change.
25255
25256 2008-02-01 Kenichi Handa <handa@m17n.org>
25257
25258 * xftfont.c (ftfont_font_format): Extern declaration.
25259
25260 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
25261
25262 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
25263 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
25264
25265 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
25266 (ftfont_font_format): Fix previous change.
25267
25268 * font.h (Ffont_xlfd_name): EXFUN it.
25269
25270 * font.c (font_parse_xlfd): Fix the array size of `f'.
25271 (register_font_driver): Use EQ to compare driver->type.
25272
25273 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
25274 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
25275 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
25276
25277 2008-02-01 Kenichi Handa <handa@m17n.org>
25278
25279 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
25280 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
25281
25282 2008-02-01 Kenichi Handa <handa@m17n.org>
25283
25284 * xfont.c (xfont_open): Set font->format.
25285
25286 * xftfont.c (xftfont_open): Set font->format.
25287
25288 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
25289 (ftfont_list): Include FC_FONTFORMAT in FcObject.
25290 (ftfont_open): Set font->format.
25291 (ftfont_font_format): New function.
25292
25293 * font.h (struct font): New member format.
25294
25295 * font.c (Qopentype): New variable.
25296 (syms_of_font): Defsym it.
25297 (Fquery_font): Change the format of the last element of the return
25298 value.
25299
25300 2008-02-01 Kenichi Handa <handa@m17n.org>
25301
25302 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25303 last resort.
25304
25305 2008-02-01 Kenichi Handa <handa@m17n.org>
25306
25307 * coding.c (detect_coding_charset): Fix detection of multi-byte
25308 charset.
25309
25310 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25311
25312 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25313
25314 2008-02-01 Kenichi Handa <handa@m17n.org>
25315
25316 * xdisp.c (get_next_display_element): Set it->face_id for the
25317 first component of a composition.
25318 (x_produce_glyphs): Check if the font is changed or not for composition.
25319
25320 2008-02-01 Kenichi Handa <handa@m17n.org>
25321
25322 * fontset.c (Qlatin): New variable.
25323 (syms_of_fontset): Define it as a lisp symbol.
25324 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25325
25326 2008-02-01 Kenichi Handa <handa@m17n.org>
25327
25328 * font.c (font_unparse_fcname): Pay attention to the case that
25329 some of font property is a null string.
25330
25331 2008-02-01 Kenichi Handa <handa@m17n.org>
25332
25333 * term.c: Include "composite.h".
25334 (encode_terminal_code): Output all components of composition.
25335 Check the size of encode_terminal_src.
25336 (produce_glyphs): For composition, call produce_composite_glyph.
25337 (append_composite_glyph, produce_composite_glyph): New functions.
25338
25339 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25340 is not found, get font_info from the current ascii face.
25341
25342 2008-02-01 Kenichi Handa <handa@m17n.org>
25343
25344 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25345 buffer-file-name to Qnil before calling insert_from_buffer.
25346
25347 * font.c (font_unparse_fcname): Pay attention to the case that
25348 foundry is a null string.
25349
25350 2008-02-01 Kenichi Handa <handa@m17n.org>
25351
25352 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25353
25354 * font.c (Qunicode_sip): New variable.
25355 (syms_of_font): Declare it as a Lisp symbol.
25356
25357 * font.h (Qunicode_sip): Extern it.
25358
25359 2008-02-01 Kenichi Handa <handa@m17n.org>
25360
25361 * composite.c (get_composition_id): Pay attention to TAB component.
25362
25363 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25364 TAB. Adjust for the change of s->char2b which always points to
25365 the first element of allocated memory.
25366
25367 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25368
25369 * xdisp.c (handle_composition_prop): Set it->c to the first
25370 non-TAB component.
25371 (fill_composite_glyph_string): Change argument.
25372 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25373 (x_produce_glyphs): Fix handling of left/right padding.
25374
25375 2008-02-01 Kenichi Handa <handa@m17n.org>
25376
25377 * coding.c (detect_coding_system): Fix for handling off
25378 inhibit_iso_escape_detection. Fix for the case that no coding
25379 system is defined for a specific coding category.
25380
25381 2008-02-01 Kenichi Handa <handa@m17n.org>
25382
25383 * font.c (font_matching_entity): Delete unused local var.
25384
25385 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25386 opening a font.
25387
25388 * fileio.c (Finsert_file_contents): On recovering a file, assume
25389 Unix-like eol.
25390 (choose_write_coding_system): On auto-saving a file, force
25391 Unix-like eol.
25392
25393 * coding.c (setup_coding_system): Fix setting of
25394 coding->common_flags based on eol_type.
25395 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25396 inherit from it.
25397
25398 2008-02-01 Kenichi Handa <handa@m17n.org>
25399
25400 * alloc.c (NSTATICS): Increas to 0x600.
25401
25402 2008-02-01 Kenichi Handa <handa@m17n.org>
25403
25404 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25405 (ftfont_list): Don't check :name property.
25406 (ftfont_match): New function.
25407 (ftfont_pattern_entity): If the pattern doesn't contain
25408 FC_SPACING, don't assume FC_MONO.
25409
25410 * font.h (struct font_driver): New member `match'.
25411 (font_update_drivers): Adjust prototype.
25412
25413 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25414 property of FONT.
25415 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25416 Define them unconditionally.
25417 (font_matching_entity): New function.
25418 (font_open_by_name): Try font_matching_entity if exact match is
25419 not found.
25420 (font_update_drivers): Delete the arg FONT. Return a list of
25421 actually used backends. Don't free faces, font caches here.
25422 Don't store data in frame parameters. Don't call x_set_font.
25423 (Ffont_spec): Store :name property as is.
25424 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25425 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25426 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25427 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25428 Call font->driver->otf_gsub instead of font_otf_gsub.
25429
25430 * frame.c (x_set_font_backend): Do more works that were done in
25431 font_update_drivers before.
25432
25433 * xfont.c (xfont_match): New function.
25434 (xfont_driver): Set xfont_driver.match to xfont_match.
25435 (xfont_draw): Set font in GC if necessary.
25436
25437 * ftxfont.c (ftxfont_match): New function.
25438 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25439
25440 * xftfont.c (xftfont_match): New function.
25441 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25442
25443 2008-02-01 Kenichi Handa <handa@m17n.org>
25444
25445 * font.h (struct font): New member scalable.
25446 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25447 (font_otf_gsub): Adjust prototype.
25448
25449 * font.c (font_otf_capability): Fix handling of the default langsys.
25450 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25451 Check the contents of SPEC.
25452 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25453 (check_gstring): New function.
25454 (REPLACEMENT_CHARACTER): New macro.
25455 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25456 glyph codes of GSTRING.
25457 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25458 (font_prepare_composition): Set cmp->glyph_len.
25459 (font_open_entity): Set font->scalable.
25460 (Ffont_get): Handle :otf property.
25461 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25462 New functions.
25463 (Fquery_font): Use font->font.full_name.
25464 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25465 Sfont_otf_alternates.
25466
25467 * ftfont.c (ftfont_open): Set font->font.full_name and
25468 font->font.name properly. Fix calculation of font->font.height
25469 and font->min_width.
25470
25471 * ftxfont.c (ftxfont_create_gcs): New function.
25472 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25473 (ftxfont_draw_backgrond): Fix filling region.
25474 (ftxfont_default_fid): New function.
25475 (ftxfont_open): Set xfont->fid to the return value of
25476 ftxfont_default_fid.
25477 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25478 (ftxfont_done_face): Free only GCs that are created by
25479 ftxfont_create_gcs.
25480 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25481
25482 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25483 Clip to src->width, etc (not src->clip_XXX).
25484
25485 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25486 FontBackend frame parameter.
25487
25488 2008-02-01 Kenichi Handa <handa@m17n.org>
25489
25490 * font.h (struct font_driver_list): New member `on'.
25491 (Fclear_font_cache): EXFUN it.
25492 (font_update_drivers): Extern it.
25493
25494 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25495 (font_list_entities): Check driver_list->on.
25496 (register_font_driver): Initialize `on' member to 0.
25497 (font_update_drivers): New function.
25498 (Fclear_font_cache): Check driver_list->on.
25499
25500 * frame.h (Qfont_backend): Extern it.
25501 (x_set_font_backend): Extern it.
25502
25503 * frame.c (Qfont_backend): New variable.
25504 (frame_parms): New element for font-backend.
25505 (x_set_font_backend): New function.
25506
25507 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25508 FontBackend frame parameter.
25509 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25510 x_set_font_backend.
25511
25512 * xfont.c (xfont_list): Don't try listing by :name property if the
25513 name is not for XLFD.
25514
25515 2008-02-01 Kenichi Handa <handa@m17n.org>
25516
25517 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25518 (LGLYPH_SET_TO): New macros.
25519 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25520 element of G is vector or not.
25521 (font_at): Extern it.
25522
25523 * font.c: Include window.h.
25524 (font_lispy_object): New function.
25525 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25526 end of valid glyph.
25527 (font_close_object): Fix getting (struct font *).
25528 (font_at): New function.
25529 (Ffont_get): If FONT is a font-object, get entity from it.
25530 (Ffont_make_gstring): Initialize elements of glyphs with nil.
25531 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25532 Fix range check.
25533 (Ffont_at): New function.
25534 (syms_of_font): Defsubr Sfont_at.
25535
25536 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25537 before the entry for Qcomposition.
25538 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25539 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25540 the font in gstring.
25541 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25542 LGLYPH_FORM (g) to detect the end of valid glyph.
25543 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25544 we are composing with gstring.
25545
25546 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25547 Check if adjustment is vector or not.
25548
25549 * Makefile.in (font.o): Make it depends on window.h.
25550
25551 2008-02-01 Kenichi Handa <handa@m17n.org>
25552
25553 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25554 adjustment is vector or not.
25555
25556 2008-02-01 Miles Bader <miles@gnu.org>
25557
25558 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25559
25560 2008-02-01 Kenichi Handa <handa@m17n.org>
25561
25562 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25563 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25564 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25565
25566 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25567 (DEVICE_DELTA): Fix typo.
25568 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25569 LGLYPH format.
25570
25571 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25572 the change of LGLYPH format.
25573
25574 2008-02-01 Kenichi Handa <handa@m17n.org>
25575
25576 * ftfont.c (ftfont_list): Fix typo.
25577 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25578
25579 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25580
25581 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25582
25583 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25584 xftface_info is non-NULL.
25585
25586 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25587
25588 * ftfont.c (ftfont_list): Move misplaced #endif.
25589
25590 2008-02-01 Kenichi Handa <handa@m17n.org>
25591
25592 * ftfont.c (ftfont_list): Pay attention to the case that
25593 FC_CAPABILITY is not defined.
25594
25595 2008-02-01 Kenichi Handa <handa@m17n.org>
25596
25597 * xftfont.c (xftfont_open): Set charset related members to -1.
25598
25599 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25600 QCname.
25601 (ftfont_open): Set charset related members to -1.
25602
25603 * fontset.c (Votf_script_alist): New variable.
25604 (syms_of_fontset): Initialize it.
25605 (fontset_font): Delete unused variable.
25606
25607 * fontset.h (Votf_script_alist): Extern it.
25608
25609 * font.c (font_find_for_lface): Optimize code.
25610
25611 * font.h (font_close_object, font_merge_old_spec): Extern them.
25612
25613 2008-02-01 Kenichi Handa <handa@m17n.org>
25614
25615 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25616 (syms_of_font): Initialize them.
25617 (font_pixel_size): Allow float value in dpi.
25618 (font_prop_validate_type): Delete.
25619 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25620 Change caller.
25621 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25622 (font_prop_validate_extra): Delete.
25623 (font_prop_validate_spacing): New function.
25624 (font_property_table): Add elements for all known properties.
25625 (get_font_prop_index): Rename from check_font_prop_name.
25626 New argument FROM. Change caller.
25627 (font_prop_validate): Validate all known properties.
25628 (font_put_extra): Delete argument force. Change caller.
25629 (font_expand_wildcards): Make it static. Fix the way of shrinking
25630 the possible range.
25631 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25632 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25633 Change caller.
25634 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25635 (font_parse_fcname): Delete argument merge. Fix parsing of point
25636 size. Don't validate properties values here. Change caller.
25637 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25638 (font_open_by_name): Delete unused variable.
25639 (Ffont_spec): Likewise. Validate property values.
25640 (Ffont_match_p): New function.
25641
25642 * font.h (QCscalable): Extern it.
25643 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25644
25645 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25646
25647 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25648 (xfont_list_pattern): New function.
25649 (xfont_list): Use xfont_list_pattern.
25650
25651 2008-02-01 Kenichi Handa <handa@m17n.org>
25652
25653 * font.h (Flist_fonts): EXFUN it.
25654
25655 2008-02-01 Jason Rumney <jasonr@gnu.org>
25656
25657 * w32term.c (w32_initialize): Add back smoothing_type and
25658 smoothing_enabled definitions.
25659
25660 2008-02-01 Kenichi Handa <handa@m17n.org>
25661
25662 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25663 s->face->font on determining underline position.
25664
25665 2008-02-01 Kenichi Handa <handa@m17n.org>
25666
25667 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25668 (font_has_char): Accept font-object too.
25669 (font_find_for_lface): Try at first with a size specified in face.
25670
25671 2008-02-01 Kenichi Handa <handa@m17n.org>
25672
25673 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25674 font_open_by_name.
25675
25676 2008-02-01 Kenichi Handa <handa@m17n.org>
25677
25678 * font.h (QCspacing, QCdpi): Extern them.
25679 (enum font_spacing): New enum.
25680 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25681
25682 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25683 (QCspacing, QCdpi): New variables.
25684 (syms_of_font): Initialize them.
25685 (font_pixel_size): New function.
25686 (font_put_extra): New function.
25687 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25688 in FONT_EXTRA.
25689 (font_parse_fcname): Handle enumerated values (e.g. bold).
25690 Fix handling font size. Add QCname property that contains only
25691 unknown properties.
25692 (font_score): Change argument. Change caller. Pay attention to
25693 FONT_PIXEL_SIZE_QUANTUM.
25694 (font_sort_entites, font_list_entities, font_find_for_lface)
25695 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25696 (Ffont_spec): Add QCname property that contains only unknown properties.
25697
25698 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25699 Don't include weight in listing pattern, instead check weight of each
25700 listed font. Don't include scalable in pattern. Pay attention to
25701 FONT_PIXEL_SIZE_QUANTUM.
25702
25703 2008-02-01 Kenichi Handa <handa@m17n.org>
25704
25705 * font.c (font_parse_fcname): Fix parsing of point-size.
25706 (font_unparse_fcname): Produce symbolic names for style properties.
25707 (font_list_entities): Handle float size correctly.
25708 (font_open_by_name): Prefer `normal' property values if the name
25709 doesn't specify them.
25710
25711 * fontset.c (Finternal_char_font): Use font_get_name, not
25712 Ffont_xlfd_name.
25713
25714 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25715 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25716 pattern. Don't force scalable.
25717
25718 * xftfont.c (xftfont_open): For generating a name, start from
25719 96-byte buffer.
25720
25721 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25722
25723 * frame.h (x_new_fontset2): Fix prototype.
25724
25725 2008-02-01 Kenichi Handa <handa@m17n.org>
25726
25727 * font.h (struct font_driver): Delete member parse_name.
25728 (font_match_p, font_get_spec, font_parse_fcname)
25729 (font_unparse_fcname): Extern them.
25730 (font_get_name): Adjust prototype.
25731
25732 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25733 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25734 (font_expand_wildcards): Fix handling ENCODING field.
25735 Avoid unnecessary checks for weight, slant, and swidth.
25736 (font_parse_fcname): New function.
25737 (font_unparse_fcname): New function.
25738 (font_parse_name): New function.
25739 (font_match_p): New function.
25740 (font_get_name): Change return value to Lisp string.
25741 (font_get_spec): New function.
25742 (Qunspecified, Qignore_defface): Don't extern them.
25743 (font_find_for_lface): Assume that LFACE is fully specified.
25744 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25745 object, use it for FACE.
25746 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25747 driver->parse_name.
25748 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25749
25750 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25751 prototype.
25752
25753 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25754 argument F. Don't call Fnew_fontset. Instead, directly call
25755 make_fontset.
25756
25757 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25758
25759 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25760 of x_new_fontset2.
25761
25762 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25763 (Qsans__serif): New variables.
25764 (ftfont_generic_family_list): New variable.
25765 (syms_of_ftfont): Initialize the above variables.
25766 (ftfont_pattern_entity): Delete argument NAME.
25767 (ftfont_list_generic_family): New function.
25768 (ftfont_parse_name): Delete this function.
25769 (ftfont_list): Try generic family only when FcFontList found no font.
25770 (ftfont_list_family): Fix args to FcObjectSetBuild.
25771
25772 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25773 object in attrs[LFACE_FONT_INDEX].
25774 (set_lface_from_font_name): Cancel all changes for font-backend.
25775 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25776 function.
25777 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25778 font object in QCfont attribute.
25779 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25780 (realize_default_face) [USE_FONT_BACKEND]: Call
25781 set_lface_from_font_and_fontset.
25782
25783 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25784 "fixed", and signal error here if no suitable font was found.
25785
25786 * xfont.c (xfont_parse_name): Delete this function.
25787
25788 * xftfont.c (xftfont_open): Change coding style of error
25789 handling. Generate fontconfig's fontname pattern.
25790
25791 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25792 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25793
25794 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25795 Both args FONTSET and FONT_OBJECT must be existing ones.
25796
25797 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25798
25799 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25800
25801 2008-02-01 Kenichi Handa <handa@m17n.org>
25802
25803 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25804
25805 * font.h (struct font): Fix typo.
25806
25807 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25808 XLFD_XXX_INDEX.
25809 (enum xlfd_field_mask): New enum.
25810 (intern_font_field): Change argument. Change caller. If digits
25811 are followed by non-digits, return a symbol.
25812 (font_expand_wildcards): New function.
25813 (font_parse_xlfd): Fix wildcard handling.
25814 (Ffont_spec): If :name is specified, reflect the info in the other
25815 properties.
25816
25817 * ftfont.c (ftfont_pattern_entity): Fix typo.
25818 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25819 locale.
25820
25821 2008-02-01 Kenichi Handa <handa@m17n.org>
25822
25823 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25824
25825 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25826 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25827 registry doesn't specify encoding part.
25828 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25829 (font_open_by_name): At first try parsing the name.
25830 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25831 as Lisp symbols.
25832
25833 * fontset.c (reorder_font_vector): Pay attention to the case that
25834 the 3rd element of font_def is nil.
25835 (fontset_font): For the default fontset, append one more fontset
25836 elements for a script-based font specification. Don't add script
25837 attribute on finding a font.
25838 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25839 font name.
25840 (fontset_ascii_font): If a font can't be opened, return nil.
25841
25842 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25843 (ftfont_pattern_entity): New function.
25844 (ftfont_get_cache): Assume that freetype_font_cache is already
25845 initialized.
25846 (ftfont_list): Handle the case that a file is specified in font
25847 name. Use ftfont_pattern_entity to generate entities.
25848 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25849 (syms_of_ftfont): Initialize freetype_font_cache.
25850
25851 * xftfont.c (xftfont_open): Make the font name fontconfig's
25852 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25853 (xftfont_close): Free font->font.name if not NULL.
25854
25855 * xfont.c (xfont_list): If script is specified for a font, return
25856 null_vector.
25857 (xfont_list_family): Declare argument type.
25858
25859 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25860 name, set LFACE_FONT (lface) to nil.
25861
25862 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25863 return Qnil.
25864
25865 2008-02-01 Kenichi Handa <handa@m17n.org>
25866
25867 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25868 (standard_args): Add "-enable-font-backend".
25869
25870 2008-02-01 Kenichi Handa <handa@m17n.org>
25871
25872 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25873 (struct xftdraw_list, xftdraw_list): Delete them.
25874 (register_xftdraw, check_xftdraw): Delete them.
25875 (xftfont_prepare_face): Don't call register_xftdraw.
25876 (xftfont_done_face): Don't call check_xftdraw.
25877 (xftfont_draw): Get background color only when with_background is
25878 nonzero.
25879
25880 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25881
25882 2008-02-01 Kenichi Handa <handa@m17n.org>
25883
25884 These changes are for the new font handling codes.
25885
25886 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25887 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25888 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25889 (FONTSRC, FONTOBJ): New variables.
25890 (obj): Add $(FONTOBJ).
25891 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25892 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25893 @LIBOTF_LIBS@.
25894 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25895 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25896
25897 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25898
25899 * character.h (Vscript_representative_chars): Extern it.
25900
25901 * character.c (Vscript_representative_chars): New variable.
25902 (syms_of_character): Declare it as a Lisp variable.
25903
25904 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25905 enable_font_backend is nonzero, accept the composition method
25906 COMPOSITION_WITH_GLYPH_STRING.
25907
25908 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25909 enumeration COMPOSITION_WITH_GLYPH_STRING.
25910
25911 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25912 members clip_x, clip_y, clip_width, and clip_height.
25913 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25914
25915 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25916 --enable-font-backend. Call syms_of_font.
25917
25918 * fns.c (assoc_no_quit): New function.
25919
25920 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25921 (face_for_font, new_fontset_from_font)
25922 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25923
25924 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25925 (fontset_font, fontset_ascii, face_for_char)
25926 (make_fontset_for_ascii_face, Ffont_info)
25927 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25928 is nonzero, use font-backend mechanism.
25929 (find_font_encoding): Make it non-static.
25930 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25931 New functions.
25932
25933 * frame.h (struct frame): New members resx and resy.
25934 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25935 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25936
25937 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25938 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25939
25940 * lisp.h (assoc_no_quit): Extern it.
25941
25942 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25943 Through out the file, use FONT_INFO_FROM_FACE instead of
25944 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25945 rif->per_char_metric.
25946 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25947 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25948 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25949 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25950 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25951 nonzero, use font-backend mechanism.
25952 (get_per_char_metric): New function.
25953
25954 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25955 (set_lface_from_font_name)
25956 (set_font_frame_param, free_realized_face)
25957 (prepare_face_for_display, clear_face_gcs)
25958 (Finternal_set_font_selection_order, realize_x_face)
25959 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25960 font-backend mechanism.
25961 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25962 (load_face_font) [USE_FONT_BACKEND]: Abort.
25963 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25964 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25965
25966 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25967 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25968 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25969 nonzero, register all available font drivers.
25970 Call x_default_font_parameter for deciding a font.
25971 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25972
25973 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25974 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25975 (x_set_glyph_string_clipping_exactly)
25976 (x_compute_glyph_string_overhangs)
25977 (x_draw_glyph_string_foreground)
25978 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25979 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25980 enable_font_backend is nonzero, use font-backend mechanism.
25981 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25982
25983 2008-02-01 Kenichi Handa <handa@m17n.org>
25984
25985 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25986 system_eol_type.
25987 (syms_of_coding): Initialize system_eol_type.
25988
25989 * process.c (Fset_process_coding_system): Inherit system's eol
25990 format if necessary.
25991
25992 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25993
25994 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25995
25996 2008-02-01 Kenichi Handa <handa@m17n.org>
25997
25998 * coding.c (decode_eol): Pay attention to buffer relocation in
25999 del_range_2.
26000 (decode_coding): Call decode_eol before restoring undo_list.
26001
26002 2008-02-01 Kenichi Handa <handa@m17n.org>
26003
26004 * charset.c (Fdefine_charset_internal): Fix setting of
26005 emacs_mule_bytes.
26006
26007 2008-02-01 Kenichi Handa <handa@m17n.org>
26008
26009 * keyboard.c (read_char): Check if C is a character or not before
26010 looking up Vkeyboard_translate_table.
26011
26012 2008-02-01 Kenichi Handa <handa@m17n.org>
26013
26014 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
26015 Fix condition to terminate the loop.
26016
26017 2008-02-01 Kenichi Handa <handa@m17n.org>
26018
26019 * coding.c (produce_composition): Compare charbuf[i] instead of
26020 args[i] against 0.
26021 (Fterminal_coding_system): Use EQ to compare Lisp objects.
26022
26023 2008-02-01 Kenichi Handa <handa@m17n.org>
26024
26025 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
26026 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
26027 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
26028 detect_coding.
26029 (emacs_mule_char): Handle old style (Emacs 20) component character
26030 of a composition.
26031 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
26032 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
26033 composition rule.
26034 (decode_coding_emacs_mule): Handle invalid bytes correctly.
26035
26036 2008-02-01 Kenichi Handa <handa@m17n.org>
26037
26038 * coding.c (encode_coding_ccl): Allocate destination dynamically
26039 when necessary.
26040
26041 2008-02-01 Kenichi Handa <handa@m17n.org>
26042
26043 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
26044 the loop. When quitted, show a proper error message.
26045
26046 2008-02-01 Kenichi Handa <handa@m17n.org>
26047
26048 * xterm.c (x_set_glyph_string_clipping_exactly):
26049 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
26050
26051 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
26052 character sequence.
26053 (Fccl_execute_on_string): Use ASET, not XSET.
26054
26055 2008-02-01 Kenichi Handa <handa@m17n.org>
26056
26057 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
26058
26059 2008-02-01 Kenichi Handa <handa@m17n.org>
26060
26061 * coding.c (decode_coding): Fix the condition of terminating the
26062 decoding loop.
26063
26064 2008-02-01 Kenichi Handa <handa@m17n.org>
26065
26066 * data.c (Faset): On setting a character bigger than 255 in a
26067 unibyte string, signal an error instead of make the string multibyte.
26068
26069 2008-02-01 Kenichi Handa <handa@m17n.org>
26070
26071 * charset.c (map_charset_chars): Fix for ascii-compatible charset
26072 made by a mapping table.
26073
26074 2008-02-01 Kenichi Handa <handa@m17n.org>
26075
26076 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
26077 not.
26078 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
26079 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
26080
26081 * xterm.c (x_draw_composite_glyph_string_foreground):
26082 Check s->face is NULL or not.
26083
26084 2008-02-01 Kenichi Handa <handa@m17n.org>
26085
26086 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
26087 (x_draw_glyph_string): Fix drawing of right_overhang and
26088 left_overhang around/on cursor.
26089
26090 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
26091
26092 2008-02-01 Kenichi Handa <handa@m17n.org>
26093
26094 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
26095
26096 2008-02-01 Kenichi Handa <handa@m17n.org>
26097
26098 * coding.c (Fdefine_coding_system_internal)
26099 (Fdefine_coding_system_alias): Avoid a duplicated element in
26100 Vcoding_system_alist.
26101
26102 2008-02-01 Kenichi Handa <handa@m17n.org>
26103
26104 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
26105
26106 * coding.c (Qcoding_system_define_form): New variable.
26107 (syms_of_coding): Intern and staticpro it.
26108 (Fcoding_system_p): Check Qcoding_system_define_form.
26109 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
26110
26111 * coding.h (CODING_SYSTEM_P): If ID is not available, call
26112 Fcoding_system_p.
26113 (CHECK_CODING_SYSTEM): If ID is not available, call
26114 Fcheck_coding_system.
26115 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
26116 Try also Fcheck_coding_system.
26117
26118 2008-02-01 Kenichi Handa <handa@m17n.org>
26119
26120 * coding.c (code_conversion_restore): GCPRO arg.
26121
26122 2008-02-01 Kenichi Handa <handa@m17n.org>
26123
26124 * character.c (lisp_string_width): Check multibyteness of STRING.
26125
26126 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26127
26128 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
26129 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
26130 (decode_mac_font_name): Use decode_coding_c_string instead of
26131 decode_coding.
26132 (x_load_font): Initialize fontp->fontset to -1.
26133 Set fontp->encoding_type.
26134
26135 2008-02-01 Kenichi Handa <handa@m17n.org>
26136
26137 * search.c (search_buffer): Give up BM search on case-fold-search
26138 if one of a target character has a case-equivalence of different
26139 byte length even if that target character is an ASCII.
26140 (simple_search): Fix calculation of byte length of matched text.
26141 (boyer_moore): Fix handling of case-equivalent multibyte characters.
26142
26143 2008-02-01 Kenichi Handa <handa@m17n.org>
26144
26145 * coding.c (decode_coding): Fix handling of invalid bytes.
26146
26147 2008-02-01 Kenichi Handa <handa@m17n.org>
26148
26149 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
26150 Unicode characters.
26151
26152 2008-02-01 Kenichi Handa <handa@m17n.org>
26153
26154 * coding.c (encode_coding_object): If a pre-write-conversion
26155 function makes a new buffer, kill it.
26156
26157 2008-02-01 Kenichi Handa <handa@m17n.org>
26158
26159 * coding.c (QCascii_compatible_p): New variable.
26160 (syms_of_coding): Initialize it.
26161 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
26162 calling string_char.
26163 (record_conversion_result): Add `default:' case.
26164 (coding_charset_list): Delete unused variable `coding_type'.
26165 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
26166 property in the plist of the coding system.
26167 (Fcoding_system_put): Check QCascii_compatible_p.
26168
26169 2008-02-01 Miles Bader <miles@gnu.org>
26170
26171 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
26172 removed calculation of frame `f', as it's now used.
26173
26174 2008-02-01 Kenichi Handa <handa@m17n.org>
26175
26176 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
26177 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
26178 (UNIDATA): New variable.
26179 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
26180 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
26181 Run $(RUN_TEMACS) unconditionally.
26182
26183 2008-02-01 Kenichi Handa <handa@m17n.org>
26184
26185 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
26186 (admindir): New variable.
26187 ($(lispsource)international/charprop.el): New target.
26188
26189 2008-02-01 Miles Bader <miles@gnu.org>
26190
26191 * character.c (chars-in-region): Remove obsolete function.
26192 (syms_of_character): Remove its initialization.
26193
26194 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
26195
26196 * w32select.c (validate_coding_system)
26197 (setup_windows_coding_system): New functions.
26198 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
26199 Use setup_windows_coding_system.
26200 (setup_config, Fw32_get_clipboard_data):
26201 Use validate_coding_system.
26202 (Fx_selection_exists): Move call to setup_config to a place
26203 where signals are allowed.
26204
26205 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
26206 (Fcheck_coding_system): Add declarations.
26207
26208 2008-02-01 Kenichi Handa <handa@m17n.org>
26209
26210 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
26211
26212 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26213
26214 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
26215 string as the second argument for x_new_fontset.
26216
26217 2008-02-01 Kenichi Handa <handa@m17n.org>
26218
26219 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
26220 (encode_coding_object): Use safe_call instead of call2.
26221
26222 2008-02-01 Kenichi Handa <handa@m17n.org>
26223
26224 * fontset.c (Fset_fontset_font): Check family element of a given vector.
26225
26226 * Makefile.in (lisp): Include charprop.el.
26227
26228 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26229
26230 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
26231 Not sure if it's unnecessary.
26232
26233 2008-02-01 Steven Tamm <steventamm@mac.com>
26234
26235 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
26236 some possibly unnecessary fontset checking code that crashed
26237 when creating a new frame.
26238
26239 2008-02-01 Kenichi Handa <handa@m17n.org>
26240
26241 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
26242 lookup_face.
26243
26244 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
26245
26246 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
26247
26248 2008-02-01 Kenichi Handa <handa@m17n.org>
26249
26250 * coding.c: Cancel the change done in HEAD on 2008-02-01.
26251 (coding_charset_list): New function.
26252
26253 * coding.h (coding_charset_list): Extern it.
26254
26255 2008-02-01 Kenichi Handa <handa@m17n.org>
26256
26257 * fontset.c (Fset_fontset_font): Call find_font_encoding with
26258 concatenation of family and registry.
26259
26260 2008-02-01 Kenichi Handa <handa@m17n.org>
26261
26262 * character.h (BYTE8_STRING): Fix typo.
26263
26264 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
26265 string to multibyte (sync to HEAD).
26266
26267 * casefiddle.c (casify_region): Handle changes in byte-length
26268 using replace_range_2 (sync to HEAD).
26269
26270 2008-02-01 Andreas Schwab <schwab@suse.de>
26271
26272 * chartab.c (map_char_table): GCPRO table and arg.
26273
26274 2008-02-01 Kenichi Handa <handa@m17n.org>
26275
26276 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
26277 already at limit.
26278
26279 2008-02-01 Kenichi Handa <handa@m17n.org>
26280
26281 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
26282 instead of fast_c_string_match_ignore_case.
26283 (find_font_encoding): Change argument to Lisp_Object.
26284 Use fast_string_match_ignore_case instead of
26285 fast_c_string_match_ignore_case. Change caller.
26286
26287 2008-02-01 Kenichi Handa <handa@m17n.org>
26288
26289 * xdisp.c (get_next_display_element): In unibyte case, decide to
26290 display in octal form by checking a character by
26291 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
26292
26293 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
26294
26295 * character.c (unibyte_has_multibyte_table): New variable.
26296
26297 * character.h (unibyte_has_multibyte_table): Extern it.
26298 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
26299
26300 2008-02-01 Kenichi Handa <handa@m17n.org>
26301
26302 * coding.c (encode_coding_iso_2022): Fix handling of charset
26303 annotation.
26304
26305 2008-02-01 Kenichi Handa <handa@m17n.org>
26306
26307 * coding.c (setup_coding_system): If coding_system is nil, use
26308 Qundecided.
26309 (Fterminal_coding_system): Return nil if terminal coding system is
26310 `undecided'.
26311 (syms_of_coding): Define coding-system `undecided' here.
26312 Setup terminal_coding as `undecided'.
26313
26314 2008-02-01 Kenichi Handa <handa@m17n.org>
26315
26316 * xdisp.c (message_dolog, set_message_1):
26317 Call unibyte_char_to_multibyte with arg type int.
26318
26319 * lread.c (read1): Fix reading of a char-table.
26320
26321 * print.c (print_object): Include sub char-table in circularities
26322 detection.
26323
26324 2008-02-01 Kenichi Handa <handa@m17n.org>
26325
26326 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26327 Append the found sequences in car of ARGS instead of prepending.
26328
26329 2008-02-01 Kenichi Handa <handa@m17n.org>
26330
26331 * fileio.c (report_file_error): Make a unibyte string from
26332 strerror (errorno).
26333 (Fsubstitute_in_file_name): Fix the arg to
26334 unibyte_char_to_multibyte. It is evaluated twice.
26335
26336 2008-02-01 Kenichi Handa <handa@m17n.org>
26337
26338 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26339
26340 2008-02-01 Kenichi Handa <handa@m17n.org>
26341
26342 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26343 BOM is not found.
26344 (detect_coding, detect_coding_system): Optimization for ISO-2022
26345 when no 8-bit data is found.
26346
26347 2008-02-01 Jason Rumney <jasonr@gnu.org>
26348
26349 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26350
26351 2008-02-01 Kenichi Handa <handa@m17n.org>
26352
26353 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26354 CHARS.
26355
26356 2008-02-01 Steven Tamm <steventamm@mac.com>
26357
26358 * macterm.c (mac_encode_char): Add charset argument and update
26359 to use encoding_type.
26360 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26361 switch to pure fontset.
26362 (decode_mac_font_name): Temporarily remove decoding.
26363 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26364 (x_load_font): Temporarily remove encoding.
26365
26366 2008-02-01 Kenichi Handa <handa@m17n.org>
26367
26368 * xfaces.c (Fface_font): If frame is not on a window system,
26369 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26370 refer to face->font.
26371 (split_font_name_into_vector, build_font_name_from_vector)
26372 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26373 when HAVE_WINDOW_SYSTEM is defined.
26374
26375 2008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26378 (x_produce_glyphs): Fix setting of members of cmp in case
26379 cmp->glyph_len is zero.
26380
26381 * fontset.c (Fset_fontset_font): Fix docstring.
26382 (Ffontset_info): Make it backward compatible. New arg ALL.
26383
26384 2008-02-01 Kim F. Storm <storm@cua.dk>
26385
26386 * process.c (read_process_output): Grow decoding_buf when needed;
26387 this could cause a crash in allocate_string and compact_small_strings.
26388
26389 2008-02-01 Kenichi Handa <handa@m17n.org>
26390
26391 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26392
26393 2008-02-01 Kenichi Handa <handa@m17n.org>
26394
26395 * coding.c (setup_coding_system): Set coding->common_flags
26396 correctly for raw-text.
26397 (consume_chars): On encoding unibyte text by raw-text, don't check
26398 multibyte form.
26399 (encode_coding): On encoding by raw-text, never use translation tables.
26400
26401 * fileio.c (e_write): Short cut for the case of no encoding.
26402
26403 2008-02-01 Kenichi Handa <handa@m17n.org>
26404
26405 * coding.c (detect_coding, detect_coding_system): Delete unused
26406 variables.
26407
26408 2008-02-01 Kenichi Handa <handa@m17n.org>
26409
26410 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26411 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26412
26413 2008-02-01 Kenichi Handa <handa@m17n.org>
26414
26415 * coding.c (Ffind_coding_systems_region_internal):
26416 Include raw-text and no-conversion in the result.
26417
26418 2008-02-01 Kenichi Handa <handa@m17n.org>
26419
26420 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26421 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26422 FONT_DEF.
26423 (font_def_arg, add_arg, from_arg, to_arg): New args.
26424 (set_fontset_font): Change argument.
26425 (Fset_fontset_font): Fix for the case that TARGET is a script
26426 name and charset name.
26427 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26428
26429 2008-02-01 Kenichi Handa <handa@m17n.org>
26430
26431 * fontset.c (fontset_font): Rename from fontset_face. Change return
26432 value.
26433 (face_suitable_for_char_p, face_for_char): Adjust for the change
26434 of fontset_font.
26435 (make_fontset_for_ascii_face): Fix setting of the fontset element
26436 for ASCII.
26437 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26438 to get a font name.
26439 (Ffontset_info): Adjust for the change of fontset_font.
26440
26441 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26442
26443 * character.h (LEADING_CODE_LATIN_1_MIN)
26444 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26445
26446 2008-02-01 Kenichi Handa <handa@m17n.org>
26447
26448 * editfns.c (check_translation): New function.
26449 (Ftranslate_region_internal): Handle M:N mapping.
26450
26451 2008-02-01 Kenichi Handa <handa@m17n.org>
26452
26453 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26454
26455 2008-02-01 Kenichi Handa <handa@m17n.org>
26456
26457 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26458 goto invalid_code.
26459 (decode_coding_iso_2022): Fix handling of invalid designation.
26460
26461 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26462 after calling code_conversion_save.
26463
26464 2008-02-01 Kenichi Handa <handa@m17n.org>
26465
26466 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26467
26468 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26469
26470 * fontset.c: Include "intervals.h".
26471 (fontset_face): Fix comparing of Lisp_Objects.
26472 (free_face_fontset, new_fontset_from_font_name):
26473 Fix Lisp_Object/int mixup.
26474
26475 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26476
26477 * coding.c: Add many prototypes for static functions.
26478 (get_translation_table): Allow max_lookup to be NULL.
26479 (decode_coding, Ffind_coding_systems_region_internal)
26480 (Funencodable_char_position, Fcheck_coding_systems_region):
26481 Call get_translation_table with max_lookup NULL.
26482
26483 2008-02-01 Kenichi Handa <handa@m17n.org>
26484
26485 * coding.c (get_translation_table): Declare it as Lisp_Object.
26486 (LOOKUP_TRANSLATION_TABLE): New macro.
26487 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26488 instead of CHAR_TABLE_REF.
26489
26490 2008-02-01 Kenichi Handa <handa@m17n.org>
26491
26492 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26493 annotation data format.
26494 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26495 Change arguments FROM and TO to single argument NCHARS. Change caller.
26496 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26497 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26498 (decode_coding_ccl, decode_coding_charset): Pay attention to
26499 coding->charbuf_used.
26500 (get_translation): New function.
26501 (produce_chars): New arguments translation_table and last_block.
26502 Translate characters here. Return number of carryover chars.
26503 Change caller.
26504 (produce_composition): New argument pos. Change caller.
26505 Adjust for the change of annotation data format.
26506 (produce_charset, produce_annotation): Likewise.
26507 (decode_coding, encode_coding): Don't call translate_chars.
26508 (consume_chars): New arg translation_table. Change caller.
26509 (translate_chars): Delete.
26510 (syms_of_coding): Make translation-table's number of extra slots 2.
26511
26512 2008-02-01 Kenichi Handa <handa@m17n.org>
26513
26514 * search.c (simple_search): Fix setting this_pos_byte in backward
26515 search.
26516
26517 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26518 byte sequence.
26519 (detect_coding_ccl): Fix setting of the variable valids.
26520
26521 2008-02-01 Kenichi Handa <handa@m17n.org>
26522
26523 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26524
26525 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26526
26527 * editfns.c (Ftranslate_region_internal): Rename from
26528 Ftranslate_region. Accept a char-table in TABLE.
26529 (syms_of_editfns): Defsubr Stranslate_region_internal.
26530
26531 * xfaces.c (set_lface_from_font_name): If a font is specified for
26532 a frame, generate a fontset from the font.
26533 (build_scalable_font_name): If the scalable font is requested for
26534 a specific size, don't change that size.
26535 (try_font_list): Try a scalable font also in the case that a
26536 pattern string is specified.
26537
26538 2008-02-01 Kenichi Handa <handa@m17n.org>
26539
26540 * xfaces.c (Fface_font): New optional arg CHARACTER.
26541
26542 2008-02-01 Kenichi Handa <handa@m17n.org>
26543
26544 * charset.h (CHARSET_OFFSET): New macro.
26545
26546 2008-02-01 Kenichi Handa <handa@m17n.org>
26547
26548 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26549
26550 * fontset.c (fontset_face): Handle the case that repertory is a
26551 char-table.
26552 (find_font_encoding): Return nil for unknown encoding.
26553 (Fset_fontset_font): Ignore a font of unknown encoding.
26554
26555 2008-02-01 Kenichi Handa <handa@m17n.org>
26556
26557 * keymap.c (describe_vector): Handle default value of a char table.
26558
26559 * fontset.c (fontset_face): Handle fallback fonts correctly.
26560 (Ffontset_info): Return infomation about fallback fonts.
26561
26562 2008-02-01 Kenichi Handa <handa@m17n.org>
26563
26564 * fontset.c (FONTSET_DEFAULT): New macro.
26565 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26566 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26567 the case that it is nil.
26568 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26569 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26570
26571 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26572 subset or superset.
26573
26574 2008-02-01 Kenichi Handa <handa@m17n.org>
26575
26576 * emacs.c (main): Call init_charset after syms_of_XXX.
26577
26578 * charset.c (Vcharset_map_directory): Delete.
26579 (Vcharset_map_path): New variable.
26580 (load_charset_map_from_file): Use Vcharset_map_path instead.
26581 (init_charset): Initialize Vcharset_map_path.
26582 (syms_of_charset): Delete declaration of "charset-map-directory",
26583 add declaration of "charset-map-path".
26584
26585 2008-02-01 Kenichi Handa <handa@m17n.org>
26586
26587 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26588 ASCII only string.
26589
26590 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26591
26592 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26593 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26594
26595 2008-02-01 Kenichi Handa <handa@m17n.org>
26596
26597 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26598
26599 * coding.c (QCmnemonic, QCdefalut_char)
26600 (QCdecode_translation_table, QCencode_translation_table)
26601 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26602 (get_translation_table): Return a list of translation tables if
26603 necessary.
26604 (decode_coding): Call get_translation_table with ENCODEP 0.
26605 (char_encodable_p): If translation_table is non-nil, always call
26606 translate_char.
26607 (Fdefine_coding_system_internal): Accept list of translation
26608 tables as :encode-translation-table and :decode-translation-table.
26609 (Fcoding_system_put): New function.
26610 (syms_of_coding): Declare new symbols.
26611 Defsubr Scoding_system_put.
26612 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26613 typically JISX0212.
26614
26615 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26616 when the charset is superset type.
26617
26618 * character.c (translate_char): Accept list of translation tables.
26619
26620 2008-02-01 Kenichi Handa <handa@m17n.org>
26621
26622 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26623 (CODING_ATTR_TRANS_TBL): New macro.
26624
26625 * coding.c (get_translation_table): New function.
26626 (translate_chars): Fix the bug of skipping annotation data.
26627 (decode_coding, encode_coding): Utilize get_translation_table.
26628 (char_encodable_p, Funencodable_char_position): Translate char if
26629 necessary.
26630 (Ffind_coding_systems_region_internal)
26631 (Fcheck_coding_systems_region): Setup translation table for encode
26632 in a coding system attribute vector in advance.
26633 (Fdefine_coding_system_internal): Allow a symbol as translation
26634 table. For shift-jis type coding system, allow 4th charset.
26635
26636 2008-02-01 Kenichi Handa <handa@m17n.org>
26637
26638 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26639
26640 * xdisp.c (get_next_display_element): Pass -1 as POS to
26641 FACE_FOR_CHAR if displaying a C-string.
26642
26643 2008-02-01 Kenichi Handa <handa@m17n.org>
26644
26645 * composite.c (get_composition_id): Handle xoff and yoff in a
26646 composition rule.
26647
26648 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26649 (struct composition): New member lbearing and rbearing.
26650
26651 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26652 (x_get_glyph_overhangs): Handle a composition glyph.
26653 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26654
26655 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26656 composition glyph.
26657
26658 2008-02-01 Kenichi Handa <handa@m17n.org>
26659
26660 * print.c: Include charset.h.
26661 (Vprint_charset_text_property): New variable.
26662 (Qdefault): Extern it.
26663 (PRINT_STRING_NON_CHARSET_FOUND)
26664 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26665 (print_check_string_result): New variable.
26666 (print_check_string_charset_prop): New function.
26667 (print_prune_charset_plist): New variable.
26668 (print_prune_string_charset): New function.
26669 (print_object): Call print_prune_string_charset if
26670 Vprint_charset_text_property is not t.
26671 (print_interval): Print nothing if interval->plist is nil.
26672 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26673 variable. Init and staticpro print_prune_charset_plist.
26674
26675 2008-02-01 Kenichi Handa <handa@m17n.org>
26676
26677 * fontset.c (new_fontset_from_font_name): Use the specified font
26678 for all characters in the new fontset.
26679
26680 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26681 OBJECT args.
26682
26683 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26684 OBJECT args for composition too.
26685
26686 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26687 OBJECT args.
26688
26689 2008-02-01 Kenichi Handa <handa@m17n.org>
26690
26691 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26692
26693 * fontset.c (reorder_font_vector): Adjust for the change of
26694 FONT_DEF format.
26695 (fontset_face): New arg id. Change caller.
26696 (face_for_char): New args pos and object.
26697 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26698 (fs_query_fontset): Check NAME by Fassoc too.
26699 (Fset_fontset_font): Allow non-XLFD font name.
26700 (Ffontset_info): Adjust for the change of FONT_DEF format.
26701
26702 * fontset.h (face_for_char): Adjust prototype.
26703
26704 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26705 (append_space, extend_face_to_end_of_line)
26706 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26707 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26708
26709 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26710 POS and OBJECT args.
26711
26712 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26713 POS and OBJECT args.
26714
26715 2008-02-01 Jason Rumney <jasonr@gnu.org>
26716
26717 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26718 of GlobalAlloc'ed memory.
26719
26720 2008-02-01 Kenichi Handa <handa@m17n.org>
26721
26722 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26723
26724 * charset.h (charset_table_used): Delete extern.
26725
26726 * charset.c (charset_table_used): Make it static.
26727 (map_charset_chars): Fix args to c_function with.
26728
26729 * chartab.c (map_sub_char_table_for_charset): Fix args to
26730 c_function with.
26731
26732 * coding.h (enum coding_result_code):
26733 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26734
26735 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26736 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26737 (Vlast_code_conversion_error): New variables.
26738 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26739 (ONE_MORE_BYTE): Record error if any instead of signaling an
26740 error. If non-ASCII multibyte char is found, return the negative
26741 value of the code. All callers changed to check it.
26742 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26743 (record_conversion_result): New function. Change all codes setting
26744 coding->result to call this function.
26745 (detect_coding_utf_8, decode_coding_utf_8)
26746 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26747 Don't use the local variable incomplete.
26748 (emacs_mule_char): Change the second arg to `const'.
26749 (decode_coding): Fix of flushing out unprocessed data.
26750 (make_conversion_work_buffer): Fix making of a work buffer.
26751 (decode_coding_object): Return coding->dst_object.
26752
26753 * fontset.c (set_fontset_font): Fix args.
26754
26755 * lisp.h (CHARACTERBITS): Define as 22.
26756
26757 * process.c (send_process): Be sure to set coding->src_multibyte.
26758
26759 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26760
26761 2008-02-01 Kenichi Handa <handa@m17n.org>
26762
26763 * xdisp.c (handle_auto_composed_prop): Give limit to
26764 Fnext_single_char_property_change.
26765
26766 2008-02-01 Kenichi Handa <handa@m17n.org>
26767
26768 * composite.c (syms_of_composite): Don't make the composition hash
26769 table weak.
26770
26771 * fontset.c (Fset_fontset_font): Fix docstring.
26772
26773 * lisp.h (detect_coding_system): Adjust prototype.
26774
26775 * fileio.c (kill_workbuf_unwind): Delete this function.
26776 (Finsert_file_contents): Adjust the call of detect_coding_system.
26777 Get conversion_buffer by code_conversion_save. Use the macro
26778 CODING_MAY_REQUIRE_DECODING. After decoding, update
26779 coding_system.
26780
26781 * coding.h (make_conversion_work_buffer): Delete extern.
26782 (code_conversion_save): Extern it.
26783
26784 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26785 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26786 (decode_coding_utf_8): Don't do eol converion.
26787 (detect_coding_utf_16): Check coding->src_chars, not
26788 coding->src_bytes. Add heuristics for those that have no signature.
26789 (decode_coding_emacs_mule, decode_coding_iso_2022)
26790 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26791 Don't do eol converion.
26792 (adjust_coding_eol_type): Return a new coding system.
26793 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26794 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26795 each change.
26796 (decode_coding): Pay attention to undo_list. Do eol conversion for
26797 all types of coding-systems (if necessary).
26798 (Vcode_conversion_work_buf_list): Delete it.
26799 (Vcode_conversion_reused_workbuf): Rename from
26800 Vcode_conversion_reused_work_buf.
26801 (Vcode_conversion_workbuf_name): New variable.
26802 (reused_workbuf_in_use): New variable.
26803 (make_conversion_work_buffer): Delete the arg DEPTH.
26804 (code_conversion_restore): Change argument to cons.
26805 (code_conversion_save): Delete the argument BUFFER. Change callers.
26806 (detect_coding_system): New argument src_chars. Change callers.
26807 Fix for utf-16 detection.
26808 (init_coding_once): Don't use ISO_carriage_return.
26809 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26810 reused_workbuf_in_use.
26811
26812 2008-02-01 Kenichi Handa <handa@m17n.org>
26813
26814 * keymap.c (store_in_keymap): Pay attention to the case that idx
26815 is a cons specifying a character range.
26816
26817 2008-02-01 Kenichi Handa <handa@m17n.org>
26818
26819 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26820 HANDLED_RECOMPUTE_PROPS.
26821
26822 * coding.c (Fdefine_coding_system_internal): Fix checking of
26823 ascii compatibility.
26824
26825 2008-02-01 Kenichi Handa <handa@m17n.org>
26826
26827 * charset.c (find_charsets_in_text): Delete unused locale variable.
26828 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26829
26830 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26831 Resync charset_list to Vemacs_mule_charset_list.
26832
26833 * keymap.c (store_in_keymap): Pay attention to the case that idx
26834 is a cons specifying a character range.
26835
26836 2008-02-01 Kenichi Handa <handa@m17n.org>
26837
26838 * composite.c (update_compositions): Bind inhibit-read-only, etc
26839 to t before calling remove-list-of-text-properties.
26840
26841 * print.c (print_object): Always print ASCII chars as is.
26842
26843 2008-02-01 Kenichi Handa <handa@m17n.org>
26844
26845 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26846
26847 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26848 is a char table.
26849
26850 2008-02-01 Kenichi Handa <handa@m17n.org>
26851
26852 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26853
26854 2008-02-01 Kenichi Handa <handa@m17n.org>
26855
26856 * xfaces.c (set_lface_from_font_name): Fix for the case that
26857 FONTNAME is not fontset name.
26858
26859 2008-02-01 Kenichi Handa <handa@m17n.org>
26860
26861 * fns.c (base64_encode_1): Fix previous change.
26862
26863 2008-02-01 Kenichi Handa <handa@m17n.org>
26864
26865 * fontset.c (set_fontset_font): New function.
26866 (Fset_fontset_font): If a font is specified for a charset, use
26867 map_charset_chars to store the font spec in a fontset.
26868
26869 2008-02-01 Kenichi Handa <handa@m17n.org>
26870
26871 * fontset.c (fontset_face): Create a fallback fontset on demand.
26872 (make_fontset): Don't create a fallback fontset here.
26873 (free_face_fontset): Free a fallback fontset (if any) too.
26874 (n_auto_fontsets): Delete this variable.
26875 (auto_fontset_alist): New variable.
26876 (new_fontset_from_font_name): Check auto_fontset_alist.
26877 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26878 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26879 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26880 Defsubr Sfontset_list_all.
26881
26882 2008-02-01 Kenichi Handa <handa@m17n.org>
26883
26884 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26885
26886 2008-02-01 Kenichi Handa <handa@m17n.org>
26887
26888 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26889
26890 2008-02-01 Kenichi Handa <handa@m17n.org>
26891
26892 * editfns.c (Fgoto_char): Fix docstring.
26893
26894 2008-02-01 Kenichi Handa <handa@m17n.org>
26895
26896 * insdel.c (insert_from_gap): Adjust intervals correctly.
26897
26898 2008-02-01 Jason Rumney <jasonr@gnu.org>
26899
26900 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26901 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26902 (w32_initialize): Try to load it.
26903 (x_get_font_repertory): Use it if available.
26904 (w32_encode_char): Add shortcut for unicode output.
26905
26906 * w32fns.c (w32_load_system_font): Default charset to -1.
26907 (x_to_w32_charset): Match all fonts for unicode.
26908 (w32_to_x_charset): New parameter matching. Don't return partial
26909 or wildcard charsets.
26910 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26911 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26912 (w32_to_x_font): Match charset to real charset.
26913 (enum_font_cb2): Always list unicode versions.
26914
26915 * makefile.w32-in (temacs): Increase EMHEAP.
26916
26917 2008-02-01 Jason Rumney <jasonr@gnu.org>
26918
26919 * w32term.c (w32_encode_char): New charset parameter.
26920 font_info.encoding becomes encoding_type.
26921 (x_get_font_repertory): New function. Warning: stub only!
26922 (x_new_font): Return quickly if font already set.
26923 (x_new_fontset): fontsetname parameter is Lisp_Object.
26924 Use new fs_query_fontset. Try new_fontset_from_font_name.
26925 Use fontset_name for return value.
26926
26927 * w32term.h: Declare x_get_font_repertory.
26928
26929 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26930 place of find_charset_in_text. Use encode_coding_object in place
26931 of encode_coding.
26932 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26933 decode_coding.
26934
26935 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26936 of x_new_fontset.
26937 (w32_load_system_font): Initialize charset as unicode.
26938 font_info.encoding becomes encoding_type.
26939 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26940 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26941 (syms_of_w32fns): Set get_font_repertory_func.
26942
26943 * w32console.c: Include character.h. Use terminal_encode_buffer
26944 from term.c.
26945 (write_glyphs): Use new version of encode_terminal_code.
26946 Use encode_coding_object in place of encode_coding.
26947
26948 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26949 encoding becomes encoding_type.
26950
26951 * term.c (terminal_encode_buffer): Make externally visible.
26952
26953 * makefile.w32-in: Add character.h dependancies.
26954 (character.o, chartab.o): New targets.
26955
26956 2008-02-01 Kenichi Handa <handa@m17n.org>
26957
26958 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26959 CODING_ID_EOL_TYPE.
26960
26961 2008-02-01 Andreas Schwab <schwab@suse.de>
26962
26963 * coding.c (produce_chars): Revert last change.
26964
26965 2008-02-01 Kenichi Handa <handa@m17n.org>
26966
26967 * charset.h (charset_unicode): Extern it.
26968
26969 * charset.c (string_xstring_p): Check by (C >= 0x100).
26970 (find_charsets_in_text): Change format of the arc CHARSETS.
26971 New arg MULTIBYTE.
26972 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26973 change of find_charsets_in_text.
26974 (Fsplit_char): Fix doc. Never return unknown.
26975
26976 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26977
26978 * coding.c (Fdefine_coding_system_alias):
26979 Update Vcoding_system_list.
26980
26981 * fontset.c (load_font_get_repertory): Pay attention to the case
26982 that ENCODING of a font is specified by a char-table.
26983
26984 * xterm.c (x_get_font_repertory): Handle the case that the
26985 encoding of font is other than Unicode.
26986
26987 2008-02-01 Kenichi Handa <handa@m17n.org>
26988
26989 * term.c (encode_terminal_code): Don't handle glyph-table.
26990 Check if a character is encodable by the terminal coding system.
26991 If not, produces proper number of `?'s. Update
26992 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26993 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26994
26995 2008-02-01 Kenichi Handa <handa@m17n.org>
26996
26997 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26998 New variables.
26999 (encode_terminal_code): Change argument. Encode multiple
27000 characters at once. Store the result of encoding in
27001 terminal_encode_buffer.
27002 (write_glyphs, insert_glyphs): Adjust for the change of
27003 encode_terminal_code.
27004 (term_init): Initialize terminal_encode_buffer and
27005 terminal_encode_buf_size.
27006
27007 * coding.c (consume_chars): If coding->src_object is nil, don't
27008 check annotation.
27009
27010 2008-02-01 Kenichi Handa <handa@m17n.org>
27011
27012 * character.c (char_string): Use ASCII_CHAR_P instead of
27013 SINGLE_BYTE_CHAR_P.
27014
27015 2008-02-01 Kenichi Handa <handa@m17n.org>
27016
27017 * xdisp.c (handle_auto_composed_prop): Check if the last
27018 characters of auto-composed region is newly composed with the
27019 following characters.
27020 (handle_composition_prop): Fix checking of point being inside
27021 composition.
27022
27023 2008-02-01 Kenichi Handa <handa@m17n.org>
27024
27025 * fns.c (concat): Don't change multibyteness of the result by
27026 concatenating an 8-bit character.
27027
27028 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
27029 multibyteness of the result when newelt is an 8-bit character.
27030
27031 2008-02-01 Dave Love <fx@gnu.org>
27032
27033 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
27034 EMACS_INT.
27035
27036 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
27037
27038 * xfaces.c (face_numeric_value): Declare dim size_t.
27039 (Finternal_lisp_face_equal_p): Remove unused f.
27040
27041 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
27042 (MATRIX_ROW): Remove unused vars.
27043 (draw_glyphs, x_insert_glyphs, fast_find_position)
27044 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
27045 byte/char counts.
27046
27047 * regex.c (regex_compile): Remove unused var.
27048
27049 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27050
27051 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
27052 (Faccessible_keymaps, where_is_internal): Remove unused vars.
27053
27054 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
27055
27056 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
27057
27058 * fileio.c (Fwrite_region): Remove unused var.
27059
27060 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
27061 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
27062
27063 * composite.c (Fremove_list_of_text_properties): Declare.
27064
27065 * coding.c (inhibit_pre_post_conversion): Remove (unused).
27066 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
27067 (coding_inherit_eol_type): Remove unused attrs.
27068 (detect_coding): Cast arg of detect_eol.
27069
27070 * charset.c (syms_of_charset): Remove unused var p.
27071 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
27072 byte/char counts.
27073
27074 * casetab.c (set_case_table): Remove unused var.
27075
27076 * window.c (Fdisplay_buffer, Fframe_selected_window):
27077 Remove unused vars.
27078
27079 2008-02-01 Dave Love <fx@gnu.org>
27080
27081 * xterm.c (x_bitmap_mask): Declare.
27082
27083 2008-02-01 Dave Love <fx@gnu.org>
27084
27085 * xterm.c (x_term_init): Fix type error.
27086
27087 * lisp.h: Add Funibyte_char_to_multibyte.
27088
27089 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
27090 (Fset_coding_system_priority): Doc fix.
27091
27092 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
27093
27094 * indent.c (check_composition): Make start and end EMACS_INT.
27095
27096 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
27097
27098 * xdisp.c (handle_composition_prop, check_point_in_composition):
27099 Make buffer positions EMACS_INT.
27100
27101 * composite.c (find_composition, run_composition_function)
27102 (update_compositions, Ffind_composition_internal): Make buffer
27103 positions EMACS_INT.
27104
27105 * composite.h (find_composition, update_compositions):
27106 Make position args EMACS_INT.
27107
27108 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
27109
27110 * intervals.c (get_property_and_range):
27111 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
27112
27113 * unexalpha.c: Don't include varargs.h.
27114
27115 2008-02-01 Dave Love <fx@gnu.org>
27116
27117 * coding.h (ENCODE_UTF_8): New.
27118
27119 * Makefile.in (gtkutil.o): Depend on coding.h.
27120
27121 * coding.c (Fset_coding_system_priority): Doc fix.
27122
27123 2008-02-01 Kenichi Handa <handa@m17n.org>
27124
27125 * fileio.c (Finsert_file_contents): Call setup_coding_system in
27126 the case of auto saving.
27127
27128 2008-02-01 Andreas Schwab <schwab@suse.de>
27129
27130 * chartab.c (map_char_table, map_char_table_for_charset):
27131 Protect `range' from GC.
27132
27133 2008-02-01 Kenichi Handa <handa@m17n.org>
27134
27135 * coding.c (decode_coding_sjis): Check bytes more rigidly.
27136
27137 2008-02-01 Kenichi Handa <handa@m17n.org>
27138
27139 * fileio.c (choose_write_coding_system): Return a decided coding system.
27140 (Fwrite_region): Set Vlast_coding_system_used to the return value
27141 of choose_write_coding_system.
27142
27143 2008-02-01 Kenichi Handa <handa@m17n.org>
27144
27145 * charset.c (Fset_charset_priority): Pay attention to duplicated
27146 arguments.
27147
27148 * coding.c (QCcategory): New variable.
27149 (syms_of_coding): Defsym it. Set all elements of
27150 Vcoding_category_table and their symbol values.
27151 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
27152 coding-category-XXX, and coding-category-list.
27153 (Fdefine_coding_system_internal): Add category in the plist.
27154
27155 2008-02-01 Kenichi Handa <handa@m17n.org>
27156
27157 * callproc.c (Fcall_process): Handle carryover correctly.
27158
27159 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
27160 (raw_text_coding_system): Check NILP (coding_system).
27161 (coding_inherit_eol_type): Check NILP (coding_system) and
27162 NILP (parent).
27163 (consume_chars): Fix for the case of raw-text.
27164
27165 * process.c (read_process_output): Handle carryover correctly.
27166
27167 2008-02-01 Dave Love <fx@gnu.org>
27168
27169 * regex.c (re_search_2): Fix last change.
27170
27171 2008-02-01 Kenichi Handa <handa@m17n.org>
27172
27173 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
27174 target_multibyte. Even in a unibyte case, return a converted
27175 multibyte char.
27176 (GET_CHAR_AFTER): New macro.
27177 (PATFETCH): Translate via multibyte char.
27178 (HANDLE_UNIBYTE_RANGE): Delete this macro.
27179 (SETUP_MULTIBYTE_RANGE): New macro.
27180 (regex_compile): Setup compiled code so that its multibyteness
27181 matches that of a target. Fix the handling of "[X-YZ]" using
27182 SETUP_MULTIBYTE_RANGE.
27183 (analyse_first) <charset>: For filling fastmap for all multibyte
27184 characters, don't check by BASE_LEADING_CODE_P.
27185 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
27186 the same as RE_MULTIBYTE_P (bufp) now.
27187 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
27188 (TARGET_CHAR_AND_LENGTH): Delete this macro.
27189 (TRANSLATE_VIA_MULTIBYTE): New macro.
27190 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
27191 It is the same as RE_MULTIBYTE_P (bufp) now.
27192 <exactn>: Translate via multibyte.
27193 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
27194 Don't translate it.
27195 <charset, charset_not>: Fetch a character by
27196 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
27197 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
27198 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
27199 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
27200 by GET_CHAR_AFTER.
27201 (bcmp_translate): Likewise.
27202
27203 * search.c (compile_pattern): Check the member target_multibyte,
27204 not the member multibyte of buf.
27205
27206 * lread.c (read1): While reading a string, set force_singlebyte
27207 and force_multibyte correctly.
27208
27209 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
27210 up of unibyte_to_multibyte_table.
27211
27212 2008-02-01 Kenichi Handa <handa@m17n.org>
27213
27214 * coding.c (setup_coding_system): If coding has
27215 post-read-conversion or pre-write-conversion, set
27216 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
27217 respectively.
27218 (decode_coding_gap): Run post-read-conversion if any.
27219
27220 * fileio.c (Finsert_file_contents): Even if we read into a
27221 unibyte buffer, check if we must decode the result or not.
27222
27223 2008-02-01 Kenichi Handa <handa@m17n.org>
27224
27225 * coding.c (make_conversion_work_buffer): Change the work buffer
27226 name to the same one as that of Emacs 21.
27227
27228 2008-02-01 Kenichi Handa <handa@m17n.org>
27229
27230 * coding.h (make_conversion_work_buffer): Adjust prototype.
27231 (code_conversion_restore): Don't extern it.
27232
27233 * coding.c (detected_mask): Delete unused variable.
27234 (decode_coding_iso_2022): Pay attention to the byte sequence of
27235 CTEXT extended segment, and retain those bytes as is.
27236 (decode_coding_ccl): Delete unused variable `valids'.
27237 (setup_coding_system): Delete unused variable `category'.
27238 (consume_chars): Delete unused variable `category'. Make it work
27239 for non-multibyte case.
27240 (make_conversion_work_buffer): Change argument.
27241 (saved_coding): Delete unused variable.
27242 (code_conversion_restore): Don't check saved_coding->destination.
27243 (code_conversion_save): New function.
27244 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
27245 instead of record_unwind_protect.
27246 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
27247 (detect_coding_system): Delete unused variable `mask'.
27248 (Fdefine_coding_system_internal): Delete unused variable id.
27249
27250 * fileio.c (kill_workbuf_unwind): New function.
27251 (Finsert_file_contents): On replacing, call
27252 make_conversion_work_buffer with correct args, and call
27253 record_unwind_protect with the first arg kill_workbuf_unwind.
27254
27255 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
27256
27257 2008-02-01 Kenichi Handa <handa@m17n.org>
27258
27259 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
27260 (fontset_add): Fix for the case that TO is less than TO1.
27261 (Ffontset_info): Don't use fallback fontset on checking the
27262 default fontset.
27263 (dump_fontset): New function for debugging.
27264
27265 * coding.c (Fdefine_coding_system_internal): Fix for the case that
27266 coding_type is Qcharset.
27267
27268 2008-02-01 Kenichi Handa <handa@m17n.org>
27269
27270 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
27271 (map_char_table): Don't inherit the value from the parent on
27272 initializing VAL. Adjust for the above change.
27273
27274 2008-02-01 Kenichi Handa <handa@m17n.org>
27275
27276 * coding.c (Qsignature, Qendian): Delete these variables.
27277 (syms_of_coding): Don't initialize them.
27278 (CATEGORY_MASK_UTF_16_AUTO): New macro.
27279 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
27280 detect_info->found.
27281 (decode_coding_utf_16): Don't detect BOM here.
27282 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
27283 is NOT utf_16_without_bom.
27284 (setup_coding_system): For a coding system of type utf-16, check
27285 if the attribute :endian is Qbig or not (not nil or not), and set
27286 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
27287 (detect_coding): If coding type is utf-16 and BOM detection is
27288 required, detect it.
27289 (Fdefine_coding_system_internal): For a coding system of type
27290 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
27291
27292 2008-02-01 Kenichi Handa <handa@m17n.org>
27293
27294 * coding.c (coding_set_source): Fix for the case that the current
27295 buffer is different from coding->src_object.
27296 (decode_coding_object): Don't use the conversion work buffer if
27297 DST_OBJECT is a buffer.
27298
27299 2008-02-01 Dave Love <fx@gnu.org>
27300
27301 * lread.c (read_emacs_mule_char) [len==2]: Index
27302 emacs_mule_charset correctly.
27303
27304 2008-02-01 Dave Love <fx@gnu.org>
27305
27306 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27307 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27308 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27309 treated specially.)
27310 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27311 (detected_mask): Remove Big5 bits.
27312
27313 2008-02-01 Kenichi Handa <handa@m17n.org>
27314
27315 The following changes are to make the font rescaling facility
27316 compatible with Emacs 21.
27317
27318 * xfaces.c (Vface_font_rescale_alist): Rename from
27319 Vface_resizing_fonts.
27320 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27321 (font_rescale_ratio): Rename from font_resizing_ratio.
27322 (split_font_name): Set font->rescale_ratio.
27323 (better_font_p): Pay attention to font->rescale_ratio.
27324 (build_scalable_font_name): Likewise. Change RESX, and RESY
27325 fields.
27326 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27327
27328 2008-02-01 Kenichi Handa <handa@m17n.org>
27329
27330 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27331 (Qutf_16_le): Remove these variables.
27332 (syms_of_coding): Don't DEFSYM them.
27333 (decode_coding_utf_16): Fix handling of BOM.
27334 (encode_coding_utf_16): Fix handling of BOM.
27335
27336 2008-02-01 Kenichi Handa <handa@m17n.org>
27337
27338 * fileio.c (Finsert_file_contents): On replacing, before decoding
27339 the file into the work buffer, set point of the work buffer to the end.
27340
27341 2008-02-01 Dave Love <fx@gnu.org>
27342
27343 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27344
27345 2008-02-01 Dave Love <fx@gnu.org>
27346
27347 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27348 and fix C types.
27349
27350 2008-02-01 Kenichi Handa <handa@m17n.org>
27351
27352 * xdisp.c (SKIP_GLYPHS): New macro.
27353 (set_cursor_from_row): Pay attention to string display properties.
27354
27355 * category.c (copy_category_entry): Fix for the case that RANGE
27356 is an integer.
27357
27358 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27359
27360 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27361
27362 2008-02-01 Kenichi Handa <handa@m17n.org>
27363
27364 * charset.c (Fcharset_id_internal): New function.
27365 (syms_of_charset): Defsubr it.
27366
27367 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27368 with the last arg charset_list acquired from coding.
27369 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27370 the attribute coding_attr_ccl_valids.
27371
27372 * coding.h (enum define_coding_ccl_arg_index): Set the first
27373 member coding_arg_ccl_decoder to coding_arg_max.
27374
27375 * ccl.h (ccl_driver): Adjust prototype.
27376
27377 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27378 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
27379 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
27380 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27381 last arg Qnil.
27382
27383 2008-02-01 Kenichi Handa <handa@m17n.org>
27384
27385 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27386 call encode_char.
27387
27388 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27389
27390 2008-02-01 Dave Love <fx@gnu.org>
27391
27392 * composite.c (syms_of_composite): Make composition_hash_table weak.
27393
27394 2008-02-01 Kenichi Handa <handa@m17n.org>
27395
27396 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27397 (font_name_registry): Don't extern them.
27398 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27399
27400 * fontset.h (Qfontset): Don't extern it.
27401 (new_fontset_from_font_name): Extern it.
27402
27403 * fontset.c: Give 8 extra slots to fontset objects.
27404 (Qfontset_info): New variable.
27405 (syms_of_fontset): Defsym it.
27406 (FONTSET_FALLBACK): New macro.
27407 (fontset_face): Try also the default fontset.
27408 (make_fontset): Realize a fallback fontset from the default fontset.
27409 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27410 using split_font_name_into_vector and build_font_name_from_vector.
27411 (Fset_fontset_font): Access the elements of font_spec by enum
27412 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27413 name by using split_font_name_into_vector.
27414 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
27415 generate a proper font name from the fontset name.
27416 Update Vfontset_alias_alist.
27417 (n_auto_fontsets): New variable.
27418 (new_fontset_from_font_name): New function.
27419 (Ffont_info): Store the information about fonts generated from the
27420 default fontset in the first extra slot of the returned char-table.
27421
27422 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27423 (font_name_registry): Delete function.
27424 (split_font_name_into_vector): New function.
27425 (build_font_name_from_vector): New function.
27426 (font_list): The argument REGISTRY is now a list of registry names.
27427 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27428 specifies an explicit font name, return the name as is. Make a
27429 list of registy names.
27430
27431 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27432 of x_new_fontset.
27433 (Fx_create_frame): Don't call x_new_fontset here. Just use
27434 x_list_fonts to check the existence of fonts.
27435
27436 * xterm.h (x_new_fontset): Adjust prototype.
27437
27438 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27439 string. Use new_fontset_from_font_name to create a fontset from a
27440 font name.
27441
27442 2008-02-01 Kenichi Handa <handa@m17n.org>
27443
27444 * syntax.c (Vfind_word_boundary_function_table): New name for
27445 Vnext_word_boundary_function_table.
27446 (find-word-boundary-function-table): New name for
27447 next-word-boundary-function-table.
27448
27449 2008-02-01 Dave Love <fx@gnu.org>
27450
27451 * Makefile.in: Fix some dependencies.
27452
27453 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27454 set it to nil before returning.
27455
27456 * composite.c (update_compositions): Fix type error.
27457
27458 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27459
27460 2008-02-01 Kenichi Handa <handa@m17n.org>
27461
27462 * xterm.c (x_new_font): Optimize for the case that the font is
27463 already set for the frame.
27464
27465 2008-02-01 Kenichi Handa <handa@m17n.org>
27466
27467 * chartab.c (char_table_ascii): Check if the char table contents
27468 is sub-char-table or not.
27469 (char_table_set, char_table_set_range): Fix argument to
27470 char_table_ascii.
27471
27472 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27473 (detect_coding_utf_8, detect_coding_utf_16)
27474 (detect_coding_emacs_mule, detect_coding_iso_2022)
27475 (detect_coding_sjis, detect_coding_big5)
27476 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27477 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27478 sequence is valid in this coding system. Change callers.
27479 (MAX_ANNOTATION_LENGTH): New macro.
27480 (ADD_ANNOTATION_DATA): New macro.
27481 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27482 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
27483 (ADD_CHARSET_DATA): New macro.
27484 (emacs_mule_char): New argument ID. Change callers.
27485 (decode_coding_emacs_mule, decode_coding_iso_2022)
27486 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27487 Produce charset annotation data in coding->charbuf.
27488 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27489 to charset annotation data in coding->charbuf.
27490 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27491 coding->common_flags if the coding system is iso-2022 based and
27492 uses designation.
27493 (produce_composition): Adjust for the new annotation data format.
27494 (produce_charset): New function.
27495 (produce_annotation): Handle charset annotation.
27496 (handle_composition_annotation, handle_charset_annotation):
27497 New functions.
27498 (consume_chars): Handle charset annotation. Utilize the above two
27499 functions.
27500 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27501 buffer, get the deleted text as a string and set
27502 coding->src_object to that string.
27503 (detect_coding, detect_coding_system): Use the new struct
27504 coding_detection_info.
27505
27506 * coding.h (struct coding_detection_info): New structure.
27507 (struct coding_system): Adjust prototype of the member `detector'.
27508 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27509
27510 2008-02-01 Kenichi Handa <handa@m17n.org>
27511
27512 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27513
27514 2008-02-01 Dave Love <fx@gnu.org>
27515
27516 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27517 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27518 to new local and nullify apropos_accumulate before returning.
27519 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27520
27521 2008-02-01 Kenichi Handa <handa@m17n.org>
27522
27523 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27524 correctly.
27525
27526 2008-02-01 Dave Love <fx@gnu.org>
27527
27528 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27529
27530 2008-02-01 Kenichi Handa <handa@m17n.org>
27531
27532 The following changes are to make character composition happen
27533 automatically on displaying.
27534
27535 * Makefile.in (lisp, shortlisp): Add composite.elc.
27536
27537 * composite.h (Qauto_composed, Vauto_composition_function)
27538 (Qauto_composition_function): Extern them.
27539
27540 * composite.c (Vcomposition_function_table)
27541 (Qcomposition_function_table): Delete variables.
27542 (Qauto_composed, Vauto_composition_function)
27543 (Qauto_composition_function): New variables.
27544 (run_composition_function): Don't call
27545 compose-chars-after-function.
27546 (update_compositions): Clear `auto-composed' text property.
27547 (compose_chars_in_text): Delete this function.
27548 (syms_of_composite): Staticpro Qauto_composed and
27549 Qauto_composition_function. Declare Vauto_composition_function as
27550 a Lisp variable.
27551
27552 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27553
27554 * xdisp.c (it_props): Add an entry for Qauto_composed.
27555 (handle_auto_composed_prop): New function.
27556
27557 * xselect.c (selection_data_to_lisp_data): Don't call
27558 compose_chars_in_text.
27559
27560 2008-02-01 Dave Love <fx@gnu.org>
27561
27562 * keyboard.c (read_char): Modify checking around use of
27563 Vkeyboard_translate_table.
27564
27565 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27566 and fix C types.
27567
27568 2008-02-01 Kenichi Handa <handa@m17n.org>
27569
27570 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27571 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27572 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27573 the case that the last byte is '\r' correctly.
27574 (decode_coding): Flush out the unprocessed data correctly.
27575 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27576
27577 2008-02-01 Dave Love <fx@gnu.org>
27578
27579 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27580 Add XK_ISO... case.
27581 (xaw_scroll_callback): Revert last change.
27582
27583 2008-02-01 Kenichi Handa <handa@m17n.org>
27584
27585 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27586
27587 2008-02-01 Kenichi Handa <handa@m17n.org>
27588
27589 * xfaces.c (Vface_resizing_fonts): New variable.
27590 (struct font_name): New member `resizing_ratio'.
27591 (font_resizing_ratio): New function.
27592 (split_font_name): Set font->resizing_ratio.
27593 (better_font_p): Pay attention to font->resizing_ratio.
27594 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27595 RESX, and RESY fields.
27596 (try_alternative_families): Try scalable fonts if
27597 Vscalable_fonts_allowed is not Qt.
27598 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27599
27600 2008-02-01 Dave Love <fx@gnu.org>
27601
27602 * xterm.c (xaw_scroll_callback): Cast correctly.
27603
27604 2008-02-01 Dave Love <fx@gnu.org>
27605
27606 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27607 (lispy_kana_keys): Comment out.
27608 (make_lispy_event) [XK_kana_A]: Comment out.
27609
27610 * xterm.c (xaw_scroll_callback): Cast call_data.
27611 (XTread_socket): Deal with ASCII keysyms.
27612 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27613
27614 2008-02-01 Dave Love <fx@gnu.org>
27615
27616 * xterm.c (Vx_keysym_table): New.
27617 (syms_of_xterm): Initialize it.
27618 (XTread_socket): Use it.
27619 From head: Eliminate incorrect optimization that tried to avoid
27620 decoding the output of X*LookupString.
27621 (x_get_font_repertory): Delete charset declaration.
27622
27623 2008-02-01 Kenichi Handa <handa@m17n.org>
27624
27625 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27626 return 0.
27627 (Fdefine_coding_system_internal):
27628 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27629
27630 2008-02-01 Dave Love <fx@gnu.org>
27631
27632 * coding.c (Fcheck_coding_system): Doc fix.
27633
27634 * editfns.c (Finsert_byte): Return a proper value.
27635
27636 2008-02-01 Kenichi Handa <handa@m17n.org>
27637
27638 * coding.c (decode_coding): Fix args to translate_chars.
27639 Pay attention to Vstandard_translation_table_for_decode.
27640 (encode_coding): Fix args to translate_chars. Pay attention to
27641 Vstandard_translation_table_for_encode.
27642
27643 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27644 SINGLE_BYTE_CHAR_P.
27645
27646 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27647 not by SINGLE_BYTE_CHAR_P.
27648
27649 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27650 SINGLE_BYTE_CHAR_P.
27651
27652 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27653 SINGLE_BYTE_CHAR_P.
27654
27655 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27656 by SINGLE_BYTE_CHAR_P.
27657
27658 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27659 SINGLE_BYTE_CHAR_P.
27660
27661 2008-02-01 Dave Love <fx@gnu.org>
27662
27663 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27664
27665 2008-02-01 Dave Love <fx@gnu.org>
27666
27667 * fns.c (Flanginfo): Fix typo.
27668
27669 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27670
27671 2008-02-01 Kenichi Handa <handa@m17n.org>
27672
27673 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27674 (detect_coding_emacs_mule, detect_coding_iso_2022)
27675 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27676 incomplete byte sequence. Don't update *mask when correctly detected.
27677 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27678 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27679 (detect_coding, detect_coding_system): Adjust for the changes above.
27680
27681 2008-02-01 Kenichi Handa <handa@m17n.org>
27682
27683 * character.c (char_string): Rename from
27684 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27685 (string_char): Rename from string_char.
27686
27687 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27688 if C is greater than MAX_3_BYTE_CHAR.
27689 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27690 Call string_char instead of string_char_with_unification.
27691
27692 2008-02-01 Dave Love <fx@gnu.org>
27693
27694 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27695
27696 2008-02-01 Kenichi Handa <handa@m17n.org>
27697
27698 * keymap.c (push_key_description): Pay attention to force_multibyte.
27699
27700 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27701
27702 2008-02-01 Dave Love <fx@gnu.org>
27703
27704 * charset.c (define_charset_internal): Rename `supprementary'.
27705
27706 * Makefile.in (lisp, shortlisp): Remove latin-N.
27707
27708 2008-02-01 Dave Love <fx@gnu.org>
27709
27710 * xfns.c (x_window, x_window): Use use_xim.
27711
27712 * xterm.c (use_xim): Initialize.
27713 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27714 (x_term_init): Maybe set use_xim.
27715
27716 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27717
27718 2008-02-01 Kenichi Handa <handa@m17n.org>
27719
27720 * search.c (search_buffer): Fix case-fold-search of multibyte
27721 characters.
27722 (boyer_moore): Rename the last argument to char_high_bits.
27723
27724 2008-02-01 Kenichi Handa <handa@m17n.org>
27725
27726 * xdisp.c (display_string): Fix for the case of zero width glyph.
27727
27728 * xfns.c (x_set_font): Change the error message of the case that
27729 x_new_fontset returns Qt.
27730
27731 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27732 (Finternal_set_lisp_face_attribute): Use signal_error for the
27733 error of invalid fontset.
27734
27735 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27736 fontset, return Qt.
27737
27738 2008-02-01 Dave Love <fx@gnu.org>
27739
27740 * unexelf.c (unexec): Make .got handling not SGI-specific.
27741
27742 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27743
27744 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27745
27746 * keyboard.c (read_key_sequence): Fix type error.
27747
27748 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27749 Fix type error.
27750
27751 * fontset.c (fontset_add): Return Lisp_Object.
27752
27753 2008-02-01 Dave Love <fx@gnu.org>
27754
27755 * charset.h (charset_ordered_list_tick): Declare extern.
27756
27757 2008-02-01 Kenichi Handa <handa@m17n.org>
27758
27759 The following changes (and some of 2008-02-01 changes of mine) are
27760 for handling syntax, category, and case conversion for unibyte
27761 characters by converting them to multibyte on the fly. With these
27762 changes, we don't have to setup syntax and case tables for unibyte
27763 characters in each language environment.
27764
27765 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27766 multibyte if necessary.
27767
27768 * bytecode.c (Fbyte_code): Likewise.
27769
27770 * character.h (LEADING_CODE_LATIN_1_MIN)
27771 (LEADING_CODE_LATIN_1_MAX): New macros.
27772 (unibyte_to_multibyte_table): Extern it.
27773 (unibyte_char_to_multibyte): New macro.
27774 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27775 (CHAR_LEADING_CODE): New macro.
27776 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27777
27778 * character.c (unibyte_to_multibyte_table): New variable.
27779 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27780 (multibyte_char_to_unibyte): If C is an eight-bit character,
27781 convert it to the corresponding byte value.
27782
27783 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27784 not 1, signals an error. Update the elements of
27785 unibyte_to_multibyte_table.
27786 (init_charset_once): Initialize unibyte_to_multibyte_table.
27787 (syms_of_charset): Define the charset `iso-8859-1'.
27788
27789 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27790 as is without converting it to unibyte. In a unibyte buffer,
27791 convert C to multibyte before checking the syntax.
27792
27793 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27794
27795 * minibuf.c (Fminibuffer_complete_word): Use the macro
27796 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27797
27798 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27799
27800 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27801 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27802 If that is zero, convert an eight-bit char to multibyte.
27803 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27804 non-emacs case.
27805 (PATFETCH): Convert an eight-bit char to multibyte.
27806 (HANDLE_UNIBYTE_RANGE): New macro.
27807 (regex_compile): Setup the compiled pattern for multibyte chars
27808 even if the given regex string is unibyte. Use PATFETCH_RAW
27809 instead of PATFETCH in many places. To handle `charset'
27810 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27811 only for ASCII chars.
27812 (analyse_first) <exactn>: Simplify because the compiled pattern
27813 is multibyte.
27814 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27815 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27816 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27817 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27818 multibyte always 1.
27819 (re_search_2): In emacs, set the locale variable multibyte to 1,
27820 otherwise to 0. New local variable target_multibyte. Check it
27821 to decide the multibyteness of STR1 and STR2.
27822 If target_multibyte is zero, convert unibyte chars to multibyte
27823 before translating and checking fastmap.
27824 (TARGET_CHAR_AND_LENGTH): New macro.
27825 (re_match_2_internal): In emacs, set the locale variable multibyte
27826 to 1, otherwise to 0. New local variable target_multibyte.
27827 Check it to decide the multibyteness of STR1 and STR2.
27828 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27829 <charset, charset_not>: If multibyte is nonzero, check fastmap
27830 only for ASCII chars. Call bcmp_translate with
27831 target_multibyte, not with multibyte.
27832 <begline>: Declare the local variable C as `unsigned'.
27833 (bcmp_translate): Change the last arg name to target_multibyte.
27834
27835 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27836 the regexp pattern and the matching target. Set cp->buf.multibyte
27837 to the multibyteness of the regexp pattern. Set
27838 cp->but.target_multibyte to the multibyteness of the matching target.
27839 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27840 FETCH_STRING_CHAR_ADVANCE.
27841 (Freplace_match): Convert unibyte chars to multibyte.
27842
27843 * syntax.c (char_quoted, back_comment, scan_words)
27844 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27845 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27846 unibyte chars to multibyte.
27847 (skip_chars): Delete the arg syntaxp, and move the code for
27848 handling syntaxes to skip_syntaxes. Change callers.
27849 Fix the case that the multibyteness of STRING and the current
27850 buffer doesn't match.
27851 (skip_syntaxes): New function.
27852 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27853 SINGLE_BYTE_CHAR_P.
27854
27855 2008-02-01 Kenichi Handa <handa@m17n.org>
27856
27857 * xfaces.c (QCfontset): New variable.
27858 (LFACE_FONTSET): New macro.
27859 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27860 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27861 (Finternal_set_lisp_face_attribute)
27862 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27863 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27864 check also LFACE_FONTSET_INDEX.
27865 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27866 attrs[LFACE_FONT_INDEX].
27867 (syms_of_xfaces): Intern and staticpro QCfontset.
27868
27869 * dispextern.h (enum lface_attribute_index): New member
27870 LFACE_FONTSET_INDEX.
27871
27872 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27873
27874 2008-02-01 Kenichi Handa <handa@m17n.org>
27875
27876 * coding.c (coding_set_destination): Fix coding->destination for
27877 the case converting a region.
27878 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27879 (encode_coding_object): Fix coding->dst_pos and
27880 coding->dst_pos_byte for the case converting a region.
27881
27882 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27883
27884 * character.h (BYTE8_STRING): New macro.
27885
27886 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27887
27888 2008-02-01 Kenichi Handa <handa@m17n.org>
27889
27890 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27891 characters by octal form.
27892
27893 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27894
27895 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27896 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27897 _fetch_multibyte_char_len.
27898 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27899
27900 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27901
27902 * casefiddle.c (casify_object): Simplify. Handle the case that
27903 the case conversion change the byte length.
27904 (casify_region): Likewise.
27905
27906 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27907
27908 * character.c (_fetch_multibyte_char_len): Delete this variable.
27909 (syms_of_character): Setup Vprintable_chars.
27910
27911 * editfns.c (Fchar_equal): Fix for the unibyte case.
27912 (Finsert_byte): New function.
27913 (syms_of_editfns): Defsubr it.
27914
27915 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27916 of direct code 0x3ffff.
27917
27918 * search.c (Freplace_match): Fix for the unibyte case.
27919
27920 2008-02-01 Kenichi Handa <handa@m17n.org>
27921
27922 * lread.c (safe_to_load_p): Fix the logic.
27923
27924 * syntax.c (scan_words): Don't treat characters belonging to
27925 different scripts as constituting a word.
27926
27927 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27928
27929 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27930
27931 * emacs.c (main): In the case of --unibyte, instead of aborting on
27932 finding non-empty buffer, make it unibyte.
27933
27934 2008-02-01 Kenichi Handa <handa@m17n.org>
27935
27936 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27937 to create a fontset.
27938
27939 2008-02-01 Dave Love <fx@gnu.org>
27940
27941 * character.c (Funibyte_char_to_multibyte): Doc fix.
27942
27943 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27944
27945 2008-02-01 Kenichi Handa <handa@m17n.org>
27946
27947 * fontset.c (fontset_add): Make the type `int'.
27948 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27949
27950 * character.c (unibyte_char_to_multibyte)
27951 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27952 charset_unibyte, not charset_primary.
27953
27954 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27955
27956 * charset.c (charset_unibyte): Rename from charset_primary.
27957 (Funibyte_charset): Rename from Fprimary_charset.
27958 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27959 (syms_of_charset): Adjust for the above changes.
27960
27961 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27962 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27963 it->multibyte_p is zero.
27964
27965 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27966 Delete extern.
27967
27968 2008-02-01 Kenichi Handa <handa@m17n.org>
27969
27970 * coding.c (Fdefine_coding_system_internal): Fix category setting
27971 for a coding system of type iso-2022.
27972
27973 2008-02-01 Kenichi Handa <handa@m17n.org>
27974
27975 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27976
27977 2008-02-01 Kenichi Handa <handa@m17n.org>
27978
27979 * syntax.c (Vnext_word_boundary_function_table): New variable.
27980 (next-word-boundary-function-table): Declare it as a Lisp variable
27981 in syms_of_syntax.
27982 (scan_words): Call functions in Vnext_word_boundary_function_table
27983 if any.
27984
27985 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27986
27987 * fontset.c (fs_load_font): If fontp->charset is not negative,
27988 return fontp without setting its members.
27989
27990 2008-02-01 Dave Love <fx@gnu.org>
27991
27992 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27993
27994 * m/sparc.h (HAVE_ALLOCA): Delete.
27995
27996 * s/irix6-5.h: Don't include strings.h.
27997 (bcopy, bzero, bcmp): Don't undef.
27998
27999 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
28000
28001 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
28002 (TIOCSIGSEND): Don't test IRIX6.
28003 (bcopy, bzero, bcmp): Define conditionally.
28004
28005 2008-02-01 Kenichi Handa <handa@m17n.org>
28006
28007 * buffer.c (Qas, Qmake, Qto): New variables.
28008 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
28009 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
28010
28011 * callproc.c (Fcall_process): Don't call insert_1_both directly if
28012 we are inserting a process output into a multibyte buffer.
28013
28014 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
28015 multibyte_char_to_unibyte.
28016
28017 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
28018 by the primary charset, make it eight-bit char.
28019 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
28020
28021 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
28022 (charset_8_bit__control, charset_8_bit_graphic)
28023 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
28024 (define_charset_internal): New function.
28025 (syms_of_charset): Call define_charset_internal for pre-defined
28026 charsets.
28027
28028 * charset.h (charset_8_bit): Extern it.
28029
28030 * coding.c (make_conversion_work_buffer): Adjust for the change
28031 of Fset_buffer_multibyte.
28032 (encode_coding_raw_text): Increment p0 in the loop.
28033
28034 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
28035
28036 * xdisp.c (setup_echo_area_for_printing, set_message_1):
28037 Adjust for the change of Fset_buffer_multibyte.
28038
28039 * fns.c (Fstring_to_multibyte): New function.
28040 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
28041
28042 2008-02-01 Dave Love <fx@gnu.org>
28043
28044 * xfns.c (x_put_x_image): Declare args.
28045
28046 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
28047 (try_font_list): Declare an arg.
28048
28049 * xdisp.c (message2_nolog, set_message): Declare an arg.
28050
28051 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
28052
28053 * syntax.c (scan_sexps_forward): Declare an arg.
28054
28055 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
28056 Declare an arg.
28057
28058 * lisp.h (Fnew_fontset): Declare.
28059
28060 * keymap.c (push_key_description): Call CHARACTERP correctly.
28061
28062 * fontset.c (fontset_add): Declare args. Call make_number correctly.
28063 (face_for_char): Delete unused vars.
28064 (Fset_fontset_font): Doc fix. Delete unused vars.
28065
28066 * doc.c (Fsubstitute_command_keys): Delete unused vars.
28067
28068 * composite.c (update_compositions): Declare arg.
28069
28070 * cm.c (calccost, cmgoto): Declare args.
28071
28072 * charset.c: Remove `emacs' conditional. Doc fixes.
28073 (map_char_table_for_charset): Declare.
28074
28075 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
28076
28077 * ccl.c: Remove `emacs' conditional.
28078
28079 2008-02-01 Kenichi Handa <handa@m17n.org>
28080
28081 The following changes are to allow specifying multiple font
28082 patterns for a character range (specified by script or charset).
28083
28084 * Makefile.in (abbrev.o): Depend on syntax.h.
28085 (xfaces.o): Depend on charset.h.
28086
28087 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
28088 SINGLE_BYTE_CHAR_P.
28089
28090 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
28091
28092 * character.h (Vchar_script_table): Extern it.
28093
28094 * character.c (Vscript_alist): Delete.
28095 (Vchar_script_table, Qchar_script_table): New variable.
28096 (syms_of_character): Declare Vchar_script_table as a lisp variable
28097 and initialize it.
28098
28099 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
28100 have property char-table-extra-slots, make no extra slot.
28101
28102 * dispextern.h (struct face): Delete member `charset'.
28103 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
28104 SINGLE_BYTE_CHAR_P.
28105 (choose_face_font, lookup_non_ascii_face, font_name_registry):
28106 Add prototypes.
28107 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
28108 (generate_ascii_font_name): Rename from generate_ascii_font.
28109
28110 * fontset.h (get_font_repertory_func): New prototype.
28111 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
28112 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
28113
28114 * fontset.c (Qprepend, Qappend): New variables.
28115 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
28116 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
28117 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
28118 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
28119 (fontset_ref_and_range, fontset_add, reorder_font_vector)
28120 (load_font_get_repertory): New functions.
28121 (fontset_set): Delete.
28122 (fontset_face): New arg FACE. Return face ID, not face.
28123 Complete re-write to handle new fontset structure. Change caller.
28124 (free_face_fontset): Use ASET istead of AREF (X) = Y.
28125 (face_for_char): Don't call lookup_face.
28126 (make_fontset_for_ascii_face): New arg FACE.
28127 (fs_load_font): New arg CHARSET_ID. Don't check
28128 Vfont_encoding_alist here.
28129 (find_font_encoding): New function.
28130 (list_fontsets): Use STRINGP, not ! NILP.
28131 (accumulate_script_ranges): New function.
28132 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
28133 Completely re-written to handle new fontset structure.
28134 (Ffontset_font): Return a copy of element.
28135 (syms_of_fontset): Define symbols Qprepend and Qappend.
28136 Fix docstring of font-encoding-alist.
28137
28138 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
28139 (Fset_fotset_font): Fix arguments to 5.
28140
28141 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
28142
28143 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
28144 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28145 (highlight_trailing_whitespace): Adjust for the change of
28146 lookup_named_face.
28147
28148 * xfaces.c: Include charset.h.
28149 (load_face_font): Delete argument C. Change caller.
28150 (generate_ascii_font_name): Rename from generate_ascii_font.
28151 (font_name_registry): New function.
28152 (cache_face): Store ascii faces before non-ascii faces in buckets.
28153 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
28154 Lookup only ascii faces.
28155 (lookup_non_ascii_face): New function.
28156 (lookup_named_face): Delete argument C. Change caller.
28157 (lookup_derived_face): Delete argument C. Change caller.
28158 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
28159 a string, just call font_list with it.
28160 (choose_face_font): Delete arguments FACE and C. New arg
28161 FONT_SPEC. Change caller.
28162 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
28163 Change caller.
28164 (realize_non_ascii_face): New function.
28165 (realize_x_face): Call load_face_font here.
28166 (realize_tty_face): Delete argument C. Change caller.
28167 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
28168 get a face ID.
28169 (dump_realized_face): Don't print charset of FACE.
28170
28171 * xfns.c (x_set_font): Always call x_new_fontset and
28172 store_frame_parameter.
28173 (Fx_create_frame): Call x_new_fontset, not x_new_font.
28174 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
28175
28176 * xterm.h (x_get_font_repertory): Extern it.
28177
28178 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
28179 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
28180 it->multibyte_p is zero.
28181 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28182 (x_new_fontset): If FONTSETNAME doesn't match any existing
28183 fontsets, create a new one.
28184 (x_get_font_repertory): New function.
28185
28186 2008-02-01 Kenichi Handa <handa@m17n.org>
28187
28188 * coding.c (Ffind_coding_systems_region_internal): Detect an
28189 ASCII only string correctly.
28190
28191 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
28192 version is 0.
28193
28194 2008-02-01 Kenichi Handa <handa@m17n.org>
28195
28196 * lread.c: Include "coding.h".
28197 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
28198 (load_each_byte, unread_char): New variables.
28199 (readchar_backlog): Delete.
28200 (readchar): Return a character unless load_each_byte is nonzero.
28201 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
28202 cons. If unread_char is not -1, simply return it.
28203 (unreadchar): Handle the case that readcharfun is
28204 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
28205 (read_multibyte): Delete.
28206 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
28207 (read_emacs_mule_char): New functions.
28208 (Fload): Even if the file doesn't have the extension ".elc", if
28209 safe_to_load_p returns a positive version number, assume that the
28210 file contains bytecompiled code. If the version is less than 22,
28211 load the file while decoding multibyte sequences by emacs-mule.
28212 (readevalloop): Don't use readchar_backlog.
28213 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
28214 (Fread_from_string): Pay attention to the case that STREAM is a cons.
28215 (read_escape): Delete the arg BYTEREP.
28216 (read1): Set load_each_byte to 1 temporarily while handling
28217 #@NUMBER. Don't call read_multibyte.
28218 (read_vector): Call Fread with a cons. If readcharfun is
28219 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
28220 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
28221 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
28222 and Qload_force_doc_strings.
28223
28224 2008-02-01 Kenichi Handa <handa@m17n.org>
28225
28226 * xdisp.c (face_before_or_after_it_pos):
28227 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
28228
28229 2008-02-01 Kenichi Handa <handa@m17n.org>
28230
28231 * character.h (TRAILING_CODE_P): New macro.
28232 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
28233 (string_char_with_unification): Fix prototype.
28234 (Vscript_alist): Extern it.
28235
28236 * character.c (Vscript_alist): New variable.
28237 (string_char_with_unification, str_as_unibyte)
28238 (string_escape_byte8): Add `const' to local variables.
28239 (syms_of_character): Declare script-alist as a Lisp variable.
28240
28241 * charset.h (Vcharset_ordered_list): Extern it.
28242 (charset_ordered_list_tick): Extern it.
28243 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
28244 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
28245 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
28246 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
28247 (Funify_charset): Adjust for the change of Funify_charset.
28248
28249 * charset.c (charset_ordered_list_tick): New variable.
28250 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
28251 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
28252 deunify instead of unify a charset.
28253 (string_xstring_p): Add `const' to local variables.
28254 (find_charsets_in_text): Add `const' to arguments and local variables.
28255 (encode_char): Adjust for the change of Funify_charset.
28256 Fix detecting of invalid code.
28257 (Fset_charset_priority): Increment charset_ordered_list_tick.
28258 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
28259 and TO_CODE.
28260
28261 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
28262 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
28263 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
28264 (decode_coding_ccl, consume_chars)
28265 (Ffind_coding_systems_region_internal)
28266 (Fcheck_coding_systems_region): Add `const' to local variables.
28267
28268 * print.c (print_object): Use octal form for printing the
28269 contents of a bool vector.
28270
28271 2008-02-01 Dave Love <fx@gnu.org>
28272
28273 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
28274 <version == 20>: Refuse to load.
28275
28276 2008-02-01 Dave Love <fx@gnu.org>
28277
28278 * fns.c: Move coding.h.
28279 (Qcodeset, Qdays, Qmonths): New.
28280 (concat): Use CHARACTERP instead of INTEGERP.
28281 (Flocale_codeset): Delete.
28282 (Flanginfo): New function.
28283 (syms_of_fns): Change accordingly.
28284
28285 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
28286
28287 2008-02-01 Dave Love <fx@gnu.org>
28288
28289 * casetab.c (init_casetab_once, init_casetab_once):
28290 Fix CHAR_TABLE_SET call.
28291
28292 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
28293
28294 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
28295
28296 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
28297 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
28298 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
28299
28300 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28301
28302 * coding.c (ENCODE_DESIGNATION, decode_eol)
28303 (make_conversion_work_buffer, code_conversion_restore)
28304 (Fdefine_coding_system_internal): Convert Lisp types.
28305 (code_conversion_restore): Use EQ, not ==.
28306 (Fencode_coding_string): Fix code_convert_string call.
28307
28308 * coding.h (code_convert_region): Fix prototype.
28309
28310 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28311
28312 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28313 (Ffontset_info): Convert Lisp types.
28314
28315 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28316
28317 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28318
28319 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28320
28321 * chartab.c: Include "...h", not <...h> in some cases.
28322
28323 * callproc.c (Fcall_process): Remove unused variables.
28324
28325 2008-02-01 Dave Love <fx@gnu.org>
28326
28327 * coding.c (Fset_coding_system_priority): Allow null arg list.
28328
28329 2008-02-01 Dave Love <fx@gnu.org>
28330
28331 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28332 (Fself_insert_and_exit): Use CHARACTERP.
28333
28334 * callproc.c (Fcall_process): Remove unused vars.
28335
28336 * xterm.c (XTread_socket): Add extra dead keysyms.
28337
28338 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28339
28340 * dispextern.h: Remove prototypes for redraw_frame,
28341 redraw_garbaged_frames.
28342
28343 * cmds.c (Fself_insert_command): Use CHARACTERP.
28344
28345 * chartab.c (make_sub_char_table): Remove unused var.
28346 (Fset_char_table_default, Fmap_char_table): Doc fix.
28347
28348 * keymap.c (access_keymap): Remove generic char code.
28349 (push_key_description): Use CHARACTERP.
28350
28351 2008-02-01 Dave Love <fx@gnu.org>
28352
28353 * charset.c: Doc fixes.
28354 (Funify_charset): Extra checking.
28355
28356 2008-02-01 Dave Love <fx@gnu.org>
28357
28358 * lread.c: Remove some unused variables.
28359 (safe_to_load_p): If safe, return the magic number version byte.
28360 (Fload): Maybe use load-with-code-conversion.
28361
28362 2008-02-01 Kenichi Handa <handa@m17n.org>
28363
28364 * category.c (Fmodify_category_entry): Don't modify the contents
28365 of category_set for characters out of the range.
28366 Avoid unnecessary modification.
28367
28368 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28369 Vchar_unify_table. The default value of the table is now nil.
28370
28371 * character.c (syms_of_character): Setup Vchar_width_table for
28372 eight-bit-control and raw-byte chars.
28373
28374 * charset.h (enum define_charset_arg_index):
28375 Delete charset_arg_parents and add charset_arg_subset and
28376 charset_arg_superset.
28377 (enum charset_attr_index): Delete charset_parents and add
28378 charset_subset and charset_superset.
28379 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28380 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28381 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28382 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28383 (CHARSET_SUPERSET): New macros.
28384 (charset_work): Extern it.
28385 (ENCODE_CHAR): Use charset_work.
28386 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28387 (map_charset_chars): Extern it.
28388
28389 * charset.c (load_charset_map): Set the default value of encoder
28390 and deunifier char-tables to nil.
28391 (map_charset_chars): Change argument. Change callers.
28392 Use map_char_table_for_charset instead of map_char_table.
28393 (Fmap_charset_chars): New optional args from_code and to_code.
28394 (Fdefine_charset_internal): Adjust for the change of
28395 `define-charset' (:parents -> :subset or :superset).
28396 (charset_work): New variable.
28397 (encode_char, syms_of_charset): Adjust for the change of
28398 Fdefine_charset_internal.
28399 (Ffind_charset_string): Setup the vector `charsets' correctly.
28400
28401 * chartab.c (sub_char_table_ref_and_range): New arg default.
28402 Fix the previous change.
28403 (char_table_ref_and_range): Adjust for the above change.
28404 (map_sub_char_table_for_charset): New function.
28405 (map_char_table_for_charset): New function.
28406
28407 * keymap.c (describe_vector): Handle a char-table directly here.
28408 (describe_char_table): Delete.
28409
28410 * lisp.h (map_charset_chars): Delete.
28411
28412 2008-02-01 Dave Love <fx@gnu.org>
28413
28414 * fns.c (count_combining): Comment out (unused).
28415 (Flocale_codeset): New.
28416 (syms_of_fns): Defsubr it.
28417
28418 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28419 (size_t): Remove.
28420
28421 2008-02-01 Dave Love <fx@gnu.org>
28422
28423 * Makefile.in (chartab.o): Depend on charset.h.
28424
28425 2008-02-01 Kenichi Handa <handa@m17n.org>
28426
28427 * character.c (syms_of_character): Set the default value of
28428 Vprintable_chars to Qnil.
28429
28430 2008-02-01 Dave Love <fx@gnu.org>
28431
28432 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28433
28434 2008-02-01 Kenichi Handa <handa@m17n.org>
28435
28436 * charset.c (load_charset_map): Handle the case that from < to
28437 correctly.
28438
28439 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28440 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28441 Pay attention to raw-8-bit chars.
28442
28443 2008-02-01 Kenichi Handa <handa@m17n.org>
28444
28445 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28446 It is not bytecompiled now.
28447
28448 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28449 (charset_jisx0208): New variables.
28450 (Fdefine_charset_internal): Setup them if appropriate.
28451 (init_charset_once): Initialize them to -1.
28452
28453 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28454 (charset_jisx0208): Extern them.
28455
28456 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28457 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28458 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28459 (setup_iso_safe_charsets): Fix arguments to Fassq.
28460 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28461 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28462 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28463 (encode_coding_iso_2022): Change the 1st arg to
28464 ENCODE_ISO_CHARACTER to a variable.
28465
28466 2008-02-01 Kenichi Handa <handa@m17n.org>
28467
28468 * charset.h (enum define_charset_arg_index): New enums
28469 charset_arg_min_code and charset_arg_max_code.
28470 (struct charset): New member char_index_offset.
28471
28472 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28473 Take charset->char_index_offset into account.
28474 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28475 args[charset_arg_max_code]. Setup charset.char_index_offset.
28476 (syms_of_charset): Fix args to Fdefine_charset_internal.
28477
28478 2008-02-01 Dave Love <fx@gnu.org>
28479
28480 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28481
28482 2008-02-01 Dave Love <fx@gnu.org>
28483
28484 * coding.c: Doc fixes.
28485 (Fcoding_system_aliases): Fix return value.
28486 (Qmac): Remove (duplicated) definition.
28487
28488 2008-02-01 Dave Love <fx@gnu.org>
28489
28490 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28491 New functions.
28492
28493 * character.c (Fstring): Doc fix.
28494
28495 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28496
28497 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
28498 (font-encoding-alist): Doc fix.
28499
28500 2008-02-01 Dave Love <fx@gnu.org>
28501
28502 * term.c (costs_set): Declare static, non-initialized for pcc.
28503 (encode_terminal_code): Remove unused var.
28504
28505 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28506 for K&R.
28507
28508 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28509
28510 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28511 (suffixes): Move out of make_subsidiaries for K&R.
28512
28513 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28514
28515 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28516
28517 2008-02-01 Dave Love <fx@gnu.org>
28518
28519 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28520
28521 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28522
28523 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28524
28525 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28526
28527 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28528
28529 2008-02-01 Kenichi Handa <handa@m17n.org>
28530
28531 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28532 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28533
28534 2008-02-01 Kenichi Handa <handa@m17n.org>
28535
28536 * coding.c (decode_coding_charset): Adjust for the change of
28537 Fdefine_coding_system_internal.
28538 (Fdefine_coding_system_internal): For a coding system of
28539 `charset' type, store a list of charset IDs in
28540 `charset_attr_charset_valids' element of coding attributes.
28541
28542 2008-02-01 Kenichi Handa <handa@m17n.org>
28543
28544 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28545 (emacs_mule_char): New arg src. Delete arg `composition'.
28546 Change caller. Handle 2-byte and 3-byte charsets correctly.
28547 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28548 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28549 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28550 (DECODE_EMACS_MULE_21_COMPOSITION):
28551 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
28552 sequence.
28553 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28554 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28555 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28556 and alt&rule composition.
28557 (decode_coding_iso_2022): Handle composition correctly.
28558 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28559
28560 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28561 re-defining a charset. If the charset has :emacs-mule-id, setup
28562 emacs_mule_bytes.
28563 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28564
28565 2008-02-01 Kenichi Handa <handa@m17n.org>
28566
28567 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28568 (encode_coding_big5, encode_coding_charset): If coding requires safe
28569 encoding, produce a character specified by
28570 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28571
28572 2008-02-01 Dave Love <fx@gnu.org>
28573
28574 * xterm.c (XSetIMValues): Declare.
28575
28576 * process.c: Conditionally include sys/wait.h, pty.h.
28577
28578 * print.c (print_object): Fix print format for 64-bit systems.
28579
28580 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28581
28582 * buffer.c (emacs_strerror): Declare.
28583
28584 * fontset.c (Fclear_face_cache): Declare.
28585 (accumulate_font_info): Comment-out (unused).
28586 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28587 variables.
28588
28589 * character.h (string_escape_byte8): Declare.
28590
28591 * charset.c (load_charset_map, load_charset_map_from_file):
28592 Remove unused vars.
28593 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28594 (Fmap_charset_chars): Doc fix.
28595
28596 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28597 (Fset_coding_system_priority, Fset_coding_system_priority)
28598 (Fdefine_coding_system_internal): Doc fix.
28599
28600 2008-02-01 Dave Love <fx@gnu.org>
28601
28602 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28603
28604 2008-02-01 Kenichi Handa <handa@m17n.org>
28605
28606 * character.c (string_escape_byte8): Make multibyte string with
28607 correct size.
28608
28609 * charset.c (Fmake_char): Delete unnecessary code.
28610
28611 2008-02-01 Kenichi Handa <handa@m17n.org>
28612
28613 * xfns.c (x_encode_text): Allocate coding.destination here, and
28614 call encode_coding_object with dst_object Qnil.
28615
28616 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28617 multibyte form correctly.
28618
28619 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28620 against Vfont_encoding_alist.
28621
28622 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28623 handling of charset list.
28624 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28625 (decode_coding_object): Move point to coding->dst_pos before
28626 calling post-read-conversion function.
28627 (encode_coding_object): Give correct arguments to
28628 pre-write-conversion. Ignore the return value of
28629 pre-write-conversion function. Pay attention to the case that
28630 pre-write-conversion changes the current buffer. If dst_object is
28631 Qt, even if coding->src_bytes is zero, allocate at least one byte
28632 to coding->destination.
28633
28634 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28635
28636 * charset.c (Fmake_char): Make it more backward compatible.
28637 (Fmap_charset_chars): Fix docstring.
28638
28639 2008-02-01 Dave Love <fx@gnu.org>
28640
28641 * coding.c: Doc fixes.
28642 (Fdefine_coding_system_alias): Use names, not symbols, in
28643 coding-system-alist.
28644
28645 2008-02-01 Kenichi Handa <handa@m17n.org>
28646
28647 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28648 of calling free_realized_face.
28649
28650 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28651
28652 * charset.c (read_hex): Don't treat SPC as a comment starter.
28653 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28654 (Fdecode_char): Fix typo.
28655
28656 2008-02-01 Kenichi Handa <handa@m17n.org>
28657
28658 * charset.h (struct charset): New member `code_space_mask'.
28659
28660 * coding.c (coding_set_source): Delete the local variable beg_byte.
28661 (encode_coding_charset, Fdefine_coding_system_internal):
28662 Delete the local variable charset.
28663 (Fdefine_coding_system_internal):
28664 Setup attrs[coding_attr_charset_valids] correctly.
28665
28666 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28667 member to check if CODE is valid or not.
28668 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28669 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28670 is within the range of charset->min_code and carset->max_code.
28671
28672 2008-02-01 Dave Love <fx@gnu.org>
28673
28674 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28675
28676 * dispextern.h (generate_ascii_font): Fix return type.
28677
28678 * xfaces.c (generate_ascii_font): Fix arg declaration.
28679
28680 * coding.c (coding_inherit_eol_type)
28681 (Fset_terminal_coding_system_internal)
28682 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28683
28684 2008-02-01 Kenichi Handa <handa@m17n.org>
28685
28686 * coding.c (decode_coding_charset, encode_coding_charset):
28687 Handle multiple charsets correctly.
28688
28689 2008-02-01 Kenichi Handa <handa@m17n.org>
28690
28691 * search.c (boyer_moore): Fix handling of multibyte character
28692 translation.
28693
28694 * xdisp.c (display_mode_element): When the variable `elt' is
28695 changed, update `this' and `lisp_string'.
28696
28697 2008-02-01 Kenichi Handa <handa@m17n.org>
28698
28699 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28700
28701 * callproc.c (Fcall_process): Be sure to give the current buffer
28702 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28703
28704 * charset.c (struct charset_map_entries): New struct.
28705 (load_charset_map): Rename from parse_charset_map. New args
28706 entries and n_entries. Change caller.
28707 (load_charset_map_from_file): Rename from load_charset_map.
28708 Change caller. New arg control_flag. Call load_charset_map at
28709 the tail.
28710 (load_charset_map_from_vector): New function.
28711 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28712 (encode_char): If the charset is compact, change a character index
28713 to a code point.
28714
28715 * coding.c (coding_alloc_by_making_gap): Check the case that the
28716 source and destination are the same correctly.
28717 (decode_coding_raw_text): Set coding->consumed_char and
28718 coding->consumed to 0.
28719 (produce_chars): If coding->chars_at_source is nonzero, update
28720 coding->consumed_char and coding->consumed before calling
28721 alloc_destination.
28722 (Fdefine_coding_system_alias): Register ALIAS in
28723 Vcoding_system_alist.
28724 (syms_of_coding): Define `no-conversion' coding system at the tail.
28725
28726 * fileio.c (Finsert_file_contents): Set coding_system instead of
28727 val. If the current buffer is multibyte, always call
28728 decode_coding_gap.
28729
28730 * xfaces.c (try_font_list): Give higher priority to fontset's
28731 family than face's family.
28732
28733 2008-02-01 Kenichi Handa <handa@m17n.org>
28734
28735 * callproc.c (Fcall_process): Be sure to give the current buffer
28736 to decode_coding_c_string.
28737
28738 * xfaces.c (try_font_list): Give a family specified in a fontset
28739 higher priority than a family specified in a face.
28740
28741 2008-02-01 Kenichi Handa <handa@m17n.org>
28742
28743 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28744 Fix arguments to insert_from_buffer.
28745
28746 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28747
28748 2008-02-01 Kenichi Handa <handa@m17n.org>
28749
28750 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28751 (decode_coding_gap): Set coding->dst_multibyte correctly.
28752
28753 2008-02-01 Kenichi Handa <handa@m17n.org>
28754
28755 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28756 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28757 (encode_coding_utf_16): Substitute coding->default_char for
28758 non-Unicode characters.
28759 (decode_coding): Don't call record_insert here.
28760 (setup_coding_system): Initialize `surrogate' of
28761 coding->spec.utf_16 to 0.
28762 (EMIT_ONE_BYTE): Fix for multibyte case.
28763
28764 * insdel.c (insert_from_gap): Call record_insert.
28765
28766 2008-02-01 Kenichi Handa <handa@m17n.org>
28767
28768 * casefiddle.c (casify_region): Fix multibyte case.
28769
28770 * character.c (c_string_width): Add return type `int'.
28771 (char_string_with_unification): Delete arg ADVANCED.
28772
28773 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28774 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28775 (CHAR_STRING_ADVANCE): Make it do-while statement.
28776
28777 * chartab.c (sub_char_table_set_range): Optimize for the case
28778 DEPTH == 3. Add workaround code for a GCC optimization bug.
28779
28780 * charset.c (parse_charset_map): Remove an unused variable.
28781
28782 * coding.c: Delete unused variables.
28783
28784 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28785 earlier. If inserted is zero and the coding system doesn't
28786 require flushing, don't call decode_coding_gap.
28787
28788 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28789
28790 2008-02-01 Kenichi Handa <handa@m17n.org>
28791
28792 The following changes are for using Unicode as an internal
28793 character model, and use UTF-8 format for buffer/string
28794 representation.
28795
28796 * .gdbinit (xchartable): Adjust for the change of char table structure.
28797 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28798
28799 * Makefile.in (obj): Add character.o and chartab.o.
28800 (lisp, shortlisp): Remove utf-8.elc.
28801 (*.o): For many files, change dependency on charset.h to
28802 character.h, and add dependency on character.h.
28803 (character.o, chartab.o): New targets.
28804
28805 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28806 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28807 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28808 of "charset.h".
28809
28810 * dired.c, filelock.c: Include "character.h".
28811
28812 * alloc.c: Include "character.h" instead of "charset.h".
28813 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28814 (syms_of_alloc): Remove defsubr for Smake_char_table.
28815
28816 * buffer.c: Include "character.h" instead of "charset.h", don't
28817 include "coding.h".
28818 (Fset_buffer_multibyte): Adjust for UTF-8.
28819
28820 * buffer.h: EXFUN Fbuffer_live_p.
28821
28822 * callproc.c: Include "character.h" instead of "charset.h".
28823 (Fcall_process): Big change for the new code-conversion APIs.
28824
28825 * casetab.c: Include "character.h" instead of "charset.h".
28826 (set_canon, set_identity, shuffle): Adjust for the new
28827 map_char_table spec.
28828 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28829 accessing the char table structure.
28830
28831 * chartab.c: New file that implements char table.
28832
28833 * category.c: Include "character.h".
28834 (copy_category_entry): New function.
28835 (copy_category_table): Call map_char_table and copy_category_entry.
28836 (Fmake_category_table): Initialize all top-level slots.
28837 (char_category_set): New function.
28838 (modify_lower_category_set): Delete.
28839 (Fmodify_category_entry): Call char_table_ref_and_range.
28840
28841 * category.h (CATEGORY_SET): Just call char_category_set.
28842
28843 * ccl.c: Include "character.h".
28844 (Qccl, Qcclp): New variables.
28845 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28846 it's less than 256.
28847 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28848 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28849 and DST type.
28850 (ccl_driver): Change types of argument, adjust code accordingly.
28851 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28852 ccl_driver.
28853 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28854
28855 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28856 New members src_multibyte, dst_multibyte, consumed, and produced.
28857 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28858 (CODING_SPEC_CCL_PROGRAM): New macro.
28859 (ccl_driver): Update prototype.
28860 (Qccl, Qcclp, Fccl_program_p): Extern them.
28861 (CHECK_CCL_PROGRAM): New macro.
28862
28863 * character.c, character.h, chartab.c: New files.
28864
28865 * charset.c: Mostly re-written. Move character and multibyte sequence
28866 handling codes to character.c.
28867
28868 * charset.h: Mostly re-written. Move character and multibyte sequence
28869 handling codes to character.h.
28870
28871 * coding.c, coding.h: Mostly re-written.
28872
28873 * composite.c: Include "character.h" instead of "charset.h".
28874 (CHAR_WIDTH): Move to character.h.
28875 (HASH_KEY, HASH_VALUE): Delete.
28876
28877 * composite.h (enum composition_method): Change order of enumeration
28878 symbols.
28879
28880 * data.c: Include "character.h" instead of "charset.h".
28881 (Faref): Call CHAR_TABLE_REF for a char table.
28882 (Faset): Call CHAR_TABLE_SET for a char table.
28883
28884 * dispextern.h (free_realized_face, check_face_attribytes)
28885 (generate_ascii_font): Extern them.
28886 (free_realized_multibyte_face): Delete extern.
28887
28888 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28889 table structure.
28890
28891 * editfns.c: Include "character.h" instead of "charset.h".
28892 (Fchar_to_string): Always call CHAR_STRING.
28893
28894 * emacs.c (main): Call init_charset_once, init_charset,
28895 syms_of_chartab, and syms_of_character.
28896
28897 * fileio.c: Include "character.h" instead of "charset.h".
28898 (Finsert_file_contents): Big change for the new code-conversion API.
28899 (choose_write_coding_system, Fwrite_region): Likewise.
28900 (build_annotations_2): Delete.
28901 (e_write): Big change for the new code-conversion API.
28902
28903 * fns.c: Include "character.h" instead of "charset.h".
28904 (copy_sub_char_table): Move to chartab.c.
28905 (Fcopy_sequence): Call copy_char_table for a char table.
28906 (concat): Delete codes calling count_multibyte.
28907 (string_char_to_byte, string_byte_to_char): Adjust for the new
28908 multibyte form.
28909 (internal_equal): Adjust for the change of char table structure.
28910 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28911 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28912 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28913 (char_table_translate, optimize_sub_char_table)
28914 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28915 chartab.c.
28916 (char_table_ref_and_index): Delete.
28917 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28918 (Fmd5): Call preferred_coding_system instead of accessing
28919 Vcoding_category_list. Adjust for the new code-conversion API.
28920 (syms_of_fns): Move defsubr for char table related functions to
28921 chartab.c.
28922
28923 * fontset.c: Mostly re-written.
28924
28925 * fontset.h (struct font_info): Change type of the member encoding_type.
28926 (enum FONT_SPEC_INDEX): New enum.
28927 (fontset_font_pattern, fs_load_font): Update prototype.
28928 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28929
28930 * indent.c: Include "character.h" instead of "charset.h".
28931 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28932
28933 * insdel.c: Include "character.h" instead of "charset.h".
28934 (copy_text): Don't refer to Vnonascii_translation_table.
28935 (insert_from_gap): New function.
28936
28937 * keyboard.c: Include "character.h" instead of "charset.h".
28938 (command_loop_1): Never call direct_output_forward_char before
28939 a non-ASCII character.
28940 (read_char): If Vkeyboard_translate_table is a char table, always
28941 translate a character.
28942
28943 * keymap.c: Include "character.h".
28944 (store_in_keymap): Handle the case that IDX is a cons.
28945 (Fdefine_key): Handle the case that KEY is a cons and the car part
28946 is also a cons (range).
28947 (push_key_description): Adjust for the new character code.
28948 (describe_vector): Call describe_char_table for a char table.
28949 (describe_char_table): New function.
28950
28951 * keymap.h (describe_char_table): Extern it.
28952
28953 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28954 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28955 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28956 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28957 Delete.
28958 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28959 structure.
28960 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28961 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28962 (CHARTAB_SIZE_BITS_3): New macros.
28963 (chartab_size): Extern it.
28964 (struct Lisp_Char_Table): Re-design.
28965 (struct Lisp_Sub_Char_Table): New structure.
28966 (HASH_KEY, HASH_VALUE): Move from fns.c.
28967 (CHARACTERBITS): Define as 22.
28968 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28969 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28970 (GC_SUB_CHAR_TABLE_P): New macro.
28971 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28972 (code_convert_string_norecord): Delete extern.
28973 (init_character_once, syms_of_character, init_charset)
28974 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28975
28976 * lread.c: Include "character.h".
28977 (read_multibyte): New arg NBYTES.
28978 (read_escape): Change the meaning of returned *BYTEREP.
28979 (to_multibyte): Delete.
28980 (read1): Adjust the handling of char table and string.
28981
28982 * print.c: Include "character.h" instead of "charset.h".
28983 (print_string): Convert 8-bit raw bytes to octal form by
28984 string_escape_byte8.
28985 (print_object): Adjust for the new multibyte form. Print 8-bit
28986 raw bytes always in octal form. Handle sub char table correctly.
28987
28988 * process.c: Include "character.h" instead of "charset.h".
28989 (read_process_output, send_process): Adjust for the new
28990 code-conversion API.
28991
28992 * puresize.h (BASE_PURESIZE): Increase.
28993
28994 * regex.c: Include "character.h" instead of "charset.h".
28995 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28996 (regex_compile): Accept a range whose starting and ending
28997 character have different leading bytes.
28998 (analyse_first): Adjust for the above change.
28999
29000 * search.c: Include "character.h" instead of "charset.h".
29001 (search_buffer, boyer_moore): Adjust for the new multibyte form.
29002 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
29003
29004 * syntax.c: Include "character.h" instead of "charset.h".
29005 (syntax_parent_lookup): Delete.
29006 (Fmodify_syntax_entry): Accept a cons as CHAR.
29007 (skip_chars): Adjust for the new multibyte form.
29008 (init_syntax_once): Call char_table_set_range instead of directly
29009 accessing the structure of a char table.
29010
29011 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
29012 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
29013 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
29014 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
29015
29016 * term.c: Include "buffer.h" and "character.h".
29017 (encode_terminal_code, write_glyphs): Adjust for the new
29018 code-conversion API.
29019 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
29020
29021 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
29022
29023 * xdisp.c: Include "character.h".
29024 (get_next_display_element): Adjust for the new multibyte form.
29025 (disp_char_vector): Adjust for the new char table structure.
29026 (decode_mode_spec_coding): Adjust for the new structure of
29027 coding system.
29028 (decode_mode_spec): Adjust for the new code-conversion API.
29029
29030 * xfaces.c: Include "character.h" instead of "charset.h".
29031 (load_face_font): Adjust for the change of choose_face_font and
29032 FS_LOAD_FONT.
29033 (generate_ascii_font): New function.
29034 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
29035 (set_font_frame_param): Adjust for the change of choose_face_font.
29036 (free_realized_face): Make it public.
29037 (free_realized_faces_for_fontset): Rename from
29038 free_realized_multibyte_face. Free also faces realized for ASCII.
29039 (choose_face_font): Change arguments. Adjust for the change of
29040 fontset_font_pattern and FS_LOAD_FONT.
29041
29042 * xfns.c: Include "character.h".
29043 (x_encode_text): Adjust for the new code-conversion API.
29044
29045 * xselect.c: Don't include "charset.h".
29046 (selection_data_to_lisp_data): Adjust for the new code conversion API.
29047
29048 * xterm.c: Include "character.h".
29049 (x_encode_char): New argument CHARSET. Change caller.
29050 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
29051 Call ENCODE_CHAR instead of SPLIT_CHAR.
29052 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
29053 CHAR_WIDTH instead of CHARSET_WIDTH.
29054 (XTread_socket): Adjust for the new code-conversion API.
29055 (x_new_font): Adjust for the change of FS_LOAD_FONT.
29056 (x_load_font): Adjust for the change of struct font.
29057
29058 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
29059
29060 * xfaces.c (face_at_buffer_position): Remove unused vars.
29061
29062 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
29063
29064 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
29065 Fix overflow checking.
29066
29067 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
29068
29069 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
29070 Cancel previous change.
29071
29072 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29073
29074 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
29075 ccl->eight_bit_control. Fix check for buffer overflow.
29076 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
29077 (ccl_driver): Initialize extra_bytes to 0.
29078
29079 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
29080
29081 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
29082 return it ORed with ctrl_modifier.
29083
29084 2008-01-29 Miles Bader <miles@gnu.org>
29085
29086 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
29087
29088 2008-01-28 Jason Rumney <jasonr@gnu.org>
29089
29090 * w32.c (stat): Don't double check for networked drive.
29091
29092 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
29093
29094 * window.c (run_window_configuration_change_hook): New function.
29095 Code extracted from set_window_buffer. Set the selected frame.
29096 (set_window_buffer): Use it.
29097 * window.h (run_window_configuration_change_hook): Declare.
29098 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
29099
29100 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
29101
29102 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
29103
29104 * Makefile.in: Remove references to unused macros.
29105
29106 2008-01-26 Eli Zaretskii <eliz@gnu.org>
29107
29108 * w32.c (g_b_init_get_sid_sub_authority)
29109 (g_b_init_get_sid_sub_authority_count): New static variables.
29110 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
29111 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
29112 (init_user_info): Use them to retrieve uid and gid.
29113 Use 500/513, the Windows defaults, as Administrator's uid/gid.
29114 (fstat): Use pw_uid and pw_gid from the_passwd structure for
29115 st_uid and st_gid of the file.
29116
29117 2008-01-26 Jason Rumney <jasonr@gnu.org>
29118
29119 * w32.c (logon_network_drive): New function.
29120 (stat): Use it.
29121
29122 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
29123
29124 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
29125 invisible text covered with an ellipsis.
29126
29127 2008-01-25 Richard Stallman <rms@gnu.org>
29128
29129 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
29130 jump back to beginning. Move some other initializations after that.
29131 (Qwindow_text_change_functions, Vwindow_text_change_functions):
29132 New variables.
29133 (syms_of_xdisp): Init them.
29134
29135 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
29136
29137 * buffer.c (reset_buffer_local_variables):
29138 Implement `permanent-local-hook'.
29139 (Qpermanent_local_hook): New variable.
29140 (syms_of_buffer): Init and staticpro it.
29141
29142 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
29143
29144 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
29145
29146 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
29147
29148 * fns.c (Fclrhash): Return TABLE.
29149
29150 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29151
29152 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
29153 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
29154 is set even without positional changes.
29155 (x_scroll_bar_clear): Set bar->redraw_needed_p.
29156
29157 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
29158
29159 2008-01-23 Jason Rumney <jasonr@gnu.org>
29160
29161 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
29162
29163 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
29164 the unicode range available in MULE by locale-coding-system.
29165 Improve dbcs lead byte detection. Set event timestamp and modifiers
29166 earlier.
29167
29168 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29169
29170 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
29171 [MAC_OSX] (init_mac_osx_environment): Initialize it.
29172 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
29173 when used on child processes.
29174
29175 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
29176
29177 * dbusbind.c (Fdbus_method_return_internal): Rename from
29178 Fdbus_method_return.
29179 (Fdbus_unregister_object): Move to dbus.el.
29180 (Fdbus_call_method, Fdbus_method_return_internal)
29181 (Fdbus_send_signal): Improve debug messages.
29182
29183 2008-01-20 Martin Rudalics <rudalics@gmx.at>
29184
29185 * undo.c (undo_inhibit_record_point): New variable.
29186 (syms_of_undo): Initialize it.
29187 (record_point): Don't record point when undo_inhibit_record_point
29188 is set.
29189
29190 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
29191
29192 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
29193
29194 * xdisp.c (Qauto_hscroll_mode): New var.
29195 (syms_of_xdisp): Initialize it.
29196 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
29197 window's buffer.
29198 (hscroll_windows): Don't check automatic_hscrolling_p here.
29199
29200 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
29201 vscroll if we're setting window-buffer to the value it already has.
29202
29203 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
29204
29205 * m/intel386.h: Remove references to XENIX.
29206
29207 2008-01-17 Andreas Schwab <schwab@suse.de>
29208
29209 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
29210 instead of HAVE_X86_64_LIB64_DIR.
29211 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
29212
29213 2008-01-17 Glenn Morris <rgm@gnu.org>
29214
29215 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
29216 to HAVE_X86_64_LIB64_DIR.
29217
29218 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
29219
29220 * s/irix3-3.h:
29221 * s/irix4-0.h:
29222 * s/386-ix.h:
29223 * s/domain.h:
29224 * s/hpux9-x11r4.h:
29225 * s/hpux9shxr4.h: Remove files for systems no longer supported.
29226
29227 * sysdep.c: Remove code containing references to symbols defined
29228 by unsupported systems.
29229
29230 2008-01-16 Glenn Morris <rgm@gnu.org>
29231
29232 * coding.c (select-safe-coding-system-function): Doc fix.
29233
29234 2008-01-15 Glenn Morris <rgm@gnu.org>
29235
29236 * config.in: Revert 2008-01-13 change: this is a generated file.
29237
29238 2008-01-13 Tom Tromey <tromey@redhat.com>
29239
29240 * lisp.h: Fix typo.
29241
29242 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29243
29244 * m/sequent-ptx.h:
29245 * m/sequent.h:
29246 * s/ptx.h:
29247 * s/ptx4-2.h:
29248 * s/ptx4.h: Remove files for systems no longer supported.
29249
29250 * callproc.c (Fcall_process): Fix previous change.
29251
29252 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29253
29254 * unexsunos4.c: Remove file, system not supported anymore.
29255
29256 * m/mips.h:
29257 * m/intel386.h:
29258 * callproc.c:
29259 * config.in:
29260 * ecrt0.c:
29261 * emacs.c:
29262 * fileio.c:
29263 * frame.c:
29264 * getpagesize.h:
29265 * keyboard.c:
29266 * lread.c:
29267 * process.c:
29268 * puresize.h:
29269 * sysdep.c:
29270 * systty.h:
29271 * syswait.h:
29272 * unexec.c:
29273 * xdisp.c:
29274 * alloc.c: Remove code containing references to symbols defined by
29275 unsupported systems.
29276
29277 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
29278
29279 * coding.c (detect_coding_mask): Fix previous change.
29280
29281 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
29282
29283 * coding.c (detect_coding_iso2022): New arg
29284 latin_extra_code_state. Allow Latin extra codes only
29285 when *latin_extra_code_state is nonzero.
29286 (detect_coding_mask): If there is a NULL byte, detect the encoding
29287 as UTF-16 or binary. If Latin extra codes exist, detect the
29288 encoding as ISO-2022 only when there's no other proper encoding is
29289 found.
29290
29291 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29292
29293 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
29294 #ifdef MAC_OS.
29295
29296 2008-01-08 Richard Stallman <rms@gnu.org>
29297
29298 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
29299
29300 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
29301
29302 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29303 menu bar in parentheses.
29304
29305 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29306
29307 * m/7300.h:
29308 * m/acorn.h:
29309 * m/alliant-2800.h:
29310 * m/alliant.h:
29311 * m/alliant1.h:
29312 * m/alliant4.h:
29313 * m/altos.h:
29314 * m/amdahl.h:
29315 * m/apollo.h:
29316 * m/att3b.h:
29317 * m/aviion-intel.h:
29318 * m/aviion.h:
29319 * m/celerity.h:
29320 * m/clipper.h:
29321 * m/cnvrgnt.h:
29322 * m/convex.h:
29323 * m/cydra5.h:
29324 * m/delta88k.h:
29325 * m/dpx2.h:
29326 * m/dual.h:
29327 * m/elxsi.h:
29328 * m/f301.h:
29329 * m/gould-np1.h:
29330 * m/gould.h:
29331 * m/i860.h:
29332 * m/ibmps2-aix.h:
29333 * m/ibmrt-aix.h:
29334 * m/ibmrt.h:
29335 * m/irist.h:
29336 * m/is386.h:
29337 * m/isi-ov.h:
29338 * m/mega68.h:
29339 * m/mg1.h:
29340 * m/news-r6.h:
29341 * m/news-risc.h:
29342 * m/news.h:
29343 * m/nh3000.h:
29344 * m/nh4000.h:
29345 * m/ns16000.h:
29346 * m/ns32000.h:
29347 * m/nu.h:
29348 * m/orion.h:
29349 * m/orion105.h:
29350 * m/paragon.h:
29351 * m/pfa50.h:
29352 * m/plexus.h:
29353 * m/pyramid.h:
29354 * m/pyrmips.h:
29355 * m/sh3el.h:
29356 * m/sps7.h:
29357 * m/sr2k.h:
29358 * m/stride.h:
29359 * m/sun1.h:
29360 * m/sun2.h:
29361 * m/sun3-68881.h:
29362 * m/sun3-fpa.h:
29363 * m/sun3-soft.h:
29364 * m/sun3.h:
29365 * m/sun386.h:
29366 * m/symmetry.h:
29367 * m/tad68k.h:
29368 * m/tahoe.h:
29369 * m/targon31.h:
29370 * m/tek4300.h:
29371 * m/tekxd88.h:
29372 * m/tower32.h:
29373 * m/tower32v3.h:
29374 * m/ustation.h:
29375 * m/wicat.h:
29376 * m/xps100.h:
29377 * s/cxux.h:
29378 * s/cxux7.h:
29379 * s/dgux.h:
29380 * s/dgux4.h:
29381 * s/dgux5-4-3.h:
29382 * s/dgux5-4r2.h:
29383 * s/esix.h:
29384 * s/esix5r4.h:
29385 * s/hiuxmpp.h:
29386 * s/hiuxwe2.h:
29387 * s/iris3-5.h:
29388 * s/iris3-6.h:
29389 * s/isc2-2.h:
29390 * s/isc3-0.h:
29391 * s/isc4-0.h:
29392 * s/isc4-1.h:
29393 * s/newsos5.h:
29394 * s/newsos6.h:
29395 * s/osf1.h:
29396 * s/osf5-0.h:
29397 * s/riscix1-1.h:
29398 * s/riscix12.h:
29399 * s/sco4.h:
29400 * s/sco5.h:
29401 * s/sunos4-0.h:
29402 * s/sunos4-1.h:
29403 * s/sunos413.h:
29404 * s/sunos4shr.h:
29405 * s/umax.h:
29406 * s/unipl5-2.h:
29407 * s/xenix.h:
29408 * cxux-crt0.s:
29409 * unexapollo.c:
29410 * unexconvex.c:
29411 * unexenix.c:
29412 * unexsni.c: Remove files for systems no longer supported.
29413
29414 * m/intel386.h: Remove references to unsupported systems.
29415
29416 * w32.c (get_emacs_configuration): Remove reference to i860.
29417
29418 * sysdep.c: Remove dead code.
29419
29420 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29421
29422 * s/rtu.h:
29423 * m/masscomp.h: Remove files. Platform is obsolete.
29424
29425 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
29426
29427 * dbusbind.c (Fdbus_method_return): New function.
29428 (xd_read_message): Add the serial number to the event.
29429 (Fdbus_register_method): Activate the function.
29430
29431 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29432
29433 * keyboard.c (read_key_sequence): Fix typo.
29434
29435 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
29436
29437 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29438 (xd_signature, xd_append_arg): Handle element type detection for
29439 empty arrays.
29440 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29441 SDATA () calls; this must be solved more general.
29442 (Fdbus_register_signal): Use SBYTES instead of strlen.
29443
29444 2008-01-03 Magnus Henoch <magnus@zemdatav>
29445
29446 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29447 unsigned int for byte values (necessary for big-endian platform).
29448 (Fdbus_call_method): Handle the case of no returned arguments.
29449
29450 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29451
29452 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29453
29454 2007-12-31 Magnus Henoch <mange@freemail.hu>
29455
29456 * dbusbind.c (xd_signature): Signature of variant is just "v".
29457
29458 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
29459
29460 * dbusbind.c: Fix several errors and compiler warnings.
29461 Reported by Tom Tromey <tromey@redhat.com>.
29462 (XD_ERROR, XD_DEBUG_MESSAGE)
29463 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29464 (xd_append_arg): Part for basic D-Bus types rewritten.
29465 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29466 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29467 appropriate.
29468 (xd_read_message): Return Qnil. Don't signal an error; it is not
29469 useful during event reading.
29470 (Fdbus_register_signal): Signal an error if the check for
29471 FUNCTIONP fails.
29472 (Fdbus_register_method): New function. The implementation is not
29473 complete, the call of the function signals an error therefore.
29474 (Fdbus_unregister_object): New function, renamed from
29475 Fdbus_unregister_signal. The initial check signals an error, if
29476 the object is not well formed.
29477
29478 2007-12-30 Richard Stallman <rms@gnu.org>
29479
29480 * textprop.c (get_char_property_and_overlay):
29481 Signal error if POSITION is out of range in a buffer.
29482
29483 2007-12-29 Martin Rudalics <rudalics@gmx.at>
29484
29485 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29486 because the original parameters are in pure storage now.
29487
29488 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29489
29490 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29491
29492 2007-12-22 Eli Zaretskii <eliz@gnu.org>
29493
29494 * callint.c (syms_of_callint) <command-history>: Add reference to
29495 history-length in the doc string.
29496
29497 2007-12-17 Jason Rumney <jasonr@gnu.org>
29498
29499 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29500 before passing as wParam.
29501
29502 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
29503
29504 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29505 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29506 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29507 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29508 as number.
29509 (Fdbus_call_method): Fix docstring.
29510
29511 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
29512
29513 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29514 New macros.
29515 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29516 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29517 Simplify.
29518 (xd_signature): New function.
29519 (xd_append_arg): Compute also signatures. Major rewrite.
29520 (xd_retrieve_arg): Make debug messages friendly.
29521 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29522 Check for signatures of arguments.
29523
29524 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
29525
29526 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29527 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29528 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29529 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29530 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29531 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29532 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29533 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29534 (xd_retrieve_value): Remove. Functionality included in ...
29535 (xd_append_arg): New function.
29536 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29537
29538 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
29539
29540 * dbusbind.c (top): Include <stdio.h>.
29541 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29542 dbus_message_new_method_call and dbus_message_new_signal.
29543 (Fdbus_register_signal): Rename unique_name to uname.
29544 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29545 non-existing unique name. Fix typos in matching rule. Return an
29546 object which is useful in Fdbus_unregister_signal.
29547 (Fdbus_unregister_signal): Reimplementation, in order to remove
29548 only the corresponding entry.
29549 (Vdbus_registered_functions_table): Change the order of entries.
29550 Apply these changes in xd_read_message and Fdbus_register_signal.
29551
29552 2007-12-16 Andreas Schwab <schwab@suse.de>
29553
29554 * fileio.c (Finsert_file_contents): Fix overflow check to not
29555 depend on undefined integer overflow.
29556
29557 2007-12-14 Jason Rumney <jasonr@gnu.org>
29558
29559 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29560 for characters above 127.
29561
29562 2007-12-13 Jason Rumney <jasonr@gnu.org>
29563
29564 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29565 before dereferencing array.
29566 (lookup_vk_code): Remove zero comparison.
29567
29568 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
29569
29570 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29571 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29572 Use `unsigned int' instead of `uint'.
29573 (xd_read_message, Fdbus_register_signal): Split expressions into
29574 multiple lines before operators "&&" and "||", according to the
29575 GNU Coding Standards.
29576
29577 2007-12-14 Eli Zaretskii <eliz@gnu.org>
29578
29579 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29580
29581 2007-12-12 Juri Linkov <juri@jurta.org>
29582
29583 * buffer.c (Frename_buffer): In interactive spec replace
29584 `read-buffer' with `read-string' that uses `buffer-name-history'
29585 as history, and the current buffer's name as default.
29586
29587 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29588
29589 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29590 manipulating the backtrace manually.
29591 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29592 (struct backtrace, backtrace_list): Remove.
29593 (command_loop_1): Remove dead var `no_direct'.
29594
29595 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29596 preserve non-built-in buffer-local variables.
29597 (Fkill_all_local_variables): Don't re-create&re-set permanent
29598 buffer-local variables.
29599
29600 2007-12-09 Juri Linkov <juri@jurta.org>
29601
29602 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29603 Lisp code that uses `read-buffer' with current buffer as default.
29604
29605 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
29606
29607 * dbusbind.c (xd_read_message): Generate an event for every
29608 registered handler. There might be several handlers registered
29609 for the same signal.
29610 (Fdbus_register_signal): Don't overwrite a registration for the
29611 same signal. Add a new registration if handlers are different.
29612 (Vdbus_registered_functions_table): Rework doc string.
29613
29614 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
29615
29616 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29617 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29618 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29619 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29620 Unify argument lists.
29621 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29622 arguments and hash table keys. Use unique name for service.
29623 (Fdbus_unregister_signal): Remove checks.
29624 (Vdbus_registered_functions_table): Fix doc string.
29625
29626 2007-12-05 Magnus Henoch <mange@freemail.hu>
29627
29628 * process.c (make_process): Initialize pty_flag to 0.
29629
29630 2007-12-05 Jason Rumney <jasonr@gnu.org>
29631
29632 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29633 specified XBMs.
29634
29635 2007-12-05 Richard Stallman <rms@gnu.org>
29636
29637 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29638
29639 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29640
29641 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29642 New variable.
29643 (mac_try_close_socket) [MAC_OSX]: New function.
29644 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29645 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29646
29647 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29648 Use mac_try_close_socket.
29649
29650 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29651
29652 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29653 reloc_base.
29654 (copy_dysymtab): Compute relocation base here.
29655 (rebase_reloc_address) [__ppc64__]: New function.
29656 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29657 changed.
29658
29659 2007-12-05 Jason Rumney <jasonr@gnu.org>
29660
29661 * w32proc.c (sys_spawnve): Quote args with wildcards.
29662
29663 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29664
29665 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29666 __objc_* sections.
29667 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29668
29669 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
29670
29671 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29672 Move check for Vdbus_registered_functions_table to
29673 xd_read_queued_messages.
29674 (xd_read_queued_messages): Protect xd_read_message calls by
29675 internal_condition_case_1.
29676
29677 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
29678
29679 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29680 Qdbus_system_bus and Qdbus_session_bus, respectively.
29681 (Vdbus_intern_symbols): Remove.
29682 (Vdbus_registered_functions_table): New hash table.
29683 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29684 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29685 Rewrite in order to manage registered functions by hash table
29686 Vdbus_registered_functions_table.
29687
29688 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29689
29690 * xterm.c: Update URL to Window Manager Specification in comment.
29691
29692 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29693
29694 * config.in (HAVE_DBUS): Add.
29695
29696 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29697 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29698 (obj): Add $(DBUS_OBJ).
29699 (LIBES): Add $(DBUS_LIBS).
29700 (dbusbind.o): New target.
29701
29702 * dbusbind.c: New file.
29703
29704 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29705
29706 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29707 (Qdbus_event): New Lisp symbol.
29708 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29709 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29710 (keys_of_keyboard): Define dbus-event.
29711
29712 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29713
29714 2007-12-01 Richard Stallman <rms@gnu.org>
29715
29716 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29717
29718 2007-11-30 Jason Rumney <jasonr@gnu.org>
29719
29720 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29721 (w32con_reset_terminal_modes): Clear screen buffer.
29722 (w32_face_attributes): Don't use color indexes that are out of range.
29723 Only reverse the default colors.
29724
29725 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29726 WINDOWSNT.
29727
29728 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29729
29730 2007-11-29 Jason Rumney <jasonr@gnu.org>
29731
29732 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29733 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29734 if the terminal colors are initialized.
29735 (unspecified_fg, unspecified_bg): Remove unused declarations.
29736
29737 2007-11-29 Andreas Schwab <schwab@suse.de>
29738
29739 * keyboard.c (apply_modifiers): Fix typo.
29740
29741 2007-11-29 Richard Stallman <rms@gnu.org>
29742
29743 * keymap.c (Fcurrent_local_map): Doc fix.
29744
29745 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29746
29747 * s/gnu-kfreebsd.h: New file.
29748
29749 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29750
29751 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29752 Don't cast redundantly.
29753
29754 * keyboard.c (KEY_TO_CHAR): New macro.
29755 (parse_modifiers, apply_modifiers): Accept integer arguments.
29756 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29757 for chars and symbol keys.
29758 After doing such remapping, apply function-key-map again.
29759
29760 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29761
29762 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29763 compiled anymore.
29764
29765 2007-11-26 Andreas Schwab <schwab@suse.de>
29766
29767 * process.c (list_processes_1): Fix indentation level of the
29768 command column.
29769
29770 2007-11-23 Andreas Schwab <schwab@suse.de>
29771
29772 * editfns.c (Fformat): Handle %c specially since it requires the
29773 argument to be of type int.
29774
29775 2007-11-23 Markus Triska <markus.triska@gmx.at>
29776
29777 * emacs.c (main): Call init_editfns before init_process, since
29778 init_process sets Vprocess_connection_type depending on OS release.
29779
29780 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29781
29782 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29783 (find_symbol_value): Use do_symval_forwarding.
29784
29785 * data.c (set_internal): Set the value in the `cons-cell' (for
29786 Buffer_Local_values) not only for frame-local variables.
29787
29788 2007-11-22 Andreas Schwab <schwab@suse.de>
29789
29790 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29791 values to sprintf.
29792 * keymap.c (Fsingle_key_description): Likewise.
29793 * print.c (print_object): Likewise.
29794
29795 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29796
29797 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29798 file for image is nil.
29799
29800 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29801
29802 * term.c: Include stdarg.h.
29803 (fatal): Implement using varargs.
29804 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29805
29806 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29807
29808 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29809 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29810 Update call to buffer_slot_type_mismatch.
29811 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29812 (buffer_slot_type_mismatch): Update.
29813 * buffer.c (buffer_local_types): Remove.
29814 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29815 (defvar_per_buffer): Set the type in the buffer_objfwd.
29816
29817 2007-11-21 Jason Rumney <jasonr@gnu.org>
29818
29819 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29820 CreateFileMapping returns NULL on failure.
29821
29822 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29823
29824 * search.c (Fset_match_data): Remove the `evaporate' feature.
29825 (unwind_set_match_data): Don't use the `evaporate' feature.
29826
29827 2007-11-21 Jason Rumney <jasonr@gnu.org>
29828
29829 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29830
29831 * w32console.c (w32con_write_glyphs): Remove unused variables.
29832
29833 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29834
29835 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29836
29837 * s/darwin.h (MULTI_KBOARD): Remove.
29838
29839 * macfns.c (x_create_tip_frame, Fx_create_frame)
29840 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29841
29842 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29843
29844 * buffer.c (Fbuffer_local_value): Remove redundant test.
29845 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29846 than in `current-buffer' to match the comment.
29847 Do the swap using swap_in_global_binding.
29848
29849 * data.c (store_symval_forwarding, set_internal):
29850 * eval.c (specbind): Remove dead code.
29851
29852 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29853 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29854 Since we do not want to see internal Lisp_*fwd objects here.
29855
29856 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29857
29858 * sysdep.c (init_system_name): Use getaddrinfo if available.
29859
29860 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29861 (x_scroll_bar_note_movement): start, end, with, height in struct
29862 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29863
29864 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29865
29866 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29867
29868 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29869
29870 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29871 This undoes Richard's change of 14-Oct-2002.
29872
29873 * alloc.c (allocate_other_vector):
29874 * lisp.h (allocate_other_vector): Remove.
29875
29876 * window.c (struct save_window_data): Move non-lisp data to the end
29877 and make it `int' rather than Lisp_Object.
29878 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29879 Done wrap/unwrap integer values.
29880 (Fset_window_configuration, compare_window_configurations):
29881 Update use of fields to their new types.
29882
29883 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29884 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29885 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29886 (SET_SCROLL_BAR_X_WINDOW): Remove.
29887 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29888 Access the new x_window field directly.
29889 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29890 Don't wrap/unwrap integers into Lisp_Objects.
29891 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29892 (x_scroll_bar_report_motion):
29893 Don't wrap/unwrap integers into Lisp_Objects.
29894 (x_term_init): Use SDATA.
29895 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29896 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29897 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29898 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29899 * xfns.c (x_set_background_color):
29900 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29901 Access the new x_window field directly.
29902
29903 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29904 (allocate_pseudovector): Make non-static.
29905
29906 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29907 (allocate_pseudovector): Declare.
29908 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29909
29910 2007-11-15 Andreas Schwab <schwab@suse.de>
29911
29912 * editfns.c (Fformat): Correctly format EMACS_INT values.
29913 Also take precision into account when formatting an integer.
29914
29915 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29916
29917 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29918
29919 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29920 (syms_of_keyboard): Defsubr it.
29921
29922 * data.c (swap_in_global_binding): Fix longstanding bug where
29923 store_symval_forwarding was not called with the right second argument,
29924 thus causing objfwd-ing from being dropped.
29925
29926 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29927
29928 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29929 (Fx_display_pixel_height, Fx_display_planes)
29930 (Fx_display_color_cells, Fx_server_max_request_size)
29931 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29932 (Fx_display_visual_class, Fx_display_save_under):
29933 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29934 (Fx_display_pixel_height, Fx_display_planes)
29935 (Fx_display_color_cells, Fx_server_max_request_size)
29936 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29937 (Fx_display_mm_height, Fx_display_mm_width)
29938 (Fx_display_backing_store, Fx_display_visual_class)
29939 (Fw32_select_font, Fx_display_save_under):
29940 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29941 (Fx_display_pixel_height, Fx_display_planes)
29942 (Fx_display_color_cells, Fx_server_max_request_size)
29943 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29944 (Fx_display_save_under): Fix typos in docstrings.
29945
29946 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29947
29948 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29949 corresponding to deleted entries; they are an implementation detail.
29950 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29951 Remove variables.
29952 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29953 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29954 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29955 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29956 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29957 (Fw32_define_rgb_color, Fw32_load_color_file)
29958 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29959 Fix typos in docstrings.
29960 (Fx_server_version): Reflow docstring.
29961 (Fw32_shell_execute): Doc fixes.
29962
29963 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29964
29965 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29966 if w32_parse_hot_key returned nil.
29967
29968 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29969
29970 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29971
29972 2007-11-09 Jason Rumney <jasonr@gnu.org>
29973
29974 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29975
29976 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29977
29978 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29979 Remove W32_SCROLL_BAR_CLICK_EVENT.
29980
29981 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29982 Add MULTIMEDIA_KEY_EVENT.
29983
29984 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29985 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29986 (make_lispy_event) [WINDOWSNT]: Use it to translate
29987 MULTIMEDIA_KEY_EVENT.
29988
29989 * w32term.h (WM_APPCOMMAND): Define if not already.
29990 (GET_APPCOMMAND_LPARAM): Likewise.
29991
29992 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29993 WM_APPCOMMAND.
29994
29995 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29996 (syms_of_w32fns): Export and initialize it.
29997 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29998
29999 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
30000
30001 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
30002 twice.
30003
30004 * xdisp.c (handle_face_prop): Fix last change.
30005
30006 2007-11-09 Richard Stallman <rms@gnu.org>
30007
30008 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
30009 not just for after-strings and before-strings.
30010 Call face_for_overlay_string and pass the overlay to it.
30011 (handle_display_prop): Determine whether property came from an overlay.
30012 Pass OVERLAY arg to handle_single_display_spec.
30013 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
30014 (load_overlay_strings): Fill in it->string_overlays.
30015 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
30016
30017 * xfaces.c (face_for_overlay_string): Function renamed from
30018 face_at_buffer_position_no_overlays, and add arg OVERLAY.
30019
30020 * dispextern.h (struct it): New elt string_overlays.
30021 New elt from_overlay, also in stack.
30022 Rearrange a few elements.
30023 (face_for_overlay_string): Decl renamed from
30024 face_at_buffer_position_no_overlays, and add argument.
30025
30026 2007-11-09 Richard Stallman <rms@gnu.org>
30027
30028 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
30029 to get the base face for an overlay string.
30030
30031 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
30032
30033 * xfaces.c (face_at_buffer_position_no_overlays): New function.
30034
30035 * xdisp.c (handle_stop): Move some code out of loop.
30036
30037 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30038
30039 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
30040 Fix conversion from Lisp object to ATSUFontID.
30041
30042 2007-11-09 Jason Rumney <jasonr@gnu.org>
30043
30044 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
30045
30046 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30047
30048 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
30049 Don't assume regions are aligned to page boundary.
30050 (print_load_command_name): Add LC_UUID if defined.
30051
30052 2007-11-09 Richard Stallman <rms@gnu.org>
30053
30054 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
30055
30056 2007-11-07 Jason Rumney <jasonr@gnu.org>
30057
30058 * s/windows95.h: Remove.
30059
30060 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
30061
30062 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
30063 abort with a message on unhandled store_type values.
30064
30065 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
30066
30067 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
30068 Remove HAVE_X11R5 and HAVE_X11R4.
30069
30070 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30071
30072 * Makefile.in: Remove references to sunfns.c and sunfns.o.
30073
30074 2007-11-01 Johan Bockgård <bojohan@gnu.org>
30075
30076 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
30077 Don't set s->stippled_p here, since it has already been set by
30078 x_set_glyph_string_gc from x_draw_glyph_string.
30079
30080 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
30081
30082 * sunfns.c: Remove file.
30083
30084 * m/sun386.h:
30085 * m/sun2.h:
30086 * m/sparc.h: Remove Sun windows code.
30087
30088 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
30089
30090 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
30091 (init_keyboard): Set current_kboard's window-system to nil.
30092 (tty_read_avail_input): Typo.
30093 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
30094
30095 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
30096
30097 * s/usg5-4.h:
30098 * s/usg5-3.h:
30099 * s/ptx.h:
30100 * m/is386.h:
30101 * m/ibmps2-aix.h:
30102 * Makefile.in: Remove all mentions of X10.
30103
30104 * dispnew.c (syms_of_display): Don't mention version 10.
30105
30106 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
30107
30108 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
30109 ($(BLD)/abbrev.$(O)): Remove.
30110
30111 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
30112
30113 Rewrite abbrev.c in Elisp.
30114 * image.c (Qcount): Don't declare as extern.
30115 (syms_of_image): Initialize and staticpro `Qcount'.
30116 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
30117 * emacs.c (main): Don't call syms_of_abbrev.
30118 * Makefile.in (obj): Remove abbrev.o.
30119 (abbrev.o): Remove.
30120 * abbrev.c: Remove.
30121
30122 2007-10-26 Martin Rudalics <rudalics@gmx.at>
30123
30124 * window.c (window_min_size_2): Don't count header-line.
30125
30126 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
30127
30128 * frame.h (struct frame): Move all bit fields after the first bit
30129 field to take advantage of the available space. Group all the
30130 chars together to reduce wasted space due to padding.
30131
30132 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
30133
30134 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
30135
30136 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
30137 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
30138 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
30139 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
30140 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
30141 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
30142 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
30143 (last_marked, mark_object_loop_halt): Make static.
30144
30145 * frame.c (syms_of_frame) <delete-frame-functions>:
30146 Fix typo in docstring.
30147
30148 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
30149
30150 * w32.c (init_environment): Fix tiny memory leak.
30151 (w32_get_resource): Remove unused variable `ok'.
30152
30153 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
30154
30155 Make `window-system' into a keyboard-local variable (rather than
30156 frame-local as done originally by multi-tty).
30157
30158 * keyboard.h (struct kboard): Add Vwindow_system.
30159 * keyboard.c (init_kboard): Set a default for Vwindow_system.
30160 (mark_kboards): Mark Vwindow_system.
30161
30162 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
30163 (init_display): Don't set the obsolete `window-system' frame-param.
30164
30165 * xterm.c (x_term_init):
30166 * w32term.c (w32_create_terminal):
30167 * term.c (init_tty): Set Vwindow_system.
30168 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
30169 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
30170
30171 * xfns.c (Fx_create_frame, x_create_tip_frame):
30172 * w32fns.c (Fx_create_frame, x_create_tip_frame):
30173 * macfns.c (Fx_create_frame):
30174 Don't set the obsolete `window-system' frame-param.
30175
30176 * frame.h (Qwindow_system): Remove.
30177 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
30178 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
30179
30180 2007-10-24 Richard Stallman <rms@gnu.org>
30181
30182 * frame.c (x_figure_window_size): For fullscreen case,
30183 set USPosition | PPosition without clobbering rest of window_prompting.
30184
30185 * keyboard.c (Fcurrent_idle_time): Doc fix.
30186
30187 * print.c (Fwith_output_to_temp_buffer): Doc fix.
30188
30189 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
30190
30191 * process.c (unwind_request_sigio): Only define if __ultrix__.
30192
30193 * callproc.c (child_setup): Remove spurious *.
30194
30195 * lisp.h (Fget_text_property): Declare.
30196 (have_menus_p): Declare it here rather than in sys-dep header files.
30197 * macterm.h (have_menus_p):
30198 * msdos.h (have_menus_p):
30199 * xterm.h (have_menus_p): Remove.
30200
30201 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
30202 (Fmake_variable_frame_local): Just check the variable's const-ness
30203 rather than checking nil or t.
30204
30205 2007-10-22 Jason Rumney <jasonr@gnu.org>
30206
30207 * w32fns.c: Include math.h.
30208 (w32_abort): Declaration moved to nt/config.nt.
30209
30210 * s/ms-w32.h (HAVE_STDLIB_H): Define.
30211 (abort): Redefinition moved to nt/config.nt.
30212
30213 * m/windowsnt.h: Remove.
30214
30215 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
30216
30217 * emacs.c (Fdump_emacs): Fix typo in message.
30218 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
30219 <installation-directory>: Reflow docstring.
30220
30221 2007-10-22 Juri Linkov <juri@jurta.org>
30222
30223 * minibuf.c: Allow minibuffer default to be a list of default values.
30224 With empty input use the first element of this list as returned default.
30225 (string_to_object)
30226 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
30227 (read_minibuf): If defalt is cons, set histstring to its car.
30228 (Fread_string): If default_value is cons, set val to its car.
30229 (Fread_buffer): If def is cons, use its car.
30230 (Fcompleting_read): If defalt is cons, set val to its car.
30231
30232 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
30233
30234 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
30235
30236 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
30237
30238 * doc.c (Fdocumentation): Check for advice in all cases.
30239
30240 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
30241
30242 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
30243
30244 2007-10-19 Richard Stallman <rms@gnu.org>
30245
30246 * doc.c (Fdocumentation): Check for and handle an advised function.
30247
30248 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
30249
30250 * process.c (Fset_process_filter): Doc fix.
30251
30252 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
30253
30254 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
30255 which caused key-translation-map to applied repeatedly (thus breaking
30256 double-mode).
30257
30258 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30259
30260 * xselect.c (x_own_selection, x_handle_selection_clear)
30261 (x_clear_frame_selections):
30262 * w32menu.c (list_of_panes, list_of_items):
30263 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
30264 * textprop.c (validate_plist, interval_has_all_properties)
30265 (interval_has_some_properties, interval_has_some_properties_list)
30266 (add_properties, text_property_list):
30267 * process.c (Fget_buffer_process, list_processes_1, status_notify):
30268 * minibuf.c (Fassoc_string):
30269 * macselect.c (x_own_selection, x_clear_frame_selections)
30270 (Fx_disown_selection_internal):
30271 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
30272 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
30273
30274 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
30275
30276 * process.c: Link to libs for calling res_init() if available.
30277 (Fmake_network_process): Call res_init() before getaddrinfo or
30278 gethostbyname, if possible.
30279
30280 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30281
30282 * lread.c (read1): Set pvectype for char_tables.
30283
30284 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
30285 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
30286 Add type checks.
30287 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
30288
30289 * alloc.c (free_misc): Use XMISCTYPE.
30290 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
30291
30292 2007-10-17 Glenn Morris <rgm@gnu.org>
30293
30294 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
30295 (syms_of_minibuf): Add Qcompletion_ignore_case.
30296 * dired.c (Qcompletion_ignore_case): Change to external.
30297 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
30298 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
30299 (Fread_file_name): Use it rather than intern'ing.
30300
30301 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30302 (Fread_coding_system): Ignore case of user input.
30303
30304 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30305
30306 * xdisp.c (handle_display_prop): Ignore display specs after
30307 replacing one when string text is being replaced.
30308 (handle_single_display_spec): Pretend as if characters with display
30309 property haven't been consumed only when buffer text is being replaced.
30310
30311 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30312
30313 * xfns.c (Fx_create_frame, Fx_display_list):
30314 * window.c (window_fixed_size_p, enlarge_window)
30315 (shrink_window_lowest_first):
30316 * macterm.c (init_font_name_table):
30317 * macfns.c (Fx_create_frame, Fx_display_list):
30318 * lread.c (close_load_descs):
30319 * keyboard.c (read_char_x_menu_prompt):
30320 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30321 * coding.c (code_convert_region_unwind): Test the type of an object
30322 rather than just !NILP before extracting data from it.
30323
30324 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30325
30326 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30327 (XMISCANY): New macro.
30328 (XMISCTYPE): Use it.
30329 (struct Lisp_Misc_Any): New type.
30330 (union Lisp_Misc): Use it.
30331 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30332 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30333 (find_symbol_value, set_internal, default_value, Fset_default)
30334 (Fmake_variable_buffer_local, Fmake_local_variable)
30335 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30336 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30337 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30338 * alloc.c (allocate_buffer): Set the size and tag.
30339 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30340 Use XMISCANY.
30341 (die): Follow the GNU convention for error messages.
30342 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30343 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30344 tag any more.
30345 (set_buffer_internal_1):
30346 * frame.c (store_frame_param):
30347 * eval.c (specbind):
30348 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30349
30350 * doc.c (Fsnarf_documentation): Simplify.
30351
30352 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30353
30354 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30355 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30356
30357 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30358
30359 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30360
30361 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30362
30363 * eval.c (do_autoload): Don't save autoloads.
30364
30365 * data.c (Ffset): Save autoload of the function being set.
30366
30367 2007-10-07 John Paul Wallington <jpw@pobox.com>
30368
30369 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30370 parameter before setting up faces.
30371
30372 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30373
30374 * ccl.c (Fregister_code_conversion_map):
30375 * keyboard.c (append_tool_bar_item): Reformat last change.
30376
30377 * lisp.h (eabs): Rename from `abs'. All callers changed.
30378
30379 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30380
30381 * buffer.c (add_overlay_mod_hooklist):
30382 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30383 * fontset.c (make_fontset):
30384 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30385 (append_tool_bar_item):
30386 * macmenu.c (grow_menu_items):
30387 * w32menu.c (grow_menu_items):
30388 * xmenu.c (grow_menu_items): Use larger_vector.
30389
30390 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30391
30392 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30393 selected frame'' on MSDOS).
30394
30395 2007-10-12 Martin Rudalics <rudalics@gmx.at>
30396
30397 * frame.c (Qexplicit_name): New variable.
30398 (x_report_frame_params): Report it in parameter alist.
30399 (syms_of_frame): Intern and staticpro it.
30400
30401 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30402
30403 * macfns.c (x_create_tip_frame): Set terminal for frame.
30404
30405 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30406
30407 * frame.c (Qenvironment): Remove.
30408 (syms_of_frame) <Qenvironment>: Don't initialize.
30409 (Fdelete_frame): Don't treat the `environment' param specially.
30410 * frame.h (Qenvironment): Don't declare.
30411 * callproc.c (set_initial_environment): Don't set unused frame param.
30412
30413 * frame.c (Fframe_with_environment): Remove.
30414 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30415
30416 * lisp.h (Fframe_with_environment): Don't declare.
30417
30418 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
30419
30420 * indent.c (indent_tabs_mode, last_known_column)
30421 (last_known_column_modified): Make static.
30422 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30423
30424 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30425
30426 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30427
30428 2007-10-09 Jason Rumney <jasonr@gnu.org>
30429
30430 * w32term.c (x_set_window_size): Disable code that attempts to tell
30431 Lisp code about a size change before it actually happens.
30432
30433 2007-10-09 Richard Stallman <rms@gnu.org>
30434
30435 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30436 return HANDLED_RETURN.
30437
30438 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30439
30440 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30441 when there's an unread command event.
30442
30443 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30444 window autoselection act appropriately when leaving selected frame.
30445 (syms_of_frame): Initialize focus_follows_mouse.
30446 * frame.h (focus_follows_mouse): Extern it.
30447 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30448 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30449 * msdos.c (dos_rawgetc): Likewise.
30450 * w32term.c (w32_read_socket): Likewise.
30451 * xterm.c (handle_one_xevent): Likewise.
30452 * xdisp.c (syms_of_xdisp): In doc-string of
30453 mouse-autoselect-window mention focus-follows-mouse.
30454
30455 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30456
30457 * macterm.c (mac_load_query_font): Fix missing return value.
30458 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30459 Add BLOCK_INPUT.
30460
30461 2007-10-08 Richard Stallman <rms@gnu.org>
30462
30463 * xdisp.c (get_window_cursor_type): Implement documented behavior
30464 for cursor-in-non-selected-windows = t.
30465
30466 2007-10-08 Jason Rumney <jasonr@gnu.org>
30467
30468 * w32.c (w32_get_resource): Always close registry keys.
30469
30470 2007-10-08 Jason Rumney <jasonr@gnu.org>
30471
30472 * makefile.w32-in (LIBS): Add COMCTL32.
30473
30474 * w32fns.c (globals_of_w32fns): Init common controls.
30475
30476 2007-10-08 Richard Stallman <rms@gnu.org>
30477
30478 * image.c (our_memory_buffer): Rename from omfib_buffer.
30479
30480 2007-10-08 Richard Stallman <rms@gnu.org>
30481
30482 * buffer.c (Foverlays_at): Doc fix.
30483
30484 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30485
30486 * fns.c (Fplist_put): Preserve uneven tail data.
30487
30488 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30489
30490 * termhooks.h (enum event_kind): Remove trailing comma.
30491
30492 * frame.h (enum): Remove trailing comma.
30493
30494 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30495
30496 * w32proc.c (delete_child): Don't terminate threads of zombies.
30497
30498 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30499
30500 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30501
30502 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30503 last-repeatable-command.
30504 (init_kboard): Initialize Vlast_repeatable_command.
30505 (command_loop_1): Set it to real_this_command unless that was
30506 bound to an input event.
30507 (mark_kboards): Mark it.
30508
30509 2007-10-08 Richard Stallman <rms@gnu.org>
30510
30511 * eval.c (condition-case): Doc fix.
30512
30513 2007-10-08 Masatake YAMATO <jet@gyve.org>
30514
30515 * xfaces.c (tty_supports_face_attributes_p): Fix code
30516 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30517 was copied and not edited.
30518
30519 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30520
30521 Add new `input-decode-map' keymap and use it for terminal
30522 escape sequences.
30523 * keyboard.h (struct kboard): Add Vinput_decode_map.
30524 Remove Vlocal_key_translation_map.
30525 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30526 (init_kboard): Init input-decode-map.
30527 Replace local-key-translation-map back with key-translation-map.
30528 (syms_of_keyboard): Declare input-decode-map.
30529 Remove local-key-translation-map. Update docstrings.
30530 (mark_kboards): Mark Vinput_decode_map.
30531 Don't mark Vlocal_key_translation_map.
30532 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30533 Replace local-key-translation-map back with key-translation-map.
30534 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30535 Bind in input-decode-map rather than function-key-map.
30536
30537 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30538 This was made redundant by the previous introduction of XSETPVECTYPE.
30539
30540 2007-10-09 Richard Stallman <rms@gnu.org>
30541
30542 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30543
30544 2007-09-29 Richard Stallman <rms@gnu.org>
30545
30546 * eval.c (internal_condition_case_2, internal_condition_case_1)
30547 (internal_condition_case): Reenable abort if x_catching_errors ()
30548 to see if that really happens and why.
30549
30550 2007-10-06 Andreas Schwab <schwab@suse.de>
30551
30552 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30553
30554 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
30555
30556 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30557
30558 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30559
30560 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30561
30562 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30563
30564 * window.h (struct window):
30565 * window.c (struct save_window_data, struct saved_window):
30566 * termhooks.h (struct terminal):
30567 * process.h (struct Lisp_Process):
30568 * frame.h (struct frame):
30569 * buffer.h (struct buffer):
30570 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30571 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30572 The size field of (pseudo)vectors is now unsigned.
30573 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30574
30575 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30576 Turn `count' into an integer.
30577
30578 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30579 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30580 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30581 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30582 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30583
30584 * alloc.c (allocate_pseudovector): New fun.
30585 (ALLOCATE_PSEUDOVECTOR): New macro.
30586 (allocate_window, allocate_terminal, allocate_frame)
30587 (allocate_process): Use it.
30588 (mark_vectorlike): New function.
30589 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30590 (mark_terminals): Use it.
30591 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30592 (Fmake_byte_code): Use XSETPVECTYPE.
30593
30594 * frame.c (Fframe_parameters): Minor simplification.
30595
30596 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30597
30598 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30599
30600 * buffer.c (Fget_buffer_create, init_buffer_once):
30601 * lread.c (defsubr):
30602 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30603
30604 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30605 defined differently in the m/*.h files.
30606 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30607 (XSETPVECTYPE): New macro.
30608 (XSETPSEUDOVECTOR): Use it.
30609
30610 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30611 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30612
30613 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30614 * lread.c (defvar_per_buffer):
30615 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30616
30617 * window.c (candidate_window_p): Only consider as visible frames that
30618 are on the same terminal.
30619
30620 * m/ibms390x.h (MARKBIT): Remove unused macro.
30621
30622 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
30623
30624 * lread.c (Fload): Fix typo in docstring.
30625
30626 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30627
30628 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30629 of a non-zero value can't yield zero.
30630
30631 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30632
30633 * term.c (term_clear_mouse_face, term_mouse_highlight)
30634 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30635
30636 * print.c (safe_debug_print): Use XHASH.
30637
30638 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30639 Lisp elements such as tags.
30640 (XHASH): New macro.
30641 (EQ): Use it.
30642 (SREF, SSET, STRING_COPYIN): Use SDATA.
30643 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30644
30645 * alloc.c (mark_terminal): Remove left-over declaration.
30646 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30647 (allocate_vectorlike): Remove type argument. Adjust callers.
30648 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30649 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30650
30651 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30652 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30653 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30654 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30655 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30656 Use them.
30657
30658 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30659 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30660 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30661
30662 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30663
30664 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30665 loaded by default.
30666
30667 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30668
30669 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30670 on this tty.
30671 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30672
30673 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30674 Update all users.
30675 (handle_one_term_event): Use Gpm_DrawPointer.
30676 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30677 Signal errors instead of returning nil. Always return nil.
30678 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30679 Make it a noop if gpm-mouse was not activated.
30680 (syms_of_term): Update names.
30681
30682 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30683
30684 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30685 (init_sys_modes): Check that gpm_tty is the current tty.
30686
30687 * alloc.c (allocate_terminal): Set the vector size to only count the
30688 lisp fields. Initialize those to nil.
30689 (mark_object): Don't treat terminals specially.
30690 (mark_terminal): Remove.
30691 (mark_terminals): Use mark_object instead.
30692
30693 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30694 the GC to the beginning.
30695
30696 * indent.h:
30697 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30698
30699 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30700
30701 2007-09-25 Jason Rumney <jasonr@gnu.org>
30702
30703 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30704
30705 * w32console.c (create_w32cons_output): Remove.
30706
30707 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30708
30709 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30710 (reset_sys_modes): Use reset_terminal_modes_hook.
30711
30712 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30713
30714 * eval.c (do_autoload): Don't output any message.
30715
30716 2007-09-24 Juri Linkov <juri@jurta.org>
30717
30718 * emacs.c (standard_args): Change priority of "--no-splash"
30719 from 40 to 3. Add "--no-desktop" with the same priority.
30720
30721 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30722
30723 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30724 and optimize the case where they are all 1.
30725
30726 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30727
30728 * lisp.h (abs): Define if not defined.
30729 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30730 Don't define `abs', since it's defined in lisp.h.
30731
30732 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30733
30734 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30735 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30736 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30737 (init_tty): Use DEV_TTY instead of "/dev/tty".
30738 [WINDOWSNT]: No need to protect from NAME arg being null.
30739
30740 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30741
30742 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30743 up the tty state.
30744
30745 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30746
30747 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30748 (gpm_tty): Change its type.
30749 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30750 (gpm_tty): Change its type and initialize it.
30751 (Fterm_open_connection): Check the frame is indeed a tty.
30752 Use the new gpm_tty.
30753 (Fterm_close_connection): Use the new gpm_tty.
30754 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30755 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30756
30757 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30758
30759 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30760 underline_color, to draw strike-through.
30761
30762 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30763
30764 * lisp.h (allocate_terminal): Declare.
30765
30766 * window.c (candidate_window_p): Consider frames that are being placed
30767 by the user as somewhere between visible and iconified.
30768 (window_loop): Prefer windows on the current frame.
30769 (Fselect_window): Move the use of select-frame to the beginning so we
30770 can just delegate all the work (it'll call us back anyway).
30771
30772 * frame.c (Qdisplay_environment_variable):
30773 * frame.h (Qdisplay_environment_variable): Delete.
30774
30775 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30776 of the first arg, since that value may be a union.
30777
30778 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30779 parameter rather than Qdisplay_environment_variable. If all else
30780 fails, look for DISPLAY in initial-environment.
30781
30782 2007-09-21 Glenn Morris <rgm@gnu.org>
30783
30784 * Makefile.in (emacstool): Remove target.
30785 (lisp, shortlisp): Remove termdev.elc.
30786
30787 2007-09-21 Markus Triska <markus.triska@gmx.at>
30788
30789 * xterm.c (x_delete_display): Compile session management conditionally.
30790
30791 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30792
30793 * callproc.c (getenv_internal_1): New function.
30794 (getenv_internal): Use it.
30795 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30796
30797 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30798 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30799 (Fset_terminal_parameter): Work with dead terminals as well.
30800 (Fmodify_terminal_parameters): Remove.
30801
30802 * terminal.c (get_terminal): Handle terminals.
30803 Make sure the terminal returned is live.
30804 (create_terminal): Use allocate_terminal.
30805 (mark_terminals): Move to alloc.c.
30806 (delete_terminal): Use terminal->name as liveness status.
30807 NULL out fields after freeing their contents.
30808 Don't deallocate the object.
30809 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30810 rather than an int.
30811 (Fterminal_live_p): Accept non-integer arguments.
30812 (Fterminal_list): Return terminal objects rather than an ints.
30813
30814 * alloc.c (enum mem_type): New member for `terminal' objects.
30815 (allocate_terminal): New function.
30816 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30817 Handle terminals.
30818 (mark_terminal): New fun.
30819 (mark_terminals): Move from terminal.c.
30820
30821 * term.c (get_tty_terminal): Don't treat output_initial specially.
30822 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30823 (delete_tty): Use terminal->name as liveness status.
30824
30825 * termhooks.h (struct terminal): Make it into a pseudovector.
30826 Remove `deleted' replaced by checking `name's nullness.
30827
30828 * print.c (print_object): Handle terminals.
30829
30830 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30831 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30832
30833 * frame.c (make_terminal_frame):
30834 * keyboard.c (tty_read_avail_input):
30835 * w32term.c (x_delete_terminal):
30836 * xfns.c (Fx_create_frame, x_create_tip_frame):
30837 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30838
30839 2007-09-20 Glenn Morris <rgm@gnu.org>
30840
30841 * process.c (Fmake_network_process): Doc fix.
30842
30843 2007-09-19 Jason Rumney <jasonr@gnu.org>
30844
30845 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30846
30847 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30848
30849 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30850 Fix a C warning regarding variable constness.
30851
30852 * xterm.c (handle_one_xevent): Fix a C warning.
30853
30854 2007-09-18 Jason Rumney <jasonr@gnu.org>
30855
30856 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30857
30858 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30859
30860 * gtkutil.c (gdpy_def): New variable.
30861 (xg_initialize): Initialize gdpy_def.
30862 (xg_display_close): If no other display exists, set gdpy_def to a
30863 new connection.
30864
30865 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30866
30867 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30868 when we have no file name for the icon.
30869 (xg_tool_bar_expose_callback): Remove.
30870 (xg_create_tool_bar): Don't connect expose signal to
30871 xg_tool_bar_expose_callback.
30872 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30873
30874 2007-09-16 Andreas Schwab <schwab@suse.de>
30875
30876 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30877 values instead of zapping them.
30878
30879 2007-09-14 Glenn Morris <rgm@gnu.org>
30880
30881 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30882 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30883 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30884 scope and rename to omfib_buffer for clarity.
30885 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30886
30887 2007-09-14 Kenichi Handa <handa@m17n.org>
30888
30889 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30890
30891 2007-09-13 Jason Rumney <jasonr@gnu.org>
30892
30893 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30894
30895 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30896
30897 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30898 (mac_term_init): Call here instead, passing rif.
30899
30900 2007-09-13 Glenn Morris <rgm@gnu.org>
30901
30902 * s/hpux.h: No longer define `static' as nothing.
30903
30904 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30905
30906 * callint.c (Fcall_interactively): Remove unused var `fun'.
30907
30908 2007-09-12 Romain Francoise <romain@orebokech.com>
30909
30910 * window.c (prefer_window_split_horizontally, display_buffer):
30911 Revert 2007-09-08 change.
30912
30913 2007-09-12 Glenn Morris <rgm@gnu.org>
30914
30915 * alloca.c: Remove file.
30916 * Makefile.in (alloca): Do not undef.
30917 (allocaobj, alloca.o): Remove.
30918 (otherobj): Remove allocaobj.
30919 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30920 * regex.c (C_ALLOCA): Remove all references and code that was only
30921 used when this was defined.
30922 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30923 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30924 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30925
30926 * Makefile.in (SOURCES, unlock, relock): Delete.
30927
30928 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30929 (menu_grab_callback): All uses changed.
30930
30931 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30932 (x_reply_selection_request): All uses changed.
30933
30934 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30935
30936 * lread.c (load_warn_old_style_backquotes): Change message to look
30937 better when it appears in the middle of byte-compiler messages.
30938
30939 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30940
30941 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30942
30943 * xterm.c (x_create_terminal): Add comment.
30944
30945 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30946
30947 2007-09-10 Richard Stallman <rms@gnu.org>
30948
30949 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30950
30951 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30952
30953 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30954 (DEFUN): Document `intspec', use it instead of `prompt'.
30955
30956 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30957
30958 * data.c (Finteractive_form): If the interactive specification starts
30959 with a `(', use it as a Lisp form.
30960
30961 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30962 name and file modes.
30963
30964 * callint.c (Fcall_interactively): Comment fixes.
30965
30966 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30967
30968 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30969 and compiled functions.
30970
30971 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30972
30973 * window.c (prefer_window_split_horizontally): New variable.
30974 (display_buffer): Consider splitting window horizontally depending
30975 on prefer_window_split_horizontally.
30976
30977 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30978
30979 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30980
30981 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30982
30983 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30984
30985 * frame.c (x_set_frame_parameters): Check number is positive before
30986 using XFASTINT.
30987
30988 * window.c (freeze_window_start): Don't presume selected_window holds
30989 a window object.
30990 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30991
30992 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30993
30994 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30995
30996 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30997
30998 * window.c (Vsplit_window_preferred_function): New var.
30999 (Fdisplay_buffer): Use it.
31000 (syms_of_window): Export, and initialize it.
31001
31002 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
31003
31004 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
31005
31006 2007-09-06 Glenn Morris <rgm@gnu.org>
31007
31008 * gtkutil.c (menu_grab_callback) <cnt>:
31009 * xselect.c (x_reply_selection_request) <cnt>: Move static
31010 variable to file scope.
31011
31012 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
31013
31014 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
31015 consistent values of selected_frame and selected_window.
31016
31017 2007-09-04 Jason Rumney <jasonr@gnu.org>
31018
31019 * w32console.c (initialize_w32_display): Zero unused hooks.
31020
31021 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
31022
31023 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
31024 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
31025
31026 2007-09-04 Jason Rumney <jasonr@gnu.org>
31027
31028 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
31029 in w32console.c. Set up input. Remove XXX comments that have been
31030 confirmed as correct.
31031
31032 * s/ms-w32.h (MULTI_KBOARD): Define.
31033
31034 * w32console.c (one_and_only_w32cons): Remove.
31035 (initialize_w32_display): Take terminal argument.
31036
31037 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
31038 initialize_w32_display.
31039 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
31040
31041 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
31042
31043 * keyboard.c (discard_mouse_events): Discard it.
31044 (make_lispy_event): Translate it to a lisp event.
31045 (lispy_wheel_names): Add wheel-left and right events.
31046 (syms_of_keyboard): Enlarge wheel_syms.
31047
31048 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
31049 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
31050
31051 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
31052
31053 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
31054 from WM_MOUSEHWHEEL.
31055 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
31056
31057 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
31058 terminal.
31059
31060 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
31061 keyboard for the terminal.
31062
31063 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
31064
31065 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
31066 (Vresume_tty_hook): Rename from Vresume_tty_functions.
31067 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
31068 and resume-tty-function to resume-tty-hook.
31069 (Fsuspend_tty, Fresume_tty): Use new names.
31070
31071 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
31072
31073 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
31074 if it starts with "n:".
31075
31076 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
31077
31078 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
31079
31080 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
31081
31082 * frame.h:
31083 * frame.c (Qterm_environment_variable): Remove.
31084 (syms_of_frame): Don't init and staticpro it.
31085
31086 * callproc.c (getenv_internal): Remove special case for $TERM.
31087
31088 * callproc.c (Vinitial_environment): New variable.
31089 (set_initial_environment): Initialize it.
31090 (syms_of_callproc): Declare it.
31091 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
31092 TERM under which a process runs is never related to the TERM in which
31093 Emacs is running.
31094
31095 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31096
31097 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
31098 * s/darwin.h: ... do it here.
31099
31100 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
31101
31102 * lisp.h (set_initial_environment): Rename from set_global_environment.
31103
31104 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
31105 removed by mistake on the multi-tty branch.
31106
31107 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
31108 (Fmodify_frame_parameters): Return a value.
31109
31110 * image.c (png_load): Comment-out var only used in commented-out code.
31111
31112 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
31113 before passing it to mark_object.
31114
31115 * xfaces.c (internal_resolve_face_name): Return a value.
31116 (internal_resolve_face_name, resolve_face_name_error): Comment out.
31117
31118 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
31119 (x_icon): Comment-out var only used in commented-out code.
31120
31121 2007-08-29 Romain Francoise <romain@orebokech.com>
31122
31123 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
31124 QUIT hasn't been provided.
31125
31126 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31127
31128 * callproc.c (child_setup, getenv_internal): Use the
31129 display-environment-variable and term-environment-variable frame params.
31130 (set_initial_environment): Initialise Vprocess_environment.
31131
31132 * config.in: Disable multi-keyboard support on a mac.
31133
31134 * frame.c (Qterm_environment_variable)
31135 (Qdisplay_environment_variable): New variables.
31136 (syms_of_frame): Intern and staticpro them.
31137 (Fmake_terminal_frame): Disable output method test.
31138
31139 * frame.h: Declare them here.
31140
31141 * macfns.c (x_set_mouse_color): Get rif from the frame.
31142 (x_set_tool_bar_lines): Don't use updating_frame.
31143 (mac_window): Add 2 new parameters for consistency with other systems.
31144 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
31145 frame parameters following what is done in X11 and w32. Don't use
31146 FRAME_MAC_DISPLAY_INFO.
31147 (Fx_open_connection, start_hourglass): Remove window-system check.
31148 (x_create_tip_frame): Get the keyboard from the terminal.
31149
31150 * macmenu.c: Reorder includes.
31151 (Fx_popup_menu): Use terminal specific mouse_position_hook.
31152
31153 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
31154 terminal parameter.
31155 (x_clear_frame): Add a frame parameter.
31156 (note_mouse_movement): Get rif from the frame.
31157 (mac_term_init): Initialize the terminal.
31158 (mac_initialize): Make static and move terminal initialization ...
31159 (mac_create_terminal): ... to this new function.
31160
31161 * macterm.h (struct mac_display_info): Add terminal.
31162 (mac_initialize): Delete declaration.
31163
31164 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
31165
31166 * sysdep.c: Comment out text after #endif.
31167
31168 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
31169 is defined. Better initialize ttys in windows. Use terminal
31170 specific mouse_position_hook.
31171
31172 * termhooks.h (union display_info): Add mac_display_info.
31173
31174 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
31175 Set the default minibuffer frame, window_system and the rest of the
31176 frame parameters following what is done in X11.
31177
31178 * w32term.c (w32_initialize): Make static.
31179
31180 * xselect.c (x_handle_selection_clear): Only access
31181 terminal->kboard when MULTI_KBOARD is defined.
31182
31183 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
31184 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
31185
31186 2007-08-29 Jason Rumney <jasonr@gnu.org>
31187
31188 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
31189 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
31190
31191 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
31192 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
31193
31194 * keyboard.c (restore_kboard_configuration): Only define when
31195 MULTI_KBOARD defined.
31196
31197 * makefile.w32-in: Update dependancies from Makefile.in.
31198 (OBJ1): Add terminal.$(O)
31199
31200 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
31201 Don't define function body.
31202 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
31203
31204 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
31205
31206 * w32.c (request_sigio, unrequest_sigio): Remove.
31207
31208 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
31209 (w32con_clear_frame, w32con_clear_end_of_line)
31210 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
31211 (w32con_delete_glyphs, w32con_set_terminal_window)
31212 (scroll_line, w32_sys_ring_bell): Add frame arg.
31213 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
31214 Add terminal arg.
31215 (PICK_FRAME): Remove.
31216 (w32con_write_glyphs): Use frame specific terminal coding.
31217 (one_and_only_w32cons): New global variable.
31218 (initialize_w32_display): Use it for storing hooks.
31219 (create_w32cons_output): New function.
31220
31221 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
31222 arg a frame.
31223
31224 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
31225 Set window_system.
31226 (x_set_tool_bar_lines): Don't use updating_frame.
31227 (Fx_create_frame): Set terminal and ref count.
31228 (Fx_open_connection): Remove window-system check.
31229
31230 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
31231
31232 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
31233 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
31234 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
31235 Add frame arg.
31236 (x_delete_terminal, w32_create_terminal): New functions.
31237 (w32_term_init): Create a terminal.
31238 (w32_initialize): Move terminal specific initialization to
31239 w32_create_terminal.
31240
31241 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
31242 (w32_clear_rect, w32_clear_area): Use background from frame.
31243 (w32_display_info): Add terminal.
31244 (w32_sys_ring_bell, x_delete_display): Declare here.
31245
31246 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
31247
31248 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
31249
31250 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
31251
31252 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
31253 Fix get_named_tty calls for the controlling tty.
31254
31255 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
31256
31257 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
31258
31259 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
31260
31261 * term.c (tty_insert_glyphs): Add missing first parameter.
31262
31263 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
31264
31265 * buffer.c (Fbuffer_list, Fbury_buffer):
31266 Take frame->buried_buffer_list into account.
31267
31268 * cm.c (current_tty): New variable, for cmputc().
31269 (cmputc): Use it.
31270 (cmcheckmagic): Add tty parameter, look up terminal streams there.
31271 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
31272 (cmgoto): Add tty parameter. Pass it on to calccost().
31273 Use emacs_tputs() instead of tputs().
31274
31275 * cm.h (emacs_tputs): New macro to set current_tty, and then call
31276 tputs().
31277 (current_tty): New variable, for cmputc().
31278 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
31279
31280 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
31281 (internal_condition_case, internal_condition_case_1)
31282 (internal_condition_case_2): Don't abort when x_catching_errors.
31283
31284 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
31285 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
31286 prevent crashes caused by bogus longjmps in read_char.
31287
31288 * keymap.h (Fset_keymap_parent): Add EXFUN.
31289
31290 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
31291 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31292 Remove redundant definition.
31293
31294 * macfns.c (x_set_mouse_color, x_make_gc):
31295 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31296
31297 * w32term.c (x_free_frame_resources):
31298 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31299 (w32_initialize): Use the accessor macros for terminal characteristics.
31300
31301 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31302 Use the accessor macros for terminal characteristics.
31303 * msdos.c (internal_terminal_init): Use the accessor macros for
31304 terminal characteristics.
31305 (ScreenVisualBell, internal_terminal_init):
31306 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31307
31308 * termopts.h (no_redraw_on_reenter): Declare.
31309
31310 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31311 (mark_terminals, mark_ttys): Declare.
31312 (Fgarbage_collect): Call them.
31313 (mark_object): Mark buried_buffer_list.
31314
31315 * prefix-args.c: Include stdlib.h for exit.
31316
31317 * syssignal.h: Add comment.
31318
31319 * indent.c: Include stdio.h.
31320
31321 * window.h (Vinitial_window_system): Declare.
31322 (Vwindow_system): Delete declaration.
31323
31324 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31325
31326 * image.c (lookup_image): Don't initialize `c' until the xasserts
31327 have been run.
31328
31329 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31330 FRAME_FOREGROUND_PIXEL.
31331
31332 * print.c (print_preprocess): Don't lose print_depth levels while
31333 iterating.
31334
31335 * widget.c (update_from_various_frame_slots):
31336 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31337
31338 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31339 frames.
31340 (window_internal_height): Remove bogus make_number call.
31341 (init_window_once): Call make_terminal_frame with two zero parameters.
31342
31343 * fileio.c (Fread_file_name): Update comment.
31344
31345 * callint.c (Fcall_interactively):
31346 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31347 Make sure it is correctly unwound.
31348
31349 * xsmfns.c (x_session_close): New function.
31350
31351 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31352 Delete declarations.
31353
31354 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31355 (x_output): Remove background_pixel and foreground_pixel fields.
31356 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31357 (x_delete_device, x_session_close): Declare.
31358
31359 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31360 (read_filtered_event): Call `read_char' with a local
31361 `wrong_kboard_jmpbuf'.
31362
31363 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31364 Don't call single_kboard_state. Use FRAME_RIF.
31365
31366 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31367 systems.
31368
31369 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31370 (Fframe_with_environment, Fset_input_meta_mode)
31371 (Fset_quit_char): EXFUN.
31372 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31373 (init_sys_modes, reset_sys_modes): Update prototypes.
31374 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31375
31376 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31377 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31378 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31379 Delete declarations.
31380 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31381 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31382 New declarations.
31383
31384 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31385 already does that during init_display(). Call syms_of_keymap
31386 before syms_of_keyboard. Call `syms_of_terminal'.
31387 Call set_initial_environment, not set_process_environment.
31388 (shut_down_emacs): Call reset_all_sys_modes() instead of
31389 reset_sys_modes().
31390
31391 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31392 (internal_resolve_face_name, resolve_face_name_error): New functions.
31393 (resolve_face_name): Protect against loops and errors thrown by Fget.
31394 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31395 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31396
31397 * scroll.c: Replace CURTTY() with local variables throughout the
31398 file (where applicable).
31399 (calculate_scrolling, calculate_direct_scrolling)
31400 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31401 characteristics.
31402
31403 * keymap.c (Vfunction_key_map): Remove.
31404 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31405 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31406 (Vkey_translation_map): Remove.
31407 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31408 (Fdescribe_buffer_bindings)
31409 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31410 Update for terminal-local key-translation-map.
31411
31412 * Makefile.in (callproc.o): Update dependencies.
31413 (lisp, shortlisp): Add termdev.elc.
31414 (obj): Add terminal.o.
31415 (terminal.o): Add dependencies.
31416 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31417 (data.o, fns.o): Add termhooks.h dependency.
31418 (SOME_MACHINE_LISP): Add dnd.elc.
31419 (minibuf.o): Fix typo.
31420 Update dependencies.
31421
31422 * data.c (do_symval_forwarding, store_symval_forwarding)
31423 (find_symbol_value): Use the selected frame's keyboard, not
31424 current_kboard.
31425
31426 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31427 Vwindow_system.
31428
31429 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31430 Fmenu_bar_open.
31431 (syms_of_xmenu): Update defsubr.
31432 (mouse_position_for_popup, Fx_popup_menu)
31433 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31434 (set_frame_menubar, free_frame_menubar)
31435 (create_and_show_popup_menu, xmenu_show)
31436 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31437 an X frame.
31438
31439 * xselect.c (x_own_selection): Abort if not an X frame.
31440 (some_frame_on_display): Check if it is an X frame.
31441 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31442
31443 * coding.c: Include frame.h and termhooks.h.
31444 (terminal_coding, keyboard_coding): Delete.
31445 (Fset_terminal_coding_system_internal)
31446 (Fset_keyboard_coding_system_internal)
31447 (Fkeyboard_coding_system)
31448 (Fterminal_coding_system): Add a terminal parameter.
31449 Get terminal_coding from the terminal.
31450 (init_coding_once): Don't call setup_coding_system here.
31451
31452 * dispextern.h (set_scroll_region, turn_off_insert)
31453 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31454 (tty_clear_end_of_line, tty_setup_colors)
31455 (delete_tty, updating_frame)
31456 (produce_special_glyphs, produce_glyphs, write_glyphs)
31457 (insert_glyphs): Remove.
31458 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31459 (tty_turn_off_highlight, get_tty_size): Add declaration.
31460 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31461
31462 * frame.h (enum output_method): Add output_initial.
31463 (struct x_output): Delete.
31464 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31465 Access foreground_pixel and background_pixel directly from the frame.
31466 (tty_display): Delete.
31467 (struct frame): Add buried_buffer_list, foreground_pixel,
31468 background_pixel and terminal. Delete kboard.
31469 (union output_data): Add tty.
31470 (FRAME_KBOARD): Get the kboard from the terminal.
31471 (FRAME_INITIAL_P): New macro.
31472 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31473 (Qterm_environment_variable, Qdisplay_environment_variable)
31474 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31475 New declarations.
31476
31477 * termchar.h (tty_output, tty_display_info): New structures.
31478 (tty_list): Declare.
31479 (FRAME_TTY, CURTTY): New macros.
31480 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31481 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31482 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31483 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31484
31485 * callproc.c: Include frame.h and termhooks.h, for terminal
31486 parameters.
31487 (add_env): New function.
31488 (child_setup): Use it.
31489 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31490 (getenv_internal): Fix get_terminal_param call.
31491 (Fgetenv_internal, egetenv): Update doc.
31492 (syms_of_callproc): Initialize Vprocess_environment to nil.
31493 Register and initialize them. Remove obsolete defvars. Update doc
31494 strings.
31495 (child_setup): Handle Vlocal_environment_variables.
31496 (getenv_internal): Add terminal parameter.
31497 Handle Vlocal_environment_variables.
31498 (Fgetenv_internal): Add terminal parameter.
31499 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31500 environment in a frame (not terminal) parameter. Update doc strings.
31501 (set_initial_environment): Rename from set_global_environment.
31502 Store Emacs environment in initial frame parameter.
31503
31504 * xdisp.c (redisplay_internal): Update references to
31505 `previous_terminal_frame'.
31506 (display_mode_line, Fformat_mode_line): Replace calls to
31507 `push_frame_kboard' with `push_kboard'.
31508 (get_glyph_string_clip_rects): Add extra parentheses and
31509 braces to prevent compiler warnings.
31510 (calc_pixel_width_or_height): Add xassert to check that the
31511 frame is alive. Don't call `lookup_image' on a termcap frame.
31512 (message2_nolog, message3_nolog, redisplay_internal)
31513 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31514 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31515 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31516 (Fx_display_pixel_width, Fx_display_pixel_height)
31517 (Fx_display_planes, Fx_display_color_cells)
31518 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31519 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31520 (Fx_display_backing_store, Fx_display_visual_class)
31521 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31522 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31523
31524 * xfns.c (x_set_foreground_color x_set_background_color)
31525 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31526 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31527 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31528 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31529 terminal that is being deleted.
31530 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31531 frame parameter, and make sure it overrides any user-supplied setting.
31532 (Fx_close_connection, Fx_synchronize): Unify argument names with
31533 the rest of the DEFUNs.
31534
31535 * dispnew.c (Fsend_string_to_terminal): Update call to
31536 `get_tty_terminal'.
31537 (Fredraw_frame, Fsend_string_to_terminal)
31538 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31539 FRAME_TERMCAP_P and FRAME_TTY.
31540 (window_change_signal): Don't believe width/height values that are
31541 impossibly small.
31542 (Vinitial_window_system): Rename from Vwindow_system.
31543 (termscript, Wcm, rif): Delete.
31544
31545 * termhooks.h (struct terminal): New struct containing the
31546 previously global text display hooks and new members NAME,
31547 DELETED and PARAM_ALIST.
31548 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31549 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31550 (FRAME_RIF): New macros.
31551 (get_terminal_param, get_device): New declarations.
31552 (termscript): Delete declaration.
31553
31554 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31555 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31556 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31557 FRAME_FOREGROUND_PIXEL.
31558 (x_fully_uncatch_errors): Disable definition.
31559 (x_scroll_bar_expose): Fix reference to foreground pixel.
31560 (XTread_socket): Disable loop on all X displays.
31561 (x_delete_terminal): Don't set terminal->deleted and let
31562 delete_terminal delete the frames on the terminal.
31563 (x_delete_display): Doc update to reflect changes in
31564 delete_terminal.
31565 (x_display_info) <terminal>: Move member earlier in the struct.
31566 (deleting_tty): Remove old variable.
31567 (Fsuspend_tty): Call clear_tty_hooks.
31568 (Fresume_tty, init_tty): Call set_tty_hooks.
31569 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31570 errors on X frames.
31571 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31572 (handle_one_xevent): Initialize `f' to NULL.
31573 (x_delete_terminal, x_create_terminal): New functions.
31574 (XTset_terminal_modes, XTreset_terminal_modes)
31575 (XTread_socket, x_connection_closed, x_term_init)
31576 (x_term_init, x_delete_display): Add terminal parameter.
31577 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31578 X connections.
31579
31580 * frame.c: Include termchar.h.
31581 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31582 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31583 (Qdisplay_environment_variable): New vars.
31584 (Fframep): Deal with output_initial.
31585 (Fframe-live-p): Doc fix.
31586 (Fwindow-system): New function.
31587 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31588 (make_terminal_frame): Don't create frames on a terminal that is
31589 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31590 (store_frame_param): Check for found_for_frame before calling XFRAME.
31591 (Fmake_terminal_frame): Handle NULL tty names correctly.
31592 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31593 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31594 frames to refer to a deleted frame in their 'environment parameter.
31595 (Fframe_with_environment): New function.
31596 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31597 (get_future_frame_param): New function.
31598 (Fmake_terminal_frame): Use it.
31599 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31600
31601 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31602 * sysdep.c (reset_sys_modes): Update for renames.
31603
31604 * keyboard.c (tty_read_avail_input): New function.
31605 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31606 (syms_of_keyboard): Defsubr them.
31607 (Fset_input_meta_mode, Fset_quit_char): New functions.
31608 (Fset_input_mode): Split to above functions.
31609 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31610 parameter. Use it in call to `read_char'.
31611 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31612 Set wrong_kboard_jmpbuf correctly in recursive calls.
31613 Use current_kboard to access Vkeyboard_translate_table.
31614 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31615 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31616 Update longjmp invocations. Remember the original current_kboard,
31617 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31618 changes it. Comment out unnecessary calls to
31619 `record_single_kboard_state' and `any_kboard_state'.
31620 Update recursive calls.
31621 (wrong_kboard_jmpbuf): Remove global variable.
31622 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31623 Handle deleted interrupted_kboards correctly; that is a legal
31624 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31625 and read_char calls. Abort if interrupted_kboard died in read_char.
31626 (any_kboard_state, single_kboard_state)
31627 (push_frame_kboard): Remove function.
31628 (pop_kboard): Switch out of single_kboard mode if the kboard has
31629 been deleted. Remove unused variable. Help debugging by not
31630 changing current_kboard unnecessarily. Set current_kboard to the
31631 kboard of the selected frame when the stored kboard object has
31632 been deleted before pop_kboard.
31633 (temporarily_switch_to_single_kboard): Change first parameter to a
31634 frame pointer. Throw an error when caller wants to change kboards
31635 while in single_kboard mode. Don't push_kboard if we weren't in
31636 single kboard state. Don't pop_kboard if we popped into any
31637 kboard state.
31638 (restore_kboard_configuration): Abort if pop_kboard changed the
31639 kboard in single_kboard mode. Call pop_kboard only after setting
31640 up single_kboard mode.
31641 (Frecursive_edit): Switch to single_kboard mode only in nested
31642 command loops.
31643 (cmd_error, command_loop, command_loop_1, timer_check):
31644 Comment out unnecessary call to `any_kboard_state' and
31645 `record_single_kboard_state'.
31646 (delete_kboard): Exit single_kboard mode if we have just deleted
31647 that kboard. Use FRAME_KBOARD.
31648 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31649 `fatal_error_signal'.
31650 (record_single_kboard_state): Don't push_kboard if we weren't in
31651 single kboard state. Don't pop_kboard if we popped into any
31652 kboard state.
31653 (push_frame_kboard): Rename to push_kboard.
31654 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31655 (read_avail_input): Read input from all terminals.
31656 (mark_kboards): Also mark Vkeyboard_translate_table.
31657 (kbd_buffer_store_event_hold): Simplify condition.
31658 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31659 (Vkeyboard_translate_table): Move to struct kboard.
31660 (init_kboard): Initialize Vkeyboard_translate_table.
31661 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31662 Vkeyboard_translate_table. Update doc strings. Update docs of
31663 local-function-key-map and function-key-map.
31664
31665 * terminal.c: New file.
31666
31667 * term.c: Include errno.h.
31668 (Vring_bell_function, device_list, initial_device)
31669 (next_device_id, ring_bell, update_begin, update_end)
31670 (set_terminal_window, cursor_to, raw_cursor_to)
31671 (clear_to_end, clear_frame, clear_end_of_line)
31672 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31673 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31674 (syms_of_term): Move their initialization to terminal.c.
31675 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31676 (Ftty_display_color_cells)
31677 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31678 (clear_tty_hooks, set_tty_hooks)
31679 (init_tty, maybe_fatal): New functions.
31680 (Ftty_type): Return nil if terminal is not on a tty instead of
31681 throwing an error. Doc update.
31682 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31683 Doc update. Initialize new subrs and variables.
31684 (delete_tty): Use terminal->deleted.
31685 (tty_set_terminal_modes): Rename from set_terminal_modes.
31686 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31687 (set_scroll_region): Rename to `tty_set_scroll_region'.
31688 (turn_on_insert): Rename to `tty_turn_on_insert'.
31689 (turn_off_insert): Rename to `tty_turn_off_insert'.
31690 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31691 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31692 (toggle_highligh): Rename to `tty_toggle_highlight'.
31693 (background_highlight): Rename to `tty_background_highlight'.
31694 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31695 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31696 (tty_set_scroll_region, tty_background_highlight)
31697 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31698 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31699 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31700 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31701 Add static modifier.
31702 (tty_reset_terminal_modes, tty_set_terminal_window)
31703 (tty_set_scroll_region, tty_background_highlight)
31704 (tty_highlight_if_desired, tty_cursor_to)
31705 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31706 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31707 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31708 renames.
31709
31710 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31711
31712 * keyboard.c: Qrtl is new.
31713 (parse_tool_bar_item): Handle :rtl keyword.
31714 (syms_of_keyboard): Intern :rtl keyword.
31715
31716 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31717
31718 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31719 so no Lisp code is executed.
31720 (file_for_image, find_rtl_image): New functions.
31721 (xg_get_image_for_pixmap): Use file_for_image.
31722 (update_frame_tool_bar): If direction is RTL, use RTL image if
31723 defined. Use Gtk stock images if defined.
31724
31725 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31726
31727 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31728 for nonexistent or zero-width glyph in composition glyph.
31729
31730 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31731
31732 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31733
31734 * xdisp.c (Finvisible_p): New function.
31735 (syms_of_xdisp): defsubr it.
31736
31737 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31738
31739 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31740 Doc fixes.
31741
31742 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31743
31744 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31745
31746 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31747
31748 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31749 whether decoding has modified buffer contents.
31750
31751 2007-08-24 Jason Rumney <jasonr@gnu.org>
31752
31753 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31754 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31755 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31756 (init_svg_functions) [HAVE_NTGUI]: New function.
31757 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31758 (svg_load_image): Use them.
31759 (svg_load_image) [HAVE_NTGUI]: Implement background.
31760
31761 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31762
31763 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31764 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31765 (LIBX): Remove @RSVG_LIBS@.
31766 (LIBES): Add $(RSVG_LIBS).
31767
31768 * image.c (svg_load_image): Blend with specified background if exists.
31769 Use IMAGE_BACKGROUND. Add Mac OS Support.
31770
31771 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31772 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31773 Remove macros.
31774 [MAC_OSX] (socket_callback): Do nothing.
31775 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31776 ReceiveNextEvent.
31777 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31778 socket_callback.
31779 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31780
31781 2007-08-22 Glenn Morris <rgm@gnu.org>
31782
31783 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31784
31785 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31786
31787 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31788
31789 * image.c: Add support for SVG images. Some additional comments
31790 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31791 (svg_image_p): New function to test for SVG image.
31792 (svg_load): New function to load SVG image.
31793 (svg_load_image): New function, helper for svg_load.
31794 (Qsvg): New Lisp_object.
31795 (svg_keyword_index): New enum.
31796 (svg_format): New static `image_keyword' struct.
31797 (svg_type): New static `image_type' struct.
31798 (librsvg/rsvg.h): Include it.
31799
31800 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31801
31802 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31803
31804 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31805
31806 * lread.c (Qold_style_backquotes): New var.
31807 (syms_of_lread): Init and staticpro it.
31808 (load_warn_old_style_backquotes): New fun.
31809 (Fload): Use them to warn about old style backquotes.
31810 (end_of_file_error, Fload): Remove unused vars.
31811
31812 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31813
31814 * lread.c (Vold_style_backquotes): New var.
31815 (syms_of_lread): Init and export it to Elisp.
31816 (read1): Set it when we find an old-style (back)quote.
31817
31818 2007-08-22 Jason Rumney <jasonr@gnu.org>
31819
31820 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31821
31822 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31823
31824 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31825
31826 2007-08-19 Richard Stallman <rms@gnu.org>
31827
31828 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31829
31830 2007-08-19 Andreas Schwab <schwab@suse.de>
31831
31832 * alloc.c (pure): Round PURESIZE up.
31833
31834 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31835
31836 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31837 active frame.
31838
31839 2007-08-16 Richard Stallman <rms@gnu.org>
31840
31841 * eval.c (Fcommandp): Add parens to clarify.
31842
31843 * minibuf.c (Fall_completions): Use enum for type of table.
31844
31845 * emacs.c (USAGE2): Improve text.
31846
31847 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31848
31849 * term.c (tty_default_color_capabilities): Declare static
31850 variables in file scope, to avoid HPUX compiler problem.
31851
31852 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31853
31854 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31855 to gtk_toolbar_insert.
31856
31857 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31858
31859 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31860
31861 * insdel.c (reset_var_on_error): New fun.
31862 (signal_before_change, signal_after_change):
31863 Use it to reset (after|before)-change-functions to nil in case of error.
31864 Bind inhibit-modification-hooks to t.
31865 Don't bind (after|before)-change-functions to nil while they run.
31866
31867 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31868
31869 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31870 filling pixmap with stippled background.
31871
31872 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31873
31874 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31875 Don't use invisible frame as parent window for repositioning.
31876
31877 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31878
31879 * print.c (new_backquote_output): Rename from old_backquote_output.
31880 (print): Inverse its logic (according to its name) so as to match the
31881 behavior of new_backquote_flag in lread.c.
31882
31883 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31884
31885 * gmalloc.c (posix_memalign): New function.
31886
31887 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31888 ActivateControl/DeactivateControl here.
31889 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31890 frame-notice-user-settings is non-nil.
31891 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31892 for kEventParamFMFontStyle.
31893 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31894 mac_pass_command_to_system and mac_pass_control_to_system here.
31895 (XTread_socket): Call ActivateControl/DeactivateControl here.
31896 (XTread_socket) [TARGET_API_MAC_CARBON]:
31897 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31898 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31899 for window repositioning.
31900
31901 2007-08-08 Glenn Morris <rgm@gnu.org>
31902
31903 * Replace `iff' in doc-strings and comments.
31904
31905 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31906
31907 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31908
31909 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31910
31911 * fileio.c (Finsert_file_contents): Run format-decode and
31912 after_insert_file_functions on entire buffer when REPLACE is
31913 non-nil and inhibit modification_hooks and point_motion_hooks.
31914 For consistency, run after_insert_file_functions iff something
31915 got inserted. Move signal_after_change and update_compositions
31916 after code running after_insert_file_functions. Make sure that
31917 undo_list doesn't record intermediate steps of the decoding process.
31918
31919 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31920
31921 * emacs.c (main)
31922 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31923 Call malloc_enable_thread on interactive startup.
31924
31925 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31926 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31927 [USE_PTHREAD]: Conditionalize with it.
31928 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31929 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31930 New functions.
31931
31932 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31933
31934 * xdisp.c (redisplay_window): When restoring original buffer
31935 position, make sure it is still valid.
31936
31937 * image.c (png_load): Ignore png-supplied background color.
31938
31939 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31940
31941 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31942 Use kCFAbsoluteTimeIntervalSince1970.
31943
31944 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31945 New variable.
31946 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31947 event loop should be quit.
31948 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31949 Quit dialog event loop if quit_dialog_event_loop is set.
31950
31951 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31952 (Selection): New typedef. Use instead of ScrapRef.
31953 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31954 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31955 (mac_clear_selection): Rename from clear_scrap.
31956 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31957 scrap_has_target_type. All uses changed.
31958 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31959 (mac_selection_has_target_p): New functions.
31960 (mac_put_selection_value): Rename from put_scrap_string.
31961 (mac_get_selection_value): Rename from get_scrap_string.
31962 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31963 (put_scrap_private_timestamp, scrap_has_target_type)
31964 (get_scrap_private_timestamp): Remove functions.
31965 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31966 (x_own_selection, x_get_local_selection):
31967 Use mac_valid_selection_value_p.
31968 (x_own_selection): Don't use put_scrap_private_timestamp.
31969 Record OWNERSHIP-INFO into Vselection_alist instead.
31970 (x_get_local_selection): Don't check type if request is local.
31971 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31972 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31973
31974 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31975
31976 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31977 add comment explaining why.
31978
31979 2007-08-03 Richard Stallman <rms@gnu.org>
31980
31981 * fileio.c (Fvisited_file_modtime): Use make_time.
31982
31983 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31984
31985 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31986 build.
31987
31988 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31989
31990 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31991
31992 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31993
31994 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31995
31996 2007-07-30 Richard Stallman <rms@gnu.org>
31997
31998 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31999
32000 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
32001
32002 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
32003
32004 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
32005
32006 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
32007 remote default-directory.
32008
32009 * buffer.c (mode-line-format): Update doc string.
32010
32011 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32012
32013 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
32014 scroll bar gap.
32015 (x_scroll_bar_create): Set bar->fringe_extended_p.
32016 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
32017 on frame edge. Check fringe background extension. Don't clear
32018 extended fringe background area.
32019
32020 * w32term.h (struct scroll_bar): New member fringe_extended_p.
32021 (w32_fill_area): Enclose multiple statements with do ... while (0).
32022
32023 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
32024 Extend fringe background to scroll bar gap.
32025 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
32026 Set bar->fringe_extended_p.
32027 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
32028 Put leftmost/rightmost scroll bars on frame edge. Check fringe
32029 background extension. Don't clear extended fringe background area.
32030
32031 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
32032 New member fringe_extended_p.
32033
32034 2007-07-25 Glenn Morris <rgm@gnu.org>
32035
32036 * Relicense all FSF files to GPLv3 or later.
32037
32038 * COPYING: Switch to GPLv3.
32039
32040 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
32041
32042 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
32043
32044 * data.c (Finteractive_form): Check for the presence of an
32045 `interactive-form' symbol property more thoroughly.
32046
32047 * data.c (Finteractive_form): Use an `interactive-form' property if
32048 present, analogous to the function-documentation property.
32049
32050 2007-07-24 Jason Rumney <jasonr@gnu.org>
32051
32052 * w32fns.c (x_real_positions): Get real position from OS instead of
32053 calculating it.
32054
32055 2007-07-23 Jason Rumney <jasonr@gnu.org>
32056
32057 * filelock.c (current_lock_owner): Allow for @ sign in username.
32058
32059 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
32060
32061 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
32062 remote default-directory.
32063
32064 * buffer.c (mode-line-format): Describe above case in doc string.
32065
32066 2007-07-20 Eli Zaretskii <eliz@gnu.org>
32067
32068 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
32069 Define if not defined.
32070
32071 2007-07-18 Jason Rumney <jasonr@gnu.org>
32072
32073 * w32proc.c (w32_executable_type): Handle 64 bit executables.
32074
32075 2007-07-18 Richard Stallman <rms@gnu.org>
32076
32077 * data.c (Fsetq_default): Doc fix.
32078
32079 * eval.c (Fsetq): Doc fix.
32080
32081 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
32082
32083 * coding.c (Ffind_operation_coding_system):
32084 * eval.c (For, Fand): Doc fixes.
32085 Reported by Johan Bockgård.
32086
32087 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
32088
32089 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
32090
32091 * xterm.h: Declare x_ewmh_activate_frame.
32092
32093 * xterm.c (x_ewmh_activate_frame): New function.
32094 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
32095
32096 2007-07-17 Martin Rudalics <rudalics@gmx.at>
32097
32098 * window.c (Fdisplay_buffer): If largest or LRU window is the
32099 only window, split it even if it is not eligible for splitting.
32100 This restores the original behavior broken by the 2007-07-15
32101 change.
32102
32103 2007-07-17 Glenn Morris <rgm@gnu.org>
32104
32105 * abbrev.c (abbrev_check_chars): New function.
32106 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
32107 Call abbrev_check_chars to check abbrev characters are word
32108 constituents. Doc fix.
32109
32110 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
32111
32112 * process.c (Fstart_process, Fmake_network_process)
32113 (read_process_output): Fix up last changes.
32114
32115 2007-07-16 Eli Zaretskii <eliz@gnu.org>
32116
32117 * makefile.w32-in (clean): Don't delete *~.
32118
32119 2007-07-16 Andreas Schwab <schwab@suse.de>
32120
32121 * window.c (Fdisplay_buffer): Use NILP.
32122 (Fset_window_scroll_bars): Likewise.
32123
32124 2007-07-15 Martin Rudalics <rudalics@gmx.at>
32125
32126 * window.c (window_min_size_2): New function.
32127 (window_min_size_1, size_window, Fdisplay_buffer)
32128 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
32129 windows without mode- or header-lines when window-min-height is
32130 too small.
32131 (size_window): Reset nodelete_p after testing it, following an
32132 earlier note by Kim F. Storm.
32133 (display_buffer): Do not set split_height_threshold to twice the
32134 value of window_min_height to avoid changing the value of a
32135 customizable variable. Rather explicitly check whether the
32136 height of the window that shall be splitted is at least as large
32137 as split_height_threshold.
32138 (Fwindow_full_width_p): New defun.
32139 (syms_of_window): Defsubr it.
32140
32141 * window.h: Add EXFUN for Fwindow_full_width_p.
32142
32143 2007-07-14 Jason Rumney <jasonr@gnu.org>
32144
32145 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
32146
32147 2007-07-14 Richard Stallman <rms@gnu.org>
32148
32149 * eval.c (maybe_call_debugger): New function.
32150 (find_handler_clause): Use maybe_call_debugger.
32151 Call it when the handler says `debug'.
32152 Eliminate DEBUGGER_VALUE_PTR.
32153 (Fsignal): Eliminate debugger_value.
32154 (Qdebug): New variable.
32155 (syms_of_eval): Initialize it.
32156
32157 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
32158
32159 * eval.c (Fprogn):
32160 * keyboard.c (Ftrack_mouse):
32161 * print.c (Fwith_output_to_temp_buffer):
32162 * window.c (Fsave_window_excursion): Doc fix.
32163
32164 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
32165
32166 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
32167
32168 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
32169
32170 * process.h (struct Lisp_Process): Turn slots infd, outfd,
32171 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
32172 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
32173 read_output_delay, and read_output_skip from Lisp_Objects to ints.
32174 Remove unused encoding_carryover.
32175 * process.c: Adjust all functions accordingly.
32176
32177 2007-07-12 Richard Stallman <rms@gnu.org>
32178
32179 * term.c: Include unistd.h only if HAVE_UNISTD_H.
32180
32181 2007-07-11 Jason Rumney <jasonr@gnu.org>
32182
32183 * makefile.w32-in (LIBS): Include OLE32.
32184
32185 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
32186 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
32187
32188 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
32189
32190 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
32191 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
32192 from a Lisp_Object into a bare pointer.
32193 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
32194 Adjust the code correspondingly.
32195
32196 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
32197
32198 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
32199 (term_show_mouse_face): Remove unused var `j'.
32200 (handle_one_term_event): Remove unused vars `i' and `j'.
32201 Don't cast return value of ttyname since it's not necessary.
32202
32203 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
32204
32205 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
32206 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
32207
32208 * fns.c (map_char_table): Use an array of int for `indices' rather than
32209 an array of Lisp_Objects (which are only ever integers anyway).
32210 (Fmap_char_table): Update caller.
32211 * lisp.h: Update prototype.
32212 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
32213 * fontset.c (Ffontset_info):
32214 * casetab.c (set_case_table): Update callers.
32215
32216 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
32217
32218 * keymap.c (struct accessible_keymaps_data)
32219 (struct where_is_internal_data): New structures.
32220 (accessible_keymaps_1, where_is_internal_1): Use them to change
32221 interface to adhere to the one used by map_keymap.
32222 (Faccessible_keymaps, where_is_internal): Use map_keymap.
32223 (accessible_keymaps_char_table, where_is_internal_2): Remove.
32224
32225 * keymap.h (map_keymap_function_t): More informative prototype.
32226
32227 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
32228
32229 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
32230 (looking_at_1): Don't change search_regs and last_thing_searched
32231 if `inhibit-changing-match-data' is non-nil.
32232 (string_match_1, search_buffer, set_search_regs): Likewise.
32233 (syms_of_search): Add Lisp level definition for
32234 `inhibit-changing-match-data' and set it to nil.
32235 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
32236 start and end of the match, instead of using values in search_regs.
32237
32238 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
32239
32240 * minibuf.c (Fcompleting_read): New value `confirm-only'
32241 for `require-match'.
32242
32243 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
32244
32245 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
32246 part of the 2007-06-27 change to syms_of_fileio.
32247
32248 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32249
32250 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
32251 Check WINDOWP before using XWINDOW. Consolidate return statements.
32252
32253 2007-06-27 Richard Stallman <rms@gnu.org>
32254
32255 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
32256
32257 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
32258
32259 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
32260
32261 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32262
32263 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
32264 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
32265 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
32266 (_free_internal, memalign): Use them.
32267 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
32268 Initialize to PTHREAD_MUTEX_INITIALIZER.
32269 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
32270 (morecore_nolock): Rename from morecore. All uses changed.
32271 Use only nolock versions of internal allocation functions.
32272 (_malloc_internal_nolock, _realloc_internal_nolock)
32273 (_free_internal_nolock): New functions created from
32274 _malloc_internal, _realloc_internal, and _free_internal.
32275 (_malloc_internal, _realloc_internal, _free_internal): Use them.
32276 Copy hook value to automatic variable before its use.
32277 (memalign): Copy hook value to automatic variable before its use.
32278
32279 2007-06-26 Kenichi Handa <handa@m17n.org>
32280
32281 * coding.c (Ffind_operation_coding_system): Docstring improved.
32282 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
32283
32284 2007-06-25 David Kastrup <dak@gnu.org>
32285
32286 * keymap.c (Fcurrent_active_maps): Add `position' argument.
32287 (Fwhere_is_internal): Adjust call to `current-active-maps' to
32288 cater for additional parameter.
32289
32290 * keymap.h: Adjust number of parameters to `current-active-maps'.
32291
32292 * doc.c (Fsubstitute_command_keys): Adjust call of
32293 `current-active-maps'.
32294
32295 2007-06-25 David Kastrup <dak@gnu.org>
32296
32297 * callint.c (Fcall_interactively): Make the parsing of interactive
32298 specs somewhat more readable.
32299
32300 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32301
32302 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32303 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32304 if extended background has already been filled.
32305
32306 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32307
32308 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32309 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32310
32311 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32312 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32313 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32314 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32315 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32316 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32317 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32318 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32319 Run timers during dialog popup.
32320 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32321
32322 2007-06-21 Jason Rumney <jasonr@gnu.org>
32323
32324 * image.c (convert_mono_to_color_image): Swap fore and background.
32325
32326 2007-06-20 Jason Rumney <jasonr@gnu.org>
32327
32328 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32329 (w32_free_bdf_font): Unmap memory not handle.
32330
32331 2007-06-20 Sam Steingold <sds@gnu.org>
32332
32333 * gmalloc.c (__morecore): Fix the declaration to comply with the
32334 definition.
32335
32336 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
32337
32338 * w32term.c (w32_delete_display): Remove leftover declaration.
32339 (w32_define_cursor, w32_initialize): Make static.
32340
32341 * w32.c (_wsa_errlist): Fix typo in error message.
32342 (init_environment): Ignore any environment variable from the
32343 registry having a null value.
32344
32345 2007-06-20 Glenn Morris <rgm@gnu.org>
32346
32347 * Makefile.in (LIBGIF): Default to -lgif.
32348
32349 2007-06-17 Jason Rumney <jasonr@gnu.org>
32350
32351 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32352 unicode strings.
32353
32354 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
32355
32356 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32357 Fix typo in docstring.
32358
32359 2007-06-16 Eli Zaretskii <eliz@gnu.org>
32360
32361 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32362 and their keybindings.
32363
32364 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
32365
32366 * composite.c (update_compositions): Fix last fix.
32367
32368 2007-06-14 Jason Rumney <jasonr@gnu.org>
32369
32370 * w32.c (get_process_times_fn): New function pointer.
32371 (globals_of_w32): Intialize it if present in kernel32.dll.
32372 (w32_get_internal_run_time): New function.
32373
32374 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32375
32376 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32377
32378 * composite.c (update_compositions): Check the validness of
32379 compositions.
32380
32381 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32382
32383 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32384 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32385
32386 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32387 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32388
32389 * macgui.h (USE_MAC_TOOLBAR): New define.
32390
32391 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32392 Return immediately unless popup is activated.
32393
32394 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32395 background to scroll bar gap.
32396 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32397 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32398 scroll bars on frame edge. Check fringe background extension.
32399 Don't clear extended fringe background area.
32400 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32401 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32402 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32403 [USE_MAC_TOOLBAR]: New macros.
32404 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32405 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32406 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32407 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32408 [USE_MAC_TOOLBAR]: New functions.
32409 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32410 manually if previous repositioning has failed.
32411 (mac_handle_keyboard_event): Use precomputed event kind.
32412 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32413 as tool bar item click. Handle mouse movement over tool bar items.
32414
32415 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32416 toolbar_win_gravity.
32417 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32418 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32419 Add externs.
32420
32421 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32422 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32423
32424 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
32425
32426 * image.c (search_image_cache): Remove unused variable.
32427
32428 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
32429
32430 * xfns.c, xmenu.c: Link to xaw3d if available.
32431
32432 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32433
32434 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32435 frame_foreground and frame_background.
32436
32437 * image.c (lookup_image): Save frame foreground and background colors.
32438 (search_image_cache): Check if saved and current frame colors match.
32439
32440 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32441
32442 * regex.c (regex_compile): Remove the `regnum' counter.
32443 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32444
32445 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32446
32447 * term.c: Include intervals.h to declare Fget_text_property.
32448
32449 2007-06-10 Jason Rumney <jasonr@gnu.org>
32450
32451 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32452
32453 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
32454
32455 * callint.c (Fcall_interactively):
32456 * editfns.c (Fdelete_and_extract_region):
32457 * fileio.c (Fread_file_name):
32458 * fns.c (Fmapconcat):
32459 * keyboard.c (cmd_error_internal):
32460 * keymap.c (Fkey_description):
32461 * lread.c (openp):
32462 * minibuf.c (read_minibuf):
32463 * search.c (wordify):
32464 * sunfns.c (sel_read):
32465 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32466 * xfns.c (x_default_scroll_bar_color_parameter):
32467 * xmenu.c (menu_help_callback):
32468 * xselect.c (Fx_get_atom_name):
32469 * xterm.c (x_term_init): Use empty_unibyte_string.
32470
32471 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32472
32473 * alloc.c (init_strings): Initialize canonical empty strings.
32474 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32475 canonical empty string when the requested size is 0.
32476
32477 * emacs.c (empty_unibyte_string): Rename from empty_string.
32478 (empty_multibyte_string): New canonical empty string.
32479 (syms_of_emacs): Don't initialize empty_string.
32480
32481 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32482 string, if appropriate.
32483 (empty_unibyte_string, empty_multibyte_string): New externs.
32484 (empty_string): Remove extern.
32485
32486 * lread.c (syms_of_lread): Use empty_unibyte_string.
32487
32488 2007-06-07 Jason Rumney <jasonr@gnu.org>
32489
32490 * s/ms-w32.h: Don't define HAVE_TZNAME.
32491
32492 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32493
32494 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32495
32496 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32497
32498 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32499 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32500
32501 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32502 Don't call next handler.
32503 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32504 Remove argument. Install handler to application.
32505 (set_frame_menubar): Don't change deep_p.
32506 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32507 FRAME_OUTER_TO_INNER_DIFF_Y.
32508 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32509 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32510 [HAVE_DIALOGS]: New macros.
32511 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32512 Use them.
32513 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32514
32515 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32516 init_service_handler. All callers changed. Return OSStatus value.
32517
32518 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32519 All callers changed so as not to call SetPortWindowPort.
32520 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32521 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32522 mac_draw_string_common.
32523 (mac_draw_image_string_qd): Likewise.
32524 (mac_draw_string_common): Use them. Add INLINE.
32525 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32526 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32527 GetGlobalMouse.
32528 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32529 and FRAME_OUTER_TO_INNER_DIFF_Y.
32530 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32531 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32532 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32533 repositioning window to mac_handle_window_event.
32534 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32535 saving window location to mac_handle_window_event
32536 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32537 (install_menu_target_item_handler): Remove argument in extern.
32538 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32539 Also accept command events.
32540 (do_keystroke): New function created from XTread_socket.
32541 (init_command_handler): Remove functions.
32542 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32543 and save window location by kEventWindowShowing and kEventWindowHiding
32544 handlers here. Don't call next handler for window state change and
32545 focus events.
32546 (mac_handle_application_event, mac_handle_keyboard_event)
32547 [TARGET_API_MAC_CARBON]: New functions.
32548 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32549 kEventWindowShowing and kEventWindowHiding events. Move installation
32550 of mouse, font, text input and menu target item handlers to
32551 install_application_handler.
32552 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32553 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32554 New function.
32555 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32556 Register it.
32557 (XTread_socket) [TARGET_API_MAC_CARBON]:
32558 Consolidate SendEventToEventTarget calls.
32559 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32560 Move application activation handler to mac_handle_application_event.
32561 Move keyboard handler to mac_handle_keyboard_event.
32562 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32563 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32564 init_command_handler. Call install_application_handler.
32565
32566 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32567 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32568
32569 2007-06-07 Glenn Morris <rgm@gnu.org>
32570
32571 * emacs.c (main): Use `emacs-copyright' in --version output.
32572
32573 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
32574
32575 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32576
32577 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32578
32579 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32580
32581 * macgui.h: Replace WindowPtr with WindowRef.
32582
32583 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32584 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32585 Replace ControlHandle with ControlRef.
32586 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32587
32588 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32589 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32590 Replace ControlHandle with ControlRef.
32591 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32592 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32593
32594 * macterm.h (struct scroll_bar): Rename member control_handle_low
32595 and control_handle_high to control_ref_low and control_ref_high.
32596 All uses changed.
32597 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32598 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32599 respectively. All uses changed.
32600 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32601 (install_window_handler, remove_window_handler): Replace WindowPtr
32602 with WindowRef in externs.
32603
32604 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
32605
32606 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32607
32608 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
32609
32610 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32611
32612 * frame.c (Fmouse_position, Fmouse_pixel_position):
32613 Condition on HAVE_GPM too.
32614
32615 * term.c (term_mouse_highlight): Remove unused variables.
32616 (Fterm_open_connection): Set gpm_zerobased to 1.
32617 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32618 Use zero based co-ordinates.
32619 (handle_one_term_event): Report a drag as mouse movement too.
32620
32621 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32622
32623 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
32624
32625 * image.c (search_image_cache): New function. Require background
32626 color match if background color is unspecified in the image spec.
32627 (uncache_image, lookup_image): Use it.
32628
32629 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
32630
32631 * window.c (Fshrink_window): Reflow docstring.
32632
32633 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
32634
32635 * Version 22.1 released.
32636
32637 2007-06-01 Richard Stallman <rms@gnu.org>
32638
32639 * xfns.c (x_encode_text): Add GCPRO.
32640
32641 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32642
32643 * xfns.c (x_set_name_internal): Save encoded name before
32644 x_encode_text in case string data is relocated.
32645
32646 2007-05-31 Richard Stallman <rms@gnu.org>
32647
32648 * buffer.c (syms_of_buffer): Doc fix.
32649
32650 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
32651
32652 * sysdep.c (init_sys_modes): Add rather than replace with
32653 O_NONBLOCK.
32654
32655 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32656 term_mouse_moveto.
32657
32658 * termhooks.h (term_mouse_moveto): New extern.
32659
32660 * term.c (mouse_face_window): Rename...
32661 (Qmouse_face_window): ...to this.
32662 (term_show_mouse_face, term_clear_mouse_face)
32663 (term_mouse_highlight): Use Qmouse_face_window.
32664 (term_mouse_moveto): New function.
32665 (term_mouse_position): Make it work.
32666 (syms_of_term): Uncomment assignment to mouse_position_hook.
32667 Staticpro Qmouse_face_window.
32668
32669 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32670
32671 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32672 around current_column call.
32673
32674 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32675
32676 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32677 * xdisp.c (next_element_from_buffer):
32678 * window.c (delete_window):
32679 * term.c (term_mouse_highlight):
32680 * msdos.c (getdefdir):
32681 * macterm.c (mac_create_bitmap_from_bitmap_data)
32682 (init_font_name_table):
32683 * fns.c (Fsxhash):
32684 * data.c (Fmake_local_variable):
32685 * ccl.c (ccl_driver): Likewise.
32686
32687 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32688
32689 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32690 Call mac_wakeup_from_rne on window size change.
32691
32692 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32693
32694 * image.c (uncache_image): Fix typo.
32695
32696 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32697
32698 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32699
32700 2007-05-22 Richard Stallman <rms@gnu.org>
32701
32702 * xterm.c (x_connection_closed): Remove NO_RETURN.
32703
32704 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32705
32706 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32707
32708 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32709
32710 * image.c (uncache_image): New function.
32711 (Fimage_refresh): New function.
32712
32713 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32714
32715 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32716
32717 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32718
32719 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32720 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32721
32722 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32723
32724 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32725 conditional on [HAVE_GPM_H].
32726
32727 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32728
32729 * syntax.c (skip_chars): Update syntax-table only after we checked that
32730 the new location is valid.
32731
32732 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32733
32734 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32735 mac_get_window_bounds.
32736
32737 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32738
32739 * Makefile.in (LIBGPM): Allow it to be set from configure.
32740 If set then link Emacs with it.
32741
32742 * config.in: Regenerate.
32743
32744 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32745 New externs.
32746
32747 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32748 Include gpm.h.
32749 (handle_one_term_event, term_gpm): New externs.
32750
32751 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32752 and allow it to be interrupted by SIGIO.
32753
32754 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32755 (wait_reading_process_output): Wait on gpm_fd too.
32756 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32757 (add_gpm_wait_descriptor_called_flag): New variable.
32758 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32759
32760 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32761 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32762 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32763 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32764 (make_lispy_event): Add case GPM_CLICK_EVENT.
32765 (read_avail_input): Handle mouse input.
32766
32767 * term.c (write_glyphs_with_face): New function.
32768 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32769 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32770 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32771 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32772 (last_mouse_x, last_mouse_y): New variables.
32773 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32774 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32775 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32776 (Fterm_close_connection): New functions.
32777 (term_init): Initialise mouse_face_window.
32778
32779 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32780
32781 * xdisp.c (redisplay_window): If first window line is a
32782 continuation line, recompute the new window start instead of
32783 recentering.
32784
32785 2007-05-18 Glenn Morris <rgm@gnu.org>
32786
32787 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32788 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32789
32790 2007-05-17 Glenn Morris <rgm@gnu.org>
32791
32792 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32793
32794 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32795
32796 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32797 dead key repeat and up events.
32798
32799 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32800
32801 * image.c (pbm_load): Check image size for monochrome pbm.
32802
32803 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32804
32805 * xterm.c (XTread_socket): Revert last change.
32806
32807 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32808
32809 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32810
32811 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32812
32813 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32814
32815 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32816 mixup (YAILOM).
32817
32818 2007-05-07 Andreas Schwab <schwab@suse.de>
32819
32820 * keymap.c (Flookup_key): Fix typo in last change.
32821
32822 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32823
32824 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32825 mapping for unibyte strings.
32826
32827 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32828
32829 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32830 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32831
32832 2007-04-29 Richard Stallman <rms@gnu.org>
32833
32834 * insdel.c (replace_range): For undo, record insertion first.
32835
32836 2007-04-29 Andreas Schwab <schwab@suse.de>
32837
32838 * lisp.h (VECSIZE): Use OFFSETOF.
32839
32840 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32841
32842 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32843 disabled lines.
32844
32845 2007-04-28 Richard Stallman <rms@gnu.org>
32846
32847 * lread.c (read_escape): In a string, \s is always space.
32848
32849 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32850
32851 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32852
32853 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32854 submenu for menu bar items.
32855
32856 See ChangeLog.10 for earlier changes.
32857
32858 ;; Local Variables:
32859 ;; coding: utf-8
32860 ;; End:
32861
32862 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32863
32864 This file is part of GNU Emacs.
32865
32866 GNU Emacs is free software: you can redistribute it and/or modify
32867 it under the terms of the GNU General Public License as published by
32868 the Free Software Foundation, either version 3 of the License, or
32869 (at your option) any later version.
32870
32871 GNU Emacs is distributed in the hope that it will be useful,
32872 but WITHOUT ANY WARRANTY; without even the implied warranty of
32873 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32874 GNU General Public License for more details.
32875
32876 You should have received a copy of the GNU General Public License
32877 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.