* coding.c: Remove vars that are set but not used.
[bpt/emacs.git] / src / ChangeLog
1 2011-04-01 Paul Eggert <eggert@cs.ucla.edu>
2
3 * coding.c: Remove vars that are set but not used.
4 (DECODE_COMPOSITION_RULE): Remove 2nd arg, which is unused.
5 All callers changed.
6 (decode_coding_utf_8, decode_coding_utf_16 decode_coding_emacs_mule):
7 (decode_coding_iso_2022, encode_coding_sjis, encode_coding_big5):
8 (decode_coding_charset): Remove vars that are set but not used.
9
10 * bytecode.c (Fbyte_code) [!defined BYTE_CODE_SAFE]: Remove var
11 that is set but not used.
12
13 * print.c (print_object): Remove var that is set but not used.
14
15 Replace 2 copies of readlink code with 1 gnulib version (Bug#8401).
16 The gnulib version avoids calling malloc in the usual case,
17 and on 64-bit hosts doesn't have some arbitrary 32-bit limits.
18 * fileio.c (Ffile_symlink_p): Use emacs_readlink.
19 * filelock.c (current_lock_owner): Likewise.
20 * lisp.h (READLINK_BUFSIZE, emacs_readlink): New function.
21 * sysdep.c: Include allocator.h, careadlinkat.h.
22 (emacs_no_realloc_allocator): New static constant.
23 (emacs_readlink): New function.
24 * deps.mk (sysdep.o): Depend on ../lib/allocator.h and on
25 ../lib/careadlinkat.h.
26
27 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
28
29 * xdisp.c (redisplay_internal): Fix prototype.
30
31 2011-03-31 Eli Zaretskii <eliz@gnu.org>
32
33 * xdisp.c (SCROLL_LIMIT): New macro.
34 (try_scrolling): Use it when setting scroll_limit. Limit
35 scrolling to 100 screen lines.
36 (redisplay_window): Even when falling back on "recentering",
37 position point in the window according to scroll-conservatively,
38 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
39
40 (try_scrolling): When point is above the window, allow searching
41 as far as scroll_max, or one screenful, to compute vertical
42 distance from PT to the scroll margin position. This prevents
43 try_scrolling from unnecessarily failing when
44 scroll-conservatively is set to a value slightly larger than the
45 window height. Clean up the case of PT below the margin at bottom
46 of window: scroll_max can no longer be INT_MAX. When aggressive
47 scrolling is in use, don't let point enter the opposite scroll
48 margin as result of the scroll.
49 (syms_of_xdisp) <scroll-conservatively>: Document the
50 threshold of 100 lines for never-recentering scrolling.
51
52 2011-03-31 Juanma Barranquero <lekktu@gmail.com>
53
54 * dispextern.h (move_it_by_lines):
55 * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
56 since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed.
57 (message_log_check_duplicate): Remove parameters `prev_bol' and
58 `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
59 (redisplay_internal): Remove parameter `preserve_echo_area',
60 unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed.
61
62 * indent.c (Fvertical_motion):
63 * window.c (window_scroll_pixel_based, Frecenter):
64 Don't pass `need_y_p' to `move_it_by_lines'.
65
66 2011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
67
68 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
69 steal a few bits to be more compact.
70 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
71 Remove unneeded casts.
72
73 * bytecode.c (Fbyte_code): CAR and CDR can GC.
74
75 2011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
76
77 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
78 binding" message (bug#7967).
79
80 2011-03-30 Paul Eggert <eggert@cs.ucla.edu>
81
82 Fix more problems found by GCC 4.6.0's static checks.
83
84 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
85 Remove unused local var.
86
87 * editfns.c (Fmessage_box): Remove unused local var.
88
89 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
90 (note_mode_line_or_margin_highlight, note_mouse_highlight):
91 Omit unused local vars.
92 * window.c (shrink_windows): Omit unused local var.
93 * menu.c (digest_single_submenu): Omit unused local var.
94 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
95 Omit unused local var.
96
97 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
98 Don't assume string length fits in int.
99 (keyremap_step, read_key_sequence): Use size_t for sizes.
100 (read_key_sequence): Don't check last_real_key_start redundantly.
101
102 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
103 instead of alloca (Bug#8344).
104
105 * eval.c (Fbacktrace): Don't assume nargs fits in int.
106 (Fbacktrace_frame): Don't assume nframes fits in int.
107
108 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
109
110 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
111 concerns.
112
113 * term.c (produce_glyphless_glyph): Remove unnecessary test.
114
115 * cm.c (calccost): Turn while-do into do-while, for clarity.
116
117 * keyboard.c (syms_of_keyboard): Use the same style as later
118 in this function when indexing through an array. This also
119 works around GCC bug 48267.
120
121 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
122
123 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
124
125 * chartab.c (sub_char_table_ref_and_range): Redo for slight
126 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
127
128 * keyboard.c, keyboard.h (num_input_events): Now size_t.
129 This avoids undefined behavior on integer overflow, and is a bit
130 more convenient anyway since it is compared to a size_t variable.
131
132 Variadic C functions now count arguments with size_t, not int.
133 This avoids an unnecessary limitation on 64-bit machines, which
134 caused (substring ...) to crash on large vectors (Bug#8344).
135 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
136 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
137 All variadic functions and their callers changed accordingly.
138 (struct gcpro.nvars): Now size_t, not int. All uses changed.
139 * data.c (arith_driver, float_arith_driver): Likewise.
140 * editfns.c (general_insert_function): Likewise.
141 * eval.c (struct backtrace.nargs, interactive_p)
142 (internal_condition_case_n, run_hook_with_args, apply_lambda)
143 (funcall_lambda, mark_backtrace): Likewise.
144 * fns.c (concat): Likewise.
145 * frame.c (x_set_frame_parameters): Likewise.
146 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
147 0 if not found, not -1. All callers changed.
148
149 * alloc.c (garbage_collect): Don't assume stack size fits in int.
150 (stack_copy_size): Now size_t, not int.
151 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
152
153 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
154
155 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
156 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
157 All callers changed.
158
159 * lisp.h (multibyte_char_to_unibyte):
160 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
161 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
162 * character.h (CHAR_TO_BYTE8):
163 * cmds.c (internal_self_insert):
164 * editfns.c (general_insert_function):
165 * keymap.c (push_key_description):
166 * search.c (Freplace_match):
167 * xdisp.c (message_dolog, set_message_1): All callers changed.
168
169 2011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
170
171 * keyboard.c (safe_run_hook_funcall): New function.
172 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
173 don't set the hook to nil, but remove the offending function instead.
174 (Qcommand_hook_internal): Remove, unused.
175 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
176 Vcommand_hook_internal.
177
178 * eval.c (enum run_hooks_condition): Remove.
179 (funcall_nil, funcall_not): New functions.
180 (run_hook_with_args): Call each function through a `funcall' argument.
181 Remove `cond' argument, now redundant.
182 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
183 (Frun_hook_with_args_until_failure): Adjust accordingly.
184 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
185
186 2011-03-28 Juanma Barranquero <lekktu@gmail.com>
187
188 * dispextern.h (string_buffer_position): Remove declaration.
189
190 * print.c (strout): Remove parameter `multibyte', unused since
191 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
192
193 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
194 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
195 All callers changed.
196
197 * w32.c (_wsa_errlist): Use braces for struct initializers.
198
199 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
200 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
201 All callers changed.
202 (string_buffer_position): Likewise. Also, make static (it's never
203 used outside xdisp.c).
204 (cursor_row_p): Remove parameter `w', unused since
205 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
206 (decode_mode_spec): Remove parameter `precision', introduced during
207 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
208 All callers changed.
209
210 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
211
212 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
213
214 2011-03-27 Anders Lindgren <andlind@gmail.com>
215
216 * nsterm.m (ns_menu_bar_is_hidden): New variable.
217 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
218 (ns_update_auto_hide_menu_bar): New functions.
219 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
220 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
221 ns_constrain_all_frames.
222 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
223 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
224
225 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
226
227 * nsmenu.m (runDialogAt): Remove argument to timer_check.
228
229 2011-03-27 Glenn Morris <rgm@gnu.org>
230
231 * syssignal.h: Replace RETSIGTYPE with void.
232 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
233 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
234 Replace SIGTYPE with void everywhere.
235 * s/usg5-4-common.h (SIGTYPE): Remove definition.
236 * s/template.h (SIGTYPE): Remove commented out definition.
237
238 2011-03-26 Eli Zaretskii <eliz@gnu.org>
239
240 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
241 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
242
243 2011-03-26 Juanma Barranquero <lekktu@gmail.com>
244
245 * w32.c (read_unc_volume): Use parameter `henum', instead of
246 global variable `wget_enum_handle'.
247
248 * keymap.c (describe_vector): Remove parameters `indices' and
249 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
250 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
251
252 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
253
254 * keyboard.c (timer_check): Remove parameter `do_it_now',
255 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
256 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
257 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
258
259 * keyboard.c (read_char):
260 * w32menu.c (w32_menu_display_help):
261 * xmenu.c (show_help_event, menu_help_callback):
262 Adjust calls to `show_help_echo'.
263
264 * gtkutil.c (xg_maybe_add_timer):
265 * keyboard.c (readable_events):
266 * process.c (wait_reading_process_output):
267 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
268
269 * insdel.c (adjust_markers_gap_motion):
270 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
271 (gap_left, gap_right): Don't call it.
272
273 2011-03-25 Chong Yidong <cyd@stupidchicken.com>
274
275 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
276 incurred during fontification.
277
278 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
279
280 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
281 (DEFVAR_PER_BUFFER): Don't pass it.
282
283 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
284 (scrolling_window): Don't pass it.
285
286 2011-03-25 Juanma Barranquero <lekktu@gmail.com>
287
288 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
289
290 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
291 and `suffix'.
292 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
293 of variables specific to SELinux and computation of `encoded_absname'.
294
295 * image.c (XPutPixel): Remove unused variable `height'.
296
297 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
298
299 * unexw32.c (get_section_info): Remove unused variable `section'.
300
301 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
302 (system_process_attributes): Remove unused variable `sess'.
303 (sys_read): Remove unused variable `err'.
304
305 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
306 (w32_wnd_proc): Remove unused variable `isdead'.
307 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
308 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
309 (x_create_tip_frame): Remove unused variable `tem'.
310
311 * w32inevt.c (w32_console_read_socket):
312 Remove unused variable `no_events'.
313
314 * w32term.c (x_draw_composite_glyph_string_foreground):
315 Remove unused variable `width'.
316
317 2011-03-24 Juanma Barranquero <lekktu@gmail.com>
318
319 * w32term.c (x_set_glyph_string_clipping):
320 Don't pass uninitialized region to CombineRgn.
321
322 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
323
324 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
325 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
326 (Fx_close_connection): Remove unused variable `i'.
327
328 * w32font.c (w32font_draw): Return number of glyphs.
329 (w32font_open_internal): Remove unused variable `i'.
330 (w32font_driver): Add missing initializer.
331
332 * w32menu.c (utf8to16): Remove unused variable `utf16'.
333 (fill_in_menu): Remove unused variable `items_added'.
334
335 * w32term.c (last_mouse_press_frame): Remove static global variable.
336 (w32_clip_to_row): Remove unused variable `f'.
337 (x_delete_terminal): Remove unused variable `i'.
338
339 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
340 (NOTHING): Remove unused static global variable.
341 (uniscribe_check_otf): Remove unused variable `table'.
342 (uniscribe_font_driver): Add missing initializers.
343
344 2011-03-23 Julien Danjou <julien@danjou.info>
345
346 * term.c (Fsuspend_tty, Fresume_tty):
347 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
348 * window.c (temp_output_buffer_show):
349 * insdel.c (signal_before_change):
350 * frame.c (Fhandle_switch_frame):
351 * fileio.c (Fdo_auto_save):
352 * emacs.c (Fkill_emacs):
353 * editfns.c (save_excursion_restore):
354 * cmds.c (internal_self_insert):
355 * callint.c (Fcall_interactively):
356 * buffer.c (Fkill_all_local_variables):
357 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
358 Use Frun_hooks.
359 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
360 unconditionnaly since it does the check itself.
361
362 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
363
364 Fix more problems found by GCC 4.5.2's static checks.
365
366 * coding.c (encode_coding_raw_text): Avoid unnecessary test
367 the first time through the loop, since we know p0 < p1 then.
368 This also avoids a gcc -Wstrict-overflow warning.
369
370 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
371 leading to a memory leak, possible in functions like
372 load_charset_map_from_file that can allocate an unbounded number
373 of objects (Bug#8318).
374
375 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
376 that could (at least in theory) be that large.
377
378 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
379 This is less likely to overflow, and avoids undefined behavior if
380 overflow does occur. All callers changed. Use strtoul to scan
381 for the unsigned long integer.
382 (pint2hrstr): Simplify and tune code slightly.
383 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
384
385 * scroll.c (do_scrolling): Work around GCC bug 48228.
386 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
387
388 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
389 This also avoids a warning with gcc -Wstrict-overflow.
390 (validate_x_resource_name): Simplify count usage.
391 This also avoids a warning with gcc -Wstrict-overflow.
392
393 * fileio.c (Fcopy_file): Report error if fchown or fchmod
394 fail (Bug#8306).
395
396 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
397
398 * process.c (Fmake_network_process): Use socklen_t, not int,
399 where POSIX says socklen_t is required in portable programs.
400 This fixes a porting bug on hosts like 64-bit HP-UX, where
401 socklen_t is wider than int (Bug#8277).
402 (Fmake_network_process, server_accept_connection):
403 (wait_reading_process_output, read_process_output):
404 Likewise.
405
406 * process.c: Rename or move locals to avoid shadowing.
407 (list_processes_1, Fmake_network_process):
408 (read_process_output_error_handler, exec_sentinel_error_handler):
409 Rename or move locals.
410 (Fmake_network_process): Define label "retry_connect" only if needed.
411 (Fnetwork_interface_info): Fix pointer signedness.
412 (process_send_signal): Add cast to avoid pointer signedness problem.
413 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
414 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
415
416 Make tparam.h and terminfo.c consistent.
417 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
418 Include tparam.h instead, since it declares them.
419 * cm.h (PC): Remove extern decl; tparam.h now does this.
420 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
421 * terminfo.c: Include tparam.h, to check interfaces.
422 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
423 (tparam): Adjust signature to match interface in tparam.h;
424 this removes some undefined behavior. Check that outstring and len
425 are zero, which they always are with Emacs.
426 * tparam.h (PC, BC, UP): New extern decls.
427
428 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
429 (xftfont_open): Rename locals to avoid shadowing.
430
431 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
432 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
433 (OTF_TAG_SYM): Omit macro if not needed.
434 (ftfont_list): Remove unused local.
435 (get_adstyle_property, ftfont_pattern_entity):
436 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
437 Rename locals to avoid shadowing.
438
439 * xfont.c (xfont_list_family): Mark var as initialized.
440
441 * xml.c (make_dom): Now static.
442
443 * composite.c (composition_compute_stop_pos): Rename local to
444 avoid shadowing.
445 (composition_reseat_it): Remove unused locals.
446 (find_automatic_composition, composition_adjust_point): Likewise.
447 (composition_update_it): Mark var as initialized.
448 (find_automatic_composition): Mark vars as initialized,
449 with a FIXME (Bug#8290).
450
451 character.h: Rename locals to avoid shadowing.
452 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
453 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
454 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
455 (BUF_DEC_POS): Be more systematic about renaming local temporaries
456 to avoid shadowing.
457
458 * textprop.c (property_change_between_p): Remove; unused.
459
460 * intervals.c (interval_start_pos): Now static.
461
462 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
463
464 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
465 Rename locals to avoid shadowing.
466
467 * sound.c (wav_play, au_play, Fplay_sound_internal):
468 Fix pointer signedness.
469 (alsa_choose_format): Remove unused local var.
470 (wav_play): Initialize a variable to 0, to prevent undefined
471 behavior (Bug#8278).
472
473 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
474
475 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
476
477 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
478 clobbering (Bug#8298).
479 * sysdep.c (sys_subshell): Likewise.
480 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
481
482 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
483 This should get cleaned up, so that child_setup has the
484 same signature on all platforms.
485
486 * callproc.c (call_process_cleanup): Now static.
487 (relocate_fd): Rename locals to avoid shadowing.
488
489 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
490
491 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
492 not to be necessary, and produces flickering.
493
494 2011-03-20 Glenn Morris <rgm@gnu.org>
495
496 * config.in: Remove file.
497
498 2011-03-20 Juanma Barranquero <lekktu@gmail.com>
499
500 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
501 are now in src/globals.h.
502 (syms_of_minibuf): Remove spurious & from previous change.
503
504 2011-03-20 Leo <sdl.web@gmail.com>
505
506 * minibuf.c (completing-read-function): New variable.
507 (completing-read-default): Rename from completing-read.
508 (completing-read): Call completing-read-function.
509
510 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
511
512 * xfaces.c (Fx_load_color_file):
513 Read color file from absolute filename (bug#8250).
514
515 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
516
517 * makefile.w32-in: Update dependencies.
518
519 2011-03-17 Eli Zaretskii <eliz@gnu.org>
520
521 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
522
523 2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
524
525 Fix more problems found by GCC 4.5.2's static checks.
526
527 * process.c (make_serial_process_unwind, send_process_trap):
528 (sigchld_handler): Now static.
529
530 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
531 That way, the code declares only the vars that it needs.
532 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
533 * s/cygwin.h (PTY_ITERATION): Likewise.
534 * s/darwin.h (PTY_ITERATION): Likewise.
535 * s/gnu-linux.h (PTY_ITERATION): Likewise.
536
537 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
538 * process.c (allocate_pty): Don't declare stb unless it's needed.
539
540 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
541 (CONSTANTLIM): Remove; unused.
542 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
543 Define only if needed.
544
545 * unexelf.c (unexec): Name an expression,
546 to avoid gcc -Wbad-function-cast warning.
547 Use a different way to cause a compilation error if anyone uses
548 n rather than nn, a way that does not involve shadowing.
549 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
550
551 * deps.mk (unexalpha.o): Remove; unused.
552
553 New file unexec.h, the (simple) interface for unexec (Bug#8267).
554 * unexec.h: New file.
555 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
556 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
557 Depend on unexec.h.
558 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
559 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
560 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
561 Change as necessary to match prototype in unexec.h.
562
563 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
564 shadowing.
565 (back_comment, skip_chars): Mark vars as initialized.
566
567 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
568 Rename locals to avoid shadowing.
569
570 * lread.c (read1): Rewrite so as not to use empty "else".
571 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
572
573 * print.c (Fredirect_debugging_output): Fix pointer signedess.
574
575 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
576 warning when compiling print.c.
577
578 * font.c (font_unparse_fcname): Abort in an "impossible" situation
579 instead of using an uninitialized var.
580 (font_sort_entities): Mark var as initialized.
581
582 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
583
584 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
585 pointers to constants.
586 (font_parse_fcname): Remove unused vars.
587 (font_delete_unmatched): Now static.
588 (font_get_spec): Remove; unused.
589 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
590 (font_update_drivers, Ffont_get_glyphs, font_add_log):
591 Rename or move locals to avoid shadowing.
592
593 * fns.c (require_nesting_list, require_unwind): Now static.
594 (Ffillarray): Rename locals to avoid shadowing.
595
596 * floatfns.c (domain_error2): Define only if needed.
597 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
598
599 * alloc.c (mark_backtrace): Move decl from here ...
600 * lisp.h: ... to here, so that it can be checked.
601
602 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
603 (Fdefvar): Rewrite so as not to use empty "else".
604 (lisp_indirect_variable): Name an expression,
605 to avoid gcc -Wbad-function-cast warning.
606 (Fdefvar): Rename locals to avoid shadowing.
607
608 * callint.c (quotify_arg, quotify_args): Now static.
609 (Fcall_interactively): Rename locals to avoid shadowing.
610 Use const pointer when appropriate.
611
612 * lisp.h (get_system_name, get_operating_system_release):
613 Move decls here, to check interfaces.
614 * process.c (get_operating_system_release): Move decl to lisp.h.
615 * xrdb.c (get_system_name): Likewise.
616 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
617 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
618 some of which prompt warnings from gcc -Wbad-function-cast.
619 (Fformat_time_string, Fencode_time, Finsert_char):
620 (Ftranslate_region_internal, Fformat):
621 Rename or remove local vars to avoid shadowing.
622 (Ftranslate_region_internal): Mark var as initialized.
623
624 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
625 avoid shadowing.
626
627 * lisp.h (eassert): Check that the argument compiles, even if
628 ENABLE_CHECKING is not defined.
629
630 * data.c (Findirect_variable): Name an expression, to avoid
631 gcc -Wbad-function-cast warning.
632 (default_value, arithcompare, arith_driver, arith_error): Now static.
633 (store_symval_forwarding): Rename local to avoid shadowing.
634 (Fmake_variable_buffer_local, Fmake_local_variable):
635 Mark variables as initialized.
636 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
637
638 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
639 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
640 Rename locals to avoid shadowing.
641 (mark_stack): Move local variables into the #ifdef region where
642 they're used.
643 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
644 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
645 needed otherwise.
646 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
647 (GC_STRING_CHARS): Remove; not used.
648 (Fmemory_limit): Cast sbrk's returned value to char *.
649
650 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
651 avoids undefined behavior in theory.
652
653 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
654
655 Use functions, not macros, for up- and down-casing (Bug#8254).
656 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
657 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
658 to use the following functions instead of these macros.
659 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
660 EMACS_INT, since callers assume the returned value fits in int.
661 (upcase1): Likewise, for UPCASE_TABLE.
662 (uppercasep, lowercasep, upcase): New static inline functions.
663 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
664 the race-condition problem in the old DOWNCASE.
665
666 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
667 Rename locals to avoid shadowing.
668 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
669 (regex_compile, re_search_2, re_match_2_internal):
670 Remove unused local vars.
671 (FREE_VAR): Rewrite so as not to use empty "else",
672 which gcc can warn about.
673 (regex_compile, re_match_2_internal): Mark locals as initialized.
674 (RETALLOC_IF): Define only if needed.
675 (WORDCHAR_P): Likewise. This one is never needed, but is used
676 only in a comment talking about a compiler bug, so put inside
677 the #if 0 of that comment.
678 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
679 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
680 Remove; unused.
681
682 * search.c (boyer_moore): Rename locals to avoid shadowing.
683 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
684 (PREV_CHAR_BOUNDARY): Likewise.
685
686 * search.c (simple_search): Remove unused var.
687
688 * dired.c (compile_pattern): Move decl from here ...
689 * lisp.h: ... to here, so that it can be checked.
690 (struct re_registers): New forward decl.
691
692 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
693
694 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
695 All uses changed.
696 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
697 Rename locals to avoid shadowing.
698 (Fvertical_motion): Mark locals as initialized.
699
700 * casefiddle.c (casify_object, casify_region): Now static.
701 (casify_region): Mark local as initialized.
702
703 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
704
705 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
706 New macros, so that the caller can use some names other than
707 gcpro1, gcpro2, etc.
708 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
709 of the new macros.
710 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
711 argument, for consistency with GCPRO2_VAR, etc: it is now the
712 prefix of the variable, not the variable itself. All uses
713 changed.
714 * dired.c (directory_files_internal, file_name_completion):
715 Rename locals to avoid shadowing.
716
717 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
718 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
719 dired.c's scmp function, had undefined behavior.
720 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
721 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
722 * buffer.h: ... to here, because these macros use current_buffer,
723 and the new implementation with inline functions needs to have
724 current_buffer in scope now, rather than later when the macros
725 are used.
726 (downcase, upcase1): New static inline functions.
727 (DOWNCASE, UPCASE1): Reimplement using these functions.
728 This avoids undefined behavior in expressions like
729 DOWNCASE (x) == DOWNCASE (y), which previously suffered
730 from race conditions in accessing the global variables
731 case_temp1 and case_temp2.
732 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
733 * lisp.h (case_temp1, case_temp2): Remove their decls.
734 * character.h (ASCII_CHAR_P): Move from here ...
735 * lisp.h: ... to here, so that the inline functions mentioned
736 above can use them.
737
738 * dired.c (directory_files_internal_unwind): Now static.
739
740 * fileio.c (file_name_as_directory, directory_file_name):
741 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
742 Now static.
743 (file_name_as_directory): Use const pointers when appropriate.
744 (Fexpand_file_name): Likewise. In particular, newdir might
745 point at constant storage, so make it a const pointer.
746 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
747 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
748 signedness issues.
749 (Fset_file_times, Finsert_file_contents, auto_save_error):
750 Rename locals to avoid shadowing.
751
752 * minibuf.c (choose_minibuf_frame_1): Now static.
753 (Ftry_completion, Fall_completions): Rename or remove locals
754 to avoid shadowing.
755
756 * marker.c (bytepos_to_charpos): Remove; unused.
757
758 * lisp.h (verify_bytepos, count_markers): New decls,
759 so that gcc does not warn that these functions aren't declared.
760
761 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
762 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
763 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
764 (copy_text): Remove unused local var.
765
766 * filelock.c (within_one_second): Now static.
767 (lock_file_1): Rename local to avoid shadowing.
768
769 * buffer.c (fix_overlays_before): Mark locals as initialized.
770 (fix_start_end_in_overlays): Likewise. This function should be
771 simplified by using pointers-to-pointers, but that's a different
772 matter.
773 (switch_to_buffer_1): Now static.
774 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
775 (report_overlay_modification): Rename locals to avoid shadowing.
776
777 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
778 Fix pointer signedness issue.
779 (sys_subshell): Mark local as volatile if checking for lint,
780 to suppress a gcc -Wclobbered warning that does not seem to be right.
781 (MAXPATHLEN): Define only if needed.
782
783 * process.c (serial_open, serial_configure): Move decls from here ...
784 * systty.h: ... to here, so that they can be checked.
785
786 * fns.c (get_random, seed_random): Move extern decls from here ...
787 * lisp.h: ... to here, so that they can be checked.
788
789 * sysdep.c (reset_io): Now static.
790 (wait_for_termination_signal): Remove; unused.
791
792 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
793 (copy_keymap_item, append_key, push_text_char_description):
794 Now static.
795 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
796 (DENSE_TABLE_SIZE): Remove; unused.
797 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
798 (describe_map_tree):
799 Rename locals to avoid shadowing.
800
801 * keyboard.c: Declare functions static if they are not used elsewhere.
802 (echo_char, echo_dash, cmd_error, top_level_2):
803 (poll_for_input, handle_async_input): Now static.
804 (read_char, kbd_buffer_get_event, make_lispy_position):
805 (make_lispy_event, make_lispy_movement, apply_modifiers):
806 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
807 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
808 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
809 (read_key_sequence, read_char): Mark locals as initialized.
810 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
811
812 * keyboard.h (make_ctrl_char): New decl.
813 (mark_kboards): Move decl here ...
814 * alloc.c (mark_kboards): ... from here.
815
816 * lisp.h (force_auto_save_soon): New decl.
817
818 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
819 (DEFINE_DUMMY_FUNCTION): New macro.
820 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
821 Use it.
822 (main): Add casts to avoid warnings
823 if GCC considers string literals to be constants.
824
825 * lisp.h (fatal_error_signal): Add decl, since it's exported.
826
827 * dbusbind.c: Pointer signedness fixes.
828 (xd_signature, xd_append_arg, xd_initialize):
829 (Fdbus_call_method, Fdbus_call_method_asynchronously):
830 (Fdbus_method_return_internal, Fdbus_method_error_internal):
831 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
832 (Fdbus_register_signal): Use SSDATA when the context wants char *.
833
834 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
835 if GCC considers string literals to be constants.
836 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
837
838 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
839
840 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
841 (print_preprocess, print_object): New macro to fix last change.
842
843 * print.c (print_preprocess): Don't forget font objects.
844
845 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
846
847 * emacs.c (USAGE3): Doc fixes.
848
849 2011-03-15 Andreas Schwab <schwab@linux-m68k.org>
850
851 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
852 structure.
853
854 2011-03-14 Juanma Barranquero <lekktu@gmail.com>
855
856 * lisp.h (VWindow_system, Qfile_name_history):
857 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
858 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
859 (w32_system_caret_x, w32_system_caret_y): Declare extern.
860
861 * w32select.c: Don't #include "keyboard.h".
862 (run_protected): Add extern declaration for waiting_for_input.
863
864 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
865 * w32console.c (detect_input_pending, read_input_pending)
866 (encode_terminal_code):
867 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
868 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
869 (w32_system_caret_y, Qfile_name_history):
870 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
871 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
872 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
873 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
874 * w32proc.c (Qlocal, report_file_error):
875 * w32term.c (Vwindow_system, updating_frame):
876 * w32uniscribe.c (initialized, uniscribe_font_driver):
877 Remove unneeded extern declarations.
878
879 2011-03-14 Chong Yidong <cyd@stupidchicken.com>
880
881 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
882
883 2011-03-13 Chong Yidong <cyd@stupidchicken.com>
884
885 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
886 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
887 These macros can no longer be used for assignment.
888
889 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
890 Assign struct members directly, instead of using BUF_BEGV etc.
891 (record_buffer_markers, fetch_buffer_markers): New functions for
892 recording and fetching special buffer markers.
893 (set_buffer_internal_1, set_buffer_temp): Use them.
894
895 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
896
897 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
898
899 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
900 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
901
902 * xdisp.c (hscroll_window_tree):
903 (reconsider_clip_changes): Use PT instead of BUF_PT.
904
905 2011-03-13 Eli Zaretskii <eliz@gnu.org>
906
907 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
908 $(EMACS_ROOT)/lib/intprops.h.
909
910 2011-03-13 Paul Eggert <eggert@cs.ucla.edu>
911
912 Fix more problems found by GCC 4.5.2's static checks.
913
914 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
915 to unsigned char * to avoid compiler diagnostic.
916 (xg_free_frame_widgets): Make it clear that a local variable is
917 needed only if USE_GTK_TOOLTIP.
918 (gdk_window_get_screen): Make it clear that this macro is needed
919 only if USE_GTK_TOOLTIP.
920 (int_gtk_range_get_value): New function, which avoids a diagnostic
921 from gcc -Wbad-function-cast.
922 (xg_set_toolkit_scroll_bar_thumb): Use it.
923 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
924 diagnostic from gcc -Wbad-function-cast.
925 (get_utf8_string, xg_get_file_with_chooser):
926 Rename locals to avoid shadowing.
927 (create_dialog): Move locals to avoid shadowing.
928
929 * xgselect.c (xg_select): Remove unused var.
930
931 * image.c (four_corners_best): Mark locals as initialized.
932 (gif_load): Initialize transparent_p to zero (Bug#8238).
933 Mark another local as initialized.
934 (my_png_error, my_error_exit): Mark with NO_RETURN.
935
936 * image.c (clear_image_cache): Now static.
937 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
938 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
939 (x_edge_detection): Remove unnecessary cast that
940 gcc -Wbad-function-cast diagnoses.
941 (gif_load): Fix pointer signedness.
942 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
943 (jpeg_load, gif_load): Rename locals to avoid shadowing.
944
945 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
946
947 Improve quality of tests for time stamp overflow.
948 For example, without this patch (encode-time 0 0 0 1 1
949 1152921504606846976) returns the obviously-bogus value (-948597
950 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
951 reports time overflow. See
952 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
953 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
954 * editfns.c: Include limits.h and intprops.h.
955 (TIME_T_MIN, TIME_T_MAX): New macros.
956 (time_overflow): Move earlier, to before first use.
957 (hi_time, lo_time): New functions, for an accurate test for
958 out-of-range times.
959 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
960 (Fget_internal_run_time): Don't assume time_t fits in int.
961 (make_time): Use list2 instead of Fcons twice.
962 (Fdecode_time): More accurate test for out-of-range times.
963 (check_tm_member): New function.
964 (Fencode_time): Use it, to test for out-of-range times.
965 (lisp_time_argument): Don't rely on undefined left-shift and
966 right-shift behavior when checking for time stamp overflow.
967
968 * editfns.c (time_overflow): New function, refactoring common code.
969 (Fformat_time_string, Fdecode_time, Fencode_time):
970 (Fcurrent_time_string): Use it.
971
972 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
973 * dired.c (make_time): Move to ...
974 * editfns.c (make_time): ... here.
975 * systime.h: Note the move.
976
977 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
978
979 * fringe.c (update_window_fringes): Remove unused variables.
980
981 * unexmacosx.c (copy_data_segment): Also copy __got section.
982 (Bug#8223)
983
984 2011-03-12 Eli Zaretskii <eliz@gnu.org>
985
986 * termcap.c [MSDOS]: Include "msdos.h".
987 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
988 Constify `char *' arguments and their references according to
989 prototypes in tparam.h.
990
991 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
992
993 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
994 Adapt all references accordingly.
995
996 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
997
998 2011-03-11 Tom Tromey <tromey@redhat.com>
999
1000 * buffer.c (syms_of_buffer): Remove obsolete comment.
1001
1002 2011-03-11 Eli Zaretskii <eliz@gnu.org>
1003
1004 * termhooks.h (encode_terminal_code): Declare prototype.
1005
1006 * msdos.c (encode_terminal_code): Don't declare prototype.
1007
1008 * term.c (encode_terminal_code): Now external again, used by
1009 w32console.c and msdos.c.
1010
1011 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
1012 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
1013
1014 2011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1015
1016 Fix some minor problems found by GCC 4.5.2's static checks.
1017
1018 * fringe.c (update_window_fringes): Mark locals as initialized
1019 (Bug#8227).
1020 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
1021
1022 * alloc.c (mark_fringe_data): Move decl from here ...
1023 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
1024 to check its interface.
1025 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
1026
1027 * fontset.c (free_realized_fontset): Now static.
1028 (Fset_fontset_font): Rename local to avoid shadowing.
1029 (fontset_font): Mark local as initialized.
1030 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
1031
1032 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
1033
1034 * xselect.c (x_disown_buffer_selections): Remove; not used.
1035 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
1036 (x_own_selection, Fx_disown_selection_internal): Rename locals
1037 to avoid shadowing.
1038 (x_handle_dnd_message): Remove local to avoid shadowing.
1039
1040 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
1041 so that the caller can use some name other than gcpro1.
1042 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
1043 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1044 (Fx_backspace_delete_keys_p):
1045 Use them to avoid shadowing, and rename vars to avoid shadowing.
1046 (x_decode_color, x_set_name, x_window): Now static.
1047 (Fx_create_frame): Add braces to silence GCC warning.
1048 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
1049 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
1050 Remove unused locals.
1051 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1052 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
1053 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
1054 macros.
1055
1056 * xterm.h (x_mouse_leave): New decl.
1057
1058 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
1059 Remove unused functions.
1060 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
1061 (x_calc_absolute_position): Now static.
1062 (XTread_socket): Don't define label "out" unless it's used.
1063 Don't declare local "event" unless it's used.
1064 (x_iconify_frame, x_free_frame_resources): Don't declare locals
1065 unless they are used.
1066 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
1067 (x_fatal_error_signal): Remove; not used.
1068 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
1069 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
1070 (x_error_catcher, x_connection_closed, x_error_handler):
1071 (x_error_quitter, xembed_send_message, x_iconify_frame):
1072 (my_log_handler): Rename locals to avoid shadowing.
1073 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
1074 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
1075
1076 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
1077 Rename or move locals to avoid shadowing.
1078 (tty_defined_color, merge_face_heights): Now static.
1079 (free_realized_faces_for_fontset): Remove; not used.
1080 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
1081 does not deduce is never used uninitialized.
1082 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
1083 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
1084
1085 * terminal.c (store_terminal_param): Now static.
1086
1087 * xmenu.c (menu_highlight_callback): Now static.
1088 (set_frame_menubar): Remove unused local.
1089 (xmenu_show): Rename parameter to avoid shadowing.
1090 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1091 since they might point to immutable storage.
1092 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1093 since it's unused otherwise.
1094
1095 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
1096 Add a FIXME, since the code still doesn't look right. (Bug#8215)
1097 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1098 avoids a gcc -Wuninitialized diagnostic.
1099 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
1100 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1101 does not deduce are never used uninitialized.
1102
1103 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1104
1105 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
1106 * window.c (window_loop, size_window):
1107 (run_window_configuration_change_hook, enlarge_window): Likewise.
1108
1109 * window.c (display_buffer): Now static.
1110 (size_window): Mark variables that gcc -Wuninitialized
1111 does not deduce are never used uninitialized.
1112 * window.h (check_all_windows): New decl, to forestall
1113 gcc -Wmissing-prototypes diagnostic.
1114 * dispextern.h (bidi_dump_cached_states): Likewise.
1115
1116 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1117 shadowing.
1118 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
1119 Include <limits.h>.
1120 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1121 and to avoid gcc -Wuninitialized warning.
1122 (load_charset_map): Mark variables that gcc -Wuninitialized
1123 does not deduce are never used uninitialized.
1124 (load_charset): Abort instead of using uninitialized var (Bug#8229).
1125
1126 * coding.c (coding_set_source, coding_set_destination):
1127 Use "else { /* comment */ }" rather than "else /* comment */;"
1128 for clarity, and to avoid gcc -Wempty-body warning.
1129 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1130 a block, when the outer 'i' will do.
1131 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1132 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1133 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1134 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1135 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1136 Rename locals to avoid shadowing.
1137 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
1138 * coding.c (emacs_mule_char, encode_invocation_designation):
1139 Now static, since they're not used elsewhere.
1140 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
1141 (decode_coding_object, encode_coding_object, detect_coding_system):
1142 (decode_coding_emacs_mule): Mark variables that gcc
1143 -Wuninitialized does not deduce are never used uninitialized.
1144 (detect_coding_iso_2022): Initialize a local variable that might
1145 be used uninitialized. Leave a FIXME because it's not clear that
1146 this initialization is needed. (Bug#8211)
1147 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1148 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1149 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1150 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1151 Remove unused macros.
1152
1153 * category.c (hash_get_category_set): Remove unused local var.
1154 (copy_category_table): Now static, since it's not used elsewhere.
1155 * character.c (string_count_byte8): Likewise.
1156
1157 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1158 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1159
1160 * chartab.c (copy_sub_char_table): Now static, since it's not used
1161 elsewhere.
1162 (sub_char_table_ref_and_range, char_table_ref_and_range):
1163 Rename locals to avoid shadowing.
1164 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
1165
1166 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
1167 (BIDI_BOB): Remove unused macro.
1168
1169 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1170 deduce are never used uninitialized.
1171 * term.c (encode_terminal_code): Likewise.
1172
1173 * term.c (encode_terminal_code): Now static. Remove unused local.
1174
1175 * tparam.h: New file.
1176 * term.c, tparam.h: Include it.
1177 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1178 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1179 Move these decls to tparam.h, and make them agree with what
1180 is actually in tparam.c. The previous trick of using incompatible
1181 decls in different modules does not conform to the C standard.
1182 All callers of tparam changed to use tparam's actual API.
1183 * tparam.c (tparam1, tparam, tgoto):
1184 Use const pointers where appropriate.
1185
1186 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1187 * cm.h (struct cm): Likewise.
1188 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1189 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1190 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1191 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1192 (turn_on_face, init_tty): Likewise.
1193 * termchar.h (struct tty_display_info): Likewise.
1194
1195 * term.c (term_mouse_position): Rename local to avoid shadowing.
1196
1197 * alloc.c (mark_ttys): Move decl from here ...
1198 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1199
1200 2011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1201
1202 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1203
1204 2011-03-09 Juanma Barranquero <lekktu@gmail.com>
1205
1206 * search.c (compile_pattern_1): Remove argument regp, unused since
1207 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1208 (compile_pattern): Don't pass it.
1209
1210 2011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1211
1212 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1213 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1214 for ! HAVE_GTK3.
1215 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1216
1217 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1218
1219 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1220 gdk_window_get_screen, gdk_window_get_geometry,
1221 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1222 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1223 (xg_get_pixbuf_from_pixmap): New function.
1224 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1225 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1226 Call xg_get_pixbuf_from_pixmap instead of
1227 gdk_pixbuf_get_from_drawable.
1228 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1229 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1230 (xg_check_special_colors): Use GtkStyleContext and its functions
1231 for HAVE_GTK3.
1232 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1233 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1234 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1235 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
1236 Call gtk_widget_get_preferred_size.
1237 (xg_frame_resized): gdk_window_get_geometry only takes 5
1238 parameters.
1239 (xg_win_to_widget, xg_event_is_for_menubar):
1240 Call gdk_x11_window_lookup_for_display.
1241 (xg_set_widget_bg): New function.
1242 (delete_cb): New function.
1243 (xg_create_frame_widgets): connect delete-event to delete_cb.
1244 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1245 (xg_set_background_color): Call xg_set_widget_bg.
1246 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1247 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1248 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1249 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1250 if ! HAVE_GTK3.
1251 (update_frame_tool_bar): Call gtk_widget_hide.
1252 (xg_initialize): Use GDK_KEY_g.
1253
1254 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1255 if ! HAVE_GTK3
1256 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1257
1258 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1259 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1260 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1261
1262 2011-03-08 Juanma Barranquero <lekktu@gmail.com>
1263
1264 * w32xfns.c (select_palette): Check success of RealizePalette against
1265 GDI_ERROR, not zero.
1266
1267 2011-03-07 Ben Key <bkey76@gmail.com>
1268
1269 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1270 (file_dialog_callback): Fix locating the window handle of the File Name
1271 text field. After disabling it, set focus on the list control.
1272 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1273 Name text field to "Current Directory" if it does not already have
1274 another value. (Bug#8181)
1275
1276 2011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1277
1278 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1279 parameter for hbar cursors. Based on a patch by Ben Key
1280 <bkey76@gmail.com>.
1281
1282 2011-03-06 Chong Yidong <cyd@stupidchicken.com>
1283
1284 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1285 change.
1286
1287 2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1288
1289 current_column: Now returns EMACS_INT, fixing some iftc
1290 that was introduced in the 2002-06-02 change "temporarily"; see
1291 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
1292 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1293 * cmds.c (internal_self_insert): Likewise.
1294 * indent.c (Fcurrent_column): Likewise.
1295 * keymap.c (describe_command): Likewise.
1296 * minibuf.c (read_minibuf): Likewise.
1297 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1298 to int.
1299 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1300 Likewise.
1301 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1302 not int or double, if they might contain a column number.
1303 * indent.c (current_column, Findent_to, indented_beyond_p):
1304 (compute_motion, vmotion): Likewise.
1305 * keymap.c (describe_command): Likewise.
1306 * xdisp.c (pint2str): Likewise.
1307 * indent.c (last_known_column): Now EMACS_INT, not int.
1308 * minibuf.c (minibuf_prompt_width): Likewise.
1309 * indent.c (current_column, current_column_1, position_indentation):
1310 Return EMACS_INT, not double.
1311 * lisp.h (current_column): Likewise.
1312 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1313 All callers changed.
1314 * lisp.h (indented_beyond_p): Likewise.
1315
1316 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1317 from xdisp.c, and make static, since these are used only here.
1318 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1319 Remove decls.
1320
1321 * cmds.c (internal_self_insert): Reindent to match Emacs style.
1322 * xdisp.c (redisplay_window): Likewise.
1323
1324 * xdisp.c: Rename or move local decls to avoid shadowing.
1325 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1326 (message_dolog, message_with_string, redisplay_internal):
1327 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1328 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1329 (display_line, display_string, rows_from_pos_range):
1330 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1331 Rename or move local decls.
1332 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
1333 (produce_glyphless_glyph): Make a pointer "const"
1334 since it might point to immutable storage.
1335 (update_window_cursor): Now static, since it's not used elsewhere.
1336 (SKIP_GLYPHS): Remove unused macro.
1337
1338 2011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1339
1340 * window.c (Fnext_window): Doc fix. (Bug#5567)
1341
1342 2011-03-05 Chong Yidong <cyd@stupidchicken.com>
1343
1344 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1345
1346 2011-03-02 Ken Brown <kbrown@cornell.edu>
1347
1348 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1349
1350 2011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1351
1352 Work around some portability problems with symlinks.
1353
1354 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1355 generate a special message for it. Suggested by Eli Zaretskii in
1356 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1357 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1358 Simplify the code by assuming that the readlink and symlink calls
1359 exist, even if they always fail on this host.
1360 (Ffile_readable_p): Likewise, for fifos.
1361 * config.in: Regenerate.
1362
1363 2011-02-27 Chong Yidong <cyd@stupidchicken.com>
1364
1365 * frame.c (store_frame_param): Don't store value directly in
1366 buffer_list and buried_buffer_list; copy the list and remove dead
1367 buffers (Bug#7898).
1368
1369 2011-02-27 Eli Zaretskii <eliz@gnu.org>
1370
1371 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1372
1373 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
1374
1375 * w32.c (symlink, readlink): New stub functions.
1376
1377 2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1378
1379 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1380 This avoids a gcc warning in some configurations.
1381
1382 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1383
1384 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1385 (set_menu_bar_lines, x_get_resource_string): New decls.
1386 * msdos.c (set_menu_bar_lines): Omit decl.
1387
1388 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1389 It's always given int values and used as an int. This suppresses
1390 a gcc "comparison of unsigned expression >= 0" warning in some
1391 configurations.
1392
1393 * dispnew.c: Rename locals to avoid shadowing.
1394 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1395
1396 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1397
1398 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1399 (copy_glyph_row_contents): Remove; not used.
1400 (frame_row_to_window, check_current_matrix_flags):
1401 (window_change_signal): Now static, since they're not used elsewhere.
1402 (check_current_matrix_flags): Surround with "#if 0", since its
1403 only use is in a comment. Maybe both the comment and the "#if 0"
1404 stuff should be removed?
1405
1406 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1407 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1408 contexts that actually need it.
1409
1410 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1411
1412 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1413 (lstat): Define for DJGPP < 2.04.
1414
1415 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1416
1417 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1418 as per recent filemodestring API change. Reported by Jonas Öster in
1419 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1420
1421 2011-02-23 Ben Key <bkey76@gmail.com>
1422
1423 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1424 directly, for bar cursors.
1425
1426 2011-02-23 Chong Yidong <cyd@stupidchicken.com>
1427
1428 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1429 into the frame's cursor_width.
1430
1431 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1432
1433 * print.c (print_object): Never print old-style backquotes.
1434 Obey escapeflag for hash tables as well.
1435
1436 2011-02-23 Kenichi Handa <handa@m17n.org>
1437
1438 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
1439 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
1440
1441 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1442
1443 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1444
1445 2011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1446
1447 * lread.c (openp): Correct Boolean typo in last commit.
1448
1449 2011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1450
1451 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
1452 key to Emacs, treat as unmodified (go to input manager processing).
1453
1454 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1455
1456 Assume S_ISLNK etc. work, since gnulib supports this.
1457 * config.in: Regenerate.
1458 * dired.c (lstat): Remove.
1459 (file_name_completion): Assume S_ISDIR works.
1460 (file_name_completion_stat): Assume S_ISLNK works.
1461 Do not bother calling stat unless lstat says it's a symlink.
1462 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1463 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1464 (check_writable, Ffile_writable_p, Fset_file_times):
1465 Assume S_ISDIR works.
1466 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1467 fifos exist.
1468 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
1469 * filelock.c (S_ISLNK): Remove.
1470 * lread.c (openp): Assume S_ISDIR works.
1471 * xrdb.c (S_ISDIR): Remove.
1472
1473 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1474
1475 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
1476 lib/makefile.w32-in.
1477 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1478 (GLOBAL_SOURCES): Remove filemode.c.
1479 (OBJ1): Remove $(BLD)/filemode.$(O).
1480
1481 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1482
1483 Import filemode module from gnulib.
1484 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1485 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1486 (filemode.o): Remove; this is now in ../lib.
1487 * dired.c: Include <filemode.h>.
1488 (filemodestring): Remove now-redundant decl.
1489 * config.in: Regenerate.
1490
1491 2011-02-20 Eli Zaretskii <eliz@gnu.org>
1492
1493 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1494 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1495
1496 2011-02-20 Christoph Scholtes <cschol2112@gmail.com>
1497
1498 * makefile.w32-in: Remove md5.$(O).
1499 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1500 lib/makefile.w32-in.
1501
1502 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
1503
1504 Import crypto/md5 and stdint modules from gnulib.
1505 * Makefile.in (base_obj): Remove md5.o, since this file
1506 is in lib now.
1507 * config.in: Regenerate.
1508 * md5.h, md5.h: Move to ../lib.
1509 * deps.mk (md5.o): Remove.
1510 (fns.o): Depend on ../lib/md5.h, not md5.h.
1511
1512 2011-02-19 Eli Zaretskii <eliz@gnu.org>
1513
1514 * termcap.c (tputs): Don't declare baud_rate.
1515
1516 * s/msdos.h (strtold): Define to _strtold.
1517
1518 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1519
1520 * process.c (Fstart_process, Fmake_serial_process)
1521 (Fmake_network_process, server_accept_connection):
1522 Use empty_unibyte_string.
1523
1524 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1525
1526 * lread.c (Qdir_ok): New constant.
1527 (syms_of_lread): Initialize it.
1528 (openp): Don't ignore directories if the predicate returns dir-ok.
1529
1530 2011-02-18 Eli Zaretskii <eliz@gnu.org>
1531
1532 * xdisp.c (display_line): Fix the change made for bug#7939.
1533
1534 * terminal.c (create_terminal): Use default-keyboard-coding-system
1535 and default-terminal-coding-system to initialize coding systems of
1536 the new terminal. (Bug#7840)
1537
1538 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1539
1540 * lisp.h (BYTE_MARK_STACK): New macro.
1541 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1542
1543 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1544 (struct byte_stack): Only define `top' and `bottom' if used.
1545 (mark_byte_stack): Only define if used.
1546 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1547 is not set.
1548 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1549
1550 * term.c (OUTPUT_IF): Use OUTPUT.
1551
1552 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1553 redundantly scan byte-code stacks, catchlist, and handlerlist.
1554
1555 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1556
1557 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1558 (Fns_read_file_name): Replace B_ with BVAR.
1559
1560 * nsterm.m (ns_term_init): Use KVAR.
1561
1562 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1563
1564 * msdos.c (internal_terminal_init): Use KVAR.
1565
1566 * w32fns.c (Fx_create_frame): Use KVAR.
1567
1568 * w32term.c (w32_create_terminal): Use KVAR.
1569
1570 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
1571 (getloadavg): Declare prototype which was removed from lisp.h.
1572
1573 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1574
1575 * fileio.c (Finsert_file_contents, Fwrite_region):
1576 Remove references to buffer_file_type.
1577 (syms_of_fileio): Don't intern and staticpro
1578 find-buffer-file-type.
1579
1580 * callproc.c (syms_of_callproc): Remove references to
1581 buffer_file_type.
1582
1583 * buffer.c (reset_buffer_local_variables): Don't set
1584 buffer_file_type.
1585 (init_buffer_once): Likewise.
1586 (syms_of_buffer): Don't define buffer-file-type.
1587
1588 * buffer.h (struct buffer): Remove buffer_file_type.
1589
1590 2011-02-16 Tom Tromey <tromey@parfait>
1591
1592 * callint.c (Fcall_interactively): Update for change to field names.
1593 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1594 * cmds.c (Fself_insert_command): Update for change to field names.
1595 * keymap.c (Fcurrent_active_maps, Fkey_binding)
1596 (Fdescribe_buffer_bindings): Update for change to field names.
1597 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1598 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
1599 Update for change to field names.
1600 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1601 (echo_length, echo_truncate, cmd_error, command_loop_1)
1602 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1603 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1604 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1605 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
1606 Update for change to field names.
1607 * xfns.c (Fx_create_frame): Update for change to field names.
1608 * xterm.c (x_connection_closed, x_term_init): Update for change to
1609 field names.
1610 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
1611 Update for change to field names.
1612 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1613 Update for change to field names.
1614 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
1615 (delete_frame): Update for change to field names.
1616 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1617 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1618 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1619
1620 2011-02-16 Tom Tromey <tromey@redhat.com>
1621
1622 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1623
1624 2011-02-16 Tom Tromey <tromey@parfait>
1625
1626 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1627 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1628 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1629 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1630 (with_echo_area_buffer, setup_echo_area_for_printing)
1631 (set_message_1, update_menu_bar, update_tool_bar)
1632 (text_outside_line_unchanged_p, redisplay_internal)
1633 (try_scrolling, try_cursor_movement, redisplay_window)
1634 (try_window_reusing_current_matrix, row_containing_pos)
1635 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1636 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1637 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1638 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1639 BVAR.
1640 * window.c (window_display_table, unshow_buffer, window_loop)
1641 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1642 (select_window, Fforce_window_update, temp_output_buffer_show)
1643 (Fset_window_configuration, save_window_save): Replace B_ with
1644 BVAR.
1645 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1646 Replace B_ with BVAR.
1647 * undo.c (record_point, record_insert, record_delete)
1648 (record_marker_adjustment, record_first_change)
1649 (record_property_change, Fundo_boundary, truncate_undo_list)
1650 (Fprimitive_undo): Replace B_ with BVAR.
1651 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1652 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1653 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1654 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1655 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1656 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1657 (string_match_1, fast_looking_at, newline_cache_on_off)
1658 (search_command, search_buffer, simple_search, boyer_moore)
1659 (Freplace_match): Replace B_ with BVAR.
1660 * process.c (get_process, list_processes_1, Fstart_process)
1661 (Fmake_serial_process, Fmake_network_process)
1662 (read_process_output, send_process, exec_sentinel)
1663 (status_notify, setup_process_coding_systems): Replace B_ with
1664 BVAR.
1665 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1666 (strout, print_string, temp_output_buffer_setup, print_object):
1667 Replace B_ with BVAR.
1668 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
1669 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1670 Replace B_ with BVAR.
1671 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1672 (set_marker_both, set_marker_restricted_both, unchain_marker):
1673 Replace B_ with BVAR.
1674 * lread.c (readchar, unreadchar, openp, readevalloop)
1675 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1676 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1677 * keymap.c (Flocal_key_binding, Fuse_local_map)
1678 (Fcurrent_local_map, push_key_description)
1679 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1680 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1681 (read_key_sequence): Replace B_ with BVAR.
1682 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1683 * intervals.c (set_point_both, get_local_map): Replace B_ with
1684 BVAR.
1685 * insdel.c (check_markers, insert_char, insert_1_both)
1686 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1687 (adjust_after_replace, replace_range, del_range_2)
1688 (modify_region, prepare_to_modify_buffer)
1689 (Fcombine_after_change_execute): Replace B_ with BVAR.
1690 * indent.c (buffer_display_table, recompute_width_table)
1691 (width_run_cache_on_off, current_column, scan_for_column)
1692 (Findent_to, position_indentation, compute_motion, vmotion):
1693 Replace B_ with BVAR.
1694 * fringe.c (get_logical_cursor_bitmap)
1695 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1696 with BVAR.
1697 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1698 * font.c (font_at): Replace B_ with BVAR.
1699 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1700 Replace B_ with BVAR.
1701 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1702 (unlock_buffer): Replace B_ with BVAR.
1703 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1704 (Ffile_regular_p, Ffile_selinux_context)
1705 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1706 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1707 (Finsert_file_contents, choose_write_coding_system)
1708 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1709 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1710 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1711 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1712 (save_excursion_restore, Fprevious_char, Fchar_before)
1713 (general_insert_function, Finsert_char, Finsert_byte)
1714 (make_buffer_string_both, Finsert_buffer_substring)
1715 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1716 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1717 (Ftranslate_region_internal, save_restriction_restore)
1718 (Fchar_equal): Replace B_ with BVAR.
1719 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1720 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1721 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1722 * dired.c (directory_files_internal): Replace B_ with BVAR.
1723 * data.c (swap_in_symval_forwarding, set_internal)
1724 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1725 Replace B_ with BVAR.
1726 * composite.c (fill_gstring_header)
1727 (composition_compute_stop_pos, composition_adjust_point)
1728 (Ffind_composition_internal): Replace B_ with BVAR.
1729 * coding.c (decode_coding, encode_coding)
1730 (make_conversion_work_buffer, decode_coding_gap)
1731 (decode_coding_object, encode_coding_object)
1732 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1733 (Funencodable_char_position, Fcheck_coding_systems_region):
1734 Replace B_ with BVAR.
1735 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1736 with BVAR.
1737 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1738 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1739 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1740 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1741 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1742 * category.c (check_category_table, Fcategory_table)
1743 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1744 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1745 BVAR.
1746 * casefiddle.c (casify_object, casify_region): Replace B_ with
1747 BVAR.
1748 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1749 with BVAR.
1750 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1751 BVAR.
1752 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1753 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1754 with BVAR.
1755 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1756 (get_truename_buffer, Fget_buffer_create)
1757 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1758 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1759 (Fbuffer_local_value, buffer_lisp_local_variables)
1760 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1761 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1762 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1763 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1764 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1765 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1766 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1767 (record_overlay_string, overlay_strings, init_buffer_once)
1768 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1769
1770 2011-02-16 Eli Zaretskii <eliz@gnu.org>
1771
1772 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1773 window is changed inside calls to do_pending_window_change.
1774 (Bug#8020)
1775
1776 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1777
1778 Remove no-longer needed getloadavg symbols.
1779 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1780 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1781 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1782 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1783 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1784 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1785 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1786 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1787 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1788 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1789 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1790 (LDAV_SYMBOL): Remove.
1791 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1792 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1793
1794 Import getloadavg module from gnulib.
1795 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1796 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1797 now does this.
1798 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1799 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1800 * config.in: Regenerate.
1801
1802 2011-02-15 Eli Zaretskii <eliz@gnu.org>
1803
1804 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1805
1806 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1807
1808 * print.c (float_to_string): Ensure that a decimal point is
1809 printed if using dtoastr (Bug#8033).
1810
1811 2011-02-14 Eli Zaretskii <eliz@gnu.org>
1812
1813 * msdos.c (IT_frame_up_to_date):
1814 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1815
1816 * dired.c (directory_files_internal):
1817 * fileio.c (Finsert_file_contents):
1818 * insdel.c (prepare_to_modify_buffer):
1819 * xdisp.c (pos_visible_p):
1820 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1821 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1822 Use B_ for the MS-Windows build.
1823
1824 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1825
1826 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1827 resource that specifies helvetica for menus and dialogs.
1828
1829 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1830 (apply_systemfont_to_menu): Set resources *menubar*font and
1831 *popup*font. Remove defflt.
1832 (set_frame_menubar, create_and_show_popup_menu):
1833 Call apply_systemfont_to_menu before lw_create_widget.
1834
1835 2011-02-14 Tom Tromey <tromey@redhat.com>
1836
1837 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1838
1839 * keyboard.h: Remove obsolete comment.
1840
1841 2011-02-14 Tom Tromey <tromey@parfait>
1842
1843 * composite.c (fill_gstring_header)
1844 (composition_compute_stop_pos, composition_adjust_point)
1845 (Ffind_composition_internal): Use B_.
1846 * intervals.c (set_point_both, get_local_map): Use B_.
1847 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1848 * process.c (get_process, list_processes_1, Fstart_process)
1849 (Fmake_serial_process, Fmake_network_process)
1850 (read_process_output, send_process, exec_sentinel)
1851 (status_notify, setup_process_coding_systems): Use B_.
1852 * bytecode.c (Fbyte_code): Use B_.
1853 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1854 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1855 (skip_syntaxes, scan_lists): Use B_.
1856 * lread.c (readchar, unreadchar, openp, readevalloop)
1857 (Feval_buffer, Feval_region): Use B_.
1858 * print.c (printchar, strout, print_string, PRINTDECLARE)
1859 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1860 (print_object): Use B_.
1861 * font.c (font_at): Use B_.
1862 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1863 Use B_.
1864 * callint.c (check_mark, Fcall_interactively): Use B_.
1865 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1866 (save_excursion_restore, Fprevious_char, Fchar_before)
1867 (general_insert_function, Finsert_char, Finsert_byte)
1868 (make_buffer_string_both, Finsert_buffer_substring)
1869 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1870 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1871 (Ftranslate_region_internal, save_restriction_restore)
1872 (Fchar_equal): Use B_.
1873 * data.c (swap_in_symval_forwarding, set_internal)
1874 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1875 Use B_.
1876 * undo.c (record_point, record_insert, record_delete)
1877 (record_marker_adjustment, record_first_change)
1878 (record_property_change, Fundo_boundary, truncate_undo_list)
1879 (Fprimitive_undo): Use B_.
1880 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1881 (string_match_1, fast_looking_at, newline_cache_on_off)
1882 (search_command, search_buffer, simple_search, boyer_moore)
1883 (Freplace_match): Use B_.
1884 * indent.c (buffer_display_table, recompute_width_table)
1885 (width_run_cache_on_off, current_column, scan_for_column)
1886 (Findent_to, position_indentation, compute_motion, vmotion):
1887 Use B_.
1888 * casefiddle.c (casify_object, casify_region): Use B_.
1889 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1890 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1891 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1892 (Ffile_regular_p, Ffile_selinux_context)
1893 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1894 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1895 (Finsert_file_contents, choose_write_coding_system)
1896 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1897 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1898 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1899 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1900 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1901 (set_marker_both, set_marker_restricted_both, unchain_marker):
1902 Use B_.
1903 * insdel.c (check_markers, insert_char, insert_1_both)
1904 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1905 (adjust_after_replace, replace_range, del_range_2)
1906 (modify_region, prepare_to_modify_buffer)
1907 (Fcombine_after_change_execute): Use B_.
1908 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1909 (unlock_buffer): Use B_.
1910 * keymap.c (Flocal_key_binding, Fuse_local_map)
1911 (Fcurrent_local_map, push_key_description)
1912 (Fdescribe_buffer_bindings): Use B_.
1913 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1914 (read_key_sequence): Use B_.
1915 * fringe.c (get_logical_cursor_bitmap)
1916 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1917 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1918 * xfaces.c (compute_char_face): Use B_.
1919 * character.c (chars_in_text, Fget_byte): Use B_.
1920 * category.c (check_category_table, Fcategory_table)
1921 (Fset_category_table, char_category_set): Use B_.
1922 * coding.c (decode_coding, encode_coding)
1923 (make_conversion_work_buffer, decode_coding_gap)
1924 (decode_coding_object, encode_coding_object)
1925 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1926 (Funencodable_char_position, Fcheck_coding_systems_region):
1927 Use B_.
1928 * charset.c (Ffind_charset_region): Use B_.
1929 * window.c (window_display_table, unshow_buffer, window_loop)
1930 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1931 (select_window, Fforce_window_update, temp_output_buffer_show)
1932 (Fset_window_configuration, save_window_save): Use B_.
1933 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1934 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1935 (with_echo_area_buffer, setup_echo_area_for_printing)
1936 (set_message_1, update_menu_bar, update_tool_bar)
1937 (text_outside_line_unchanged_p, redisplay_internal)
1938 (try_scrolling, try_cursor_movement, redisplay_window)
1939 (try_window_reusing_current_matrix, row_containing_pos)
1940 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1941 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1942 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1943 (get_window_cursor_type, note_mouse_highlight): Use B_.
1944 * frame.c (make_frame_visible_1): Use B_.
1945 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1946 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1947 (WINDOW_WANTS_MODELINE_P): Use B_.
1948 * syntax.h (Vstandard_syntax_table): Update.
1949 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1950 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1951 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1952 * character.h (FETCH_CHAR_ADVANCE): Update.
1953 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1954 * category.h (Vstandard_category_table): Update.
1955 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1956 names.
1957 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1958 * buffer.c (swapfield_): New macro.
1959 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1960 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1961 (Fget_buffer_create, clone_per_buffer_values)
1962 (Fmake_indirect_buffer, reset_buffer)
1963 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1964 (Fbuffer_local_value, buffer_lisp_local_variables)
1965 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1966 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1967 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1968 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1969 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1970 (Fbuffer_swap_text, Fset_buffer_multibyte)
1971 (swap_out_buffer_local_variables, record_overlay_string)
1972 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1973 Use B_.
1974 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1975 (BUFFER_INTERNAL_FIELD, B_): New macro.
1976 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1977
1978 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1979
1980 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1981 is null.
1982
1983 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1984
1985 * callproc.c (Fcall_process):
1986 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1987 comment.
1988
1989 2011-02-12 Martin Rudalics <rudalics@gmx.at>
1990
1991 * window.c (select_window): Check inhibit_point_swap argument when
1992 deciding whether to return immediately.
1993
1994 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
1995
1996 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1997 zero (Bug#7348).
1998
1999 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * config.in (TERMINFO): New definition.
2002
2003 * s/netbsd.h: Use it to choose between terminfo and termcap
2004 (Bug#7642).
2005
2006 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2007
2008 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
2009 The difference doesn't matter here, in practice, and sizeof is
2010 more portable to non-GCC compilers. Also, this makes the code
2011 match the already-existing comment.
2012
2013 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
2014
2015 * process.c (create_process): Reset SIGPIPE handler in the child.
2016 * callproc.c (Fcall_process): Likewise. (Bug#5238)
2017
2018 2011-02-12 Eli Zaretskii <eliz@gnu.org>
2019
2020 * xdisp.c <this_line_min_pos>: New variable.
2021 (move_it_in_display_line_to): Record in this_line_min_pos the
2022 smallest position iterated across.
2023 (display_line): Use this_line_min_pos to record the smallest
2024 position in the line even if it is not displayed due to
2025 hscrolling. (Bug#7939)
2026
2027 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2028
2029 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
2030 * md5.h (ATTRIBUTE_ALIGNED): New macro.
2031 (struct md5_ctx): Use it.
2032
2033 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
2034 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
2035 defined.
2036 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
2037 FC_HINT_STYLE is supported.
2038
2039 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
2040
2041 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
2042 Make sure we don't do x_catch_errors twice.
2043
2044 2011-02-10 Glenn Morris <rgm@gnu.org>
2045
2046 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
2047
2048 2011-02-09 Eli Zaretskii <eliz@gnu.org>
2049
2050 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
2051 New macros.
2052 (globals.h, gl-stamp): New targets.
2053 (clean): Clean gl-stamp and globals.h.
2054
2055 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2056
2057 * Makefile.in (gl-stamp): Create globals.h here.
2058 (globals.h): Don't do it here.
2059 (mostlyclean): Clean globals.h and gl-stamp.
2060
2061 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
2062
2063 * Makefile.in ($(otherobj)): Depend on globals.h.
2064 Otherwise 'make -j10' failed on my host, because the build lacked
2065 necessary dependencies, e.g., vm-limit.o depends on globals.h.
2066
2067 2011-02-08 Tom Tromey <tromey@redhat.com>
2068
2069 * Makefile.in (NS_OBJC_OBJ): New variable.
2070 (base_obj): Rename from 'obj'.
2071 (obj): New variable.
2072 (globals.h, gl-stamp, $(obj)): New targets.
2073 (GLOBAL_SOURCES): New variable.
2074 * globals.h: Remove.
2075 * nsselect.m (Vselection_alist): Define. Reverts part of
2076 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
2077 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
2078 variable.
2079 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
2080
2081 2011-02-08 Kenichi Handa <handa@m17n.org>
2082
2083 * font.c (Ffont_get): Do not cache :otf value.
2084
2085 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2086
2087 conform to C89 pointer rules
2088
2089 * dired.c (scmp, file_name_completion):
2090 Change types between char * and unsigned char *, to satisfy C89
2091 rules about pointer type compatibility.
2092 * casefiddle.c (casify_object, casify_region): Likewise.
2093 * search.c (Freplace_match, Fregexp_quote): Likewise.
2094 * alloc.c (make_string, make_specified_string, make_pure_string):
2095 Likewise.
2096 * data.c (Fstring_to_number): Likewise.
2097 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2098 (print_object): Likewise.
2099 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2100 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2101 (Fformat): Likewise.
2102 * callint.c (Fcall_interactively): Likewise.
2103 * fns.c (string_make_multibyte, string_to_multibyte):
2104 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2105 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2106 Likewise.
2107 * lread.c (read1, hash_string): Likewise.
2108 * process.c (read_process_output, send_process, Fprocess_send_region):
2109 Likewise.
2110 * callproc.c (Fcall_process): Likewise.
2111 * doprnt.c (doprnt): Likewise.
2112 * indent.c (compute_motion): Likewise.
2113 * xfont.c (xfont_decode_coding_xlfd): Likewise.
2114 * ralloc.c (resize_bloc): Likewise.
2115 * image.c (tiff_load): Likewise.
2116 * xml.c (make_dom, parse_region): Likewise.
2117 * character.c (strwidth): Make its argument const char *, not const
2118 unsigned char *, since more callers prefer it that way. All callers
2119 changed.
2120
2121 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2122
2123 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2124 Emacs assumes two's complement elsewhere, but the assumption is
2125 easy to remove here, and this suppresses a warning with Sun C 5.8.
2126
2127 conform to C89 pointer rules
2128
2129 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2130 (same_x_server, x_term_init):
2131 Change types between char * and unsigned char *, to satisfy C89
2132 rules about pointer type compatibility.
2133 * doc.c (get_doc_string, Fsnarf_documentation):
2134 (Fsubstitute_command_keys): Likewise.
2135 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2136 * bitmaps/gray.xbm (gray_bits): Likewise.
2137 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
2138 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2139 Likewise.
2140 * keymap.c (Ftext_char_description): Likewise.
2141 * minibuf.c (Fread_buffer): Likewise.
2142 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2143 (DRIVE_LETTER) [defined DOS_NT]:
2144 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2145 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2146 (search_embedded_absfilename, Fsubstitute_in_file_name):
2147 (barf_or_query_if_file_exists, Fmake_directory_internal):
2148 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2149 (Finsert_file_contents, Fwrite_region):
2150 Likewise.
2151 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2152 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2153 Likewise. This changes these functions' signatures, which is
2154 more convenient since most callers use char *. All remaining
2155 callers changed.
2156 * editfns.c (general_insert_function): Change signature to
2157 match changes to insert functions' signatures.
2158 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2159 Use explicit cast when converting between void * and function pointer
2160 types, as C89 requires this.
2161
2162 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2163
2164 don't ignore chdir failure
2165 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2166 failure and exit.
2167 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2168 remaining unchecked chdir calls in this function; some DOS/NT
2169 expert needs to fix them.
2170 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2171 in this function; some NextStep expert needs to fix them.
2172
2173 2011-02-05 Glenn Morris <rgm@gnu.org>
2174
2175 * xfaces.c (Finternal_set_lisp_face_attribute):
2176 Try to clarify some error messages. (Bug#2659)
2177
2178 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
2179
2180 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2181 current_column cache (bug#7946).
2182
2183 2011-02-05 Kenichi Handa <handa@m17n.org>
2184
2185 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2186
2187 * xftfont.c (xftfont_open): Likewise.
2188
2189 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
2190
2191 * window.c (Fselect_window): Add missing return value.
2192
2193 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2194
2195 xstrcasecmp: conform to C89 pointer rules
2196 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2197 to const char *, since they're usually low-level C strings, and
2198 this stays compatible with C89 pointer rules. All callers changed.
2199
2200 * charset.c: Conform to C89 pointer rules.
2201 (define_charset_internal): Switch between char * and unsigned char *.
2202
2203 * xmenu.c: Conform to C89 const rules.
2204 (xmenu_show, xdialog_show): Declare local var as char *, not
2205 const char *, to stay compatible with C89 const rules.
2206
2207 * xdisp.c: Conform to C89 pointer rules.
2208 (store_mode_line_noprop, display_string, reseat_to_string):
2209 (c_string_pos, number_of_chars, message_dolog):
2210 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2211 (display_mode_element, display_string):
2212 Switch between char * and unsigned char * to stay compatible wth
2213 C89 pointer rules.
2214
2215 * regex.c: Conform to C89 pointer rules.
2216 (re_wctype): Add cast, as C89 does not allow assigning between
2217 char * and unsigned char *.
2218 (regex_compile): Likewise.
2219
2220 sync from gnulib to remove HAVE_STDBOOL_H
2221 * config.in: Regenerate.
2222
2223 2011-02-04 Eli Zaretskii <eliz@gnu.org>
2224
2225 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2226 Replace all uses of lisp.h with $(LISP_H), and all uses of
2227 process.h with $(PROCESS_H).
2228 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2229 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2230
2231 * deps.mk: Update for recent changes: gnutls support, gnulib
2232 imports, addition of globals.h.
2233
2234 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2235 ../lib/ignore-value.h.
2236
2237 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2238
2239 allow C code to suppress warnings about ignored return values
2240
2241 We need to go through the code and for each such warning, either
2242 fix the code to pay attention to the returned value, or tell GCC
2243 that we really do want to ignore the returned value. Here is one
2244 example of how to do the latter.
2245 * sysdep.c: Include <ignore-value.h>.
2246 (sys_subshell): Suppress an undesirable warning about not checking
2247 the returned value of 'write', as there's nothing useful one can
2248 do with that returned value.
2249
2250 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2251
2252 * xterm.c (x_connection_closed): Remove all calls that calls
2253 XSync (Bug#7949).
2254
2255 2011-02-01 Eli Zaretskii <eliz@gnu.org>
2256
2257 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2258 TIFFClientOpen.
2259
2260 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2261
2262 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2263 (x_session_check_input): Change args and return type so it can be used
2264 as argument to add_read_fd. Make static. Remove call to select.
2265 Call kbd_buffer_store_event for emacs_event.
2266 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2267 (ice_conn_watch_CB): Call add_read_fd.
2268
2269 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2270 x_session_check_input.
2271 (x_session_initialized): Remove definition.
2272 (x_initialize): Remove setting of x_session_initialized.
2273
2274 * xterm.h (x_session_check_input): Remove declaration.
2275
2276 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2277
2278 format-time-string now supports subsecond time stamp resolution
2279 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
2280 for consistency with its new argument and with gnulib nstrftime.
2281 All callers changed. New argument NS.
2282 (Fformat_time_string): Check that the time argument's microseconds
2283 component, if any, is in range; this avoids integer overflow and
2284 also nstrftime needs this. Document %N.
2285
2286 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
2287
2288 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2289 of int. All uses adjusted.
2290 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2291 (svg_load_image): Remove casts.
2292
2293 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
2294
2295 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2296 function definitions for compiling with libpng-1.5.
2297 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2298 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2299 (Bug#7908).
2300
2301 2011-01-31 Eli Zaretskii <eliz@gnu.org>
2302
2303 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2304
2305 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2306 ($(BLD)/strftime.$(O)): Remove prerequisites.
2307
2308 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2309
2310 src/emacs.c now gets version number from configure.in
2311 * emacs.c (emacs_version): Set to VERSION so that it
2312 is determined automatically from ../configure.in.
2313
2314 2011-01-31 Jim Meyering <meyering@redhat.com>
2315
2316 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2317 Use xmalloc rather than malloc.
2318
2319 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2320
2321 strftime: import from gnulib
2322 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2323 * deps.mk (strftime.o): Remove.
2324 * editfns.c: Include <strftime.h>, supplied by gnulib.
2325 (emacs_strftimeu): Remove decl.
2326 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2327 emacs_strftimeu.
2328 * config.in: Regenerate.
2329 * strftime.c: Remove; we now use strftime from gnulib.
2330
2331 Use SSDATA when the context wants char *.
2332 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2333 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2334 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2335 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2336 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2337 Use SSDATA (not SDATA) when the context of the expression wants
2338 char * (not unsigned char *).
2339
2340 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2341
2342 * .gdbinit: Read global lisp variables as globals.f_V*.
2343
2344 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2345
2346 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2347 All uses changed.
2348 (PROP_SAVE): Likewise.
2349
2350 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
2351
2352 * keyboard.c (make_lispy_position): Fix typo in last change
2353 (Bug#7935).
2354
2355 2011-01-29 Eli Zaretskii <eliz@gnu.org>
2356
2357 * s/ms-w32.h (HAVE_MKTIME): Remove.
2358
2359 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2360 (GNULIB): New variable.
2361 (LIBS): Add $(GNULIB).
2362 $(TEMACS): Depend on $(GNULIB).
2363 <top-level>: Fix font-lock disrupted by a lone `"'.
2364
2365 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2366
2367 * nsselect.m (ns_string_from_pasteboard): Get length of string
2368 and use make_string instead of build_string (Bug#7934).
2369 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2370 instead of stringWithUTF8String (Bug#7934).
2371
2372 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
2373
2374 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2375 descenders would not become one pixel too tall (Bug#7887).
2376
2377 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
2378
2379 * keyboard.c (make_lispy_position): For clicks on right fringe or
2380 margin, compute text position using the X coordinate relative to
2381 the left of the text area (Bug#7839).
2382
2383 2011-01-28 Kenichi Handa <handa@m17n.org>
2384
2385 * ftfont.c (ftfont_spec_pattern): Check each extra property
2386 value.
2387
2388 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2389
2390 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2391
2392 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
2393
2394 * font.c (font_parse_fcname): Undefine a temporary macro.
2395
2396 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2397
2398 Let the debugger continue to the normal handler (bug#7825).
2399 * eval.c (maybe_call_debugger): Declare before new use.
2400 (find_handler_clause): Don't call debugger any more.
2401 Ignore Vstack_trace_on_error.
2402 Use XCAR/XCDR.
2403 (syms_of_eval): Remove Vstack_trace_on_error.
2404 (Fsignal): Only modify handlerlist when we know we need to do it.
2405 Call the debugger when necessary.
2406 * globals.h (Vstack_trace_on_error): Remove.
2407
2408 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2411
2412 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
2413
2414 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2415 the buffer's point-max (bug#7876).
2416
2417 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
2418
2419 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
2420 Remove unused case (Bug#6811).
2421
2422 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2423
2424 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2425 setFrameTopLeftPoint is constrained.
2426
2427 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2428
2429 Check return values of some library calls.
2430 * emacs.c (main): Check dup result.
2431 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2432 (frame_name_fnn_p): Check strtol result.
2433
2434 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
2435 when calling XpmCreatePixmapFromData.
2436
2437 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2438 * lisp.h (SSDATA): New macro.
2439 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2440 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2441 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2442 * xsmfns.c (SSDATA): Likewise.
2443
2444 2011-01-22 Martin Rudalics <rudalics@gmx.at>
2445
2446 * window.c (select_window): New function.
2447 (Fselect_window): Call it.
2448 (inhibit_point_swap): Variable deleted.
2449 (Fset_window_configuration): Call select_window directly.
2450
2451 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2452
2453 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2454
2455 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2456
2457 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2458 screen, not the window screen.
2459 (x_set_window_size): Remove constraints.
2460 Calculate origin.y only if zooming is 0 and without referring to a
2461 screen.
2462 (windowWillResize): Don't modify frameSize.
2463 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2464 (initFrameFromEmacs): Initialize ns_userRect.
2465 (windowShouldZoom): Set zooming to one. Remove all other code.
2466 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2467 Zero it after restore.
2468 (constrainFrameRect): New method for EmacsWindow.
2469 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2470 windowWillResize.
2471
2472 * nsterm.h (ns_output): Add dont_constrain and zooming.
2473 (EmacsView): Add ns_userRect.
2474
2475 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2476 if ns_alternate_modifier is none.
2477
2478 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2479
2480 * unexmacosx.c: Add comment about include order.
2481
2482 2011-01-20 Glenn Morris <rgm@gnu.org>
2483
2484 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2485 Give it a doc string.
2486 * globals.h: Add Vread_expression_history.
2487
2488 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2489 Give it a doc string.
2490 * globals.h: Add Vkbd_macro_termination_hook.
2491
2492 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
2493
2494 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2495
2496 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2497
2498 Fix X11 compilation failure.
2499 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2500 * xselect.c (Vselection_alist): Remove declaration, moving its
2501 documentation to globals.h. This fixes a compilation failure
2502 induced by the earlier change to globals.h today.
2503
2504 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2505
2506 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2507
2508 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2509 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2510 (ns_input_spi_name, ns_input_spi_arg)
2511 (ns_alternate_modifier, ns_right_alternate_modifier)
2512 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2513 (ns_right_control_modifier, ns_function_modifier)
2514 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2515 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2516 (x_underline_at_descent_line): Remove declaration.
2517 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2518
2519 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
2520 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2521 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2522
2523 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2524 Remove declaration.
2525
2526 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2527 globals.h.
2528 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2529
2530 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2531 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2532 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2533
2534 * globals.h (struct emacs_globals): Add f_ns_input_file,
2535 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2536 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2537 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2538 f_ns_right_alternate_modifier, f_ns_command_modifier,
2539 f_ns_right_command_modifier, f_ns_control_modifier,
2540 f_ns_right_control_modifier, f_ns_function_modifier,
2541 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2542 f_Vns_version_string, f_Vns_sent_selection_hooks,
2543 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2544 and corresponding defines.
2545
2546 2011-01-19 Sam Steingold <sds@gnu.org>
2547
2548 * w32.c (check_windows_init_file): Remove declarations of
2549 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
2550 * w32fns.c: Fix an error introduced by the previous patch.
2551
2552 2011-01-19 Tom Tromey <tromey@redhat.com>
2553
2554 * window.c: Fix error introduced by previous patch.
2555
2556 2011-01-18 Tom Tromey <tromey@parfait>
2557
2558 * globals.h: New file.
2559 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2560 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2561 (Vwindow_system_version): Remove declaration.
2562 * w32term.h (Vw32_enable_palette)
2563 (Vx_pixel_size_width_font_regexp): Remove declaration.
2564 * w32menu.c (Voverriding_local_map)
2565 (Voverriding_local_map_menu_flag): Remove declaration.
2566 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2567 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2568 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2569 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2570 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2571 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2572 (w32_use_full_screen_buffer): Remove declaration.
2573 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2574 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2575 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2576 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2577 (no_redraw_on_reenter, visible_bell): Remove declaration.
2578 * sysdep.c (Vsystem_name): Remove declaration.
2579 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2580 * menu.h (Vmenu_updating_frame): Remove declaration.
2581 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2582 Remove declaration.
2583 * lisp.h (Vafter_init_time, Vafter_load_alist)
2584 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2585 (Vcompletion_regexp_list, Vcurrent_load_list)
2586 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2587 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2588 (Vexec_directory, Vexec_path, Vexec_suffixes)
2589 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2590 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2591 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2592 (Vinstallation_directory, Vinvocation_directory)
2593 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2594 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2595 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2596 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2597 (Vscalable_fonts_allowed, Vselect_active_regions)
2598 (Vshell_file_name, Vstandard_input, Vstandard_output)
2599 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2600 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2601 (Vuser_login_name, Vwindow_scroll_functions)
2602 (Vwindow_system_version, Vx_no_window_manager)
2603 (Vx_resource_class, Vx_resource_name, baud_rate)
2604 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2605 (history_delete_duplicates, inhibit_x_resources)
2606 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2607 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
2608 (use_dialog_box, use_file_dialog): Remove declaration.
2609 Include globals.h.
2610 * keymap.h (Voverriding_local_map)
2611 (Voverriding_local_map_menu_flag, meta_prefix_char):
2612 Remove declaration.
2613 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2614 (Vinput_method_function, Vkey_translation_map)
2615 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2616 (do_mouse_tracking, extra_keyboard_modifiers)
2617 (num_nonmacro_input_events): Remove declaration.
2618 * intervals.h (Vchar_property_alias_alist)
2619 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2620 (Vtext_property_default_nonsticky): Remove declaration.
2621 * gtkutil.h (x_gtk_file_dialog_help_text)
2622 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2623 (x_gtk_whole_detached_tool_bar): Remove declaration.
2624 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2625 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2626 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2627 (focus_follows_mouse): Remove declaration.
2628 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2629 (Vignore_relative_composition, Votf_script_alist)
2630 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2631 Remove declaration.
2632 * font.h (Vfont_log): Remove declaration.
2633 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2634 (Vdos_windows_version, dos_codepage, dos_country_code)
2635 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
2636 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2637 Remove declaration.
2638 * disptab.h (Vglyph_table, Vstandard_display_table):
2639 Remove declaration.
2640 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2641 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2642 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2643 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2644 (inverse_video, mode_line_in_non_selected_windows)
2645 (tool_bar_button_relief, tool_bar_max_label_size)
2646 (underline_minimum_offset)
2647 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2648 Remove declaration.
2649 * composite.h (Vauto_composition_function)
2650 (Vcomposition_function_table): Remove declaration.
2651 * commands.h (Vexecuting_kbd_macro)
2652 (Vminibuffer_local_completion_map)
2653 (Vminibuffer_local_filename_completion_map)
2654 (Vminibuffer_local_filename_must_match_map)
2655 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2656 (Vminibuffer_local_ns_map, Vthis_command)
2657 (Vunread_command_events, cursor_in_echo_area)
2658 (last_command_event, last_nonmenu_event, unread_command_char):
2659 Remove declaration.
2660 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2661 (Vdefault_file_name_coding_system)
2662 (Vdefault_process_coding_system, Vfile_name_coding_system)
2663 (Vlast_coding_system_used, Vlocale_coding_system)
2664 (Vselect_safe_coding_system_function)
2665 (Vtranslation_table_for_input, coding_system_require_warning)
2666 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2667 (eol_mnemonic_unix, inherit_process_coding_system):
2668 Remove declaration.
2669 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2670 Remove declaration.
2671 * character.h (Vauto_fill_chars, Vchar_direction_table)
2672 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2673 (Vscript_representative_chars, Vtranslation_table_vector)
2674 (Vunicode_category_table): Remove declaration.
2675 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2676 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2677 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2678 (inhibit_modification_hooks): Remove declaration.
2679 * xterm.c (syms_of_xterm): Update.
2680 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2681 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2682 (x_mouse_click_focus_ignore_position)
2683 (x_underline_at_descent_line)
2684 (x_use_underline_position_properties): Remove.
2685 * xsmfns.c (syms_of_xsmfns): Update.
2686 (Vx_session_id, Vx_session_previous_id): Remove.
2687 * xsettings.c (syms_of_xsettings): Update.
2688 (Vxft_settings, use_system_font): Remove.
2689 * xselect.c (syms_of_xselect): Update.
2690 (Vselection_converter_alist, Vx_lost_selection_functions)
2691 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2692 * xfns.c (syms_of_xfns): Update.
2693 (Vgtk_version_string, Vmotif_version_string)
2694 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2695 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2696 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2697 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2698 (Vx_sensitive_text_pointer_shape)
2699 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2700 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2701 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2702 Remove.
2703 * xfaces.c (syms_of_xfaces): Update.
2704 (Vface_default_stipple, Vface_font_rescale_alist)
2705 (Vface_ignored_fonts, Vface_new_frame_defaults)
2706 (Vface_remapping_alist, Vfont_list_limit)
2707 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2708 * xdisp.c (syms_of_xdisp): Update.
2709 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2710 (Vdisplay_pixels_per_inch, Vfontification_functions)
2711 (Vframe_title_format, Vglobal_mode_string)
2712 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2713 (Vicon_title_format, Vinhibit_redisplay)
2714 (Vline_number_display_limit, Vline_prefix)
2715 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2716 (Vmenu_updating_frame, Vmessage_log_max)
2717 (Vmouse_autoselect_window, Vnobreak_char_display)
2718 (Voverlay_arrow_position, Voverlay_arrow_string)
2719 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2720 (Vresize_mini_windows, Vshow_trailing_whitespace)
2721 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2722 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2723 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2724 (Vwindow_text_change_functions, Vwrap_prefix)
2725 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2726 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2727 (highlight_nonselected_windows, hscroll_margin)
2728 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2729 (inhibit_menubar_update, inhibit_try_cursor_movement)
2730 (inhibit_try_window_id, inhibit_try_window_reusing)
2731 (line_number_display_limit_width)
2732 (make_cursor_line_fully_visible_p, message_truncate_lines)
2733 (mode_line_inverse_video, multiple_frames, overline_margin)
2734 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2735 (tool_bar_max_label_size, underline_minimum_offset)
2736 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2737 Remove.
2738 * window.c (syms_of_window): Update.
2739 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2740 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2741 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2742 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2743 (mode_line_in_non_selected_windows, next_screen_context_lines)
2744 (window_min_height, window_min_width): Remove.
2745 (scroll_margin): Remove declaration.
2746 * w32term.c (syms_of_w32term): Update.
2747 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2748 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2749 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2750 (w32_use_visible_system_caret, x_underline_at_descent_line)
2751 (x_use_underline_position_properties): Remove.
2752 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2753 Remove declaration.
2754 * w32select.c (syms_of_w32select): Update.
2755 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2756 * w32proc.c (syms_of_ntproc): Update.
2757 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2758 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2759 (Vw32_start_process_inherit_error_mode)
2760 (Vw32_start_process_share_console)
2761 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2762 (Vsystem_name): Remove declaration.
2763 * w32font.c (syms_of_w32font): Update.
2764 (Vw32_charset_info_alist): Remove.
2765 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2766 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2767 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2768 (Vw32_enable_palette, Vw32_lwindow_modifier)
2769 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2770 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2771 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2772 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2773 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2774 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2775 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2776 (Vx_sensitive_text_pointer_shape)
2777 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2778 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2779 (w32_mouse_move_interval)
2780 (w32_pass_extra_mouse_buttons_to_system)
2781 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2782 (w32_strict_fontnames, w32_strict_painting): Remove.
2783 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2784 (Vw32_recognize_altgr, Vwindow_system_version)
2785 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2786 Remove declaration.
2787 * w32console.c (syms_of_ntterm): Update.
2788 (w32_use_full_screen_buffer): Remove.
2789 (Vtty_defined_color_alist): Remove declaration.
2790 * w16select.c (syms_of_win16select): Update.
2791 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2792 * undo.c (syms_of_undo): Update.
2793 (Vundo_outer_limit, Vundo_outer_limit_function)
2794 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2795 Remove.
2796 * textprop.c (syms_of_textprop): Update.
2797 (Vchar_property_alias_alist, Vdefault_text_properties)
2798 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2799 Remove.
2800 * terminal.c (syms_of_terminal): Update.
2801 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2802 * term.c (syms_of_term): Update.
2803 (Vresume_tty_functions, Vsuspend_tty_functions)
2804 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2805 Remove.
2806 * syntax.c (syms_of_syntax): Update.
2807 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2808 (open_paren_in_column_0_is_defun_start)
2809 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2810 (words_include_escapes): Remove.
2811 * search.c (syms_of_search): Update.
2812 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2813 * process.c (syms_of_process): Update.
2814 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2815 (delete_exited_processes): Remove.
2816 * print.c (syms_of_print): Update.
2817 (Vfloat_output_format, Vprint_charset_text_property)
2818 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2819 (Vprint_length, Vprint_level, Vprint_number_table)
2820 (Vstandard_output, print_escape_multibyte)
2821 (print_escape_newlines, print_escape_nonascii, print_quoted):
2822 Remove.
2823 * msdos.c (syms_of_msdos): Update.
2824 (Vdos_unsupported_char_glyph): Remove.
2825 (unibyte_display_via_language_environment): Remove declaration.
2826 * minibuf.c (syms_of_minibuf): Update.
2827 (Vcompletion_regexp_list, Vhistory_add_new_input)
2828 (Vhistory_length, Vminibuffer_completing_file_name)
2829 (Vminibuffer_completion_confirm)
2830 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2831 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2832 (Vminibuffer_history_position, Vminibuffer_history_variable)
2833 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2834 (Vread_buffer_function, Vread_expression_map)
2835 (completion_ignore_case, enable_recursive_minibuffers)
2836 (history_delete_duplicates, minibuffer_allow_text_properties)
2837 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2838 Remove.
2839 * marker.c (syms_of_marker): Update.
2840 (byte_debug_flag): Remove.
2841 * macros.c (syms_of_macros): Update.
2842 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2843 * lread.c (syms_of_lread): Update.
2844 (Vafter_load_alist, Vbyte_boolean_vars)
2845 (Vbytecomp_version_regexp, Vcurrent_load_list)
2846 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2847 (Vload_history, Vload_path, Vload_read_function)
2848 (Vload_source_file_function, Vload_suffixes, Vobarray)
2849 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2850 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2851 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2852 (force_load_messages, load_convert_to_unibyte)
2853 (load_dangerous_libraries, load_force_doc_strings)
2854 (load_in_progress): Remove.
2855 * keymap.c (syms_of_keymap): Update.
2856 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2857 (Vminibuffer_local_completion_map)
2858 (Vminibuffer_local_filename_completion_map)
2859 (Vminibuffer_local_filename_must_match_map)
2860 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2861 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2862 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2863 Remove.
2864 * keyboard.c (syms_of_keyboard): Update.
2865 (Vauto_save_timeout, Vcommand_error_function)
2866 (Vcommand_hook_internal, Vdeactivate_mark)
2867 (Vdeferred_action_function, Vdeferred_action_list)
2868 (Vdisable_point_adjustment, Vdouble_click_time)
2869 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2870 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2871 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2872 (Vinput_method_function, Vinput_method_previous_message)
2873 (Vkey_translation_map, Vlast_event_frame)
2874 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2875 (Vminibuffer_message_timeout, Voverriding_local_map)
2876 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2877 (Vpre_command_hook, Vprefix_help_command)
2878 (Vsaved_region_selection, Vselect_active_regions)
2879 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2880 (Vthis_command, Vthis_command_keys_shift_translated)
2881 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2882 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2883 (Vtty_erase_char, Vunread_command_events)
2884 (Vunread_input_method_events, Vunread_post_input_method_events)
2885 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2886 (double_click_fuzz, extra_keyboard_modifiers)
2887 (inhibit_local_menu_bar_menus, last_command_event)
2888 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2889 (menu_prompting, meta_prefix_char, num_input_keys)
2890 (num_nonmacro_input_events, polling_period, unread_command_char):
2891 Remove.
2892 * insdel.c (syms_of_insdel): Update.
2893 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2894 * indent.c (syms_of_indent): Update.
2895 (indent_tabs_mode): Remove.
2896 * image.c (syms_of_image): Update.
2897 (Vimage_cache_eviction_delay, Vimage_types)
2898 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2899 (cross_disabled_images): Remove.
2900 * fringe.c (syms_of_fringe): Update.
2901 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2902 * frame.c (syms_of_frame): Update.
2903 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2904 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2905 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2906 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2907 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2908 Remove.
2909 * fontset.c (syms_of_fontset): Update.
2910 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2911 (Vfontset_alias_alist, Vignore_relative_composition)
2912 (Votf_script_alist, Vuse_default_ascent)
2913 (Vvertical_centering_font_regexp): Remove.
2914 * font.c (syms_of_font): Update.
2915 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2916 (Vfont_weight_table, Vfont_width_table): Remove.
2917 * fns.c (syms_of_fns): Update.
2918 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2919 * filelock.c (syms_of_filelock): Update.
2920 (Vtemporary_file_directory): Remove.
2921 * fileio.c (syms_of_fileio): Update.
2922 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2923 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2924 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2925 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2926 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2927 (Vwrite_region_annotate_functions)
2928 (Vwrite_region_annotations_so_far)
2929 (Vwrite_region_post_annotation_function)
2930 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2931 (Vw32_get_true_file_attributes): Remove declaration.
2932 * eval.c (syms_of_eval): Update.
2933 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2934 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2935 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2936 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2937 (max_lisp_eval_depth, max_specpdl_size): Remove.
2938 * emacs.c (syms_of_emacs): Update.
2939 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2940 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2941 (Vinstallation_directory, Vinvocation_directory)
2942 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2943 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2944 (Vsystem_configuration, Vsystem_configuration_options)
2945 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2946 (inhibit_x_resources, noninteractive1): Remove.
2947 * editfns.c (syms_of_editfns): Update.
2948 (Vbuffer_access_fontified_property)
2949 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2950 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2951 (Vuser_login_name, Vuser_real_login_name): Remove.
2952 * dosfns.c (syms_of_dosfns): Update.
2953 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2954 (dos_codepage, dos_country_code, dos_decimal_point)
2955 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2956 (dos_super_key, dos_timezone_offset): Remove.
2957 * doc.c (syms_of_doc): Update.
2958 (Vbuild_files, Vdoc_file_name): Remove.
2959 * dispnew.c (syms_of_display): Update.
2960 (Vglyph_table, Vinitial_window_system)
2961 (Vredisplay_preemption_period, Vstandard_display_table)
2962 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2963 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2964 * dired.c (syms_of_dired): Update.
2965 (Vcompletion_ignored_extensions): Remove.
2966 (Vw32_get_true_file_attributes): Remove declaration.
2967 * dbusbind.c (syms_of_dbusbind): Update.
2968 (Vdbus_debug, Vdbus_registered_buses)
2969 (Vdbus_registered_objects_table): Remove.
2970 * data.c (syms_of_data): Update.
2971 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2972 * composite.c (syms_of_composite): Update.
2973 (Vauto_composition_function, Vauto_composition_mode)
2974 (Vcompose_chars_after_function, Vcomposition_function_table):
2975 Remove.
2976 * coding.c (syms_of_coding): Update.
2977 (Vcharset_revision_table, Vcoding_category_list)
2978 (Vcoding_system_alist, Vcoding_system_for_read)
2979 (Vcoding_system_for_write, Vcoding_system_list)
2980 (Vdefault_process_coding_system, Venable_character_translation)
2981 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2982 (Vlast_coding_system_used, Vlatin_extra_code_table)
2983 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2984 (Vprocess_coding_system_alist)
2985 (Vselect_safe_coding_system_function)
2986 (Vstandard_translation_table_for_decode)
2987 (Vstandard_translation_table_for_encode)
2988 (Vtranslation_table_for_input, coding_system_require_warning)
2989 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2990 (eol_mnemonic_unix, inherit_process_coding_system)
2991 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2992 (inhibit_null_byte_detection): Remove.
2993 * cmds.c (syms_of_cmds): Update.
2994 (Vpost_self_insert_hook): Remove.
2995 * charset.c (syms_of_charset): Update.
2996 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2997 (inhibit_load_charset_map): Remove.
2998 * character.c (syms_of_character): Update.
2999 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
3000 (Vchar_width_table, Vprintable_chars)
3001 (Vscript_representative_chars, Vtranslation_table_vector)
3002 (Vunicode_category_table): Remove.
3003 * ccl.c (syms_of_ccl): Update.
3004 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
3005 (Vtranslation_hash_table_vector): Remove.
3006 * category.c (syms_of_category): Update.
3007 (Vword_combining_categories, Vword_separating_categories): Remove.
3008 * callproc.c (syms_of_callproc): Update.
3009 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
3010 (Vexec_directory, Vexec_path, Vexec_suffixes)
3011 (Vinitial_environment, Vprocess_environment)
3012 (Vshared_game_score_directory, Vshell_file_name): Remove.
3013 * callint.c (syms_of_callint): Update.
3014 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
3015 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
3016 * bytecode.c (syms_of_bytecode): Update.
3017 (Vbyte_code_meter, byte_metering_on): Remove.
3018 * buffer.c (syms_of_buffer): Update.
3019 (Vafter_change_functions, Vbefore_change_functions)
3020 (Vchange_major_mode_hook, Vfirst_change_hook)
3021 (Vinhibit_read_only, Vkill_buffer_query_functions)
3022 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
3023 * alloc.c (syms_of_alloc): Update.
3024 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
3025 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
3026 (cons_cells_consed, floats_consed, garbage_collection_messages)
3027 (gc_cons_threshold, gcs_done, intervals_consed)
3028 (misc_objects_consed, pure_bytes_used, string_chars_consed)
3029 (strings_consed, symbols_consed, vector_cells_consed): Remove.
3030
3031 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3032 (DEFVAR_INT): Assume global is in `globals'.
3033 * alloc.c (globals): Define.
3034
3035 2011-01-18 Tom Tromey <tromey@redhat.com>
3036
3037 * image.c (Vimagemagick_render_type): Remove redundant
3038 definition.
3039
3040 2011-01-18 Tom Tromey <tromey@redhat.com>
3041
3042 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
3043 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
3044 (redisplay_window): Update.
3045 (syms_of_xdisp): Update.
3046
3047 2011-01-18 Tom Tromey <tromey@redhat.com>
3048
3049 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
3050 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
3051 Declare.
3052 * gtkutil.c (xg_uses_old_file_dialog):
3053 (xg_get_file_with_chooser):
3054 (xg_tool_bar_detach_callback): Don't redeclare globals.
3055
3056 2011-01-18 Tom Tromey <tromey@redhat.com>
3057
3058 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
3059 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
3060
3061 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
3062
3063 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
3064 defined __GNUC__. ../configure now checks for this GCC feature,
3065 which is now also supported by IBM and Oracle compilers.
3066 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
3067 since Solaris malloc returns mult-of-8.
3068
3069 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
3070
3071 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
3072
3073 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
3074
3075 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
3076 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
3077 * data.c (Fnumber_to_string): Use it.
3078 * print.c (float_to_string, print_object): Likewise.
3079
3080 Include <unistd.h> unilaterally.
3081 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
3082 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
3083 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
3084 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
3085 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3086 * xterm.c:
3087 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3088 unistd.h is always present now, possibly supplied by gnulib.
3089
3090 * mktime.c: Remove; moving to ../lib.
3091
3092 Use gnulib's mktime module.
3093 * deps.mk (mktime.o): Remove rule.
3094
3095 Use gnulib's ftoastr module.
3096 * print.c: Include ftoastr.h.
3097 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3098 Remove; no longer needed.
3099 (float_to_string): Use dtoastr rather than rolling our own code,
3100 which had an off-by-one bug on non-IEEE hosts.
3101
3102 Automate syncing from gnulib.
3103 * Makefile.in (lib): New macro.
3104 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3105 ($(lib)/libgnu.a): New rule.
3106 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3107
3108 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3109 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3110 so change the type of 'ign' to unsigned int from int.
3111
3112 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3113
3114 * xterm.h (struct x_display_info): Remove stray semicolon.
3115 The extra semicolon didn't conform to the C standard.
3116 Problem reported by Sun cc.
3117
3118 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3119 These changes make compilation easier to follow with Sun cc.
3120 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3121 EMACS_INT values without provoking overflow diagnostics.
3122 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3123 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3124 diagnostic with signed left shift.
3125
3126 * fileio.c (make_temp_name): Remove unreachable code.
3127
3128 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3129 Previously it was marked by preceding it with "return;", but
3130 Sun cc complains about this.
3131
3132 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3133 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3134 which fixed Bug#2370. Caught by Sun cc.
3135
3136 2011-01-15 Martin Rudalics <rudalics@gmx.at>
3137
3138 * window.c (inhibit_point_swap): New variable.
3139 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3140 point this time.
3141 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3142 of setting selected_window to nil (Bug#7728).
3143
3144 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3145
3146 * image.c (imagemagick_load_image, Finit_image_library):
3147 Free intermediate image after creating a MagickWand from it.
3148 Terminate MagickWand environment after image loading.
3149
3150 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
3151
3152 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3153 unexpected return values.
3154 (Fdbus_register_method): Remove connection initialization.
3155
3156 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
3157
3158 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3159 used by Fdbus_register_service.
3160 (QCdbus_request_name_replace_existing): Likewise.
3161 (QCdbus_request_name_do_not_queue): Likewise.
3162 (QCdbus_request_name_reply_primary_owner): Likewise.
3163 (QCdbus_request_name_reply_in_queue): Likewise.
3164 (QCdbus_request_name_reply_exists): Likewise.
3165 (QCdbus_request_name_reply_already_owner): Likewise.
3166 (Fdbus_register_service): New function.
3167 (Fdbus_register_method): Use Fdbus_register_service to do the name
3168 registration.
3169 (syms_of_dbusbind): Add symbols dbus-register-service,
3170 :allow-replacement, :replace-existing, :do-not-queue,
3171 :primary-owner, :existing, :in-queue and :already-owner.
3172
3173 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
3174
3175 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3176 when removing extra buttons.
3177
3178 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
3179
3180 * fns.c (Fyes_or_no_p): Doc fix.
3181
3182 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3183
3184 * fns.c (Fyes_or_no_p): Add usage.
3185
3186 2011-01-08 Glenn Morris <rgm@gnu.org>
3187
3188 * makefile.w32-in ($(EMACS)):
3189 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3190
3191 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3192 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3193
3194 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3195
3196 * image.c (imagemagick_load_image): Fix some resource leaks and
3197 error handling.
3198
3199 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
3200
3201 * fns.c (Fyes_or_no_p): Accept format string args.
3202
3203 2011-01-07 Glenn Morris <rgm@gnu.org>
3204
3205 * emacs.c (no_site_lisp): New int.
3206 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3207 (main): Set no_site_lisp.
3208 (standard_args): Add --no-site-lisp.
3209 * lisp.h (no_site_lisp): New int.
3210 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3211 directories to Vload_path.
3212
3213 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3214
3215 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3216
3217 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3218
3219 * dbusbind.c (Fdbus_register_method): Add optional parameter
3220 dont_register_service. Updated docstring accordingly.
3221
3222 2011-01-04 Glenn Morris <rgm@gnu.org>
3223
3224 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3225
3226 2011-01-03 Eli Zaretskii <eliz@gnu.org>
3227
3228 * image.c (png_jmpbuf): Remove definition.
3229 (my_png_error, png_load): Don't use png_jmpbuf.
3230
3231 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3232
3233 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3234
3235 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3236
3237 * image.c <Qlibpng_version>: New variable.
3238 (syms_of_image): Intern and staticpro it. Set its value to the
3239 version of PNG library we were compiled with.
3240 (my_png_error, png_load): Avoid GCC warnings about direct access
3241 to png_ptr->jmpbuf. (Bug#7716)
3242 (png_jmpbuf): New macro.
3243 (my_png_error, png_load): Use it instead of #ifdef'ing according
3244 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
3245
3246 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3247
3248 * .gdbinit (xgetptr): Fix the union+lsb case.
3249 (xbacktrace): Fix the union case.
3250
3251 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
3252
3253 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3254 different from selected-window's.
3255
3256 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3257
3258 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3259 equivalent of a menu item when the key sequence is given by the
3260 `:keys' attribute. (Bug#7662)
3261
3262 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3263 the basic faces are supported.
3264
3265 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
3266
3267 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3268
3269 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3270
3271 * xdisp.c (Fformat_mode_line): Fix last change.
3272
3273 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
3274
3275 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3276 faces (Bug#7587).
3277
3278 2011-01-02 Eli Zaretskii <eliz@gnu.org>
3279
3280 * fileio.c (Fexpand_file_name): One more doc fix.
3281
3282 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
3283
3284 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3285 image or label in the container.
3286 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3287 (xg_show_toolbar_item): Function deleted.
3288 (xg_tool_item_stale_p): New function.
3289 (update_frame_tool_bar): Calculate tool-bar style once per call.
3290 Instead of hiding text labels, omit them. Don't use
3291 xg_show_toolbar_item; create new GtkToolItems from scratch if
3292 necessary, instead of trying to re-use them. This avoids an
3293 annoying animation when changing tool-bars.
3294
3295 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3296
3297 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3298 title and buffer filename only for RepresentedFilename.
3299 Handle bad UTF-8 in buffer name (Bug#7517).
3300
3301 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3302
3303 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3304
3305 * nsfns.m (ns_set_name_iconic): Remove.
3306 (ns_set_name_internal): New function (Bug#7517).
3307 (Vicon_title_format): Extern declare.
3308 (ns_set_name): Call ns_set_name_internal.
3309 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3310 (x_implicitly_set_name): Ditto.
3311 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3312 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3313
3314 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3315
3316 * window.c (syms_of_window): Add missing defsubr for
3317 window-use-time.
3318
3319 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3320
3321 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3322 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3323
3324 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3325
3326 * buffer.c: Remove unused declarations.
3327 * buffer.h: Likewise.
3328 * charset.h: Likewise.
3329 * composite.h: Likewise.
3330 * dispextern.h: Likewise.
3331 * dispnew.c: Likewise.
3332 * font.h: Likewise.
3333 * fontset.c: Likewise.
3334 * fontset.h: Likewise.
3335 * intervals.h: Likewise.
3336 * keymap.h: Likewise.
3337 * lisp.h: Likewise.
3338 * syntax.c: Likewise.
3339 * syntax.h: Likewise.
3340 * termhooks.h: Likewise.
3341 * window.h: Likewise.
3342 * xsettings.h: Likewise.
3343 * xterm.c: Likewise.
3344 * xterm.h: Likewise.
3345
3346 * chartab.c (sub_char_table_ref): Make static.
3347 * dispnew.c (line_hash_code, required_matrix_height)
3348 (required_matrix_width): Likewise.
3349 * eval.c (interactive_p, apply_lambda): Likewise.
3350 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3351 Likewise.
3352 * font.c (QCadstyle, QCregistry, font_make_spec)
3353 (font_parse_fcname, font_encode_char, font_at): Likewise.
3354 * frame.c (x_frame_get_arg): Likewise.
3355 * keymap.c (get_keyelt): Likewise.
3356 * lread.c (read_filtered_event): Likewise.
3357 * print.c (write_string_1): Likewise.
3358 * window.c (delete_window, window_height, window_width)
3359 (foreach_window): Likewise.
3360 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3361 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3362 (xembed_send_message): Likewise.
3363
3364 * eval.c (run_hook_list_with_args): Delete.
3365 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3366 * terminal.c (get_terminal_param): Likewise.
3367 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3368
3369 * scroll.c: Fix comment.
3370
3371 * dispnew.c (add_window_display_history)
3372 (add_frame_display_history, glyph_row_slice_p)
3373 (find_glyph_row_slice, flush_stdout)
3374 (check_matrix_pointer_lossage, matrix_row)
3375 (check_matrix_invariants, check_window_matrix_pointers)
3376 (check_matrix_pointers, window_to_frame_vpos)
3377 (window_to_frame_hpos): Prototize.
3378 * textprop.c (erase_properties): Likewise.
3379
3380 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3381
3382 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3383 (print_preprocess): Fix handling of uninterned symbols in last change.
3384
3385 * print.c (print, print_preprocess, print_object): Use a hash table
3386 rather than a linear table for Vprint_number_table.
3387
3388 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3389
3390 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3391
3392 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
3393
3394 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3395 (parse_tool_bar_item): Use it to obtain image separators for
3396 displays not using native tool-bar separators.
3397
3398 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3399 specially, since this is now done in parse_tool_bar_item.
3400
3401 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3402
3403 Minor clean up to silence some gcc warnings.
3404 * window.c (Fset_window_buffer):
3405 * xterm.c (x_set_frame_alpha): Restructure code to silence
3406 compiler warning.
3407 (handle_one_xevent): Remove unused var `p'.
3408 (do_ewmh_fullscreen): Remove unused var `lval'.
3409 (xembed_set_info): Remove unused var `atom'.
3410 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3411 compiler warning.
3412 * fontset.c (fontset_id_valid_p, dump_fontset):
3413 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3414 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3415 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3416 label only when it's used.
3417 * image.c (x_create_bitmap_from_xpm_data):
3418 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3419 its callers.
3420 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3421 `consumed_chars'.
3422 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3423 (decode_coding_emacs_mule): Remove unused label `retry'.
3424 (detect_eol): Add parens to silence compiler warning.
3425 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3426 it's used to silence the compiler.
3427 (make_number): Modernize k&r declaration.
3428 (mark_char_table): Add parens to silence compiler warning.
3429
3430 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
3431
3432 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3433 tool-bar maps.
3434 (menu_separator_name_p): New function, from gtkutil.c.
3435 (separator_names): Move from gtkutil.c.
3436
3437 * keyboard.h (menu_separator_name_p): Add prototype.
3438
3439 * gtkutil.c (XG_BIN_CHILD): New macro.
3440 (xg_get_menu_item_label, xg_update_menubar)
3441 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3442 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3443 (separator_names, xg_separator_p): Move to keyboard.c.
3444 (create_menus, xg_update_submenu, update_frame_tool_bar):
3445 Use menu_separator_name_p.
3446
3447 * nsmenu.m (name_is_separator): Function deleted.
3448 (addItemWithWidgetValue): Use menu_separator_name_p.
3449
3450 * w32menu.c (name_is_separator): Function deleted.
3451 (add_menu_item): Use menu_separator_name_p.
3452
3453 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3454
3455 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3456 same as the background, use the face forground as cursor.
3457
3458 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3459
3460 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3461
3462 2010-12-13 Eli Zaretskii <eliz@gnu.org>
3463
3464 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3465 (face_before_or_after_it_pos, next_element_from_string)
3466 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3467 calculations of maximum string length before calling
3468 string_char_and_length and STRING_CHAR_AND_LENGTH.
3469 (string_char_and_length): Update commentary: MAXLEN is no longer
3470 needed.
3471
3472 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3473
3474 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3475 as (Qsave_session arg).
3476
3477 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3478 (smc_die_CB): Make an event with arg Qt.
3479 (Fhandle_save_session): If event has Qt as argument,
3480 call Fkill_emacs (Bug#7552).
3481
3482 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3483
3484 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3485
3486 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
3487
3488 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3489
3490 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3491
3492 * dispextern.h (struct it): New member overlay_strings_charpos.
3493
3494 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3495 charpos where we computed n_overlay_strings.
3496 (next_overlay_string): Load overlay strings at recorded position,
3497 which may not be the same as the iterator's charpos (Bug#7016).
3498
3499 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
3500
3501 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3502 obscured due to a vscroll (Bug#7537).
3503
3504 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
3505
3506 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3507
3508 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3509 Use FRAME_TOOLBAR_HEIGHT.
3510 (x_set_offset): Handle XNegative and YNegative in
3511 f->size_hint_flags (Bug#7510).
3512
3513 2010-12-11 Eli Zaretskii <eliz@gnu.org>
3514
3515 * w32fns.c (Fx_show_tip): Call try_window with last argument
3516 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3517 solved. Round up the tip height to an integral multiple of the
3518 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3519 (Bug#7398)
3520
3521 2010-12-08 Glenn Morris <rgm@gnu.org>
3522
3523 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3524
3525 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3526
3527 * xml.c (parse_region): Ignore blank HTML nodes.
3528 (make_dom): Return CDATA sections (like <style>foo</style>) as
3529 text nodes.
3530
3531 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3532
3533 * lread.c (read1): Allow newstyle unquote outside of backquote.
3534 Disallow old-style backquotes inside new-style backquotes.
3535 Don't count unquotes to figure out when we're "syntactically inside
3536 but semantically outside of a backquote" any more.
3537 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3538 to all contexts.
3539
3540 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
3541
3542 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3543
3544 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3545
3546 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3547 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3548 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3549
3550 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3551
3552 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3553 bit-field.
3554 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3555 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3556 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3557 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3558 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3559 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3560 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3561 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3562 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3563 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3564 * m/hp800.h: Remove file.
3565 * m/mips.h: Remove file.
3566
3567 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3568
3569 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3570 with cursor color and draw a rectangle around the image (Bug#7412).
3571
3572 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3573
3574 * frame.c (x_set_font): Remove unused variable.
3575
3576 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3577
3578 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3579
3580 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3581 drawing text under filled box cursor (Bug#7479).
3582
3583 2010-11-27 Kenichi Handa <handa@m17n.org>
3584
3585 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3586 i.e. integer.
3587 (Fdefine_charset_internal): Adjust for the above change.
3588 (init_charset_once): Likewise.
3589
3590 * charset.h (emacs_mule_charset): Adjust the prototype.
3591 Delete duplicated extern.
3592
3593 * coding.c (emacs_mule_char): Adjust for the change of
3594 emacs_mule_charset.
3595
3596 * lread.c (read_emacs_mule_char): Adjust for the change of
3597 emacs_mule_charset.
3598
3599 2010-11-27 Eli Zaretskii <eliz@gnu.org>
3600
3601 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3602 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3603
3604 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3605
3606 * alloc.c (mark_terminals): Ensure that the image cache is marked
3607 even if the terminal object was marked earlier (Bug#6301).
3608
3609 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
3610
3611 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3612
3613 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
3614
3615 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3616 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
3617 Use 23 as menubar height if 0. (Bug#7425).
3618
3619 2010-11-26 Eli Zaretskii <eliz@gnu.org>
3620
3621 * xdisp.c (set_message_1): Force paragraph direction in echo area
3622 be left-to-right.
3623
3624 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3625 when the click is on the header or mode line.
3626
3627 2010-11-25 Eli Zaretskii <eliz@gnu.org>
3628
3629 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3630 `cursor' property of the first character in overlay strings.
3631 (Bug#7474) (Bug#7481)
3632
3633 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3634
3635 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3636 (NSLeftAlternateKeyMask): New defines.
3637 (keyDown): Parse left and right keys separately (Bug#7458).
3638 Compare Left key masks exactly (Bug#7458).
3639
3640 2010-11-23 Eli Zaretskii <eliz@gnu.org>
3641
3642 * intervals.c (temp_set_point_both): Define before calling, to
3643 avoid GCC warnings.
3644
3645 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3646
3647 * nsmenu.m: Use #include <config.h> instead of "config.h".
3648
3649 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
3650 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3651 Move declarations ...
3652 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
3653 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
3654 ... here.
3655
3656 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3657 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3658 (gdb_pvec_type):
3659 * print.c (print_output_debug_flag):
3660 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3661 (safe_debug_print): New declaration.
3662
3663 * xterm.c:
3664 * systty.h:
3665 * sound.c: Include <sys/ioctl.h> unconditionally.
3666
3667 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3668
3669 * alloc.c (mark_maybe_object): Return early if given a Lisp
3670 integer (Bug#6301).
3671
3672 2010-11-21 Ken Brown <kbrown@cornell.edu>
3673
3674 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3675
3676 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3677
3678 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3679 Define (Bug#7458).
3680 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3681 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3682 NSRightControlKeyMask also (Bug#7458).
3683 (keyDown): Ditto (Bug#7458).
3684 (syms_of_nsterm): Defvar ns-right-command-modifier and
3685 ns-right-control-modifier (Bug#7458).
3686
3687 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3688
3689 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3690 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3691
3692 * intervals.h (temp_set_point, temp_set_point_both):
3693 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3694
3695 2010-11-20 Ken Brown <kbrown@cornell.edu>
3696
3697 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3698
3699 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3700
3701 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3702 \xNNNNNN for hex-code display of glyphless characters.
3703
3704 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3705
3706 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3707 Set important to ! vert_only.
3708 (xg_show_toolbar_item): Don't show label horizontally if
3709 tool item isn't important.
3710 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3711 xg_make_tool_item, or update important on existing tool item.
3712
3713 * keyboard.c (QCvert_only): New variable.
3714 (parse_tool_bar_item): Check for QCvert_only.
3715 (syms_of_keyboard): Initialize QCvert_only.
3716
3717 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3718
3719 2010-11-20 Eli Zaretskii <eliz@gnu.org>
3720
3721 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3722 same in-line.
3723
3724 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3725
3726 * xfaces.c (lookup_face): Make static.
3727 * dispnew.c (copy_row_except_pointers): Likewise.
3728 * syntax.c (dec_bytepos): Likewise.
3729 (inc_bytepos): Remove.
3730 * dispextern.h (lookup_face): Remove declaration.
3731
3732 2010-11-19 Eli Zaretskii <eliz@gnu.org>
3733
3734 * xdisp.c (set_cursor_from_row): Display cursor after all the
3735 glyphs that come from an overlay. Don't overstep the last glyph
3736 when skipping glyphs from an overlay. (Bug#6687)
3737
3738 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3739
3740 * alloc.c (refill_memory_reserve): Move declaration ...
3741 * lisp.h (refill_memory_reserve): ... here.
3742
3743 * strftime.c (_strftime_copytm): Add declaration.
3744
3745 * callproc.c (syms_of_callproc): Use intern_c_string.
3746
3747 Move declarations from .c files to .h files.
3748 * process.c (timers_run):
3749 * minibuf.c (quit_char):
3750 * lread.c (read_emacs_mule_char):
3751 * keyboard.c (minibuf_level, message_enable_multibyte)
3752 (pending_malloc_warning):
3753 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3754 (Qonly): Remove declarations.
3755 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3756 (Vselect_active_regions):
3757 * keyboard.h (timers_run): Add declarations.
3758
3759 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3760 (tm_diff): Convert definitions to standard C.
3761 (extra_args_spec_iso): Remove, unused.
3762
3763 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
3764
3765 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3766
3767 * config.in (HAVE_G_TYPE_INIT): New symbol.
3768
3769 2010-11-18 Eli Zaretskii <eliz@gnu.org>
3770
3771 * lread.c (Fload): Mention `load-in-progress' and
3772 `load-file-name'. (Bug#7346)
3773
3774 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3775 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3776 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3777 subprocesses. Use buffer_free only ifdef subprocesses.
3778
3779 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3780 the subprocesses version, not in the non-subprocesses one.
3781
3782 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3783
3784 2010-11-17 Eli Zaretskii <eliz@gnu.org>
3785
3786 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3787 lines on text-mode terminals. (bug#7417)
3788
3789 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3790
3791 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3792 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3793
3794 2010-11-17 Kenichi Handa <handa@m17n.org>
3795
3796 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3797 change (set charset-ID list instead of charset-symbol list).
3798
3799 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
3800
3801 * keyboard.c (make_lispy_position): For text area clicks, record Y
3802 pixel position relative to the text area, excluding header line.
3803 Also change X and Y to Lisp_Objects, not pointers; don't return
3804 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3805 buffer_posn_from_coords counting from the start of the text area.
3806 (Fposn_at_x_y, make_lispy_event): Callers changed.
3807
3808 * window.c (coordinates_in_window): Change X and Y to ints rather
3809 than pointers; don't return coordinates via pointers.
3810 (struct check_window_data): Change X and Y from pointers to ints.
3811 (window_from_coordinates): Remove args WX and WY; don't return
3812 coordinates via pointers.
3813 (Fcoordinates_in_window_p, window_from_coordinates):
3814 (check_window_containing, Fwindow_at): Callers changed.
3815 (window_relative_x_coord): New function.
3816
3817 * window.h (window_from_coordinates, window_relative_x_coord):
3818 Update prototypes.
3819
3820 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3821 the start of the text area.
3822
3823 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3824 call. Use window_relative_x_coord.
3825 (note_mouse_highlight): Change window_from_coordinates call.
3826
3827 * w32term.c (w32_read_socket):
3828 * msdos.c (dos_rawgetc):
3829 * xterm.c (handle_one_xevent): Likewise.
3830
3831 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3832
3833 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3834 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3835 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3836 Convert definitions to standard C.
3837 * regex.c: Do not include <stdlib.h>, config.h does it.
3838 Include unistd.h.
3839 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3840 (regerror, regfree): Convert definitions to standard C.
3841 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3842 (__mktime_internal): Convert definitions to standard C.
3843
3844 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3845
3846 * w32proc.c:
3847 * w32inevt.c:
3848 * w32heap.c:
3849 * w32.c: Remove config.h include guards.
3850
3851 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3852 No code changes.
3853
3854 * process.c: Include <sys/ioctl.h> unconditionally,
3855 keyboard.c already does it.
3856
3857 * keyboard.c (pending_malloc_warning): Add const to match
3858 definition in alloc.c.
3859 (Fset_input_interrupt_mode): Simplify #ifdefs.
3860
3861 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3862
3863 Clean up systty.h macros.
3864 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3865 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3866 definition in all uses.
3867 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3868 * sysdep.c (discard_tty_input, child_setup_tty)
3869 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3870 * emacs.c (shut_down_emacs):
3871 * callproc.c (child_setup):
3872 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3873
3874 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3875
3876 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3877
3878 * w32fns.c (Fx_create_frame):
3879 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3880 resource here; it's now done at startup.
3881
3882 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3883
3884 * xterm.c (set_wm_state): Add Qnil to final cons.
3885
3886 * xselect.c (x_send_client_event): Remove unused variables cons and
3887 size.
3888
3889 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3890
3891 * keyboard.c (modify_event_symbol): Add const to array elements of
3892 arg NAME_TABLE.
3893 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3894 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3895 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3896 Add const to array elements.
3897 (scroll_bar_parts): Make static. Fix position of const.
3898
3899 * w32fns.c (lispy_function_keys): Add const to extern.
3900
3901 * w32inevt.c (lispy_function_keys): Likewise.
3902
3903 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
3904
3905 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3906 resource here; it's now done at startup.
3907
3908 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3909
3910 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
3911
3912 Fix compilation on Solaris.
3913 * sysdep.c: Do not #include <term.h>.
3914 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3915
3916 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3917
3918 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3919
3920 * xterm.c (set_wm_state): Don't put Atom in cons, call
3921 make_fixnum_or_float on them first.
3922 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3923 Xatom_net_supported correctly.
3924
3925 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3926 (Fx_send_client_event): to here.
3927
3928 2010-11-13 Martin Rudalics <rudalics@gmx.at>
3929
3930 * window.c (Fwindow_use_time): New function.
3931
3932 2010-11-13 Eli Zaretskii <eliz@gnu.org>
3933
3934 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3935 zero-width characters.
3936
3937 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3938
3939 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3940 box before drawing the glyphs inside it.
3941
3942 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3943
3944 * dispextern.h (enum glyphless_display_method):
3945 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3946 All users changed.
3947
3948 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3949 Fix comments.
3950 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3951 whitespace in "[]", to simulate a box. Don't use uninitialized
3952 variable `width'.
3953
3954 2010-11-11 Julien Danjou <julien@danjou.info>
3955
3956 * xsettings.c (init_xsettings): Use already fetch atoms.
3957
3958 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3959 from dpyinfo.
3960
3961 * xselect.c (Fx_send_client_event): Split and create
3962 x_send_client_event.
3963
3964 * lisp.h: Do not EXFUN Fx_send_client_event.
3965
3966 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3967 from dpyinfo.
3968 (wm_supports): Use atoms from dpyinfo.
3969 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3970 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3971 (xembed_set_info): Use atoms from dpyinfo.
3972 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3973 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3974 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3975 Get all atoms in one round-trip.
3976 (set_wm_state): Use x_send_client_event rather than
3977 Fx_send_client_event, using Atom directly.
3978 (x_ewmh_activate_frame): Ditto.
3979 (x_set_sticky): Pass atoms to set_wm_state.
3980 (do_ewmh_fullscreen): Ditto.
3981
3982 * xterm.h (x_display_info): Add Xatom_net_supported,
3983 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3984 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3985
3986 * xfns.c (Fx_show_tip): Fix typo in docstring.
3987
3988 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3989
3990 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3991 it's not negative.
3992
3993 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3994
3995 * font.c (font_filter_properties): Add const to array elements of
3996 properties args.
3997
3998 * font.h (font_filter_properties): Likewise.
3999
4000 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
4001 elements.
4002
4003 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
4004
4005 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
4006
4007 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
4008 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
4009 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
4010 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
4011 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
4012
4013 2010-11-10 Glenn Morris <rgm@gnu.org>
4014
4015 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
4016
4017 2010-11-09 Eli Zaretskii <eliz@gnu.org>
4018
4019 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
4020
4021 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
4022
4023 * image.c (free_image): Don't garbage the frame here, since this
4024 function can be called while redisplaying (Bug#7210).
4025 (uncache_image): Garbage the frame here (Bug#6426).
4026
4027 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
4028
4029 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
4030 parent is the root window. Check this after traversing window tree.
4031
4032 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
4033
4034 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
4035
4036 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
4037 before traversing window tree (Bug#5721).
4038
4039 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
4040
4041 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
4042
4043 * xdisp.c (note_mode_line_or_margin_highlight):
4044 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
4045
4046 2010-11-06 Eli Zaretskii <eliz@gnu.org>
4047
4048 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
4049 adjust width of tool-tip frame to the width of text, excluding the
4050 stretch glyph at the beginning of R2L glyph rows.
4051
4052 * w32fns.c (Fx_show_tip): Likewise.
4053
4054 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
4055
4056 * nsfont.m: Include termchar for new mouse-highlight.
4057 (nsfont_draw): Use MOUSE_HL_INFO.
4058
4059 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4060
4061 Unify mouse-highlight code for all GUI and TTY sessions.
4062
4063 * term.c: Remove static mouse_face_* variables. All users
4064 changed.
4065 (term_show_mouse_face, term_clear_mouse_face)
4066 (fast_find_position, term_mouse_highlight): Functions deleted.
4067 (tty_draw_row_with_mouse_face): New function.
4068 (term_mouse_movement): Call note_mouse_highlight instead of
4069 term_mouse_highlight.
4070
4071 * nsterm.m (ns_update_window_begin, ns_update_window_end)
4072 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
4073 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4074 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
4075 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
4076 Replace Display_Info with Mouse_HLInfo everywhere where
4077 mouse_face_* members were accessed for mouse highlight purposes.
4078
4079 * xterm.c (x_update_window_begin, x_update_window_end)
4080 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
4081 (handle_one_xevent, x_free_frame_resources, x_term_init):
4082 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
4083 members were accessed for mouse highlight purposes.
4084
4085 * w32term.c (x_update_window_begin, x_update_window_end)
4086 (x_update_end, w32_read_socket, x_free_frame_resources)
4087 (w32_initialize_display_info): Replace Display_Info with
4088 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4089 for mouse highlight purposes.
4090
4091 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4092 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4093 unless the frame is on a window-system.
4094 (get_tool_bar_item, handle_tool_bar_click)
4095 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4096 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4097 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4098 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4099 Replace Display_Info with Mouse_HLInfo everywhere where
4100 mouse_face_* members were accessed for mouse highlight purposes.
4101 (coords_in_mouse_face_p): Move prototype out of the
4102 HAVE_WINDOW_SYSTEM conditional.
4103 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4104 HAVE_WINDOW_SYSTEM block.
4105 (try_window_id) [HAVE_GPM || MSDOS]:
4106 Call x_clear_window_mouse_face.
4107 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
4108 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4109 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4110 calling draw_glyphs directly.
4111 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4112 (cursor_in_mouse_face_p, rows_from_pos_range)
4113 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4114 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4115 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4116 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4117 fragments.
4118 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4119 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4120 integer.
4121 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
4122 (x_consider_frame_title, tool_bar_lines_needed):
4123 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
4124 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4125 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4126 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4127 part.
4128
4129 * dispnew.c (mirror_make_current): Set Y coordinate of the
4130 mode-line and header-line rows.
4131 (init_display): Setup initial frame's output_data for text
4132 terminal frames.
4133
4134 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4135 its own definition on msdos.c.
4136
4137 * msdos.c (show_mouse_face, clear_mouse_face)
4138 (fast_find_position, IT_note_mode_line_highlight)
4139 (IT_note_mouse_highlight): Functions deleted.
4140 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4141 instead of IT_note_mouse_highlight.
4142 (draw_row_with_mouse_face, popup_activated): New functions.
4143 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4144 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4145 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4146 where mouse_face_* members were accessed for mouse highlight
4147 purposes.
4148
4149 * msdos.h (initialize_msdos_display): Add prototype.
4150
4151 * frame.h (MOUSE_HL_INFO): New macro.
4152
4153 * lisp.h (Mouse_HLInfo): New data type.
4154
4155 * xterm.h (struct x_display_info):
4156 * w32term.h (struct w32_display_info):
4157 * nsterm.h (struct ns_display_info):
4158 * termchar.h (struct tty_display_info): Use it instead of
4159 mouse_face_* members.
4160
4161 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4162 1st argument.
4163 (frame_to_window_pixel_xy, note_mouse_highlight)
4164 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4165 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4166 HAVE_WINDOW_SYSTEM conditional.
4167 (draw_row_with_mouse_face): Declare prototype.
4168 (tty_draw_row_with_mouse_face): Declare prototype.
4169
4170 2010-11-05 Eli Zaretskii <eliz@gnu.org>
4171
4172 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4173 Remove unused variables.
4174
4175 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4176
4177 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4178 logic pointed out by Eli Zaretskii.
4179
4180 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4181
4182 * coding.c (coding-category-list): Refer to set-coding-system-priority
4183 instead of the obsolete set-coding-priority in the doc string.
4184
4185 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4186
4187 * nsfont.m (nsfont_draw): Correct previous patch to return
4188 correct value.
4189 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4190 don't change the method signature, change the return.
4191
4192 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
4193
4194 * nsfont.m (nsfont_draw)
4195 * nsimage.m (EmacsImage-setXBMColor:)
4196 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
4197
4198 2010-11-03 Julien Danjou <julien@danjou.info>
4199
4200 * image.c (gif_load): Add support for transparency and specified
4201 :background.
4202
4203 2010-11-01 Kenichi Handa <handa@m17n.org>
4204
4205 * dispextern.h (lookup_glyphless_char_display): Extern it.
4206
4207 * termhooks.h (struct terminal): New member charset_list.
4208
4209 * coding.c (Fset_terminal_coding_system_internal): Set the
4210 `charset_list' member of struct terminal.
4211
4212 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
4213 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4214
4215 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4216 (lookup_glyphless_char_display): Set it->what at the end.
4217 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4218 (last_glyphless_glyph_merged_face_id): Make them non-static.
4219
4220 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4221 Fix the arg with_background for font->driver->draw.
4222
4223 2010-11-01 Kenichi Handa <handa@m17n.org>
4224
4225 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4226 Surround chp by parentheses.
4227
4228 2010-11-01 Kenichi Handa <handa@m17n.org>
4229
4230 Implement various display methods for glyphless characters.
4231
4232 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4233 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4234 (Qzero_width): New variables.
4235 (THIN_SPACE_WIDTH): New macro.
4236 (lookup_glyphless_char_display): New function.
4237 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4238 (last_glyphless_glyph_merged_face_id): New variables.
4239 (get_next_display_element): Check glyphless characters.
4240 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4241 last_glyphless_glyph_face_id.
4242 (fill_glyphless_glyph_string): New function.
4243 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4244 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4245 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4246 (x_produce_glyphs): If a suitable font is not found, produce a
4247 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4248 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4249 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4250 Qzero_width.
4251 (Vglyphless_char_display): Declare it as a Lisp variable.
4252
4253 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
4254 (struct glyph): Change the size of the member "type" to 3.
4255 Add glyphless to the union slice and u.
4256 (enum display_element_type): Add IT_GLYPHLESS.
4257 (enum glyphless_display_method): New enum.
4258 (struct it): New member glyphless_method.
4259 (Vglyphless_char_display): Extern it.
4260
4261 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4262 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4263
4264 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
4265 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4266
4267 * nsterm.m (ns_draw_glyph_string): Handle the case
4268 GLYPHLESS_GLYPH (the detail is not yet implemented).
4269
4270 2010-10-31 Glenn Morris <rgm@gnu.org>
4271
4272 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4273
4274 * frame.c (syms_of_frame) <tool-bar-mode>:
4275 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4276
4277 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
4278
4279 * xterm.c (x_connection_closed): Print informative error message
4280 when aborting on GTK. This requires using shut_down_emacs
4281 directly instead of Fkill_emacs.
4282
4283 2010-10-29 Eli Zaretskii <eliz@gnu.org>
4284
4285 * emacs.c (main): Call syms_of_filelock unconditionally.
4286
4287 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4288 clause, but keep part of it conditioned on CLASH_DETECTION.
4289
4290 2010-10-29 Glenn Morris <rgm@gnu.org>
4291
4292 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4293 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4294 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4295 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4296 Sync docs between X, W32, NS.
4297
4298 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4299 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4300
4301 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
4302
4303 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4304 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4305
4306 2010-10-26 Eli Zaretskii <eliz@gnu.org>
4307
4308 * cmds.c (internal_self_insert): Don't insert if argument N is
4309 zero or negative. (Bug#7281)
4310
4311 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4312
4313 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4314
4315 2010-10-25 Glenn Morris <rgm@gnu.org>
4316
4317 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4318
4319 2010-10-24 Glenn Morris <rgm@gnu.org>
4320
4321 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4322 (Fx_window_property, Fx_file_dialog):
4323 * xfns.c (Fx_synchronize, Fx_change_window_property)
4324 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4325
4326 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
4327
4328 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4329
4330 2010-10-24 Eli Zaretskii <eliz@gnu.org>
4331
4332 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4333
4334 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4335 Deprecate use as a boolean flag.
4336
4337 2010-10-24 Jim Meyering <jim@meyering.net>
4338
4339 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4340
4341 2010-10-24 Glenn Morris <rgm@gnu.org>
4342
4343 * w16select.c (syms_of_win16select) <selection-coding-system>:
4344 <next-selection-coding-system>:
4345 * w32select.c (syms_of_w32select) <selection-coding-system>:
4346 <next-selection-coding-system>:
4347 Sync docs with select.el.
4348
4349 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4350 Lisp version.
4351
4352 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4353 Sync doc with the xterm.c version.
4354
4355 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4356 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4357
4358 2010-10-23 Glenn Morris <rgm@gnu.org>
4359
4360 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
4361 * frame.c (syms_of_frame) <menu-bar-mode>:
4362 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
4363 <hourglass-delay>: Sync docs with Lisp.
4364
4365 2010-10-23 Eli Zaretskii <eliz@gnu.org>
4366
4367 Implement mouse highlight for bidi-reordered lines.
4368
4369 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4370 (mouse_face_from_string_pos): New function, replaces
4371 fast_find_string_pos.
4372 (note_mouse_highlight): Call it instead of fast_find_string_pos.
4373 (note_mode_line_or_margin_highlight): Support bidi-reordered
4374 strings and R2L glyph rows. Fix comments.
4375 (note_mouse_highlight): When bidi reordering is turned on in a
4376 buffer, call next-single-property-change and
4377 previous-single-property-change with last argument nil.
4378 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
4379 glyph that stands for no text beyond the line end.
4380 (row_containing_pos): Don't return too early when CHARPOS is in a
4381 bidi-reordered continued line. Return immediately when the first
4382 hit is found in a line that is not continued, or when an exact
4383 match for CHARPOS is found.
4384 (rows_from_pos_range): New function.
4385 (mouse_face_from_buffer_pos): Use it instead of calling
4386 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4387 function to support mouse highlight in bidi-reordered lines and
4388 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4389 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4390 that the former is always above the latter or identical to it.
4391 (show_mouse_face): Support drawing highlighted R2L lines.
4392 (coords_in_mouse_face_p): New function, bidi-aware.
4393 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4394 Call it instead of comparing with mouse-face members of dpyinfo.
4395 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4396 usage of hpos and vpos.
4397
4398 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4399
4400 * xrdb.c: Include keyboard.h for MOTIF.
4401
4402 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4403 MOTIF (Bug#7263).
4404
4405 * xfns.c: Include Xm/TextF and Xm/List.
4406 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4407 Make ANSI prototypes.
4408
4409 2010-10-22 Glenn Morris <rgm@gnu.org>
4410
4411 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4412 Remove ccl and duplicate mouse.
4413
4414 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
4415
4416 * insdel.c (prepare_to_modify_buffer): Don't set
4417 saved-region-selection if modification hooks are disabled.
4418
4419 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
4420
4421 * cmds.c (Fdelete_char): Doc fix.
4422
4423 2010-10-19 Ken Brown <kbrown@cornell.edu>
4424
4425 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4426
4427 2010-10-19 Kenichi Handa <handa@m17n.org>
4428
4429 Fix incorrect font metrics when the same font is opened with
4430 different pixelsizes.
4431
4432 * xftfont.c: Include composite.h.
4433 (xftfont_shape): New function.
4434 (syms_of_xftfont): Set xftfont_driver.shape.
4435
4436 2010-10-18 Julien Danjou <julien@danjou.info>
4437
4438 * frame.c (Fframe_pointer_visible_p):
4439 Add `frame-pointer-visible-p' to get the pointer visibility.
4440
4441 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4442
4443 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4444 non-"EAGAIN"-like error to signal to Emacs that the socket should
4445 be closed.
4446
4447 2010-10-15 Eli Zaretskii <eliz@gnu.org>
4448
4449 * unexcoff.c (make_hdr): Fix prototype according to changes in
4450 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4451
4452 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4453
4454 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4455
4456 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4457 made building the X menu fail.
4458 (really-oldXMenu): Fix my previous fix.
4459
4460 2010-10-14 Damyan Pepper <damyanp@gmail.com>
4461
4462 Fix handling of font properties on Windows (bug#6303).
4463 * font.c (font_filter_properties): New function, refactored from
4464 ftfont_filter_properties.
4465 * font.h (font_filter_properties): Declare.
4466 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4467 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4468 (w32font_filter_properties): New function.
4469 (w32font_driver): Add w32font_filter_properties.
4470
4471 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4472
4473 * font.c (Ffont_variation_glyphs):
4474 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4475
4476 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
4477
4478 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4479 * w32font.c (w32_generic_family):
4480 * w32inevt.c (key_event):
4481 * w32menu.c (fill_in_menu):
4482 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4483 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4484 * w32term.c (w32_read_socket): Make static.
4485
4486 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4487
4488 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4489 prototypes; all callers changed.
4490
4491 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4492
4493 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4494 (OBJ2): New macro.
4495 (WIN32OBJ, FONTOBJ): Remove.
4496 (OBJ1): Redistribute object files with OBJ2.
4497 (LIBS, $(TEMACS)): Use TLIB2.
4498 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4499 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4500
4501 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
4502
4503 * emacs.c (Vdynamic_library_alist)
4504 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4505 Doc fix.
4506
4507 * lisp.h (Vdynamic_library_alist): Declare extern.
4508
4509 * image.c (Vimage_library_alist)
4510 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4511 (lookup_image_type): Use Vdynamic_library_alist.
4512 (Finit_image_library): Doc fix.
4513
4514 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4515
4516 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4517 (lispdir): Remove trailing /, update all uses.
4518
4519 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
4520
4521 * nsterm.m (Qleft): Declare.
4522 (ns_right_alternate_modifier): New variable.
4523 (NSRightAlternateKeyMask): New define.
4524 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4525 ns_right_alternate_modifier isn't Qleft.
4526 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4527 as emacs modifier for NSRightAlternateKeyMask.
4528 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4529
4530 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4531
4532 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4533 gnutls is ready, return EAGAIN as the errno.
4534
4535 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4536
4537 * vm-limit.c:
4538 * unexhp9k800.c:
4539 * unexelf.c:
4540 * unexaix.c:
4541 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4542
4543 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4544 (PROFILING_LDFLAGS): Remove, not needed anymore.
4545
4546 * Makefile.in: Use $(...) everywhere instead of ${...}.
4547 (CRT_DIR): Move near potential user.
4548 (START_FILE): Move near CRT_DIR, it might use it.
4549
4550 * sysdep.c (LPASS8): Remove, unused.
4551 (emacs_ospeed): Change from being a global to a local in the only
4552 user: init_baud_rate.
4553
4554 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4555
4556 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
4557 (emacs_gnutls_write): Remove the debuggin fsync call.
4558 (emacs_gnutls_read): Return -1 if we got an error from
4559 gnutls_read. This allows us to actually read lots of data from
4560 the GnuTLS stream.
4561 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4562 According to the documentation, this is correct, and it seems to
4563 make things work.
4564
4565 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
4566
4567 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4568
4569 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4570
4571 * keyboard.c: Revert last change; it was not intended to be
4572 synchronized with the trunk.
4573
4574 2010-10-08 Kenichi Handa <handa@m17n.org>
4575
4576 * coding.c (complement_process_encoding_system): Fix previous change.
4577
4578 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4579
4580 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4581 (Fdbus_init_bus): ... here. (Bug#7113)
4582
4583 2010-10-08 Glenn Morris <rgm@gnu.org>
4584
4585 * buffer.c (before-change-functions, after-change-functions):
4586 Three-year overdue doc fix following 2007-08-13 change.
4587
4588 2010-10-08 Kenichi Handa <handa@m17n.org>
4589
4590 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4591 eol-format, inherit from the system's default.
4592 (complement_process_encoding_system): Make a new coding system
4593 inherit the original eol-format.
4594
4595 2010-10-08 Kenichi Handa <handa@m17n.org>
4596
4597 * coding.c (complement_process_encoding_system): New function.
4598
4599 * coding.h (complement_process_encoding_system): Extern it.
4600
4601 * callproc.c (Fcall_process): Complement the coding system for
4602 encoding arguments.
4603 (Fcall_process_region): Complement the coding system for encoding
4604 the input to the process.
4605
4606 * process.c (Fstart_process): Complement the coding system for
4607 encoding arguments.
4608 (send_process): Complement the coding system for encoding what
4609 sent to the process.
4610
4611 2010-10-08 Kenichi Handa <handa@m17n.org>
4612
4613 * xfont.c (xfont_open): Fix setting of font->average_width from
4614 :avgwidth property (Bug#7123).
4615
4616 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
4617
4618 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4619 is more portable.
4620
4621 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
4622 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
4623 has not defined SIGIO.
4624
4625 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
4626
4627 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4628 draw the outermost line using the black relief, for legibility.
4629 Omit drawing the four corner pixels.
4630
4631 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
4632
4633 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4634 (read_key_sequence): Inline echo_prompt.
4635 (echo_dash): Add a dash only if key is continued (Bug#7137).
4636
4637 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4638
4639 Remove O_RDONLY, O_WRONLY definitions, not needed.
4640 * unexcoff.c:
4641 * lread.c:
4642 * fileio.c:
4643 * doc.c:
4644 * callproc.c:
4645 * alloc.c:
4646 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4647
4648 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4649
4650 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4651
4652 * gnutls.c: Add property list symbol holders.
4653 (emacs_gnutls_handshake): Clarify how sockets are passed to
4654 GnuTLS.
4655 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4656 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4657 and keyfiles to be a list of file names. Default to "NORMAL" for
4658 the priority string. Improve logging.
4659
4660 2010-10-03 Glenn Morris <rgm@gnu.org>
4661
4662 * fileio.c (Vdirectory_sep_char): Remove.
4663
4664 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4665
4666 * termhooks.h: Remove #ifdef CONSP.
4667
4668 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4669
4670 Include <fcntl.h> unconditionally.
4671 * termcap.c:
4672 * sysdep.c:
4673 * lread.c:
4674 * keyboard.c:
4675 * filelock.c:
4676 * fileio.c:
4677 * doc.c:
4678 * callproc.c:
4679 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4680 does it.
4681
4682 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4683
4684 * sysdep.c (flush_pending_output): Remove code, does not do
4685 anything on any platform.
4686
4687 Remove unused code.
4688 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4689 Remove select emulation, all systems support select.
4690 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4691 * process.c (create_process): Remove #if 0 code.
4692
4693 Remove unused arguments for unexec.
4694 The third one is never used, and the last two are always passed as zero.
4695 * emacs.c (unexec): Add declaration.
4696 (Fdump_emacs): Only pass the first two arguments to unexec.
4697 Simplify #ifdef.
4698 * unexw32.c (unexec):
4699 * unexsol.c (unexec):
4700 * unexhp9k800.c (unexec):
4701 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4702 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4703 (find_section): Use const.
4704 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4705 (unexec_error): Declare it NO_RETURN.
4706 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4707 it as an argument, remove data_start and entry_address arguments, unused.
4708 (unexec): Remove bss_start, data_start and
4709 entry_address arguments.
4710 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4711 it as an argument, remove data_start and entry_address arguments, unused.
4712 (unexec): Remove bss_start, data_start and
4713 entry_address arguments.
4714
4715 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
4716
4717 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4718
4719 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4720 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4721 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4722 Fix typos in docstrings.
4723 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4724 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4725
4726 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
4727
4728 * keyboard.c (command_loop_1): Make sure the mark is really alive
4729 before using it (Bug#7044).
4730
4731 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
4732
4733 * makefile.w32-in (tags): Rename target to full-tags.
4734
4735 2010-10-02 Eli Zaretskii <eliz@gnu.org>
4736
4737 * emacs.c (main): Remove !WINDOWSNT conditional.
4738 (Fkill_emacs): Don't mention exemption on MS-Windows.
4739
4740 2010-10-02 Glenn Morris <rgm@gnu.org>
4741
4742 * character.c (Fchar_bytes): Remove obsolete function.
4743 (syms_of_character): Remove Schar_bytes.
4744
4745 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4746 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4747 in batch-mode.
4748 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4749 (kill-emacs-hook): Doc fix.
4750
4751 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4752
4753 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
4754 (parse_region): Rework to take regions instead of strings, and
4755 renamed to reflect that these are the libxml functions.
4756
4757 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4758
4759 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4760 screen dimensions in tty->Wcm.
4761
4762 * xdisp.c (set_cursor_from_row): When the row is truncated and
4763 point is outside the range of displayed characters, position the
4764 cursor inside the scroll margin. (Bug#6349)
4765
4766 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4767
4768 Do not include stdlib.h and string.h, config.h does it.
4769 * xfont.c:
4770 * w32term.c:
4771 * w32reg.c:
4772 * w32inevt.c:
4773 * w32heap.c:
4774 * w32console.c:
4775 * w16select.c:
4776 * unexsol.c:
4777 * term.c:
4778 * sound.c:
4779 * scroll.c (m):
4780 * gtkutil.c:
4781 * font.c:
4782 * filelock.c:
4783 * fileio.c:
4784 * dosfns.c:
4785 * dbusbind.c:
4786 * bidi.c:
4787 * callproc.c:
4788 * process.c:
4789 * msdos.c:
4790 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4791
4792 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4793 defines it.
4794
4795 * process.c: Move #include <pty.h> earlier.
4796 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4797 (pty_name): Move definition later.
4798
4799 * nsselect.m (syms_of_nsselect):
4800 * nsmenu.m (syms_of_nsmenu):
4801 * nsfns.m (syms_of_nsfns):
4802 * msdos.c (syms_of_msdos):
4803
4804 * image.c (syms_of_image):
4805 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4806
4807 * point.h: Remove, unused.
4808
4809 2010-10-01 Eli Zaretskii <eliz@gnu.org>
4810
4811 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4812 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4813 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4814
4815 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4816
4817 * xml.c (parse_string): Use const.
4818
4819 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4820
4821 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4822 Also only override Vprint_level if it isn't already bound, and increase
4823 the level to 8 to produce more useful backtraces for bug reports.
4824
4825 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4826
4827 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4828
4829 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
4830
4831 * w32console.c (vga_stdcolor_name): Remove unused function;
4832 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4833
4834 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4835
4836 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4837 (Fgnutls_boot): Start the handshake.
4838 (emacs_gnutls_read): Perform the handshake from the reader loop.
4839 (Fgnutls_boot): Remove some debugging messages.
4840 Change indentation throughout to use the Emacs style.
4841 (emacs_gnutls_handshake): Cast the fds to something that's
4842 possibly the expected length.
4843 (emacs_gnutls_write): Return -1 if we try to write before handshake.
4844
4845 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4846
4847 * process.c (make_process): Set the gnutls_p field to zero by
4848 default.
4849 (read_process_output): Always call the gnutls_read function if the
4850 stream is a gnutls stream.
4851 (send_process): Ditto for writes.
4852
4853 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4854 or write anything until the state is GNUTLS_STAGE_READY.
4855 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4856
4857 2010-09-29 Eli Zaretskii <eliz@gnu.org>
4858
4859 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4860 NEUTRAL_DIR.
4861 (handle_invisible_prop, iterate_out_of_display_property)
4862 (next_element_from_buffer): If bidi_it.first_elt is set, call
4863 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4864 (Bug#7128)
4865
4866 * print.c (print_object): Fix format string and argument types for
4867 printing a Lisp_Misc_Marker.
4868
4869 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4870 (load_overlay_strings, get_overlay_strings_1)
4871 (get_overlay_strings, forward_to_next_line_start)
4872 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4873 (get_next_display_element, next_element_from_string)
4874 (next_element_from_c_string, next_element_from_buffer)
4875 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4876 (message_dolog, message_log_check_duplicate, message2_nolog)
4877 (message3, message3_nolog, vmessage, set_message, set_message_1)
4878 (hscroll_window_tree, text_outside_line_unchanged_p)
4879 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4880 (find_last_unchanged_at_beg_row)
4881 (find_first_unchanged_at_end_row, row_containing_pos)
4882 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
4883 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4884 Use EMACS_INT for buffer and string positions.
4885
4886 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4887 (row_containing_pos): Adjust prototype.
4888
4889 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4890 (message2_nolog, set_message): Adjust prototypes.
4891
4892 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4893
4894 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4895 (Fgnutls_boot): Use SDATA.
4896 (Fgnutls_handshake): Remove unused var `max_log_level'.
4897
4898 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4899
4900 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
4901 (Bug#7113)
4902
4903 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4904
4905 * xgselect.c (xg_select): Clear file descriptors not set from
4906 rfds and wfds.
4907
4908 * process.c (wait_reading_process_output): Add missing FD_CLR
4909 for write_mask (must mirror connect_wait_mask).
4910
4911 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4912
4913 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4914 prefix.
4915 (Fgnutls_boot): Use changed process members. Use log level with a
4916 function parameter to set it. Bring back Emacs-level debugging
4917 messages at log level 1 and 2.
4918
4919 * process.c (make_process): Initialize gnutls_log_level.
4920
4921 * process.h: Add gnutls_log_level and rename x509_cred and
4922 anon_cred to have the gnutls_ prefix for consistency.
4923
4924 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4925
4926 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
4927
4928 * w32.c (g_b_init_get_sid_identifier_authority)
4929 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4930 Remove, not used.
4931 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4932 (init_winsock): Remove useless assignment.
4933 (open_process_token, get_token_information, lookup_account_sid)
4934 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4935 (get_security_descriptor_owner, get_security_descriptor_group)
4936 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4937 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4938 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4939 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4940 (unc_volume_file_attributes, convert_from_time_t)
4941 (create_toolhelp32_snapshot, process32_first, process32_next)
4942 (open_thread_token, impersonate_self, revert_to_self)
4943 (get_process_memory_info, get_process_working_set_size)
4944 (global_memory_status, global_memory_status_ex, socket_to_fd)
4945 (shutdown_handler): Make static.
4946
4947 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
4948
4949 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4950 (xd_pending_messages): Functions removed.
4951 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4952 order to be compatible with add_read_fd. Determine bus from data,
4953 and call xd_read_message just for this bus.
4954 (xd_add_watch): Use xd_read_queued_messages as callback function.
4955 Add data.
4956
4957 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4958
4959 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4960
4961 * gnutls.c (gnutls_log_function): Add more debugging.
4962 (emacs_gnutls_read): Don't infloop while reading.
4963
4964 2010-09-27 Kenichi Handa <handa@m17n.org>
4965
4966 These changes are to remove restriction on the number of glyphs in
4967 one composition.
4968
4969 * dispextern.h (struct glyph): Change the member "slice" to union.
4970 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
4971 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4972
4973 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4974 instead of glyph->slice.
4975 (marginal_area_string): Likewise.
4976
4977 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4978 glyph->u.cmp.
4979 (append_composite_glyph): Likewise.
4980
4981 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4982 glyph->u.cmp.
4983 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4984 (append_composite_glyph): Likewise.
4985 (fill_image_glyph_string): Use glyph->slice.img instead of
4986 glyph->slice.
4987 (append_glyph, produce_image_glyph, append_stretch_glyph)
4988 (note_mouse_highlight): Likewise.
4989
4990 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4991
4992 * process.c (add_keyboard_wait_descriptor)
4993 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
4994 (wait_reading_process_output): Don't pass write_mask to select
4995 if SELECT_CANT_DO_WRITE_MASK is defined.
4996 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
4997
4998 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4999 (delete_write_fd): Declare.
5000
5001 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
5002 (write_mask): New variable.
5003 (max_input_desc): Rename from max_keyboard_desc.
5004 (fd_callback_info): New variable.
5005 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
5006 New functions.
5007 (Fmake_network_process): FD_SET write_mask.
5008 (deactivate_process): FD_CLR write_mask.
5009 (wait_reading_process_output): Connecting renamed to Writeok.
5010 check_connect removed. check_write is new. Remove references to gpm.
5011 Use Writeok/check_write unconditionally (i.e. no #ifdef
5012 NON_BLOCKING_CONNECT) instead of Connecting.
5013 Loop over file descriptors and call callbacks in fd_callback_info
5014 if file descriptor is ready for I/O.
5015 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
5016 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
5017 (keyboard_bit_set): Use max_input_desc.
5018 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
5019 Remove #ifdef subprocesses. Use max_input_desc.
5020 (init_process): Initialize write_mask and fd_callback_info.
5021
5022 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
5023
5024 * dbusbind.c: Include process.h.
5025 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
5026 (xd_read_message_1): New functions.
5027 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
5028 Handle watch for both read and write.
5029 (Fdbus_init_bus): Also register xd_toggle_watch.
5030 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5031 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
5032 to dbus_connection_flush.
5033 (xd_read_message): Move most of the code to xd_read_message_1.
5034 Call xd_read_message_1 until status is COMPLETE.
5035
5036 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
5037
5038 * term.c: Do not include sys/ioctl.h, not needed.
5039 (init_tty): Reorder code to reduce the number of #ifdefs.
5040 No code changes.
5041
5042 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
5043
5044 * process.h: Set up GnuTLS support.
5045
5046 * process.c (make_process, Fstart_process)
5047 (read_process_output, send_process): Set up GnuTLS support for
5048 process input/output file descriptors.
5049
5050 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
5051
5052 * gnutls.c: The source code for GnuTLS support in Emacs.
5053
5054 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
5055
5056 * config.in: Set up GnuTLS support.
5057
5058 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
5059 (obj, LIBES): Set up GnuTLS support.
5060
5061 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
5062
5063 * w32.c (get_emacs_configuration_options): Fix previous change.
5064
5065 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
5066
5067 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
5068 alive before using it (Bug#6977).
5069
5070 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
5071
5072 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
5073
5074 * dispextern.h: EMACS_INT/int fixup.
5075
5076 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
5077 fixup.
5078
5079 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
5080
5081 2010-09-25 Eli Zaretskii <eliz@gnu.org>
5082
5083 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
5084 (Fselect_window, window_scroll_pixel_based)
5085 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5086 Use EMACS_INT for buffer positions.
5087
5088 * textprop.c (validate_interval_range, interval_of)
5089 (property_change_between_p, Fadd_text_properties)
5090 (set_text_properties_1, Fremove_text_properties)
5091 (Fremove_list_of_text_properties, Ftext_property_any)
5092 (Ftext_property_not_all, copy_text_properties)
5093 (text_property_list, extend_property_ranges)
5094 (verify_interval_modification): Use EMACS_INT for buffer
5095 positions.
5096
5097 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5098 for buffer positions.
5099
5100 * process.c (read_process_output, send_process)
5101 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5102 and string positions and size.
5103
5104 * print.c (print_object, print_string, strout): Use EMACS_INT for
5105 string indices.
5106
5107 * minibuf.c (string_to_object): Use EMACS_INT for string position
5108 and size.
5109
5110 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5111
5112 * lread.c <read_from_string_index, read_from_string_index_byte>
5113 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5114 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5115 buffer positions and string length.
5116
5117 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5118 EMACS_INT.
5119 (echo_truncate, adjust_point_for_property, read_char)
5120 (gen_help_event, make_lispy_event, modify_event_symbol)
5121 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5122 for buffer positions and string length.
5123
5124 * keyboard.h (gen_help_event): Adjust prototype.
5125
5126 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5127
5128 * commands.h <last_point_position>: Declare EMACS_INT.
5129
5130 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5131 (truncate_echo_area): Accept EMACS_INT argument.
5132
5133 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5134
5135 * lisp.h (truncate_echo_area): Adjust prototype.
5136
5137 * composite.c (composition_adjust_point): Return EMACS_INT.
5138
5139 * composite.h (composition_adjust_point): Adjust prototype.
5140
5141 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
5142
5143 * process.c (Fmake_network_process): When arg :host is 'local,
5144 use address 127.0.0.1, not name "localhost". (Bug#6781)
5145
5146 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5147
5148 * indent.c (Fcurrent_indentation, indented_beyond_p)
5149 (compute_motion): Use EMACS_INT for buffer position variables.
5150
5151 * lisp.h (indented_beyond_p): Adjust prototype.
5152
5153 * buffer.c (overlay_strings): Return EMACS_INT.
5154
5155 * buffer.h (overlay_strings): Adjust prototype.
5156
5157 * region-cache.c (pp_cache): Adjust format to arguments.
5158
5159 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5160 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5161 (verror): Use EMACS_INT for size of allocated buffer.
5162
5163 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5164 positions.
5165
5166 * xdisp.c (redisplay_internal, try_window_id)
5167 (set_cursor_from_row, find_first_unchanged_at_end_row):
5168 Use EMACS_INT for buffer positions.
5169
5170 * dispextern.h (set_cursor_from_row): Adjust prototype.
5171
5172 * dispnew.c (increment_matrix_positions)
5173 (increment_row_positions, copy_glyph_row_contents)
5174 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5175 positions.
5176
5177 * dispextern.h (mode_line_string, marginal_area_string)
5178 (increment_matrix_positions, increment_row_positions):
5179 Adjust prototypes.
5180
5181 * data.c (Faref, Faset): Use EMACS_INT for string length and
5182 positions.
5183
5184 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5185 characters to insert.
5186
5187 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5188 position and size.
5189
5190 * syntax.c (scan_words, update_syntax_table)
5191 (prev_char_comend_first, back_comment, skip_chars)
5192 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5193 Use EMACS_INT for buffer and string positions.
5194
5195 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5196
5197 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5198 positions.
5199
5200 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5201
5202 * scroll.c (calculate_scrolling, line_ins_del)
5203 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5204 conversion.
5205
5206 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5207 (region_cache_backward, region_cache_forward)
5208 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5209 conversion.
5210
5211 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5212
5213 * eval.c (verror): Fix EMACS_INT/int conversion.
5214
5215 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
5216 (print_preprocess, print_check_string_charset_prop)
5217 (print_object): Fix EMACS_INT/int conversion.
5218
5219 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5220
5221 2010-09-24 Eli Zaretskii <eliz@gnu.org>
5222
5223 * callproc.c (Fcall_process): Use EMACS_INT for count of
5224 characters read from the subprocess.
5225
5226 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5227 positions.
5228 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5229 positions.
5230
5231 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5232 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5233 length.
5234 (advance_to_char_boundary, Fset_buffer_multibyte)
5235 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5236 (overlay_touches_p, record_overlay_string, overlay_strings)
5237 (recenter_overlay_lists, fix_start_end_in_overlays)
5238 (modify_overlay, Fmove_overlay, report_overlay_modification)
5239 (evaporate_overlays): Use EMACS_INT for buffer positions.
5240
5241 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5242 Adjust prototypes.
5243
5244 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5245 positions.
5246
5247 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5248 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5249 (Fsubstring_no_properties, substring_both, Ffillarray)
5250 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5251 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5252 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5253 (Fmd5): Use EMACS_INT for buffer and string positions and length
5254 variables and arguments.
5255
5256 * lisp.h (substring_both): Adjust prototype.
5257
5258 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
5259
5260 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5261 * w32fns.c (clipboard_sequence_fn): Don't declare.
5262 (globals_of_w32fns): Don't initialize it.
5263
5264 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
5265
5266 * syntax.c (back_comment): Detect the case where a 1-char comment
5267 starter is also the 2nd char of a 2-char comment ender.
5268
5269 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
5270
5271 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5272
5273 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5274
5275 * eval.c (verror): EMACS_INT/int cleanup.
5276
5277 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5278 unwind_protect more than 2GB worth of functions.
5279
5280 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5281
5282 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5283 string and avoid compiler warnings.
5284 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5285 all users.
5286
5287 * lread.c (oblookup): EMACS_INT/int cleanup.
5288
5289 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5290
5291 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5292
5293 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5294
5295 * lisp.h (clip_to_bounds): Adjust prototype.
5296
5297 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5298
5299 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5300
5301 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5302
5303 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5304
5305 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5306 cleanup.
5307
5308 * lisp.h: Change the definition of all marker.c functions that
5309 take and return buffer stuff to be EMACS_INT instead of int.
5310
5311 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5312 (buf_charpos_to_bytepos, bytepos_to_charpos)
5313 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5314 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5315 for all buffer positions.
5316
5317 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
5318
5319 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5320 (split_interval_right, find_interval, next_interval)
5321 (delete_node, delete_interval, interval_deletion_adjustment)
5322 (adjust_intervals_for_deletion, merge_interval_right)
5323 (merge_interval_left, graft_intervals_into_buffer)
5324 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5325
5326 * intervals.h (traverse_intervals): Update prototype.
5327
5328 2010-09-23 Eli Zaretskii <eliz@gnu.org>
5329
5330 * indent.c (compute_motion): Use EMACS_INT for arguments to
5331 region_cache_forward.
5332
5333 * region-cache.c (struct boundary, struct region_cache):
5334 Use EMACS_INT for positions.
5335 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5336 (delete_cache_boundaries, set_cache_region)
5337 (invalidate_region_cache, know_region_cache)
5338 (region_cache_forward, region_cache_backward, pp_cache):
5339 Use EMACS_INT for buffer positions.
5340
5341 * region-cache.h (know_region_cache, invalidate_region_cache)
5342 (region_cache_forward, region_cache_backward): Adjust prototypes.
5343
5344 * search.c (string_match_1, fast_c_string_match_ignore_case)
5345 (looking_at_1, scan_buffer, scan_newline)
5346 (find_next_newline_no_quit, find_before_next_newline)
5347 (search_command, trivial_regexp_p, search_buffer, simple_search)
5348 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5349 and string positions and length.
5350
5351 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5352 (find_before_next_newline): Adjust prototypes.
5353
5354 * editfns.c (transpose_markers, update_buffer_properties)
5355 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5356 (get_pos_property, Fconstrain_to_field)
5357 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5358 (Fchar_after, Fchar_before, Finsert_char)
5359 (Finsert_buffer_substring, Fcompare_buffer_substrings)
5360 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5361 Use EMACS_INT for buffer and string position variables.
5362 (Finsert_char): Protect against too large insertions.
5363
5364 * lisp.h (clip_to_bounds): Adjust prototype.
5365
5366 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5367 (balance_an_interval, split_interval_right, split_interval_left)
5368 (find_interval, next_interval, update_interval)
5369 (adjust_intervals_for_insertion, delete_node, delete_interval)
5370 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5371 (offset_intervals, merge_interval_right, merge_interval_left)
5372 (graft_intervals_into_buffer, adjust_for_invis_intang)
5373 (move_if_not_intangible, get_local_map, copy_intervals)
5374 (copy_intervals_to_string, compare_string_intervals)
5375 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
5376 and for interval tree size.
5377
5378 * intervals.h (traverse_intervals, split_interval_right)
5379 (split_interval_left, find_interval, offset_intervals)
5380 (graft_intervals_into_buffer, copy_intervals)
5381 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5382 (update_interval): Adjust prototypes.
5383
5384 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5385 Use EMACS_INT for buffer position variables and arguments.
5386
5387 * composite.c (get_composition_id, find_composition)
5388 (run_composition_function, compose_text)
5389 (composition_gstring_width, autocmp_chars)
5390 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5391 for buffer positions and string length variables and arguments.
5392
5393 * composite.h (get_composition_id, find_composition, compose_text)
5394 (composition_gstring_width): Adjust prototypes.
5395
5396 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5397
5398 * xdisp.c (store_mode_line_noprop, display_mode_element):
5399 Use EMACS_INT for string positions.
5400
5401 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5402 position arguments.
5403
5404 * intervals.h (get_property_and_range): Adjust prototype.
5405
5406 * character.c (parse_str_as_multibyte, str_as_multibyte)
5407 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5408 (string_count_byte8, string_escape_byte8, c_string_width)
5409 (strwidth, lisp_string_width, multibyte_chars_in_text):
5410 Use EMACS_INT for string length variables and arguments.
5411
5412 * character.h (parse_str_as_multibyte, str_as_multibyte)
5413 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
5414 (c_string_width, strwidth, lisp_string_width):
5415 Adjust prototypes.
5416
5417 * font.c (font_intern_prop): Use EMACS_INT for string length
5418 variables.
5419
5420 * font.c (font_intern_prop): Use EMACS_INT for string length
5421 variables.
5422
5423 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5424 variables.
5425
5426 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5427 (Fmake_string): Protect against too large strings.
5428 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5429 (live_misc_p): Use ptrdiff_t instead of int for pointer
5430 differences.
5431 (string_bytes, check_sblock, check_string_free_list)
5432 (allocate_string_data, compact_small_strings, Fmake_string)
5433 (Fmake_bool_vector, make_string, make_unibyte_string)
5434 (make_multibyte_string, make_string_from_bytes)
5435 (make_specified_string_string, Fmake_list, Fmake_vector):
5436 Use EMACS_INT for string length variables and arguments.
5437 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5438 (Fpurecopy): Use EMACS_INT for string size.
5439 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5440 for vector size.
5441
5442 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5443 (make_string_from_bytes, make_specified_string_string)
5444 (make_pure_string, string_bytes, check_point_in_composition):
5445 Adjust prototypes.
5446
5447 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5448
5449 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5450 (check_translation): Use EMACS_INT for buffer positions and
5451 length.
5452
5453 * undo.c (record_marker_adjustment, record_delete)
5454 (record_change, record_point, record_insert)
5455 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5456 buffer positions.
5457
5458 * lisp.h (record_marker_adjustment, record_delete)
5459 (record_change, record_point, record_insert)
5460 (record_property_change, Fprimitive_undo): Adjust prototypes.
5461
5462 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
5463 Eli Zaretskii <eliz@gnu.org>
5464
5465 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5466
5467 2010-09-22 Eli Zaretskii <eliz@gnu.org>
5468
5469 * minibuf.c (Fminibuffer_contents)
5470 (Fminibuffer_contents_no_properties)
5471 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5472 positions.
5473
5474 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5475 mark.
5476
5477 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5478 (allocate_string_data): Accept EMACS_INT for string length.
5479
5480 * editfns.c (Ffield_string, Ffield_string_no_properties)
5481 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5482 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5483 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5484 (Ffield_end): Use EMACS_INT for buffer positions.
5485
5486 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5487 point with mark.
5488
5489 * lisp.h (allocate_string_data, make_uninit_string)
5490 (make_uninit_multibyte_string, make_buffer_string)
5491 (make_buffer_string_both): Adjust prototypes.
5492
5493 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
5494
5495 * xml.c: Switch to GNU indentation.
5496 (make_dom): Change parse tree format to match xml.el.
5497 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5498 (Fxml_parse_string_internal): Rename from xml-parse-string.
5499
5500 2010-09-22 Kenichi Handa <handa@m17n.org>
5501
5502 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5503 only if we are not at a composition.
5504 (set_iterator_to_next): Give it->end_charpos to
5505 composition_compute_stop_pos.
5506 (set_iterator_to_next, next_element_from_buffer): Likewise.
5507
5508 * dispnew.c (buffer_posn_from_coords): Fix position when the
5509 current display element is a grapheme cluster in bidi-reordered
5510 region.
5511
5512 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5513
5514 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5515 the regions may overlap.
5516
5517 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
5518
5519 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5520
5521 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5522
5523 * emacs.c: Do not include sys/ioctl.h, not needed.
5524
5525 * doprnt.c: Do not include stdlib.h, config.h does it.
5526 Move #include before macro definition.
5527
5528 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5529
5530 * Makefile.in (temacs): Link using $(CC) not $(LD).
5531 (LD_FIRSTFLAG): Define using autoconf.
5532 (LD): Remove.
5533
5534 Remove HAVE_TERMIOS definitions.
5535 * s/usg5-4-common.h (HAVE_TERMIOS):
5536 * s/template.h (HAVE_TERMIOS):
5537 * s/gnu-linux.h (HAVE_TERMIOS):
5538 * s/darwin.h (HAVE_TERMIOS):
5539 * s/cygwin.h (HAVE_TERMIOS):
5540 * s/bsd-common.h (HAVE_TERMIOS):
5541 * s/aix4-2.h (HAVE_TERMIOS):
5542 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5543 defined on all non-MS platforms.
5544 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5545
5546 * xterm.c (xt_action_hook): Use const.
5547
5548 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
5549
5550 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5551 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5552 (gethostname) [!HAVE_SOCKETS]: Remove.
5553 (SOCK_REPLACE_HANDLE): Remove macro.
5554 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5555 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5556 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5557 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5558
5559 2010-09-18 Eli Zaretskii <eliz@gnu.org>
5560
5561 * deps.mk (xml.o): Add dependencies.
5562
5563 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5564 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
5565
5566 * bidi.c (bidi_paragraph_init): Accept an additional argument
5567 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5568 search back until a paragraph with a strong directional character
5569 is found, and use that to determine paragraph's base direction.
5570
5571 * dispextern.h (bidi_paragraph_init): Update prototype.
5572
5573 2010-09-17 Eli Zaretskii <eliz@gnu.org>
5574
5575 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5576 of w32api >= 3.15. (Bug#6989)
5577
5578 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5579
5580 * process.c (wait_reading_process_output): Don't message about
5581 accept-process-output unless the time limit really is zero.
5582
5583 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5584
5585 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5586 int/Lisp_Object mixup).
5587
5588 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5589
5590 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5591 not HELP.
5592
5593 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
5594
5595 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5596 bar's pixel width to Lisp (Bug#7048).
5597
5598 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5599
5600 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5601
5602 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5603
5604 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5605 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5606
5607 2010-09-17 Kenichi Handa <handa@m17n.org>
5608
5609 * ftfont.c (ftfont_check_otf): Fix previous change.
5610
5611 2010-09-14 Kenichi Handa <handa@m17n.org>
5612
5613 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5614 existence of GSUB or GPOS.
5615
5616 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
5617
5618 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5619
5620 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5621
5622 * xml.c (parse_buffer): Rename to parse_string(), since that's
5623 what it does.
5624 (parse_string): Return nil when the document can't be parsed.
5625
5626 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5627
5628 * xterm.c (get_current_vm_state): New function.
5629 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5630 want_fullscreen so set_wm_state calls are few (Bug#7013).
5631 (x_handle_net_wm_state): Move code to get_current_vm_state and
5632 call that function.
5633
5634 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
5635
5636 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5637
5638 2010-09-14 Kenichi Handa <handa@m17n.org>
5639
5640 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5641 we may use designation or locking-shift.
5642
5643 2010-09-14 Kenichi Handa <handa@m17n.org>
5644
5645 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5646 sequence when the source is multibyte.
5647
5648 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5649
5650 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5651 Don't make first argument optional. Doc fix.
5652
5653 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5654
5655 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5656 parameters for the doc string.
5657
5658 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5659
5660 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5661
5662 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5663
5664 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5665 (syms_of_fns): Don't defsubr Sy_or_n_p.
5666 * lisp.h: Don't declare Fy_or_n_p.
5667 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5668
5669 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5670
5671 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5672
5673 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5674
5675 * xml.c: New file.
5676 (Fhtml_parse_buffer): New function to interface to the libxml2
5677 html parsing function.
5678
5679 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
5680
5681 * biditype.h: Regenerate.
5682
5683 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5684
5685 * nsimage.m (ns_load_image): Check argument types.
5686
5687 * image.c: Remove all uses of gcpro.
5688 (xpm_load): Check all lisp types.
5689 (pbm_load): Likewise.
5690 (png_load): Likewise.
5691 (jpeg_load): Likewise.
5692 (tiff_load): Likewise.
5693 (gif_load): Likewise.
5694 (imagemagick_load_image): Likewise.
5695 (imagemagick_load): Likewise.
5696 (svg_load): Likewise.
5697 (gs_load): Likewise.
5698
5699 2010-09-04 Eli Zaretskii <eliz@gnu.org>
5700
5701 * w32uniscribe.c (uniscribe_shape): Update commentary.
5702 Don't try to reorder grapheme clusters, since LGSTRING should always
5703 hold them in the logical order.
5704 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5705 return glyph codes in the logical order.
5706
5707 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5708
5709 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
5710 (imagemagick_load_image): Fix type mismatch.
5711 (Fimagemagick_types): Likewise. Doc fix.
5712
5713 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5714
5715 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5716
5717 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5718
5719 * xselect.c: Remove declaration of cut-buffer objects and functions.
5720 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5721 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5722 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5723 (Fx_rotate_cut_buffers_internal): Remove.
5724 (syms_of_xselect): Remove defsubr of above.
5725 Remove intern of QCUT_BUFFERn.
5726
5727 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5728
5729 * cmds.c (Vblink_paren_function): Remove.
5730 (internal_self_insert): Make it insert N chars at a time.
5731 Don't call blink-paren-function.
5732 (Fself_insert_command): Adjust accordingly.
5733 (syms_of_cmds): Don't declare blink-paren-function.
5734
5735 2010-08-31 Kenichi Handa <handa@m17n.org>
5736
5737 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5738 characters.
5739
5740 * term.c (encode_terminal_code): Fix the previous change.
5741 (produce_glyphs): Don't set it->char_to_display here.
5742 Don't handle unibyte-display-via-language-environment here.
5743 (produce_special_glyphs): Set temp_it.char_to_display before
5744 calling produce_glyphs.
5745
5746 * xdisp.c (get_next_display_element): Set it->char_to_display
5747 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5748 characters.
5749 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5750 calling PRODUCE_GLYPHS.
5751 (append_space_for_newline): Save and store it->char_to_display.
5752 Set it->char_to_display before calling PRODUCE_GLYPHS.
5753 (extend_face_to_end_of_line): Set it->char_to_display before
5754 calling PRODUCE_GLYPHS.
5755 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5756 character to its byte value.
5757 (get_char_glyph_code): New function.
5758 (produce_stretch_glyph): Set it2.char_to_display too before
5759 calling x_produce_glyphs.
5760 (x_produce_glyphs): Simplify by using the same code for ASCII and
5761 non-ASCII characters. Don't set it->char_to_display here.
5762 Don't handle unibyte-display-via-language-environment here. For a
5763 character of no glyph, use font->space_width instead of FONT_WIDTH.
5764
5765 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5766
5767 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5768
5769 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
5770
5771 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5772
5773 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5774
5775 * marker.c (Fcopy_marker): Make the first arg optional.
5776
5777 2010-08-30 Kenichi Handa <handa@m17n.org>
5778
5779 * composite.c (composition_update_it): Fix computing of
5780 cmp_it->width.
5781
5782 2010-08-29 Kenichi Handa <handa@m17n.org>
5783
5784 * term.c (encode_terminal_code): Encode byte chars to the
5785 corresponding bytes.
5786
5787 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5788
5789 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5790
5791 2010-08-26 Kenichi Handa <handa@m17n.org>
5792
5793 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5794 on calling composition_compute_stop_pos.
5795
5796 2010-08-25 Kenichi Handa <handa@m17n.org>
5797
5798 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5799 :otf.
5800
5801 * composite.c (composition_compute_stop_pos): Don't break
5802 composition at PT.
5803 (composition_reseat_it): Likewise. Fix calculation of character
5804 position starting a composition.
5805 (Fcomposition_get_gstring): Don't limit the number of components
5806 for automatic composition.
5807
5808 2010-08-25 Kenichi Handa <handa@m17n.org>
5809
5810 * composite.c (composition_compute_stop_pos): In forward search,
5811 pay attention to the possibility that some character after ENDPOS
5812 will be composed with charactrs before ENDPOS.
5813
5814 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
5815
5816 * keyboard.c (command_loop_1): Don't clobber primary selection
5817 during handle-switch-frame (Bug#6872).
5818
5819 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
5820
5821 * dbusbind.c: Accept UNIX domain sockets as bus address.
5822 (Fdbus_close_bus): New function.
5823 (Vdbus_registered_buses): New variable.
5824 (xd_initialize): Implement string as bus address.
5825 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5826 (Fdbus_get_unique_name, Fdbus_call_method)
5827 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5828 (Fdbus_method_error_internal, Fdbus_send_signal)
5829 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5830 check. This is done in xd_initialize_bus. Adapt doc string, if
5831 necessary.
5832 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5833 Vdbus_registered_buses.
5834 (Vdbus_registered_objects_table): Create hash.
5835
5836 2010-08-22 Juri Linkov <juri@jurta.org>
5837
5838 * keyboard.c (Fexecute_extended_command): Move reading a command name
5839 with `completing-read' to a new Elisp function `read-extended-command'.
5840 Call it to read a command to `function' (bug#5364, bug#5214).
5841
5842 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5843
5844 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5845
5846 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
5847
5848 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5849 instead of SAFE_ALLOCA.
5850
5851 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
5852
5853 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5854 (Bug#6214).
5855
5856 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5857
5858 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5859
5860 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5861
5862 * doc.c (Fsnarf_documentation): Initialize skip_file before
5863 build-files test.
5864
5865 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
5866
5867 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5868 New definitions.
5869 (HAVE_TERMIO): Remove.
5870
5871 2010-08-22 Eli Zaretskii <eliz@gnu.org>
5872
5873 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5874
5875 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5876 for w32.
5877
5878 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5879 it's done in nt/config.nt.
5880
5881 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5882
5883 * unexcoff.c (report_error, make_hdr, write_segment)
5884 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5885 Convert argument lists and prototypes to ANSI C.
5886 (make_hdr, write_segment): Remove unused variables.
5887 (unexec): Remove commented-out line. Initialize `new' to shut up
5888 compiler warnings.
5889
5890 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5891
5892 Simplify termio code.
5893 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5894 HAVE_TERMIO code is obsolete.
5895 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5896 * systty.h: Do not define HAVE_TCATTR.
5897 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5898 Do not define EMACS_HAVE_TTY_PGRP. Only define
5899 EMACS_GET_TTY_PGRP for !DOS_NT.
5900 * sysdep.c: Include sysselect.h unconditionally. Do not include
5901 sys/ioctl.h and termios.h, systty.h does it.
5902 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
5903 (init_baud_rate): Remove HAVE_TERMIO code.
5904 (child_setup_tty): Remove HAVE_TERMIO code.
5905 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5906 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5907 (new_ltchars, new_tchars): Remove, unused.
5908 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
5909 code. Remove special casing for __mips__, it was a no-op.
5910 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
5911 (init_sys_modes): Remove HPUX special case.
5912 * process.c: Include stdlib.h unconditionally. Do not include
5913 fcntl.h, systty.h does it. Remove conditional code for
5914 HAVE_SERIAL, it is always true.
5915 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5916 always true when SIGNALS_VIA_CHARACTERS is true.
5917 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5918 !WINDOWSNT means HAVE_TERMIOS.
5919 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5920 conditional, which is true for all HAVE_TERMIOS systems.
5921 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5922 instead of HAVE_TERMIOS.
5923 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5924 EMACS_HAVE_TTY_PGRP.
5925 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5926 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5927 anyway.
5928
5929 2010-08-21 Eli Zaretskii <eliz@gnu.org>
5930
5931 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5932 mirroring pixel positions.
5933
5934 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5935
5936 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5937 write only.
5938 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5939 malloc_sbrk_used, nothing uses them.
5940
5941 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5942 defined, unconditionally defined in lisp.h.
5943
5944 * term.c: Do not include <termios.h>, systty.h does it.
5945
5946 * s/unixware.h (HAVE_TCATTR):
5947 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5948 systty.h defines it when HAVE_TERMIOS is defined.
5949
5950 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5951
5952 * dispnew.c (buffer_posn_from_coords): Fix last change for text
5953 terminals: add one-character offset for R2L lines.
5954
5955 * emacs.c <emacs_version>: Add a comment regarding
5956 msdos/mainmake.v2's dependency on the syntax of this declaration.
5957
5958 2010-08-20 Eli Zaretskii <eliz@gnu.org>
5959
5960 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5961 position for R2L lines by mirroring the pixel position wrt the
5962 text are box. Improve commentary.
5963
5964 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5965
5966 * image.c (imagemagick_clear_image): Remove debugging output.
5967
5968 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5969
5970 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5971 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5972 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5973 self-insert-face.
5974 (syms_of_cmds): Initialize the new vars.
5975
5976 2010-08-19 Jason Rumney <jasonr@gnu.org>
5977
5978 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5979
5980 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5981
5982 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5983
5984 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5985
5986 2010-08-18 Eli Zaretskii <eliz@gnu.org>
5987
5988 * xterm.c (x_draw_bar_cursor):
5989 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5990 R2L, draw the bar cursor on its right rather than on its left.
5991
5992 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5993
5994 * eval.c (Fdefmacro): Only obey one declaration.
5995
5996 * casefiddle.c (casify_region): Setup gl_state.
5997
5998 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5999
6000 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
6001
6002 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6003
6004 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
6005
6006 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
6007
6008 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
6009 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
6010 QPRIMARY => NXPrimaryPboard.
6011 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
6012 NXPrimaryPboard => QPRIMARY.
6013 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
6014 NXSecondaryPboard = SecondarySelection.
6015 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
6016
6017 2010-08-18 Joakim Verona <joakim@verona.se>
6018
6019 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
6020 defined:
6021 (imagemagick_image_p): New function to test for ImageMagic image.
6022 (imagemagick_load): New function to load ImageMagick image.
6023 (imagemagick_load_image): New function, helper for imagemagick_load.
6024 (imagemagick-types): New function.
6025 (Qimagemagick): New Lisp_object.
6026 (imagemagick-render-type): New variable, decides which renderer to use.
6027
6028 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
6029
6030 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
6031 is a string.
6032
6033 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
6034
6035 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
6036 x_set_tool_bar_position handler.
6037
6038 2010-08-17 Eli Zaretskii <eliz@gnu.org>
6039
6040 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
6041 x_set_tool_bar_position handler, needed to support changes from
6042 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
6043
6044 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
6045
6046 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
6047 declaration (Bug#6863).
6048 (syms_of_nsselect): Don't intern QPRIMARY.
6049
6050 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
6051
6052 * keyboard.h (QPRIMARY): Declare (Bug#6864).
6053
6054 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
6055
6056 * keyboard.c (command_loop_1): Avoid setting selection twice,
6057 since it's done in deactivate-mark as well.
6058 (Vselect_active_regions): Change default to t. Replace `lazy'
6059 with non-default value `only', meaning only set PRIMARY for
6060 temporarily active regions.
6061
6062 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
6063 select-active-regions.
6064
6065 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6066
6067 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
6068 isn't a string.
6069
6070 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
6071
6072 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
6073
6074 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6075
6076 * keyboard.c (parse_tool_bar_item): malloc buf.
6077 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
6078 new_lbl (Bug#6855).
6079
6080 2010-08-14 Eli Zaretskii <eliz@gnu.org>
6081
6082 * xterm.c (x_draw_stretch_glyph_string):
6083 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
6084 the cursor on the right edge of the stretch glyph.
6085
6086 * xdisp.c (window_box_right_offset, window_box_right):
6087 Fix commentary.
6088
6089 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6090 direction when point is inside a run of whitespace characters.
6091
6092 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6093
6094 2010-08-14 Jason Rumney <jasonr@gnu.org>
6095
6096 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6097
6098 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
6099
6100 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6101
6102 2010-08-13 Jason Rumney <jasonr@gnu.org>
6103
6104 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6105 (MessageBoxW_Proc): New function typedef.
6106 (unicode-message-box): New function pointer.
6107 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
6108
6109 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6110
6111 * frame.h (Qtool_bar_position): Declare.
6112
6113 * xfns.c (Fx_create_frame): Call x_default_parameter for
6114 Qtool_bar_position.
6115
6116 2010-08-13 Eli Zaretskii <eliz@gnu.org>
6117
6118 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6119 (report_error, report_error_1): Ditto.
6120 (write_segment): Remove "#if 0" unused code.
6121 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6122 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6123 (start_of_text): Remove unused function (was used only if NO_REMAP
6124 was NOT defined).
6125
6126 * msdos.c (IT_set_face): Fix format string to match argument
6127 types.
6128 (IT_write_glyphs, IT_note_mode_line_highlight)
6129 (IT_set_frame_parameters): Remove unused variables.
6130 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6131 (IT_set_terminal_modes): Disambiguate expression in if clause.
6132 (Fmsdos_remember_default_colors): Return Qnil.
6133 (IT_set_frame_parameters): Add parens to disambiguate boolean
6134 expression for logging the cursor type to termscript.
6135 (keyboard_layout_list, keypad_translate_map)
6136 (grey_key_translate_map): Add braces in inner initializers.
6137 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6138 (dos_rawgetc): Remove unused label.
6139 (XMenuActivate): Add braces to remove ambiguous `else'.
6140 (dos_ttraw): Always return a value.
6141 (spawnve): Declare.
6142 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6143
6144 * dosfns.h (x_set_title): Declare.
6145
6146 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6147 Remove unused variables.
6148
6149 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6150 variables.
6151 (init_dosfns): Declare get_lim_data.
6152 (system_process_attributes): Declare Fget_internal_run_time.
6153
6154 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6155 list to be consistent with menu.h.
6156
6157 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6158 warnings due to mixing of "char *" and "const char *".
6159
6160 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6161
6162 Introduce a new comment style "c" flag.
6163 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6164 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6165 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6166 (syntax_prefix_flag_p): New function.
6167 (Fstring_to_syntax): Understand new "c" flag.
6168 (Finternal_describe_syntax_value): Recognize new flag; use the
6169 SYNTAX_FLAGS_* macros.
6170 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6171 comment style to accomodate the new styles.
6172 (back_comment, forw_comment, Fforward_comment, scan_lists)
6173 (scan_sexps_forward): Update code to obey the new comment style flag.
6174
6175 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6176
6177 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6178
6179 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6180
6181 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6182 first.
6183 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
6184
6185 * gtkutil.h (xg_check_special_colors): Declare.
6186
6187 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6188 (xg_create_frame_widgets): Connect theme name changes to
6189 style_changed_cb.
6190
6191 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6192 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6193 (x_term_init): Use char[] display_opt and name_opt instead of
6194 string literal. file is const char*.
6195
6196 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6197 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6198 props. Free them at the end.
6199
6200 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6201
6202 * xrdb.c (get_system_app): Make path const and use char *p for
6203 non-const char.
6204
6205 * xmenu.c (Fx_popup_dialog): error_name is const char*.
6206 (xmenu_show): error parameter is const char **. pane_string is const
6207 char *.
6208 (button_names): Is const char *.
6209 (xdialog_show): error_name and pane_string is const.
6210
6211 * process.h (synch_process_death): Is const char*.
6212
6213 * w32menu.c (w32_menu_show):
6214 * nsmenu.m (ns_menu_show): error parameter is const char **.
6215
6216 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6217 is const char **.
6218
6219 * menu.c (Fx_popup_menu): error_name is const.
6220
6221 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6222 with unsigned char and XtPointer with void *.
6223
6224 * gtkutil.h: Replace widget_value with struct _widget_value.
6225 (enum button_type, struct _widget_value): Remove and use the one from
6226 keyboard.h.
6227
6228 * gtkutil.c (get_utf8_string): Always return an allocated string.
6229 Parameter is const.
6230 (create_dialog, xg_create_one_menuitem, create_menus)
6231 (xg_item_label_same_p, xg_update_menu_item): Free result from
6232 get_utf8_string.
6233 (xg_separator_p, xg_item_label_same_p): label is const.
6234
6235 * font.h (font_open_by_name): Make name const.
6236
6237 * font.c (font_open_by_name): Make name const.
6238
6239 * floatfns.c (matherr): Use a const char* variable for x->name.
6240
6241 * emacs.c (main): Pass char[] to putenv instead of literal.
6242
6243 * callproc.c (synch_process_death): Make const.
6244 (Fcall_process): Make signame const.
6245
6246 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6247 (addDisplayItemWithImage): Use const char*.
6248
6249 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6250 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6251
6252 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6253
6254 * keyboard.h (_widget_value): name, value and key are const char*.
6255
6256 * unexmacosx.c (unexec_error): Use const char *.
6257
6258 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6259
6260 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6261 (font_parse_name, font_open_by_name):
6262 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
6263 (font_parse_name, font_open_by_name): Remove const.
6264
6265 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6266
6267 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6268 definition.
6269
6270 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6271 * m/amdx86-64.h: Likewise.
6272 * m/arm.h: Likewise.
6273 * m/hp800.h: Likewise.
6274 * m/ia64.h: Likewise.
6275 * m/ibmrs6000.h: Likewise.
6276 * m/ibms390.h: Likewise.
6277 * m/intel386.h: Likewise.
6278 * m/iris4d.h: Likewise.
6279 * m/m68k.h: Likewise.
6280 * m/macppc.h: Likewise.
6281 * m/mips.h: Likewise.
6282 * m/sh3.h: Likewise.
6283 * m/sparc.h: Likewise.
6284 * m/template.h: Likewise.
6285 * m/vax.h: Likewise.
6286 * m/xtensa.h: Likewise.
6287 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6288 WORDS_BIG_ENDIAN.
6289 * lisp.h: Likewise.
6290 * md5.c: Likewise.
6291 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6292
6293 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6294
6295 Use const char* instead of char*.
6296 Reduce the number of warnings with -Wwrite-strings.
6297 * xrdb.c (get_environ_db, get_system_name):
6298 * unexelf.c (find_section):
6299 * term.c (string_cost, string_cost_one_line, per_line_cost)
6300 (get_named_tty, init_tty):
6301 * sysdep.c (sys_subshell):
6302 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6303 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6304 * search.c (Freplace_match):
6305 * process.c (Fmake_network_process, send_process, init_process):
6306 * lread.c (Fload, init_lread):
6307 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6308 * keyboard.c (parse_tool_bar_item, struct event_head):
6309 * gtkutil.h (xg_get_font_name):
6310 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6311 (make_widget_for_menu_item, make_menu_item, create_menus)
6312 (xg_make_tool_item):
6313 * font.c (parse_matrix, font_parse_name):
6314 * floatfns.c (rounding_driver, float_error_fn_name):
6315 * filelock.c (get_boot_time_1, lock_file_1):
6316 * fileio.c (barf_or_query_if_file_exists, check_writable):
6317 * editfns.c (get_system_name, get_operating_system_release)
6318 (Fencode_time, Fset_time_zone_rule):
6319 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6320 * buffer.c (defvar_per_buffer): Use const.
6321
6322 2010-08-08 Kenichi Handa <handa@m17n.org>
6323
6324 * charset.c: Include <stdlib.h>.
6325 (struct charset_sort_data): New struct.
6326 (charset_compare): New function.
6327 (Fsort_charsets): New function.
6328 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6329
6330 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6331 number in CTEXT extended segment.
6332
6333 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6334
6335 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6336 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6337
6338 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6339
6340 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6341 (Fhash_table_size): Fix typos in docstrings.
6342 (Fmake_hash_table): Doc fix.
6343
6344 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
6345
6346 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6347 Doc fix (bug#5625).
6348
6349 2010-08-08 Ken Brown <kbrown@cornell.edu>
6350
6351 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6352 the MSDOS definition.
6353
6354 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6355
6356 Use const char* instead of char*.
6357 * xterm.c (x_create_toolkit_scroll_bar):
6358 * xfont.c (xfont_list_pattern):
6359 * xfns.c (x_default_scroll_bar_color_parameter)
6360 (xic_create_fontsetname, x_default_font_parameter)
6361 (x_screen_planes):
6362 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6363 (store_mode_line_string, decode_mode_spec, display_string):
6364 * menu.c (digest_single_submenu):
6365 * keymap.h (initial_define_key, initial_define_lispy_key):
6366 * keymap.c (initial_define_key, initial_define_lispy_key):
6367 * image.c (image_error, image_keyword):
6368 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6369 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6370 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6371 (ftfont_list, ftfont_match):
6372 * frame.c (frame_parm_table):
6373 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6374 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6375 (font_add_log, font_deferred_log):
6376 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6377 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6378 (font_add_log, font_deferred_log):
6379 * emacs.c (argmatch):
6380 * dispextern.h (struct it):
6381 * coding.c (ENCODE_DESIGNATION):
6382 * charset.c (define_charset_internal): Use const.
6383
6384 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6385
6386 * xrdb.c: Remove include guard.
6387 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
6388 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6389 realloc->xrealloc instead of using #defines.
6390
6391 2010-08-08 Eli Zaretskii <eliz@gnu.org>
6392
6393 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
6394 * editfns.c (Fline_beginning_position, Fline_end_position):
6395 State in the doc strings that start and end of line are in the
6396 logical order.
6397
6398 * xdisp.c (display_line): Move the handling of overlay arrow after
6399 the call to find_row_edges. (Bug#6699)
6400
6401 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6402
6403 * keyboard.c (command_loop_1):
6404 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6405
6406 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
6407
6408 * insdel.c (prepare_to_modify_buffer): Save active region text to
6409 Vsaved_region_selection.
6410
6411 * xselect.c (QPRIMARY): Move to keyboard.c.
6412
6413 * keyboard.c (Vselect_active_regions): Move from simple.el.
6414 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6415 (command_loop_1): Set window selection prior to deactivating the mark.
6416
6417 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
6418
6419 * alloc.c (lisp_malloc):
6420 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6421 * charset.h (emacs_mule_charset):
6422 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6423 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6424 (bitch_at_user):
6425 * lisp.h (Fcheck_coding_system, Fget_text_property)
6426 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6427 Remove duplicate declarations.
6428
6429 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6430
6431 * process.c: Simplify include logic.
6432
6433 * keyboard.h (quit_char): Add declaration.
6434 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
6435 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6436 Add declarations.
6437 * sysdep.c:
6438 * w32.c: Remove the above declarations.
6439
6440 Remove extern declarations in .c files, .h files have them.
6441 * xterm.c:
6442 * xdisp.c:
6443 * msdos.c:
6444 * image.c:
6445 * gtkutil.c:
6446 * fileio.c:
6447 * eval.c: Remove declarations.
6448
6449 * frame.c (frame_params): Make const.
6450
6451 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6452
6453 * emacs.c (emacs_copyright, emacs_version): Make static.
6454 (Vinitial_window_system, Vauto_save_list_file_name)
6455 (Vinhibit_redisplay): Remove declarations.
6456 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6457 for AIX.
6458
6459 Use const for some arrays and functions.
6460 * xterm.h (xg_set_icon_from_xpm_data):
6461 * xfns.c (xg_set_icon_from_xpm_data):
6462 * term.c (fkeys):
6463 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6464 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6465 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6466 (frame.c frame_parms):
6467 * emacs-icon.h (gnu_xpm_bits):
6468 * callint.c (callint_argfuns): Use const.
6469
6470 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6471
6472 * sysdep.c: Move include term.h last of includes (Bug#6812).
6473
6474 2010-08-06 Eli Zaretskii <eliz@gnu.org>
6475
6476 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6477
6478 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6479
6480 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6481
6482 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6483
6484 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6485
6486 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6487
6488 * xterm.h (x_get_focus_frame): Declare.
6489
6490 * keyboard.h (poll_for_input_1): Unconditionally declare.
6491
6492 * nsterm.h (x_set_menu_bar_lines): Declare.
6493
6494 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6495
6496 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6497
6498 * window.c: Include menu.h.
6499
6500 * unexmacosx.c (print_region_list, print_regions)
6501 (build_region_list, find_emacs_zone_regions)
6502 (unexec_regions_merge, read_load_commands, dump_it)
6503 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6504
6505 * term.c: Check HAVE_SYS_IOCTL_H.
6506
6507 * sysdep.c: Check HAVE_TERM_H.
6508
6509 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
6510
6511 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6512 (ns_ring_bell, ns_defined_color, hide_hourglass)
6513 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6514 Convert to ANSI C prototypes.
6515 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6516 before code.
6517
6518 * nsterm.h : Include sysselect.h.
6519 (x_sync, x_get_focus_frame, x_set_mouse_position)
6520 (x_set_mouse_pixel_position, x_make_frame_visible)
6521 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6522 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6523 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6524 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
6525 Declare.
6526
6527 * nsmenu.m (popup_activated, name_is_separator)
6528 (syms_of_nsmenu): Convert to ANSI C prototypes.
6529 (runMenuAt): Prototypes and move declarations before code.
6530
6531 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6532
6533 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6534 prototypes.
6535
6536 * nsfns.m (have_menus_p, ns_display_info_for_name)
6537 (x_set_cursor_type, ns_appkit_version_str)
6538 (ns_appkit_version_int, ns_do_applescript)
6539 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6540 (syms_of_nsfns): Convert to ANSI C prototypes.
6541
6542 * menu.h (x_set_menu_bar_line): Declare.
6543 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6544
6545 * lisp.h (fmod_float): Declare.
6546
6547 * image.c (xpm_scan, xpm_make_color_table_v)
6548 (xpm_put_color_table_v, xpm_get_color_table_v)
6549 (xpm_make_color_table_h, xpm_put_color_table_h)
6550 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6551 (xpm_load): Convert to ANSI C prototypes.
6552
6553 * emacs.c: Include nsterm.h if HAVE_NS.
6554
6555 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6556
6557 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6558
6559 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6560 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6561 (socket_options): Use const char* for name.
6562
6563 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
6564
6565 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6566
6567 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6568 Don't declare xmalloc_widget_value and digest_single_submenu.
6569
6570 * w32font.c (Qlatin): Remove declaration.
6571
6572 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6573
6574 * dired.c (compile_pattern): Restore declaration.
6575
6576 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6577
6578 Remove extern declarations in .c files, .h files have them.
6579 * data.c:
6580 * dired.c:
6581 * editfns.c:
6582 * filelock.c:
6583 * fns.c:
6584 * font.c:
6585 * fontset.c:
6586 * frame.c:
6587 * fringe.c:
6588 * ftfont.c:
6589 * gtkutil.c:
6590 * indent.c:
6591 * keyboard.c:
6592 * keymap.c:
6593 * lread.c:
6594 * menu.c:
6595 * print.c:
6596 * search.c:
6597 * sound.c:
6598 * window.c:
6599 * xdisp.c:
6600 * xfaces.c:
6601 * xfns.c:
6602 * xfont.c:
6603 * xftfont.c:
6604 * xmenu.c:
6605 * xterm.c: Remove declarations.
6606
6607 Cleanup syssignal.h.
6608 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6609 (main_thread): Move down to remove #ifdef.
6610 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6611 Remove conditional definition following unconditional ones.
6612
6613 * lisp.h: Remove HAVE_SHM code, unused.
6614 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6615 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6616 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6617 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6618 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6619 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6620 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6621 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6622 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6623 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6624 (Qwindow_scroll_functions, Vafter_load_alist)
6625 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6626 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6627 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6628 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6629 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6630 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6631 (initial_argv, last_nonmenu_event, load_in_progress)
6632 (noninteractive_need_newline, scroll_margin): Add declarations.
6633
6634 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6635 Remove declarations, menu.h has them.
6636 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6637 (Vinput_method_function, Qinput_method_function)
6638 (Qevent_symbol_element_mask, last_event_timestamp):
6639 * dispextern.h (Voverflow_newline_into_fringe):
6640 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6641 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6642 (syms_of_w32font, syms_of_nsfont):
6643 * fontset.h (find_font_encoding, Qlatin):
6644 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6645 (Vtool_bar_mode, set_frame_menubar):
6646 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6647 * xterm.h (Qx_gtk_map_stock):
6648 * keymap.h (meta_prefix_char): Add declarations.
6649
6650 * term.c: Remove dead code.
6651
6652 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6653 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6654 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6655 which is what was there before BSD_PGRPS was removed.
6656
6657 2010-08-05 Eli Zaretskii <eliz@gnu.org>
6658
6659 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6660
6661 * unexcoff.c: Renamed from unexec.c.
6662
6663 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6664
6665 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6666
6667 2010-08-03 Johan Bockgård <bojohan@gnu.org>
6668
6669 * data.c (Flocal_variable_p): Handle variable aliases correctly.
6670 (Bug#6744)
6671
6672 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6673
6674 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6675 to TRUE if depth of screen is < 16.
6676
6677 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6678 USE_GTK_TOOLTIP.
6679 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6680 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
6681 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
6682 USE_GTK_TOOLTIP.
6683 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6684
6685 * xterm.h (USE_GTK_TOOLTIP): New define.
6686 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6687
6688 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6689 to Control-D (Bug#6771).
6690
6691 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
6692
6693 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6694 Wording by Drew Adams <drew.adams@oracle.com>.
6695
6696 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6697
6698 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6699 ttip_lbl.
6700
6701 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6702 calling gtk_widget_queue_draw.
6703 (x_free_frame_resources): Call xg_free_frame_widgets.
6704
6705 * xfns.c (x_gtk_use_system_tooltips): New variable.
6706 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6707 new gtkutil tooltip functions to show the tooltip.
6708 (Fx_hide_tip): Call xg_hide_tooltip.
6709 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6710
6711 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6712 (xg_show_tooltip, xg_hide_tooltip): Declare.
6713
6714 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
6715 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6716 New functions.
6717 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6718 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6719 Remove code that is commented out.
6720
6721 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6722
6723 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6724
6725 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
6726
6727 * xselect.c (x_own_selection): Use list4.
6728
6729 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6730
6731 * buffer.c (Qwindow): Do not define, already defined in data.c.
6732 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6733
6734 2010-07-29 Chad Brown <yandros@mit.edu>
6735
6736 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6737 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6738 * config.in: Undef HAVE_DIRENT_H.
6739 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
6740 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
6741
6742 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6743
6744 Rename s/usg5-4.h -> s/usg5-4-common.h.
6745 * s/usg5-4.h: Rename file to ...
6746 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6747 * s/unixware.h:
6748 * s/sol2-6.h:
6749 * s/irix6-5.h: Update includes accordingly.
6750
6751 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6752
6753 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6754
6755 * xterm.h (struct x_output): Add toolbar_top_height,
6756 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6757 Remove toolbar_height.
6758 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
6759 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6760 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6761 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6762
6763 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6764
6765 * xfns.c (x_set_tool_bar_position): New function.
6766 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6767 (x_frame_parm_handlers): Add x_set_tool_bar_position.
6768 (syms_of_xfns): If USE_GTK, provide move-toolbar.
6769
6770 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6771 and FRAME_TOOLBAR_LEFT_WIDTH.
6772
6773 * gtkutil.h (xg_change_toolbar_position): Declare.
6774
6775 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6776 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6777 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6778 (xg_create_frame_widgets): Create a hobox for placing widgets
6779 vertically. Use gtk_box_pack_start.
6780 (xg_height_or_width_changed): Rename from xg_height_changed.
6781 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6782 (xg_update_frame_menubar, free_frame_menubar): Change to
6783 xg_height_or_width_changed.
6784 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6785 size correctly. Remove hardcoded 4, instead use handlebox size -
6786 toolbar size.
6787 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
6788 size correctly. Use handlebox size + toolbar size as additional size.
6789 (xg_pack_tool_bar): POS is a new parameter.
6790 Set orientation of tool bar based on pos.
6791 Only make handlebox_widget if NULL.
6792 Check if tool bar goes to vbox or hbox depending on pos.
6793 (xg_update_tool_bar_sizes): New function.
6794 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
6795 height, call xg_update_tool_bar_sizes instead.
6796 (free_frame_tool_bar): Remove from hbox or vbox depending on
6797 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6798 (xg_change_toolbar_position): New function.
6799
6800 * frame.h (struct frame): Add tool_bar_position.
6801 (Qbottom): Declare.
6802
6803 * frame.c (Qtool_bar_position): New variable.
6804 (make_frame): Set tool_bar_position to Qtop.
6805 (frame_parms): Add tool-bar-position.
6806 (x_report_frame_params): Store tool_bar_position.
6807 (x_set_fringe_width): Reset wm size hint after fringe changes.
6808
6809 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6810
6811 Make lisp_time_argument declaration work on all systems.
6812 * lisp.h (lisp_time_argument): Move declaration ...
6813 * systime.h (lisp_time_argument): ... here
6814 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6815
6816 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6817
6818 * vm-limit.c (POINTER): Add typedef for it.
6819 (start_of_data): Change return type from POINTER to char *.
6820
6821 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6822 HAVE_WINDOW_SYSTEM.
6823
6824 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6825
6826 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6827 Remove reference to __osf__, unused.
6828
6829 * mem-limits.h: Remove duplicated includes.
6830 (NULL): Remove definition, unused.
6831 (POINTER): Remove definition.
6832 (start_of_data): Use char* in prototype, as the function
6833 definition does.
6834
6835 Remove extern declarations from .c files, and them to .h files.
6836 * keyboard.h (Qhelp_echo, waiting_for_input)
6837 (input_available_clear_time, ignore_mouse_drag_p)
6838 (Vdouble_click_time, real_this_command, Vthis_original_command):
6839 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6840 (Voverriding_local_map_menu_flag):
6841 * lisp.h (Qinteractive_form, use_file_dialog)
6842 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6843 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6844 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6845 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6846 (Qfunction, debug_on_next_call, Qfield)
6847 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6848 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6849 (Qfile_directory_p, Qinsert_file_contents)
6850 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6851 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6852 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6853 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6854 (Qminibuffer_prompt)
6855 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6856 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6857 (gray_bitmap_bits, xic_create_fontsetname):
6858 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6859
6860 * xsmfns.c (Vuser_login_name):
6861 * xrdb.c (Vdouble_click_time):
6862 * xfaces.c (xic_create_fontsetname):
6863 * w32select.c (waiting_for_input):
6864 * print.c (minibuffer_auto_raise):
6865 * msdos.c (Qhelp_echo):
6866 * macros.c (real_this_command):
6867 * keymap.c (Voverriding_local_map):
6868 * xterm.c (poll_for_input_1, gray_bitmap_width)
6869 (gray_bitmap_height, gray_bitmap_bits;
6870 * xmenu.c ( Voverriding_local_map)
6871 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6872 (use_file_dialog, Xt_app_con):
6873 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6874 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6875 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6876 (Qtool_bar_lines, ignore_mouse_drag_p):
6877 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6878 (Qrear_nonsticky, nconc2):
6879 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6880 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6881 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6882 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6883 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6884 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6885 (gc_in_progress):
6886 * doc.c (Voverriding_local_map, Qremap):
6887 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6888 (Vcompletion_regexp_list):
6889 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6890 (Qcompletion_ignore_case):
6891 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6892 (Vhistory_length, Vthis_original_command, real_this_command)
6893 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6894 * image.c (Qrisky_local_variable):
6895 * fontset.c (QCname):
6896 * fns.c (minibuffer_auto_raise, QCname):
6897 * dispnew.c (char_ins_del_cost):
6898 * composite.c (font_fill_lglyph_metrics):
6899 * cmds.c (Qface, Vtranslation_table_for_input):
6900 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6901 * ccl.c (charset_unicode):
6902 * callproc.c (Vtemporary_file_directory):
6903 * buffer.c (emacs_strerror): Remove extern declarations.
6904
6905 * data.c (Qwindow): Make non-static, used from other files too.
6906 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6907
6908 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6909 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6910 * s/usg5-4.h (COFF):
6911 * s/template.h:
6912 * s/msdos.h (COFF, NO_REMAP):
6913 * s/ms-w32.h (NO_REMAP):
6914 * s/hpux10-20.h (NO_REMAP):
6915 * m/sparc.h (SEGMENT_MASK):
6916 * m/m68k.h (NO_REMAP):
6917 * m/intel386.h (SEGMENT_MASK):
6918 * m/arm.h (NO_REMAP):
6919 * m/alpha.h (COFF):
6920 * m/template.h: Remove references to unused defines.
6921
6922 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6923
6924 * xsettings.c (Ftool_bar_get_system_style): Also check for
6925 Qtext_image_horiz.
6926
6927 * xdisp.c (Qtext_image_horiz): Define.
6928 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
6929 to documentation of tool-bar-style.
6930
6931 * lisp.h (Qtext_image_horiz): Declare.
6932
6933 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6934 style text_image_horiz.
6935
6936 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6937
6938 * emacs.c (Fkill_emacs): Remove return statement.
6939
6940 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6941 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
6942 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6943 Remove local extern declarations.
6944
6945 * xmenu.c: Do not included lwlib.h, not needed.
6946
6947 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6948
6949 * process.c: Move definitions earlier to minimize #ifdefs.
6950
6951 * xterm.h (x_get_customization_string, x_load_resources)
6952 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6953 (x_check_errors, x_property_data_to_lisp, defined_color)
6954 (xic_set_xfontset, x_defined_color): Use const.
6955
6956 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6957 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6958
6959 * xselect.c (selection_data_to_lisp_data)
6960 (x_property_data_to_lisp):
6961 * xrdb.c (x_get_string_resource, file_p)
6962 (x_get_customization_string, magic_file_p, search_magic_path)
6963 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6964 (x_get_string_resource): Use const.
6965
6966 * xfns.c: Include xlwmenu.h when USE_LUCID.
6967 (x_defined_color, xic_set_xfontset): Use const.
6968 (Fx_hide_tip): Remove local extern declaration.
6969
6970 * xfaces.c (Qmouse_face): Remove declaration.
6971 (face_color_gray_p, tty_defined_color, defined_color)
6972 (face_color_gray_p, face_color_supported_p): Add const.
6973
6974 * xdisp.c (do_mouse_tracking): Remove declaration.
6975 (add_to_log): Use const.
6976
6977 * minibuf.c (Qmouse_face): Remove declaration.
6978
6979 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6980
6981 * keyboard.h (do_mouse_tracking): Add declaration.
6982
6983 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6984 (QCdata, QCtype, Qcenter): Remove declarations.
6985
6986 * frame.c (x_get_resource_string, x_get_string_resource)
6987 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6988 (x_default_parameter): Use const.
6989
6990 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6991 (QCheight, QCsize, QCname): Remove declarations.
6992
6993 * emacs.c (main): Remove local extern declaration.
6994
6995 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6996 declarations.
6997
6998 * dispnew.c: Remove duplicate #include <unistd.h>.
6999 (update_window, update_frame_1, init_display): Remove local extern
7000 declarations.
7001
7002 * dispextern.h (add_to_log): Remove declaration.
7003 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7004 (x_frame_get_and_record_arg, x_default_parameter): Add const.
7005
7006 * dired.c (scmp): Add const.
7007 (directory_files_internal): Remove local extern declaration.
7008
7009 * data.c (Finteractive_form): Use const.
7010
7011 * composite.c (syms_of_composite): Remove local extern declarations.
7012
7013 * charset.c (add_to_log): Remove declaration.
7014
7015 * character.c (strwidth, parse_str_to_multibyte): Add const.
7016
7017 * character.h (strwidth, parse_str_to_multibyte): Likewise.
7018
7019 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
7020
7021 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
7022 (Lisp_Subr): Make doc and intspec constant.
7023 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
7024 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
7025 (QCheight, QCsize, QCname, QCwidth, QCforeground)
7026 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
7027 (display_arg): Add declarations.
7028
7029 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
7030
7031 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
7032
7033 * window.c (Fwindow_height): Doc fix (bug#6518).
7034
7035 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
7036
7037 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
7038
7039 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
7040
7041 * keyboard.c (Ftop_level, Fexit_recursive_edit)
7042 (Fabort_recursive_edit): Remove return statements in NO_RETURN
7043 functions.
7044
7045 * frame.h (Qtty_color_mode): Add declaration.
7046
7047 * lisp.h (Ftop_level, Fexit_recursive_edit)
7048 (Fabort_recursive_edit): Mark as NO_RETURN.
7049
7050 2010-07-26 Kenichi Handa <handa@m17n.org>
7051
7052 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
7053 number of glyphs gets smaller than the original length. (Bug#6621)
7054
7055 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
7056
7057 * lread.c (unreadpure, mapatoms_1): Make static.
7058
7059 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7060
7061 * terminfo.c (tparam): Fix prototype of tparm.
7062
7063 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
7064
7065 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
7066 find start of text segment.
7067 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
7068 is defined.
7069
7070 * callproc.c (set_initial_environment): Avoid unbalanced braces.
7071
7072 2010-07-25 Ken Brown <kbrown@cornell.edu>
7073
7074 * vm-limit.c (check_memory_limits): Fix previous change;
7075 accidentally reverted an earlier change.
7076
7077 2010-07-25 Ken Brown <kbrown@cornell.edu>
7078
7079 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
7080 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
7081
7082 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
7083
7084 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
7085 * dired.c (opendir, readdir): Fix prototypes.
7086 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7087 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7088 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7089 (telldir): Remove declaration.
7090 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7091 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7092 * syssignal.h (strsignal): Fix prototype.
7093 * term.c (tparam): Fix prototype.
7094 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7095 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7096 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7097 and __morecore.
7098 * w32gui.h (XParseGeometry): Fix prototype.
7099 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7100 * w32term.c (my_set_focus): Declare inside #if 0.
7101 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7102 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7103 (drain_message_queue, get_next_msg, post_msg, parse_button)
7104 (ClipboardSequence_Proc): Fix prototypes.
7105 (wait_for_sync): Remove declaration.
7106
7107 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
7108
7109 * w32fns.c (w32_to_x_color): Remove, unused.
7110
7111 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7112
7113 * lisp.h: Remove leftover P_.
7114
7115 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7116
7117 * ecrt0.c, unexalpha.c: Remove files, unused.
7118
7119 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7120
7121 * cmds.c (internal_self_insert): Make static.
7122 * lisp.h (internal_self_insert): Remove declaration.
7123
7124 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
7125
7126 * alloc.c (free_float):
7127 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7128 * frame.c (delete_frame_handler):
7129 * ralloc.c (reorder_bloc):
7130 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7131 Remove unused static functions.
7132
7133 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7134 it is called only from NS code.
7135
7136 * w32term.c (my_set_focus): #ifdef away; it is called only from
7137 "#ifdef 0" code.
7138
7139 * w32fns.c (x_edge_detection):
7140 * xfaces.c (may_use_scalable_font_p):
7141 Remove obsolete static declarations.
7142
7143 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
7144
7145 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7146 (emacs_blocked_realloc, uninterrupt_malloc):
7147 * fringe.c (w32_reset_fringes):
7148 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7149 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7150 * sound.c (be2hs, do_play_sound):
7151 * vm-limit.c (get_lim_data, ret_lim_data):
7152 * w32term.c (x_free_frame_resources):
7153 * xfaces.c (x_create_gc, x_free_gc):
7154 Convert definitions to standard C.
7155
7156 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7157
7158 * eval.c (Feval, Ffuncall): Use the new names.
7159
7160 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7161 (DEFUN): Add braces around the union initialisation and use ## to
7162 specify the right union alternative and avoid a cast.
7163
7164 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
7165
7166 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7167
7168 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
7169
7170 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7171
7172 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7173
7174 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7175 is related to the menu bar (Bug#6499).
7176 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
7177
7178 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7179
7180 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7181
7182 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7183
7184 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7185 i.e. don't put back ButtonRelease (Bug#6608).
7186
7187 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7188 instead of Window. Call xg_event_is_for_menubar when
7189 USE_GTK (Bug#6499).
7190
7191 * gtkutil.h (xg_event_is_for_menubar): Declare.
7192
7193 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7194
7195 2010-07-16 Eli Zaretskii <eliz@gnu.org>
7196
7197 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7198 when it's the same as the old foreground. (Bug#6609)
7199
7200 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7201
7202 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7203 widget is non-null (Bug#6645).
7204
7205 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7206
7207 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7208 Convert old-style definition.
7209
7210 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7211 timestamp argument.
7212
7213 2010-07-15 Eli Zaretskii <eliz@gnu.org>
7214
7215 * fringe.c (update_window_fringes): Restore mistakenly reverted
7216 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7217
7218 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7219
7220 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7221 (SET_SAVED_KEY_EVENT): Remove (not used).
7222 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7223 remove size parameter.
7224 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7225 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7226 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7227 ButtonRelease.
7228 (x_set_window_size_1): scroll_bar_actual_width is always
7229 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
7230
7231 * xdisp.c (pending_menu_activation): Remove extern declaration.
7232 (prepare_menu_bars): Remove setting of pending_menu_activation.
7233
7234 * xmenu.c (pending_menu_activation): Remove.
7235 (x_activate_menubar): Set popup_activated_flag for Xt also.
7236 Remove setting of pending_menu_activation.
7237 (set_frame_menubar): Remove check of pending_menu_activation.
7238 Declare menubar_size before code. Correct spelling in comment.
7239
7240 2010-07-14 Kenichi Handa <handa@m17n.org>
7241
7242 * font.c (font_open_entity): Cancel previous change.
7243 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7244
7245 2010-07-13 Eli Zaretskii <eliz@gnu.org>
7246
7247 Remove subprocesses #ifdefs.
7248 * process.c <inhibit_sentinels>: Move to the common part.
7249 (Fwaiting_for_user_input_p): Move to the common part; return nil
7250 if async subprocesses aren't supported.
7251 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7252 MS-DOS. Remove "#ifdef subprocesses".
7253 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7254 (gettimeofday): Remove "#ifdef subprocesses".
7255 (wait_without_blocking): Remove function.
7256 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7257 Remove "#ifdef subprocesses".
7258 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7259 compiled on MS-DOS.
7260 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7261 wait_for_termination on MS-DOS.
7262 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7263 initialization of inhibit_sentinels.
7264 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7265 subprocesses" conditional.
7266 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7267 wait_for_termination, since `buffer' cannot be an integer when
7268 async subprocesses are not supported
7269 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7270 for ifdefing away the call to Fprocess_status.
7271
7272 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7273 away the entire body of the function.
7274
7275 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7276
7277 Remove subprocesses #ifdefs from term.c.
7278 * process.c (add_keyboard_wait_descriptor)
7279 (delete_keyboard_wait_descriptor): Move to common section, do
7280 nothing when subprocesses is not defined.
7281 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7282 Remove subprocesses #ifdefs.
7283
7284 Convert maybe_fatal to standard C.
7285 * lisp.h (verror): Declare.
7286 * eval.c (verror): New function containing the code from ...
7287 (error): ... this. Call verror.
7288 * term.c (vfatal): New function containing the code from ...
7289 (fatal): ... this. Call vfatal.
7290 (maybe_fatal): Convert to standard C, use variable number of
7291 arguments. Declare as non-return.
7292 (init_tty): Fix maybe_fatal call.
7293
7294 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7295
7296 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7297 (_scroll_bar_note_movement): Convert definitions to standard C.
7298 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7299 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7300
7301 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7302
7303 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7304 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7305 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7306 (xaw_jump_callback, xaw_scroll_callback)
7307 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
7308 (x_wm_set_size_hint, x_activate_timeout_atimer):
7309 Convert definitions to standard C.
7310 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7311 (popup_activate_callback, popup_deactivate_callback)
7312 (menu_highlight_callback, menubar_selection_callback)
7313 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7314 (free_frame_menubar, popup_selection_callback, as)
7315 (create_and_show_popup_menu, dialog_selection_callback)
7316 (create_and_show_dialog):
7317 * xfns.c (hack_wm_protocols, x_window):
7318 * xfaces.c (x_update_menu_appearance):
7319 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7320 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7321 (set_frame_size, update_wm_hints, setup_frame_gcs)
7322 (update_various_frame_slots, update_from_various_frame_slots)
7323 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7324 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7325 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7326
7327 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7328
7329 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
7330
7331 2010-07-12 Eli Zaretskii <eliz@gnu.org>
7332
7333 * process.c (setup_process_coding_systems): Move to the part
7334 shared by non-subprocesses systems, and make its body empty when
7335 subprocesses is not defined.
7336 (close_process_descs): Move to the part shared by non-subprocesses
7337 systems.
7338 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7339 ANSI C.
7340
7341 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7342
7343 * editfns.c (transpose_markers): Convert old-style definition.
7344 * emacs.c (abort, shut_down_emacs, fixup_locale)
7345 (synchronize_system_time_locale)
7346 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7347 * floatfns.c (extract_float, matherr, init_floatfns)
7348 (syms_of_floatfns): Likewise.
7349 * fns.c (make_hash_table): Likewise.
7350 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7351 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7352 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7353 (ftfont_variation_glyphs): Likewise.
7354 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7355 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7356 * lread.c (read_filtered_event): Likewise.
7357 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7358 * process.c (wait_reading_process_output): Likewise.
7359 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7360 * search.c (search_buffer, boyer_moore): Likewise.
7361 * syntax.c (scan_sexps_forward): Likewise.
7362 * xdisp.c (try_scrolling): Likewise.
7363 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7364 (face_at_string_position): Likewise.
7365 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7366 * xselect.c (x_get_window_property, receive_incremental_selection)
7367 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7368 Likewise.
7369 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7370
7371 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7372
7373 * callproc.c (child_setup): Remove subprocesses conditional.
7374 Remove code dealing with SET_EMACS_PRIORITY, unused.
7375
7376 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
7377 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7378
7379 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7380 (__do_global_dtors, __main): Use void in definition.
7381 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7382 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7383 the only users from ...
7384 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7385 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7386 (HAVE_VOLATILE): Remove, unused.
7387
7388 Convert more function definitions to standard C.
7389 * xdisp.c (window_box_edges, handle_single_display_spec)
7390 (display_string): Convert definition to standard C.
7391 * scroll.c (do_direct_scrolling, scrolling_1):
7392 * dispnew.c (allocate_matrices_for_frame_redisplay)
7393 (mirrored_line_dance):
7394 * coding.c (code_convert_string):
7395 * charset.c (map_charset_chars):
7396 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7397 (Fregister_ccl_program, Fregister_code_conversion_map):
7398 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7399 (head_table): Make static and const.
7400
7401 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7402
7403 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7404 (PROFILING_LDFLAGS): Set from substitution.
7405 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7406 CFLAGS last.
7407
7408 2010-07-12 Kenichi Handa <handa@m17n.org>
7409
7410 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7411 (shortlisp): Likewise.
7412
7413 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7414
7415 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7416 of FONT_ENTITY_INDEX.
7417 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7418 property, get the property value dynamically.
7419 (Ffont_put): Accept font-entity and font-object too.
7420 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
7421 return value changed.
7422 (syms_of_font): Adjust for the above change.
7423
7424 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7425
7426 * blockinput.h: Remove obsolete comment.
7427
7428 * lisp.h: Include <stddef.h>.
7429 (OFFSETOF): Don't define.
7430 (VECSIZE): Use offsetof instead of OFFSETOF.
7431 (PSEUDOVECSIZE): Likewise.
7432 * process.c (conv_sockaddr_to_lisp): Likewise.
7433 * alloc.c: Don't include <stddef.h>.
7434 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7435
7436 * process.c: Remove obsolete comment.
7437
7438 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
7439
7440 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7441
7442 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7443
7444 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7445 index, rindex.
7446 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7447 * editfns.c (Fuser_full_name, Fformat): Likewise.
7448 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7449 * fileio.c (Ffile_symlink_p): Likewise.
7450 * filelock.c (current_lock_owner): Likewise.
7451 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7452 * fontset.c (fontset_pattern_regexp): Likewise.
7453 * lread.c (read1): Likewise.
7454 * sysdep.c (init_system_name): Likewise.
7455 * xfns.c (select_visual): Likewise.
7456 * s/hpux10-20.h (index, rindex): Don't define.
7457 * s/ms-w32.h (index): Likewise.
7458 * s/usg5-4.h: Likewise.
7459
7460 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7461
7462 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7463 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7464 (egetenv): Likewise.
7465 * doprnt.c (doprnt): Likewise.
7466 * editfns.c (set_time_zone_rule, format2): Likewise.
7467 * emacs.c (decode_env_path): Likewise.
7468 * eval.c (signal_error, error): Likewise.
7469 * insdel.c (replace_range_2): Likewise.
7470 * keyboard.c (cmd_error_internal): Likewise.
7471 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7472 * print.c (write_string, write_string_1, print_error_message):
7473 Likewise.
7474 * vm-limit.c (warn_function, memory_warnings): Likewise.
7475 * xdisp.c (message1, message1_nolog, message_with_string)
7476 (vmessage, message, message_nolog): Likewise.
7477 * emacs.c: Remove duplicate declaration.
7478 * keyboard.h: Likewise.
7479 * lisp.h: Update prototypes.
7480
7481 * eval.c: Fix indentation problem.
7482
7483 * keyboard.c: Include "process.h".
7484
7485 * eval.c: Remove obsolete noinline declaration.
7486 * fns.c: Likewise.
7487
7488 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
7489
7490 * doprnt.c (doprnt): Take a va_list argument instead of count and
7491 pointer.
7492 * eval.c (error): Change to a standard-C variadic function.
7493 * xdisp.c (vmessage): Rename from message, made static, and
7494 changed to take a va_list argument.
7495 (message): New variadic wrapper.
7496 (message_nolog): Now a variadic function, calling vmessage.
7497 * lisp.h: Include stdarg.h for va_list.
7498 (doprnt, error, message, message_nolog): Decls updated.
7499
7500 2010-07-11 Eli Zaretskii <eliz@gnu.org>
7501
7502 * process.c (syms_of_process) <delete-exited-processes>: Define
7503 even if !subprocesses.
7504 (delete_exited_processes): Ditto.
7505
7506 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7507 (delete_exited_processes): Don't define.
7508
7509 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
7510
7511 * frame.c (make_frame): Initialize menu_bar_lines and
7512 tool_bar_lines members.
7513 (make_initial_frame, make_terminal_frame):
7514 Initialize menu_bar_lines using value of menu-bar-mode.
7515
7516 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7517
7518 2010-07-10 Eli Zaretskii <eliz@gnu.org>
7519
7520 * process.c: Reshuffle #include's. Condition some of the global
7521 and static variables on `subprocesses'.
7522 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7523 Leave only one implementation.
7524 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7525 (kill_buffer_processes, Flist_system_processes)
7526 (Fprocess_attributes, init_process, syms_of_process): Unify the
7527 implementations for with subprocesses and without them.
7528
7529 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7530
7531 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7532 correct size for Motif.
7533 (free_frame_menubar): Call x_set_window_size to update frame size.
7534
7535 * xfns.c (x_window): Set borderWidth to 0 for pane and
7536 EmacsFrame. Frame size calculation is wrong otherwise.
7537
7538 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
7539
7540 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7541 allows to suppress errors when polling in Emacs' main loop.
7542 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7543 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7544 (Fdbus_method_error_internal, Fdbus_send_signal)
7545 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7546 (Fdbus_register_method): Use it. (Bug#6579)
7547
7548 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7549
7550 * alloc.c: Convert DEFUNs to standard C.
7551 * buffer.c:
7552 * bytecode.c:
7553 * callint.c:
7554 * callproc.c:
7555 * casefiddle.c:
7556 * casetab.c:
7557 * category.c:
7558 * character.c:
7559 * charset.c:
7560 * chartab.c:
7561 * cmds.c:
7562 * coding.c:
7563 * composite.c:
7564 * data.c:
7565 * dbusbind.c:
7566 * dired.c:
7567 * dispnew.c:
7568 * doc.c:
7569 * dosfns.c:
7570 * editfns.c:
7571 * emacs.c:
7572 * eval.c:
7573 * fileio.c:
7574 * filelock.c:
7575 * floatfns.c:
7576 * fns.c:
7577 * font.c:
7578 * fontset.c:
7579 * frame.c:
7580 * fringe.c:
7581 * image.c:
7582 * indent.c:
7583 * insdel.c:
7584 * keyboard.c:
7585 * keymap.c:
7586 * lread.c:
7587 * macros.c:
7588 * marker.c:
7589 * menu.c:
7590 * minibuf.c:
7591 * msdos.c:
7592 * nsfns.m:
7593 * nsmenu.m:
7594 * nsselect.m:
7595 * print.c:
7596 * process.c:
7597 * search.c:
7598 * sound.c:
7599 * syntax.c:
7600 * term.c:
7601 * terminal.c:
7602 * textprop.c:
7603 * undo.c:
7604 * w16select.c:
7605 * w32console.c:
7606 * w32fns.c:
7607 * w32font.c:
7608 * w32menu.c:
7609 * w32proc.c:
7610 * w32select.c:
7611 * window.c:
7612 * xdisp.c:
7613 * xfaces.c:
7614 * xfns.c:
7615 * xmenu.c:
7616 * xselect.c:
7617 * xsettings.c:
7618 * xsmfns.c: Likewise.
7619
7620 2010-07-08 Eli Zaretskii <eliz@gnu.org>
7621
7622 * process.c (kbd_is_on_hold, hold_keyboard_input)
7623 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7624
7625 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7626
7627 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7628 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7629 unless USE_LUCID.
7630
7631 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7632
7633 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7634 declaration.
7635
7636 Clean up include guards.
7637 * tparam.c: Remove include guards for config.h, string.h and code
7638 that assumes #ifndef emacs.
7639 * termcap.c:
7640 * unexalpha.c:
7641 * sysdep.c:
7642 * filemode.c:
7643 * filelock.c:
7644 * bidi.c: Likewise.
7645
7646 Remove prefix-args.c
7647 * prefix-args.c: Remove file.
7648 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7649 * Makefile.in (temacs${EXEEXT}): Remove references to
7650 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7651 (mostlyclean): Remove reference to prefix-args.
7652 (prefix-args): Remove.
7653
7654 Simplify cstart_of_data, start_of_code and related code.
7655 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7656 (start_of_data): Merge into start_of_data function.
7657 * sysdep.c (start_of_text): Remove. Move simplified versions of
7658 it in the only users: unexaix.c and unexec.c.
7659 (read_input_waiting): Remove local declaration of quit_char.
7660 (start, etext): Remove declarations.
7661 (start_of_data): Merge with the version in mem-limits.h and move
7662 to vm-limits.c.
7663 * vm-limit.c (start_of_data): Merged and simplified version of the
7664 code formerly in mem-limits.h and sysdep.c.
7665 * unexec.c (start): New declaration, moved from sysdep.c.
7666 (start_of_text): Simplified version of the code formerly in sysdep.c.
7667 * unexaix.c (start_of_text): Simplified version of the code
7668 formerly in sysdep.c.
7669 * m/alpha.h (HAVE_TEXT_START): Remove.
7670 (TEXT_START): Move ...
7671 * unexalpha.c (TEXT_START): ... here.
7672 * s/hpux10-20.h (TEXT_START): Remove.
7673 * s/darwin.h (TEXT_START):
7674 * m/mips.h (TEXT_START):
7675 * m/macppc.h (HAVE_TEXT_START):
7676 * m/m68k.h (TEXT_START):
7677 * m/iris4d.h (TEXT_START):
7678 * m/intel386.h (TEXT_START):
7679 * m/ibmrs6000.h (TEXT_START):
7680 * m/ia64.h (HAVE_TEXT_START):
7681 * s/msdos.h (TEXT_START): Likewise.
7682
7683 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7684
7685 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7686 (overrun_check_free, xstrdup, allocate_string)
7687 (allocate_string_data, compact_small_strings, Fmake_string)
7688 (make_unibyte_string, make_multibyte_string)
7689 (make_string_from_bytes, make_specified_string, make_float)
7690 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7691 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7692 memcpy, memmove, memset, memcmp.
7693 * atimer.c (start_atimer, set_alarm): Likewise.
7694 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7695 (mmap_realloc, init_buffer_once): Likewise.
7696 * callint.c (Fcall_interactively): Likewise.
7697 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7698 (getenv_internal_1): Likewise.
7699 * casefiddle.c (casify_object): Likewise.
7700 * ccl.c (ccl_driver): Likewise.
7701 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7702 * charset.c (load_charset_map_from_file)
7703 (load_charset_map_from_file, load_charset_map_from_vector)
7704 (Fdefine_charset_internal): Likewise.
7705 * cm.c (Wcm_clear): Likewise.
7706 * coding.c (decode_eol, decode_coding_object)
7707 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7708 * data.c (Faset): Likewise.
7709 * dired.c (directory_files_internal, file_name_completion_stat):
7710 Likewise.
7711 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7712 (clear_glyph_row, copy_row_except_pointers)
7713 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7714 (save_current_matrix, restore_current_matrix)
7715 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7716 (mirror_line_dance, scrolling_window): Likewise.
7717 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7718 Likewise.
7719 * doprnt.c (doprnt): Likewise.
7720 * editfns.c (Fuser_full_name, make_buffer_string_both)
7721 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7722 * emacs.c (sort_args): Likewise.
7723 * eval.c (Fapply, Ffuncall): Likewise.
7724 * fileio.c (Ffile_name_directory, make_temp_name)
7725 (Fexpand_file_name, search_embedded_absfilename)
7726 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7727 (auto_save_error): Likewise.
7728 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7729 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7730 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7731 (Fmake_hash_table): Likewise.
7732 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7733 * ftfont.c (ftfont_text_extents): Likewise.
7734 * getloadavg.c (getloadavg): Likewise.
7735 * image.c (define_image_type, make_image, make_image_cache)
7736 (x_create_x_image_and_pixmap, xbm_image_p)
7737 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7738 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7739 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7740 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7741 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7742 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7743 Likewise.
7744 * indent.c (scan_for_column, compute_motion): Likewise.
7745 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7746 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7747 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7748 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7749 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7750 (store_user_signal_events, menu_bar_items, tool_bar_items)
7751 (process_tool_bar_item, append_tool_bar_item)
7752 (read_char_minibuf_menu_prompt, read_key_sequence)
7753 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7754 Likewise.
7755 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7756 Likewise.
7757 * lisp.h (STRING_COPYIN): Likewise.
7758 * lread.c (Fload, read1, oblookup): Likewise.
7759 * msdos.c (Frecent_doskeys): Likewise.
7760 * nsfns.m (Fx_create_frame): Likewise.
7761 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7762 Likewise.
7763 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7764 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7765 Likewise.
7766 * nsmenu.m (ns_update_menubar): Likewise.
7767 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7768 * print.c (print_unwind, printchar, strout, print_string)
7769 (print_error_message): Likewise.
7770 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7771 (Fmake_network_process, Fnetwork_interface_list)
7772 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7773 (init_process): Likewise.
7774 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7775 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7776 Likewise.
7777 * scroll.c (do_scrolling, do_direct_scrolling)
7778 (scrolling_max_lines_saved): Likewise.
7779 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7780 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7781 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7782 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7783 (emacs_set_tty): Likewise.
7784 * term.c (encode_terminal_code, calculate_costs)
7785 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7786 Likewise.
7787 * termcap.c (tgetst1, gobble_line): Likewise.
7788 * termhooks.h (EVENT_INIT): Likewise.
7789 * tparam.c (tparam1): Likewise.
7790 * unexalpha.c (unexec): Likewise.
7791 * unexec.c (write_segment): Likewise.
7792 * unexmacosx.c (unexec_write_zero): Likewise.
7793 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7794 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7795 * w32font.c (w32font_list_family, w32font_text_extents)
7796 (w32font_list_internal, w32font_match_internal)
7797 (w32font_open_internal, compute_metrics, Fx_select_font):
7798 Likewise.
7799 * w32menu.c (set_frame_menubar, add_menu_item)
7800 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7801 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7802 * w32uniscribe.c (uniscribe_list_family): Likewise.
7803 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7804 * window.c (make_window, replace_window, set_window_buffer)
7805 (Fsplit_window): Likewise.
7806 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7807 (add_to_log, message3, x_consider_frame_title)
7808 (append_space_for_newline, extend_face_to_end_of_line)
7809 (decode_mode_spec_coding, init_glyph_string): Likewise.
7810 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7811 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7812 (face_attr_equal_p, make_realized_face, make_face_cache)
7813 (free_realized_faces, lookup_named_face, smaller_face)
7814 (face_with_height, lookup_derived_face)
7815 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7816 (Finternal_set_font_selection_order, realize_default_face)
7817 (compute_char_face, face_at_buffer_position)
7818 (face_for_overlay_string, face_at_string_position, merge_faces):
7819 Likewise.
7820 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7821 (Fx_window_property, x_create_tip_frame)
7822 (Fx_backspace_delete_keys_p): Likewise.
7823 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7824 (xfont_text_extents): Likewise.
7825 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7826 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7827 * xselect.c (x_queue_event, x_get_window_property)
7828 (receive_incremental_selection): Likewise.
7829 * xsmfns.c (x_session_check_input): Likewise.
7830 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7831 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7832 Likewise.
7833 * character.h (BCOPY_SHORT): Remove.
7834 * config.in: Regenerate.
7835 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7836 * emacs.c (main) [PROFILING]: Don't declare
7837 dump_opcode_frequencies.
7838 * lisp.h (safe_bcopy): Remove declaration.
7839 (memset) [!HAVE_MEMSET]: Declare.
7840 (memcpy) [!HAVE_MEMCPY]: Likewise.
7841 (memmove) [!HAVE_MEMMOVE]: Likewise.
7842 (memcmp) [!HAVE_MEMCMP]: Likewise.
7843 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7844 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7845 Don't define.
7846 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7847 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7848 (BCOPY_DOWNWARD_SAFE): Don't define.
7849 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7850 (memcpy) [!HAVE_MEMCPY]: Define.
7851 (memmove) [!HAVE_MEMMOVE]: Define.
7852 (memcmp) [!HAVE_MEMCMP]: Define.
7853
7854 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7855
7856 * process.c (kbd_is_on_hold): New variable.
7857 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7858 New functions.
7859 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7860 select on empty input mask.
7861 (init_process): Initialize kbd_is_on_hold to 0.
7862
7863 * process.h (hold_keyboard_input, unhold_keyboard_input)
7864 (kbd_on_hold_p): Declare.
7865
7866 * keyboard.c (input_available_signal): Declare.
7867 (kbd_buffer_nr_stored): New function.
7868 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7869 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7870 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7871 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7872 (tty_read_avail_input): If input is on hold, return.
7873 Don't read more that free slots in kbd_buffer (Bug#6571).
7874
7875 2010-07-07 Eli Zaretskii <eliz@gnu.org>
7876
7877 * msdos.h:
7878 * msdos.c:
7879 * dosfns.c:
7880 * w16select.c: Convert function definitions to ANSI C.
7881
7882 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7883 Remove unused prototypes.
7884
7885 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7886
7887 * coding.c, sysdep.c: Convert some more functions to standard C.
7888
7889 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
7890
7891 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7892 (encode_coding_object): Use SPECPDL_INDEX.
7893 (syms_of_coding): Use DOS_NT.
7894
7895 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7896
7897 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7898
7899 Make the function member of Lisp_Subr use standard C prototypes.
7900 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7901 (DECL_ALIGN): Add a cast for the function.
7902 * eval.c (Feval, Ffuncall): Use the proper type for each type
7903 function call.
7904
7905 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
7906
7907 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7908 fringe face id, so face-remapping-alist works (Bug#6091).
7909
7910 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
7911
7912 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7913 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7914 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7915
7916 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7917
7918 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7919 * lisp.h: Declare x_get_keysym_name.
7920 * keyboard.c (modify_event_symbol): Don't declare
7921 x_get_keysym_name here.
7922
7923 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7924
7925 * ecrt0.c: Revert conversion to standard C.
7926
7927 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7928
7929 * vm-limit.c (memory_warnings):
7930 * keyboard.c (modify_event_symbol):
7931 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7932 (round2, emacs_rint):
7933 * process.c (send_process, old_sigpipe): Convert function
7934 definitions and declarations to standard C.
7935
7936 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
7937
7938 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7939 * xdisp.c: Convert function definitions to standard C.
7940
7941 * cm.c (cmputc): Arg C is now int, not char.
7942 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7943
7944 2010-07-05 James Cloos <cloos@jhcloos.com>
7945
7946 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7947
7948 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7949 _NET_WM_ICON_NAME atoms.
7950
7951 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7952 and _NET_WM_ICON_NAME properties, too, matching what is
7953 done in the Gtk+ case.
7954
7955 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7956
7957 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7958
7959 * xsmfns.c (SSDATA): New macro.
7960 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7961 passed to strlen/strcpy/strcat.
7962 (create_client_leader_window): Surround with #ifndef USE_GTK.
7963 Cast 7:th arg to XChangeProperty to (unsigned char *).
7964
7965 * xsettings.c (something_changedCB, parse_settings)
7966 (apply_xft_settings): Reformat prototype.
7967 (something_changedCB, init_gconf): Remove unused variable i.
7968 (read_settings): Remove unused variable long_len.
7969
7970 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7971 (xg_get_image_for_pixmap, create_dialog)
7972 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7973 (menuitem_highlight_callback, make_menu_item)
7974 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7975 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7976 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7977 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7978 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7979 (xg_tool_bar_item_expose_callback): Reformat prototype.
7980 (xg_update_menubar): GList *group => GSList *group.
7981 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7982 before use.
7983 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7984 to GTK_IMAGE (wimage).
7985
7986 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7987
7988 * atimer.c: Use "" instead of <> for local includes for
7989 consistency with the rest of the code.
7990
7991 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7992 * xrdb.c (get_system_name):
7993 * window.c (shrink_windows):
7994 * syntax.c (forw_comment):
7995 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7996 (ins_del_costs):
7997 * mem-limits.h (start_of_data):
7998 * lread.c (readevalloop):
7999 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
8000 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
8001 * frame.c (x_get_focus_frame):
8002 * floatfns.c (fmod_float):
8003 * fileio.c (choose_write_coding_system):
8004 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
8005 (malloc_initialize_hook, sort_args, synchronize_locale):
8006 * doprnt.c (doprnt):
8007 * dired.c (compile_pattern):
8008 * data.c (fmod_float):
8009 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
8010 (map_char_table_for_charset):
8011 * charset.c (define_charset_internal):
8012 * alloc.c (Fgarbage_collect): Convert declarations or definitions
8013 to standard C.
8014
8015 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
8016 Stefan Monnier <monnier@iro.umontreal.ca>
8017
8018 * lread.c (read1): Fix up last change to not mess up `c'.
8019
8020 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8021
8022 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
8023
8024 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8025
8026 Fix prototypes.
8027
8028 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
8029 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
8030 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
8031 arg, as required by internal_condition_case_1.
8032 * print.c (strout): Use const char* for arg PTR.
8033 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
8034 (analyse_first): Fix "const const".
8035 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
8036 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
8037 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
8038
8039 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
8040
8041 * alloc.c: Convert function definitions to standard C.
8042 * atimer.c:
8043 * bidi.c:
8044 * bytecode.c:
8045 * callint.c:
8046 * callproc.c:
8047 * casefiddle.c:
8048 * casetab.c:
8049 * category.c:
8050 * ccl.c:
8051 * character.c:
8052 * charset.c:
8053 * chartab.c:
8054 * cmds.c:
8055 * coding.c:
8056 * composite.c:
8057 * data.c:
8058 * dbusbind.c:
8059 * dired.c:
8060 * dispnew.c:
8061 * doc.c:
8062 * doprnt.c:
8063 * ecrt0.c:
8064 * editfns.c:
8065 * fileio.c:
8066 * filelock.c:
8067 * filemode.c:
8068 * fns.c:
8069 * font.c:
8070 * fontset.c:
8071 * frame.c:
8072 * fringe.c:
8073 * ftfont.c:
8074 * ftxfont.c:
8075 * gtkutil.c:
8076 * indent.c:
8077 * insdel.c:
8078 * intervals.c:
8079 * keymap.c:
8080 * lread.c:
8081 * macros.c:
8082 * marker.c:
8083 * md5.c:
8084 * menu.c:
8085 * minibuf.c:
8086 * prefix-args.c:
8087 * print.c:
8088 * ralloc.c:
8089 * regex.c:
8090 * region-cache.c:
8091 * scroll.c:
8092 * search.c:
8093 * sound.c:
8094 * strftime.c:
8095 * syntax.c:
8096 * sysdep.c:
8097 * termcap.c:
8098 * terminal.c:
8099 * terminfo.c:
8100 * textprop.c:
8101 * tparam.c:
8102 * undo.c:
8103 * unexelf.c:
8104 * window.c:
8105 * xfaces.c:
8106 * xfns.c:
8107 * xfont.c:
8108 * xftfont.c:
8109 * xgselect.c:
8110 * xmenu.c:
8111 * xrdb.c:
8112 * xselect.c:
8113 * xsettings.c:
8114 * xsmfns.c:
8115 * xterm.c: Likewise.
8116
8117 2010-07-03 Eli Zaretskii <eliz@gnu.org>
8118
8119 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8120 frames other than the initial one. Fix reversal of colors when
8121 `reverse' is specified in the frame parameters.
8122 Call update_face_from_frame_parameter instead of
8123 internal-set-lisp-face-attribute. Initialize screen colors from
8124 initial_screen_colors[] when f->default_face_done_p is zero,
8125 instead of depending on being called with default-frame-alist as
8126 the alist argument.
8127
8128 * xfaces.c (update_face_from_frame_parameter): Move out of
8129 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8130 with HAVE_WINDOW_SYSTEM.
8131
8132 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8133 to menu-bar-mode, if not set in the frame parameters or in
8134 default-frame-alist.
8135
8136 * w32console.c (sys_tputs): Adjust argument list to prototype in
8137 term.c.
8138
8139 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
8140
8141 * lisp.h (memory_warnings): Fix prototype.
8142
8143 * cm.h (evalcost): Fix prototype.
8144
8145 * cm.c (evalcost): Fix arg type.
8146
8147 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8148
8149 * term.c (term_clear_mouse_face, Fidentity):
8150 * syssignal.h (signal_handler_t):
8151 * lisp.h (memory_warnings):
8152 * coding.h (preferred_coding_system):
8153 * cm.h (evalcost):
8154 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8155
8156 2010-07-02 Eli Zaretskii <eliz@gnu.org>
8157
8158 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8159 from prototypes.
8160
8161 * msdos.h (load_pixmap): Don't define away.
8162
8163 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8164
8165 * lisp.h:
8166 * atimer.h: Remove define for P_.
8167
8168 * alloc.c: Remove __P and P_ from .c and .m files.
8169 * atimer.c:
8170 * buffer.c:
8171 * callint.c:
8172 * category.c:
8173 * charset.c:
8174 * chartab.c:
8175 * cm.c:
8176 * coding.c:
8177 * composite.c:
8178 * data.c:
8179 * dired.c:
8180 * dispnew.c:
8181 * doc.c:
8182 * editfns.c:
8183 * emacs.c:
8184 * eval.c:
8185 * fileio.c:
8186 * filelock.c:
8187 * fns.c:
8188 * font.c:
8189 * fontset.c:
8190 * frame.c:
8191 * ftfont.c:
8192 * ftxfont.c:
8193 * gmalloc.c:
8194 * gtkutil.c:
8195 * image.c:
8196 * indent.c:
8197 * intervals.c:
8198 * keyboard.c:
8199 * keymap.c:
8200 * lread.c:
8201 * marker.c:
8202 * menu.c:
8203 * minibuf.c:
8204 * print.c:
8205 * process.c:
8206 * scroll.c:
8207 * search.c:
8208 * sound.c:
8209 * strftime.c:
8210 * syntax.c:
8211 * sysdep.c:
8212 * term.c:
8213 * terminal.c:
8214 * textprop.c:
8215 * unexalpha.c:
8216 * w32console.c:
8217 * w32fns.c:
8218 * w32font.c:
8219 * w32menu.c:
8220 * w32term.c:
8221 * w32uniscribe.c:
8222 * window.c:
8223 * xdisp.c:
8224 * xfaces.c:
8225 * xfns.c:
8226 * xfont.c:
8227 * xftfont.c:
8228 * xmenu.c:
8229 * xselect.c:
8230 * xterm.c: Likewise.
8231
8232 Remove P_ and __P macros.
8233 * atimer.h: Remove P_ and __P macros.
8234 * buffer.h:
8235 * category.h:
8236 * ccl.h:
8237 * character.h:
8238 * charset.h:
8239 * cm.h:
8240 * coding.h:
8241 * composite.h:
8242 * dispextern.h:
8243 * disptab.h:
8244 * dosfns.h:
8245 * font.h:
8246 * fontset.h:
8247 * frame.h:
8248 * gtkutil.h:
8249 * indent.h:
8250 * intervals.h:
8251 * keyboard.h:
8252 * keymap.h:
8253 * lisp.h:
8254 * macros.h:
8255 * md5.h:
8256 * menu.h:
8257 * msdos.h:
8258 * nsterm.h:
8259 * puresize.h:
8260 * region-cache.h:
8261 * syntax.h:
8262 * syssignal.h:
8263 * systime.h:
8264 * termhooks.h:
8265 * w32font.h:
8266 * w32term.h:
8267 * widget.h:
8268 * window.h:
8269 * xgselect.h:
8270 * xsettings.h:
8271 * xterm.h: Likewise.
8272
8273 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8274
8275 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8276
8277 Cleanup old code.
8278 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8279 * syssignal.h: Remove code for Lynx, not supported anymore.
8280 * vm-limit.c: Remove unused code the depends on emacs not being
8281 defined and NO_LIM_DATA being defined.
8282 * mem-limits.h: Remove dead code.
8283
8284 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8285
8286 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8287
8288 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8289 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8290
8291 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8292 parameters, they are already absolute.
8293
8294 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8295 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
8296
8297 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
8298
8299 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8300 Update FRAME_TOOLBAR_HEIGHT.
8301
8302 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8303 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
8304
8305 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
8306
8307 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8308 Don't check default-frame-alist.
8309
8310 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8311
8312 * process.c (create_process): Avoid using invalid file descriptors.
8313
8314 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8315
8316 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8317
8318 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8319 Improve documentation. Return font regardless of use_system_font.
8320 (syms_of_xsettings): Improve documentation for font-use-system-font.
8321
8322 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
8323
8324 * xfaces.c (realize_face): Garbage the frame if a face is removed
8325 (Bug#6593).
8326
8327 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8328
8329 * keyboard.c: Remove duplicate <setjmp.h>.
8330 (read_key_sequence): Remove volatile qualifiers.
8331
8332 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8333
8334 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8335 (struct glyph_row): New members left_fringe_offset and
8336 right_fringe_offset.
8337
8338 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8339 specially.
8340 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8341 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8342
8343 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
8344 Take account of bitmap offset.
8345 (draw_window_fringes): Take account of window vscroll.
8346 (update_window_fringes): Likewise. Extend top-aligned top indicator
8347 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8348 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8349 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8350
8351 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
8352
8353 * w32fns.c (Qtooltip): Declare.
8354 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8355
8356 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8357
8358 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8359 grab on just Press (Bug#6499).
8360
8361 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
8362
8363 * frame.c (Qtooltip): New var.
8364 (delete_frame): Use it. Fix faulty if statement. Don't update
8365 mode line for tooltip frames. Suggested by Martin Rudalics.
8366
8367 * xfns.c (x_create_tip_frame):
8368 * w32fns.c (x_create_tip_frame): Use it.
8369
8370 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8371
8372 * xftfont.c (xftfont_open): Check font width one by one also when
8373 spacing is dual.
8374
8375 * ftfont.c (ftfont_open): Ditto.
8376
8377 2010-06-30 Glenn Morris <rgm@gnu.org>
8378
8379 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8380
8381 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8382
8383 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8384 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8385 * s/darwin.h (SYSTEM_MALLOC):
8386 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8387
8388 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8389
8390 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8391 (ns_get_screen): Don't assign integer to f.
8392 (Fx_display_color_cells): Declarations before statements.
8393
8394 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8395
8396 * xfns.c (x_default_font_parameter): Remove got_from_system
8397 (Bug#6526).
8398
8399 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
8400 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8401 New defines based on what configure finds.
8402
8403 * xterm.c (XTflash): Use gtk_widget_get_window.
8404 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8405 gtk_adjustment_get_page_size.
8406 (handle_one_xevent): Use gtk_widget_get_mapped.
8407 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8408 messages.
8409
8410 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8411
8412 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8413 HAVE_GTK_FILE_SELECTION_NEW.
8414
8415 * gtkutil.c (xg_display_open, xg_display_close):
8416 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
8417 (xg_display_open): Return type is void.
8418 (gtk_widget_set_has_window)
8419 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8420 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8421 (gtk_adjustment_set_page_increment)
8422 (gtk_adjustment_get_step_increment): #define these if not found
8423 by configure.
8424 (remove_submenu): New define based on Gtk+ version.
8425 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8426 Use gtk_widget_get_window.
8427 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8428 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8429 (create_dialog): Use gtk_dialog_get_action_area and
8430 gtk_dialog_get_content_area.
8431 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8432 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8433 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
8434 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8435 Use g_object_ref and g_object_unref.
8436 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8437 Use gtk_widget_get_sensitive.
8438 (xg_update_submenu): Use remove_submenu.
8439 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8440 properties instead to get old x and y position.
8441 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8442 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
8443 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
8444 (xg_get_tool_bar_widgets): New function.
8445 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8446 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8447 (toolbar_set_orientation): New #define based on if configure
8448 finds gtk_orientable_set_orientation.
8449 (xg_create_tool_bar): Call toolbar_set_orientation.
8450 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8451 instead of gtk_box_pack_start_defaults.
8452
8453 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
8454
8455 * cmds.c (Fdelete_backward_char): Move into Lisp.
8456
8457 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8458
8459 * s/freebsd.h (BSD4_2): Remove redundant definition.
8460 bsd-common.h defines it already.
8461
8462 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
8463
8464 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8465 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8466 tool-bar-mode, which are now set using these X resources at
8467 startup, to determine the defaults (Bug#2249).
8468
8469 * w32fns.c (Fx_create_frame):
8470 * nsfns.m (Fx_create_frame): Likewise.
8471
8472 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8473
8474 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
8475
8476 * gtkutil.c (xg_update_scrollbar_pos):
8477 Avoid C99 mid-block variable declaration.
8478
8479 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8480
8481 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8482
8483 * gtkutil.h (xg_show_scroll_bar): Remove.
8484
8485 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8486 if height is less than scroll bar min size.
8487 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8488
8489 * xfns.c (x_default_font_parameter): Try to open font from system
8490 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8491
8492 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
8493
8494 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8495
8496 2010-06-20 Eli Zaretskii <eliz@gnu.org>
8497
8498 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8499 most-positive-fixnum, be extra accurate when scrolling window
8500 start, to avoid missing the cursor line.
8501
8502 2010-06-19 Eli Zaretskii <eliz@gnu.org>
8503
8504 * xdisp.c (try_scrolling): Compute the limit for searching point
8505 in forward scroll from scroll_max, instead of an arbitrary limit
8506 of 10 screen lines.
8507 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
8508 and
8509 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8510 for details.
8511
8512 2010-06-16 Glenn Morris <rgm@gnu.org>
8513
8514 * editfns.c (Fbyte_to_string): Pacify compiler.
8515
8516 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8517
8518 * lread.c (read1): Phase out old-style backquotes a bit more.
8519
8520 2010-06-12 Eli Zaretskii <eliz@gnu.org>
8521
8522 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8523 bidimirror.h.
8524
8525 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8526
8527 * bidi.c (bidi_initialize): Remove explicit initialization of
8528 bidi_type_table; include biditype.h instead. Don't support
8529 entries whose second codepoint is zero. Initialize bidi_mirror_table.
8530 (bidi_mirror_char): Use bidi_mirror_table.
8531
8532 * biditype.h: New file.
8533
8534 * bidimirror.h: New file.
8535
8536 * window.c (syms_of_window): Doc fix (bug#6409).
8537
8538 2010-06-12 Romain Francoise <romain@orebokech.com>
8539
8540 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8541 ediff-hook.
8542
8543 2010-06-10 Glenn Morris <rgm@gnu.org>
8544
8545 * editfns.c (Fbyte_to_string): Pacify compiler.
8546
8547 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8548
8549 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8550
8551 * alloc.c (Fmake_byte_code): Don't access undefined argument
8552 (Bug#6517).
8553
8554 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
8555
8556 * xdisp.c (next_element_from_image): Ensure that after-strings are
8557 read the next time we hit handle_stop (Bug#1336).
8558
8559 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8560
8561 * lread.c (read1): Signal error if #s is not followed by paren.
8562
8563 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
8564
8565 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8566
8567 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8568
8569 2010-06-15 Glenn Morris <rgm@gnu.org>
8570
8571 * editfns.c (Fbyte_to_string): Pacify compiler.
8572
8573 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8574
8575 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8576 Check `object's type before accessing its guts.
8577
8578 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8579
8580 * s/usg5-4.h: Fix previous change.
8581 Suggested by Lawrence Mitchell <wence@gmx.li>
8582
8583 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8584
8585 * minibuf.c (Fall_completions): Add more checks.
8586
8587 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
8588
8589 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8590
8591 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8592
8593 * lread.c (X_OK): Remove, unused.
8594
8595 * dispnew.c: Remove obsolete comment.
8596
8597 Remove INCLUDED_FCNTL.
8598 * xterm.c (INCLUDED_FCNTL):
8599 * callproc.c (INCLUDED_FCNTL):
8600 * alloc.c (INCLUDED_FCNTL):
8601 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8602 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8603
8604 2010-06-07 Martin Rudalics <rudalics@gmx.at>
8605
8606 * window.c (Fselect_window): Move `record_buffer' up to the
8607 beginning of this function, so the buffer gets recorded
8608 even if the selected window does not change.
8609 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8610
8611 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
8612
8613 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8614 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8615
8616 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8617
8618 Remove BSTRING related code, all platforms define it.
8619 * s/usg5-4.h (BSTRING): Remove definition.
8620 * s/template.h (BSTRING):
8621 * s/msdos.h (BSTRING):
8622 * s/ms-w32.h (BSTRING):
8623 * s/hpux10-20.h (BSTRING):
8624 * s/gnu-linux.h (BSTRING):
8625 * s/darwin.h (BSTRING):
8626 * s/cygwin.h (BSTRING):
8627 * s/bsd-common.h (BSTRING):
8628 * s/aix4-2.h (BSTRING): Likewise.
8629 * sysdep.c: Remove code depending on BSTRING not being defined.
8630
8631 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
8632
8633 Remove obsolete macro BASE_LEADING_CODE_P.
8634 * character.h (BASE_LEADING_CODE_P): Remove.
8635 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8636 * buffer.c (Fset_buffer_multibyte):
8637 * indent.c (scan_for_column, compute_motion):
8638 * insdel.c (count_combining_before, count_combining_after):
8639 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8640
8641 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
8642
8643 Turn `directory-sep-char' into a noop.
8644
8645 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8646 (DIRECTORY_SEP): Define unconditionally.
8647
8648 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8649
8650 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8651 call dostounix_filename directly.
8652
8653 * fileio.c (CORRECT_DIR_SEPS): Remove.
8654 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8655 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8656 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8657 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8658
8659 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8660 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8661
8662 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8663
8664 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8665 (Bug#6346)
8666
8667 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8668
8669 * ccl.c (Fccl_program_p): Fix typo in docstring.
8670
8671 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8672
8673 Move UNEXEC definition to autoconf.
8674 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8675 * s/sol2-10.h (UNEXEC):
8676 * s/irix6-5.h (UNEXEC):
8677 * s/hpux10-20.h (UNEXEC):
8678 * s/gnu-linux.h (UNEXEC):
8679 * s/darwin.h (UNEXEC):
8680 * s/cygwin.h (UNEXEC):
8681 * s/bsd-common.h (UNEXEC):
8682 * s/aix4-2.h (UNEXEC):
8683 * m/alpha.h (UNEXEC): Likewise.
8684 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8685
8686 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
8687
8688 Remove obsolete pre-unicode2 macros.
8689 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8690 * composite.c (composition_reseat_it):
8691 * data.c (Faset):
8692 * fns.c (Ffillarray):
8693 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8694 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8695
8696 2010-06-03 Juri Linkov <juri@jurta.org>
8697
8698 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8699 (Fswitch_to_buffer): Remove unused variable `err'.
8700
8701 2010-06-03 Glenn Morris <rgm@gnu.org>
8702
8703 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8704
8705 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8706 now that AH_BOTTOM does it.
8707
8708 * m/hp800.h (HAVE_ALLOCA):
8709 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8710
8711 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8712 Remove NOT_C_CODE tests, it is always true now.
8713
8714 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8715
8716 Fix config.h includes.
8717 * xsettings.c:
8718 * xgselect.c:
8719 * nsterm.m:
8720 * nsselect.m:
8721 * nsimage.m:
8722 * nsfont.m:
8723 * nsfns.m:
8724 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8725 other files do.
8726
8727 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8728
8729 * s/sol2-6.h: Remove obsolete comments.
8730
8731 Remove unnecessary alloca.h includes.
8732 * keymap.c: Do not include alloca.h, config.h does that.
8733 * sysdep.c: Likewise. Do not define fwrite, not used.
8734
8735 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8736
8737 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8738 the HAVE_TERMIO where it belongs (bug#6149).
8739
8740 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8741
8742 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8743 of bug#6305).
8744
8745 2010-05-30 Eli Zaretskii <eliz@gnu.org>
8746
8747 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8748 state is always cached (bug#6306).
8749
8750 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8751
8752 Fix cursor motion in bidi-reordered continued lines.
8753 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8754 only after finding point's row. Fix the logic. Rewrite the loop
8755 over continuation lines in bidi-reordered buffers.
8756 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
8757 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8758
8759 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
8760
8761 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8762
8763 2010-05-28 Kenichi Handa <handa@m17n.org>
8764
8765 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8766 Don't sheck SPEC if it is nil.
8767 (font_list_entities): Call font_delete_unmatched if
8768 Vface_ignored_fonts is non-nil. (Bug#6287)
8769
8770 2010-05-28 Glenn Morris <rgm@gnu.org>
8771
8772 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8773
8774 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8775
8776 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8777 whether to trash.
8778 (internal_delete_file, Frename_file): Callers changed.
8779 (delete_by_moving_to_trash): Doc fix.
8780 (Fdelete_directory_internal): Don't move to trash.
8781
8782 * callproc.c (delete_temp_file):
8783 * buffer.c (Fkill_buffer): Callers changed.
8784
8785 * lisp.h: Update prototype.
8786
8787 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * xdisp.c (redisplay_window): After redisplay, check if point is
8790 still valid before setting it (Bug#6177).
8791
8792 2010-05-27 Glenn Morris <rgm@gnu.org>
8793
8794 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8795 Convert comments to Makefile format.
8796
8797 * Makefile.in (bootstrap-clean): No more Makefile.c.
8798
8799 2010-05-26 Glenn Morris <rgm@gnu.org>
8800
8801 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8802 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8803
8804 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8805 Remove.
8806 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8807
8808 2010-05-26 Kenichi Handa <handa@m17n.org>
8809
8810 * composite.c (composition_compute_stop_pos): Fix condition for
8811 backward scanning.
8812
8813 2010-05-25 Glenn Morris <rgm@gnu.org>
8814
8815 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8816 Move before TEMACS_LDFLAGS.
8817 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8818 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8819
8820 * Makefile.in (NOT_C_CODE): No longer define.
8821 (config.h): No longer include.
8822
8823 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8824 variables it may reference.
8825
8826 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8827 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8828
8829 2010-05-25 Kenichi Handa <handa@m17n.org>
8830
8831 * dispextern.h (struct composition_it): New members rule_idx and
8832 charpos.
8833
8834 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8835 that the character positions of IT point the last character of the
8836 current grapheme cluster.
8837 (next_element_from_composition): Don't change character positions
8838 of IT.
8839 (append_composite_glyph): Set glyph->charpos to
8840 it->cmp_it.charpos.
8841
8842 * composite.c (autocmp_chars): Change the first argument to RULE,
8843 and try composition with RULE only.
8844 (composition_compute_stop_pos): Record the index number of the
8845 composition rule in CMP_IT->rule_idx.
8846 (composition_reseat_it): Call autocmp_chars repeatedly until the
8847 correct rule of the composition is found.
8848 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8849 is at the last character of the current grapheme cluster when
8850 CMP_IT->reversed_p is nonzero.
8851
8852 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8853
8854 * editfns.c (Fbyte_to_string): New function.
8855
8856 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8857
8858 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8859 Suggested by Masatake YAMATO <yamato@redhat.com>.
8860
8861 2010-05-23 Eli Zaretskii <eliz@gnu.org>
8862
8863 * dispextern.h (init_iterator): Sync prototype with changed definition.
8864
8865 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8866
8867 * s/netbsd.h: If terminfo is found, use it in preference to
8868 termcap. (Bug#6190) [Backport from trunk]
8869
8870 2010-05-19 Eli Zaretskii <eliz@gnu.org>
8871
8872 Redesign and reimplement bidi-aware edge positions of glyph rows.
8873
8874 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8875 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8876 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8877 and maxpos members instead of start.pos and end.pos, respectively.
8878
8879 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8880 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8881 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
8882 (try_window_reusing_current_matrix, try_window_id):
8883 Use ROW->minpos rather than ROW->start.pos.
8884 (init_from_display_pos, init_iterator): Use EMACS_INT for
8885 character and byte positions.
8886 (find_row_edges): Rename from find_row_end. Accept additional
8887 arguments for minimum and maximum buffer positions seen by
8888 display_line for this row. Don't use iterator to find the
8889 position following the maximum one; instead, increment the
8890 position found by display_line directly. Fix logic; eol_pos
8891 should be tested before the rest. Handle the case of characters
8892 delivered from display vector (bug#6036). Fix tests related to
8893 it->method. Handle the truncated_on_right_p rows.
8894 (RECORD_MAX_MIN_POS): New macro.
8895 (display_line): Use it to record the minimum and maximum buffer
8896 positions for glyphs in the row being assembled. Record the
8897 position of the newline that terminates the line. If word wrap is
8898 in effect, restore minimum and maximum positions seen up to the
8899 wrap point, when iterator returns to it.
8900 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8901 row and cursor not already at point. Restore original pre-bidi
8902 code for unidirectional buffers.
8903
8904 * dispnew.c (increment_row_positions, check_matrix_invariants):
8905 Increment and check row->start.pos and row->end.pos, in addition
8906 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8907
8908 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8909 Display truncated_on_left_p and truncated_on_right_p flags.
8910 Formatting fixes.
8911 (pmtxrows): Display the ordinal number of each row. Don't display
8912 rows beyond the last one.
8913
8914 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8915 it is not copied by bidi_copy_it.
8916
8917 2010-05-22 Eli Zaretskii <eliz@gnu.org>
8918
8919 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8920 (Bug#6237)
8921
8922 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
8923
8924 * image.c (Fimage_flush): Rename from image-refresh.
8925
8926 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
8927
8928 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8929 just one window.
8930
8931 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8932 (clear_image_cache): If the number of cached images is unusually
8933 large, decrease the cache eviction delay (Bug#6230).
8934
8935 2010-05-21 Glenn Morris <rgm@gnu.org>
8936
8937 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8938 Move these rules to ns.mk.
8939 * ns.mk: New file.
8940
8941 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8942
8943 * Makefile.in (CANNOT_DUMP): New, set by configure.
8944 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8945
8946 2010-05-20 Juri Linkov <juri@jurta.org>
8947
8948 * fileio.c (Fdelete_file): Change interative spec to use
8949 `read-file-name' like in `find-file-read-args' where the default
8950 value is `default-directory' instead of `buffer-file-name'.
8951 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8952
8953 2010-05-20 Kevin Ryde <user42@zip.com.au>
8954
8955 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8956 (Voverriding_terminal_local_map, Vsystem_key_alist)
8957 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8958
8959 2010-05-20 Glenn Morris <rgm@gnu.org>
8960
8961 * Makefile.in (DEPDIR): New constant.
8962 (DEPFLAGS): Set with configure, not cpp.
8963 (MKDEPDIR): New, set by configure.
8964 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8965 (clean): Use $DEPDIR.
8966 (deps_frag): Include from configure.
8967 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8968 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8969
8970 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8971 Fix reallocation of the cache. (Bug#6210)
8972
8973 2010-05-19 Glenn Morris <rgm@gnu.org>
8974
8975 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8976
8977 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8978 (GNULIB_VAR): Remove.
8979 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8980
8981 * m/ibms390x.h (LINKER):
8982 * m/macppc.h (LINKER) [GNU_LINUX]:
8983 * s/aix4-2.h (ORDINARY_LINK):
8984 * s/cygwin.h (LINKER):
8985 * s/darwin.h (ORDINARY_LINK):
8986 * s/gnu.h (ORDINARY_LINK):
8987 * s/netbsd.h (LINKER):
8988 * s/usg5-4.h (ORDINARY_LINK):
8989 Move to configure.
8990
8991 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8992
8993 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
8994
8995 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8996 prevent stack overflow if number of arguments is too large
8997 (Bug#6214).
8998
8999 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
9000
9001 * charset.c (load_charset_map_from_file): Don't call close after fclose.
9002
9003 2010-05-18 Glenn Morris <rgm@gnu.org>
9004
9005 * s/gnu-linux.h: Combine two conditionals.
9006
9007 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
9008 $(POST_ALLOC_OBJ).
9009
9010 * Makefile.in (RALLOC_OBJ): New, set by configure.
9011 (rallocobj): Replace with the previous variable.
9012 (otherobj): Use $RALLOC_OBJ.
9013
9014 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
9015 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
9016
9017 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
9018 (gmallocobj, vmlimitobj): Replace with previous two variables.
9019 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
9020
9021 2010-05-17 Glenn Morris <rgm@gnu.org>
9022
9023 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
9024 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
9025
9026 2010-05-16 Glenn Morris <rgm@gnu.org>
9027
9028 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
9029
9030 * Makefile.in (clean): Get rid of HAVE_NS conditional.
9031
9032 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
9033 trailing "/".
9034
9035 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
9036 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
9037
9038 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
9039 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
9040 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
9041 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
9042 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
9043
9044 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
9045 Remove ${STARTFLAGS}, nothing ever sets it.
9046
9047 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
9048
9049 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
9050
9051 2010-05-16 Glenn Morris <rgm@gnu.org>
9052
9053 * Makefile.in (LIBX_BASE): Always define.
9054
9055 * Makefile.in (LIBX_OTHER): Move out of cpp section.
9056
9057 * Makefile.in (LIBXT): Always define.
9058
9059 2010-05-15 Glenn Morris <rgm@gnu.org>
9060
9061 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
9062
9063 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
9064 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
9065
9066 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
9067
9068 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
9069 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
9070
9071 * emacs.c (main): Initialize initial-environment and
9072 process-environment before generating from env, not after.
9073
9074 Handle --version reasonably in CANNOT_DUMP configuration.
9075 * emacs.c (emacs_version, emacs_copyright): New string variables.
9076 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
9077 (syms_of_emacs): Defvar them, and initialize them from the C
9078 string variables.
9079 (main): If initialization hasn't been done, print initial version
9080 info from the C strings, instead of starting an interactive session.
9081
9082 2010-05-15 Eli Zaretskii <eliz@gnu.org>
9083
9084 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
9085 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
9086 (bidi_paragraph_init): Remove redundant assertion that we are at
9087 the beginning of a line after call to bidi_find_paragraph_start.
9088
9089 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9090 (syms_of_xdisp): Defsubr it.
9091
9092 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9093
9094 * Makefile.in: Fix MSDOS-related comments.
9095
9096 2010-05-15 Glenn Morris <rgm@gnu.org>
9097
9098 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9099 (really-lwlib, really-oldXMenu): Always define.
9100 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9101
9102 * Makefile.in: Simplify cpp conditional.
9103
9104 * Makefile.in (${ns_appdir}): Simplify using umask.
9105
9106 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9107
9108 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9109
9110 * eval.c (specbind): Remove left-over duplicate test.
9111 Disallow let-binding frame-local vars. Add comment.
9112
9113 2010-05-14 Eli Zaretskii <eliz@gnu.org>
9114
9115 Make the cache of bidi iterator states dynamically allocated.
9116 * bidi.c (bidi_cache_shrink): New function.
9117 (bidi_init_it): Call it.
9118 (bidi_cache_iterator_state): Enlarge the cache if needed.
9119
9120 * bidi.c (bidi_move_to_visually_next): Rename from
9121 bidi_get_next_char_visually. All callers changed.
9122
9123 2010-05-14 Kenichi Handa <handa@m17n.org>
9124
9125 * dispextern.h (struct composition_it): New member reversed_p.
9126
9127 * composite.c (composition_compute_stop_pos): Search backward if
9128 ENDPOS < CHARPOS.
9129 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9130 Set CMP_IT->reversed_p.
9131 (composition_update_it): Pay attention to CMP_IT->reversed_p.
9132
9133 * xdisp.c (set_iterator_to_next):
9134 Call composition_compute_stop_pos with negative ENDPOS if we are
9135 scanning backward. Call composition_compute_stop_pos if scan
9136 direction is changed.
9137 (next_element_from_buffer): Call composition_compute_stop_pos with
9138 negative ENDPOS if we are scanning backward.
9139 (next_element_from_composition): Pay attention to
9140 IT->cmp_it.reversed_p.
9141
9142 2010-05-14 Kenichi Handa <handa@m17n.org>
9143
9144 * font.c (font_range): Return the range for the font found at first.
9145
9146 2010-05-14 Glenn Morris <rgm@gnu.org>
9147
9148 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9149
9150 * Makefile.in (mktime, X11, register): Move undefs to configure.
9151
9152 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9153 (MSDOS_X_OBJ): New variable.
9154 (MSDOS_SUPPORT_REAL): New constant.
9155 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9156 (obj): Use MSDOS_X_OBJ.
9157 (lisp): Use MSDOS_SUPPORT as a variable.
9158
9159 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9160 (GPM_MOUSE_SUPPORT): Now it's a constant.
9161 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9162 not cpp.
9163
9164 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
9165 (ns_appresdir): Remove, unused.
9166
9167 * Makefile.in (SHELL): Move outside cpp section.
9168
9169 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9170
9171 2010-05-13 Glenn Morris <rgm@gnu.org>
9172
9173 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9174 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9175
9176 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9177 HAVE_WINDOW_SYSTEM must be too.
9178
9179 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9180 (lisp): Remove WINNT_SUPPORT.
9181
9182 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9183 Let configure set these variables (to empty) in this case as well.
9184
9185 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9186 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9187
9188 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9189 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9190 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9191 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9192 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
9193 the values output by configure.
9194 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9195
9196 2010-05-12 Glenn Morris <rgm@gnu.org>
9197
9198 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9199 (LINKER_WAS_SPECIFIED): Remove.
9200
9201 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9202 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9203 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9204 * s/cygwin.h (LIB_GCC):
9205 * s/freebsd.h (LIB_GCC):
9206 * s/gnu-linux.h (LIB_GCC):
9207 * s/msdos.h (LIB_GCC):
9208 * s/netbsd.h (LIB_GCC):
9209 Move to configure.
9210
9211 2010-05-11 Karel Klíč <kklic@redhat.com>
9212
9213 * ftfont.c: Fix incorrect parentheses of #if condition for
9214 definining M17N_FLT_USE_NEW_FEATURE.
9215
9216 2010-05-11 Glenn Morris <rgm@gnu.org>
9217
9218 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9219 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9220
9221 2010-05-10 Eli Zaretskii <eliz@gnu.org>
9222
9223 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9224 unibyte buffers. See
9225 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9226
9227 2010-05-10 Glenn Morris <rgm@gnu.org>
9228
9229 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9230 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9231 (LIBES): Use LIBS_SYSTEM as a variable.
9232 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9233 * s/aix4-2.h (LIBS_SYSTEM):
9234 * s/freebsd.h (LIBS_SYSTEM):
9235 * s/hpux10-20.h (LIBS_SYSTEM):
9236 * s/sol2-6.h (LIBS_SYSTEM):
9237 * s/unixware.h (LIBS_SYSTEM):
9238 Move to configure.
9239
9240 * s/aix4-2.h (MAIL_USE_LOCKF):
9241 * s/bsd-common.h (MAIL_USE_FLOCK):
9242 * s/darwin.h (MAIL_USE_FLOCK):
9243 * s/gnu-linux.h (MAIL_USE_FLOCK):
9244 * s/irix6-5.h (MAIL_USE_FLOCK):
9245 * s/template.h (MAIL_USE_FLOCK):
9246 Move to configure.
9247
9248 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
9249
9250 * Version 23.2 released.
9251
9252 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
9253
9254 * composite.c (autocmp_chars): Save point as marker before calling
9255 auto-composition-function (Bug#5984).
9256
9257 * lisp.h (restore_point_unwind): Add prototype.
9258
9259 * fileio.c (restore_point_unwind): Remove static attribute.
9260
9261 2010-05-08 Kenichi Handa <handa@m17n.org>
9262
9263 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9264 new feature of libotf and m17n-flt.
9265 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9266 Call OTF_check_features even if no specific feature is given.
9267 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9268 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9269 that OUT is NULL. Use OTF_drive_gsub_with_log and
9270 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9271 OTF_drive_gpos.
9272 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
9273 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9274 Setup mflt_enable_new_feature and mflt_try_otf.
9275
9276 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9277
9278 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9279
9280 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9281 box and toolbar (Bug #6139).
9282 (xg_create_tool_bar): Remove comment (Bug #6139).
9283 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9284 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9285
9286 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
9287
9288 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9289 Update dependencies.
9290
9291 2010-05-08 Eli Zaretskii <eliz@gnu.org>
9292
9293 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9294 R2L lines.
9295
9296 2010-05-08 Glenn Morris <rgm@gnu.org>
9297
9298 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9299
9300 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9301 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9302 (termcapobj): Replace with TERMCAP_OBJ.
9303 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9304 (LIBES): Use LIBS_TERMCAP as a variable.
9305
9306 * s/freebsd.h (osreldate.h): No longer include, since this file
9307 does not use __FreeBSD_version any more.
9308
9309 * s/aix4-2.h (TERMINFO):
9310 * s/cygwin.h (TERMINFO):
9311 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9312 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9313 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9314 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9315 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9316 * s/irix6-5.h (TERMINFO):
9317 * s/netbsd.h (LIBS_TERMCAP):
9318 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9319 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9320 * s/usg5-4.h (TERMINFO):
9321 Move to configure.
9322
9323 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9324
9325 * eval.c (unbind_to): Don't unbind a local binding into the global
9326 binding when the local binding disappeared. Inversely, don't unbind
9327 a global binding into a newly created local binding.
9328 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9329 can specify the frame to use, when applicable. Adjust callers.
9330
9331 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
9332 Stefan Monnier <monnier@iro.umontreal.ca>
9333
9334 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9335
9336 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9337
9338 * w32fns.c: Include w32.h.
9339 (Fw32_shell_execute): Decode the error message before passing it
9340 to `error'. (Bug#6126)
9341
9342 * msdos.c (dos_set_window_size):
9343 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9344 instead of `XSYMBOL (foo)->value'.
9345
9346 2010-05-07 Eli Zaretskii <eliz@gnu.org>
9347
9348 Fix the MS-DOS build, broken by autoconfiscation.
9349
9350 * Makefile.in: Don't use Make-style comments past the "start of
9351 cpp stuff" line.
9352 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9353
9354 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9355 edited directly by msdos/sed1v2.inp).
9356
9357 2010-05-07 Glenn Morris <rgm@gnu.org>
9358
9359 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9360 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9361 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9362 move out of cpp section.
9363 * s/freebsd.h (LD_SWITCH_SYSTEM):
9364 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9365 * s/netbsd.h (LD_SWITCH_SYSTEM):
9366 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9367
9368 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9369
9370 Define LIB_STANDARD and START_FILES using autoconf.
9371 * s/usg5-4.h (LIB_STANDARD):
9372 * s/netbsd.h (START_FILES):
9373 * s/irix6-5.h (LIB_STANDARD):
9374 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9375 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9376 * s/freebsd.h (START_FILES):
9377 * s/darwin.h (START_FILES):
9378 * s/cygwin.h (START_FILES):
9379 * s/aix4-2.h (LIB_STANDARD):
9380 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9381 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9382 autoconf, not cpp.
9383
9384 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9385
9386 Remove NEED_BSDTTY and NEED_UNISTD_H.
9387 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9388 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9389 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9390 <sys/ptyio.h> and <unistd.h>.
9391
9392 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9393
9394 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9395 * s/gnu.h (START_FILES): Remove empty definition.
9396
9397 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9398
9399 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9400
9401 2010-05-06 Glenn Morris <rgm@gnu.org>
9402
9403 * Makefile.in (CPP, LN_S): Remove unused variables.
9404
9405 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9406
9407 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9408
9409 2010-05-05 Lawrence Mitchell <wence@gmx.li>
9410
9411 * m/sparc.h: Fix typo in earlier change.
9412
9413 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9414
9415 Misc tweaks.
9416 * eval.c (Fdefvaralias): Remove unintended nested if.
9417 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9418
9419 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
9420
9421 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9422
9423 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9424
9425 Remove BSD_PGRPS.
9426 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9427 * s/gnu-linux.h (BSD_PGRPS): Remove.
9428 * term.c (dissociate_if_controlling_tty):
9429 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9430 (init_sys_modes, reset_sys_modes):
9431 * emacs.c (main):
9432 * callproc.c (Fcall_process, child_setup): Remove code depending
9433 on BSD_PGRPS.
9434
9435 Remove POSIX_SIGNALS.
9436 * s/usg5-4.h (POSIX_SIGNALS):
9437 * s/netbsd.h (POSIX_SIGNALS):
9438 * s/msdos.h (POSIX_SIGNALS):
9439 * s/ms-w32.h (POSIX_SIGNALS):
9440 * s/hpux11.h (POSIX_SIGNALS):
9441 * s/gnu.h (POSIX_SIGNALS):
9442 * s/gnu-linux.h (POSIX_SIGNALS):
9443 * s/freebsd.h (POSIX_SIGNALS):
9444 * s/darwin.h (POSIX_SIGNALS):
9445 * s/cygwin.h (POSIX_SIGNALS):
9446 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9447 * s/unixware.h:
9448 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9449 * process.c (create_process):
9450 * syssignal.h:
9451 * sysdep.c (wait_for_termination, init_signals):
9452 * process.c (create_process):
9453 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9454 remove all code that assumes the contrary.
9455
9456 2010-05-04 Glenn Morris <rgm@gnu.org>
9457
9458 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9459 variable.
9460 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9461 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9462 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9463 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9464 LD_SWITCH_SYSTEM_tmp.
9465 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9466 New variables, set by configure.
9467
9468 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9469 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9470 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9471 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9472 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9473
9474 * s/aix4-2.h (C_SWITCH_SYSTEM):
9475 * m/alpha.h (C_SWITCH_MACHINE):
9476 Move to configure.in.
9477 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9478 New variables, set by configure.
9479 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9480 $c_switch_machine and $c_switch_system.
9481
9482 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9483
9484 * s/hpux10-20.h (LIB_STANDARD): New definition.
9485 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9486 on it, not used anymore.
9487
9488 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
9489
9490 * eval.c (internal_condition_case_n): Rename from
9491 internal_condition_case_2.
9492 (internal_condition_case_2): New function.
9493
9494 * xdisp.c (safe_call): Use internal_condition_case_n.
9495
9496 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9497 (internal_delete_file, Frename_file): Callers changed.
9498
9499 * buffer.c (Fkill_buffer):
9500 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9501
9502 * lisp.h: Update prototypes.
9503
9504 2010-05-03 Glenn Morris <rgm@gnu.org>
9505
9506 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9507 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9508 (LIBXT): Set with configure, not cpp.
9509 (LIBX): Remove.
9510 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9511
9512 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9513
9514 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9515 The FreeBSD is not needed, the default works, Solaris version is
9516 not needed, and the remaining case is not supported by configure.
9517
9518 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9519
9520 * xsmfns.c (CHDIR_OPT): New define.
9521 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9522 restarting emacs.
9523
9524 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9525 shut_down_emacs.
9526
9527 * emacs.c (USAGE1): Mention --chdir.
9528 (main): Handle --chdir.
9529 (standard_args): Add --chdir.
9530 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9531 #5552).
9532
9533 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9534
9535 Remove LD_SWITCH_MACHINE.
9536 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9537 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9538
9539 Clean up IRIX code.
9540 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9541 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9542
9543 Clean up AIX code.
9544 * m/ibmrs6000.inp: Remove file, unused.
9545 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9546 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9547 definition ...
9548 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9549
9550 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9551 unused.
9552
9553 2010-05-01 Eli Zaretskii <eliz@gnu.org>
9554
9555 Emulate POSIX_SIGNALS on MS-Windows.
9556
9557 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9558 (SIG_SETMASK, SIG_UNBLOCK): Define.
9559
9560 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9561 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9562 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9563
9564 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9565 New stubs.
9566
9567 Miscellaneous fixes of bidi display.
9568
9569 * xdisp.c (find_row_end): New function, refactored from display_line.
9570 (display_line): Use it.
9571 (extend_face_to_end_of_line): In almost-filled rows, extend only
9572 if the row is R2L and not continued.
9573 (display_line): Fix prepending of truncation glyphs to R2L rows.
9574 Preserve overlay and string info in row->end.
9575 (insert_left_trunc_glyphs): Support addition of left truncation
9576 glyphs to R2L rows.
9577 (set_cursor_from_row): Don't place cursor on the vertical border
9578 glyph between adjacent windows. Fix a crash when a display string
9579 is continued to the next line. Don't return zero if cursor was
9580 found by `cursor' property of a display string.
9581 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9582 test for that explicitly.
9583
9584 2010-05-01 Glenn Morris <rgm@gnu.org>
9585
9586 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9587 for clarity.
9588 (OTHER_OBJ): Remove.
9589 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9590 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9591
9592 2010-05-01 Karel Klíč <kklic@redhat.com>
9593
9594 * fileio.c (Ffile_selinux_context): Context functions may return null.
9595
9596 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9597
9598 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
9599
9600 2010-04-30 Glenn Morris <rgm@gnu.org>
9601
9602 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9603 (OTHER_OBJ): Define as a separate variable, for clarity.
9604
9605 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9606
9607 * xsettings.c: Include limits.h and update file comment.
9608
9609 2010-04-30 Glenn Morris <rgm@gnu.org>
9610
9611 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9612 Set with configure, not cpp.
9613 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9614
9615 * Makefile.in (mallocobj): Remove.
9616 (otherobj): Simplify using @OTHER_OBJ@.
9617
9618 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9619 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9620 Don't bother making nsgui.h dependency platform-specific.
9621
9622 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9623
9624 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9625
9626 * process.c (read_process_output, exec_sentinel): Don't burp if the
9627 sentinel/filter kills the current buffer (bug#6060).
9628
9629 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
9630 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9631 Remove unused var `args'.
9632 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9633 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9634 * doc.c (store_function_docstring): Use XSETCAR.
9635
9636 2010-04-28 Glenn Morris <rgm@gnu.org>
9637
9638 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9639 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9640
9641 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9642
9643 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9644 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9645
9646 * Makefile.in (FONT_OBJ): New, set by configure.
9647 (FONT_DRIVERS): Use $FONT_OBJ.
9648
9649 * Makefile.in (LIBXMU): Set with configure, not cpp.
9650 * s/aix4-2.h (LIBXMU):
9651 * s/hpux10-20.h (LIBXMU):
9652 Remove definition, now set in configure.
9653
9654 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9655
9656 * m/amdx86-64.h [i386]: Move this test to configure.in.
9657
9658 2010-04-27 Glenn Morris <rgm@gnu.org>
9659
9660 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9661 * s/unixware.h (NEED_LIBW): Remove definition.
9662
9663 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9664 (TOOLKIT_LIBW): New, set by configure.
9665 (@X_TOOLKIT_TYPE@): No longer define it.
9666
9667 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9668 (MOTIF_LIBW): Set with configure, not cpp.
9669 * s/aix4-2.h (LIB_MOTIF):
9670 * s/gnu-linux.h (LIB_MOTIF):
9671 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9672
9673 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9674
9675 Reduce CPP usage.
9676 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9677 (obj): Use autoconf for unexec instead of cpp.
9678 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9679 Remove definitions and undefs. Inline definitions in the only user.
9680 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
9681
9682 2010-04-27 Glenn Morris <rgm@gnu.org>
9683
9684 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9685 since the defaults (set by the system file) are fine in most cases.
9686 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9687 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9688 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9689 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9690 Remove definitions, since they are set correctly in s/gnu-linux.h.
9691 * s/freebsd.h (START_FILES, LIB_STANDARD):
9692 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9693 * s/hpux10-20.h (START_FILES):
9694 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9695 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9696
9697 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9698 (MOTIF_LIBW): Use $LIBXP.
9699 (otherobj): Use $WIDGET_OBJ.
9700
9701 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9702
9703 * Makefile.in (LIBS_MACHINE): Remove, unused.
9704
9705 Use autoconf instead of cpp for LIB_MATH.
9706 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9707 * s/cygwin.h (LIB_MATH): Likewise.
9708 * Makefile.in (LIB_MATH): Do not define with cpp.
9709 (LIBES): Use autoconf for LIB_MATH.
9710
9711 2010-04-26 Kenichi Handa <handa@m17n.org>
9712
9713 * composite.c (Ffind_composition_internal): Fix the return value
9714 for an automatic composition.
9715
9716 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9717
9718 Remove all NO_ARG_ARRAY uses.
9719 * fns.c (concat2, concat3, nconc2):
9720 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9721 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9722 * m/xtensa.h (NO_ARG_ARRAY):
9723 * m/template.h (NO_ARG_ARRAY):
9724 * m/sparc.h (NO_ARG_ARRAY):
9725 * m/sh3.h (NO_ARG_ARRAY):
9726 * m/mips.h (NO_ARG_ARRAY):
9727 * m/macppc.h (NO_ARG_ARRAY):
9728 * m/iris4d.h (NO_ARG_ARRAY):
9729 * m/intel386.h (NO_ARG_ARRAY):
9730 * m/ibms390x.h (NO_ARG_ARRAY):
9731 * m/ibms390.h (NO_ARG_ARRAY):
9732 * m/ibmrs6000.h (NO_ARG_ARRAY):
9733 * m/ia64.h (NO_ARG_ARRAY):
9734 * m/hp800.h (NO_ARG_ARRAY):
9735 * m/arm.h (NO_ARG_ARRAY):
9736 * m/amdx86-64.h (NO_ARG_ARRAY):
9737 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9738
9739 2010-04-25 Eli Zaretskii <eliz@gnu.org>
9740
9741 * xdisp.c (display_line): Don't assume 2nd call to
9742 get_next_display_element cannot return zero. (Bug#6030)
9743 (iterate_out_of_display_property): New function, body from pop_it.
9744 (pop_it): Use it.
9745
9746 2010-04-24 Glenn Morris <rgm@gnu.org>
9747
9748 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9749 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9750 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9751 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9752
9753 2010-04-24 Eli Zaretskii <eliz@gnu.org>
9754
9755 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9756 use `get_next_display_element' and `set_iterator_to_next' to
9757 advance to the next character, when looking for the character that
9758 begins the next row.
9759
9760 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
9761 definition of "struct Lisp_Symbol".
9762
9763 2010-04-24 Glenn Morris <rgm@gnu.org>
9764
9765 * Makefile.in (CRT_DIR): New variable, set by configure.
9766 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9767 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9768
9769 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9770
9771 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9772
9773 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9774
9775 Remove redundant flags.
9776 * s/freebsd.h (C_SWITCH_SYSTEM):
9777 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9778 * s/netbsd.h (C_SWITCH_SYSTEM):
9779 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9780 of these.
9781
9782 Simplify m/intel386.h.
9783 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9784 user: ecrt0.c.
9785 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9786 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9787 the only user: s/unixware.h.
9788 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9789 from m/intel386.h.
9790 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9791 Definitions moved here from m/intel386.h.
9792
9793 * m/mips.h: Remove #if 0 code.
9794
9795 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9796
9797 Fix display of composed characters from L2R scripts in bidi buffers.
9798 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9799 After advancing IT past the composition, resync the bidi iterator
9800 with IT's position. (Bug#5977)
9801
9802 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9803
9804 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9805 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9806
9807 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9808
9809 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9810
9811 2010-04-23 Eli Zaretskii <eliz@gnu.org>
9812
9813 Support `display' text properties and overlay strings in bidi buffers.
9814 * xdisp.c (pop_it): When the stack is popped after displaying
9815 from a string, bidi-iterate to exit from the text portion covered
9816 by the `display' property or overlay. (Bug#5988, bug#5920)
9817
9818 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9819
9820 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9821 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9822
9823 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9824 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9825
9826 Simplify STARTFILES definition.
9827 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9828 relying on Makefile.in to define it.
9829 * s/cygwin.h (START_FILES): Likewise.
9830 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9831
9832 Clean up Solaris code.
9833 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9834 (LIB_MOTIF): Remove, configure takes care of this.
9835 (NOT_USING_MOTIF): Remove, unused.
9836 * xrdb.c: Remove #if 0-ed #include.
9837 (SYSV): Remove conditional for old SysV.
9838 * sysdep.c (closedir): Remove conditional code for Solaris,
9839 Solaris has closedir.
9840
9841 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9842
9843 * xsettings.c (read_and_apply_settings): Check if current_font is
9844 NULL before strcmp (Bug#6001).
9845
9846 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9847
9848 Clean up HP-UX files.
9849 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9850 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9851 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9852 * s/hpux10-20.h: ... to the only user, here.
9853
9854 2010-04-21 Eli Zaretskii <eliz@gnu.org>
9855
9856 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9857 use buffer-local values of paragraph-start and paragraph-separate.
9858 <paragraph_start_re, paragraph_separate_re>: Rename from
9859 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9860 (Bug#5992)
9861
9862 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9863
9864 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9865 current_tool_bar_style are new.
9866 (store_config_changed_event): Rename from store_font_changed_event.
9867 (XSETTINGS_TOOL_BAR_STYLE): New define.
9868 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9869 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9870 HAVE_XFT.
9871 (something_changedCB): store_font_changed_event is now
9872 store_config_changed_event.
9873 (parse_settings): Rename from parse_xft_settings.
9874 Read non-xft xsettings outside #ifdef HAVE_XFT.
9875 (read_settings): Rename from read_xft_settings.
9876 (apply_xft_settings): Take current settings as parameter. Do not
9877 call read_(xft)_settings.
9878 (read_and_apply_settings): New function.
9879 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9880 Call read_and_apply_settings if there are settings to be read.
9881 (init_xsettings): Rename from init_xfd_settings.
9882 Call read_and_apply_settings unconditionally.
9883 (xsettings_initialize): Call init_xsettings.
9884 (Ftool_bar_get_system_style): New function.
9885 (syms_of_xsettings): Define Qmonospace_font_name and
9886 Qtool_bar_style. Initialize current_tool_bar_style to nil.
9887 defsubr Stool_bar_get_system_style. Fprovide on
9888 dynamic-setting.
9889 Move misplaced HAVE_GCONF.
9890
9891 * xsettings.h (Ftool_bar_get_system_style): Declare.
9892
9893 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9894 Qtext, Qboth, Qboth_horiz are new.
9895 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9896 Vtool_bar_style, tool_bar_max_label_size.
9897
9898 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9899
9900 * keyboard.c: QClabel is new.
9901 (parse_tool_bar_item): Take out QClabel from tool bar items.
9902 Try to construct a label if ther is no QClabel.
9903 (syms_of_keyboard): Intern :label as QClabel.
9904
9905 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9906 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9907 New.
9908
9909 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9910 dynamic-setting.el.
9911
9912 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9913 (xg_make_tool_item, xg_show_toolbar_item): New function.
9914 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9915 Call xg_make_tool_item to make a tool bar item.
9916 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9917
9918 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9919 into account for toolbars.
9920
9921 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9922
9923 * data.c (make_blv): Declarations before code (Bug#5993).
9924
9925 2010-04-21 Glenn Morris <rgm@gnu.org>
9926
9927 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9928 Define using autoconf, not cpp.
9929 (LIBXSM): New variable, set by autoconf.
9930 (LIBXT): Use $LIBXSM.
9931
9932 2010-04-21 Dan Nicolaescu <local_user@dannlt>
9933
9934 Remove NOMULTIPLEJOBS, unused.
9935 * s/template.h (NOMULTIPLEJOBS):
9936 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9937
9938 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9939 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9940 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9941 detects -znocombreloc and passes it to the linker
9942 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9943
9944 2010-04-21 Glenn Morris <rgm@gnu.org>
9945
9946 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9947
9948 2010-04-21 Karel Klíč <kklic@redhat.com>
9949
9950 * Makefile.in (LIBSELINUX_LIBS): New.
9951 (LIBES): Add $LIBSELINUX_LIBS.
9952 * eval.c, lisp.h (call7): New function.
9953 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9954 (Ffile_selinux_context, Fset_file_selinux_context):
9955 New functions.
9956 (Fcopy_file): New parameter preserve-selinux-context.
9957 (Frename_file): Preserve selinux context when renaming by copy-file.
9958
9959 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
9960 Eli Zaretskii <eliz@gnu.org>
9961
9962 Don't depend on cm.c or termcap.c on Windows, use stubs.
9963 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9964 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9965 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9966 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9967 (sys_tputs, sys_tgetstr): New stubs.
9968 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9969 (tputs, tgetstr): New; define to sys_*.
9970
9971 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
9972
9973 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9974
9975 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9976
9977 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9978 Just signal a warning rather than an error when inside a let.
9979 (Fmake_variable_frame_local): Add the same test.
9980
9981 * font.c (syms_of_font): Make the style table vars read-only.
9982
9983 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9984 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9985
9986 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9987
9988 2010-04-20 Eli Zaretskii <eliz@gnu.org>
9989
9990 Fix R2L paragraph display on TTY.
9991
9992 * xdisp.c (unproduce_glyphs): New function.
9993 (display_line): Use it when produced glyphs are discarded from R2L
9994 glyph rows.
9995 (append_composite_glyph): In R2L rows, prepend the glyph rather
9996 than appending it.
9997
9998 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9999 rather than append it. Set up the resolved_level and bidi_type
10000 attributes of the appended glyph.
10001 (produce_special_glyphs): Mirror the backslash continuation
10002 character in R2L lines.
10003
10004 Implement display of R2L paragraphs in GUI sessions.
10005
10006 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
10007 append_stretch_glyph.
10008 (set_cursor_from_row) <cursor_x>: Remove unused variable.
10009 Fix off-by-one error in computing x at end of text in the row.
10010 (append_stretch_glyph): In reversed row, prepend the glyph rather
10011 than append it. Set resolved_level and bidi_type of the glyph.
10012 (extend_face_to_end_of_line): If the row is reversed, prepend a
10013 stretch glyph whose width is such that the rightmost glyph will be
10014 drawn at the right margin of the window. Fix off-by-one error on
10015 TTY frames in testing whether a line needs face extension.
10016 Fix face extension at ZV. If this is the last glyph row, use
10017 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
10018 region face.
10019 (set_cursor_from_row, display_line):
10020 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
10021 row->continuation_lines_width.
10022 (next_element_from_buffer): Don't call bidi_paragraph_init if we
10023 are at ZV. Fixes a crash when reseated to ZV by
10024 try_window_reusing_current_matrix.
10025 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
10026 which happens with R2L glyph rows. Fixes a crash when inserting a
10027 character at end of an R2L line.
10028 (set_cursor_from_row): Don't be fooled by truncated rows: don't
10029 treat them as having zero-width characters. Improve comments.
10030 Don't reverse pos_before and pos_after for reversed glyph rows.
10031 Set cursor.x to negative value when the cursor might be on the
10032 left fringe.
10033 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
10034 left fringe, not the right one.
10035 (notice_overwritten_cursor, draw_phys_cursor_glyph)
10036 (erase_phys_cursor): For reversed cursor_row, support cursor on
10037 the left fringe.
10038
10039 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
10040 of continuation indicators on the fringes.
10041 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
10042 left fringe.
10043
10044 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
10045 draw cursor on the left fringe.
10046
10047 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
10048 cursor on the left fringe.
10049
10050 * dispnew.c (update_text_area): Handle reversed desired rows when
10051 the cursor is on the left fringe.
10052 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
10053 below, not by 0, for when the cursor is on the left fringe.
10054
10055 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
10056
10057 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
10058 widget is a scrollbar.
10059
10060 2010-04-20 Kenichi Handa <handa@m17n.org>
10061
10062 * charset.c (char_charset): Consider Vcharset_non_preferred_head
10063 only when the arg CHARSET_LIST is nil.
10064
10065 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10066
10067 Make variable forwarding explicit rather the using special values.
10068 Basically, this makes the structure of buffer-local values and object
10069 forwarding explicit in the type of Lisp_Symbols rather than use
10070 special Lisp_Objects for that. This tends to lead to slightly more
10071 verbose code, but is more C-like, simpler, and makes it easier to make
10072 sure we handled all cases, among other things by letting the compiler
10073 help us check it.
10074 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
10075 Removing forwarding objects.
10076 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
10077 (struct Lisp_Symbol): Make the various forms of variable-forwarding
10078 explicit rather than hiding them inside Lisp_Object "values".
10079 (XFWDTYPE): New macro.
10080 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
10081 (XBUFFER_LOCAL_VALUE): Remove.
10082 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
10083 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
10084 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
10085 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10086 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10087 Remove the Lisp_Misc_* header.
10088 (struct Lisp_Buffer_Local_Value): Redefine.
10089 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10090 (struct Lisp_Misc_Any): Add filler to get the right size.
10091 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10092 Lisp_Intfwd.
10093 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10094 (DEFVAR_KBOARD): Allocate a forwarding object.
10095 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10096 (let_shadows_global_binding_p): New function.
10097 (union Lisp_Val_Fwd): New type.
10098 (make_blv): New function.
10099 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10100 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10101 (swap_in_symval_forwarding, find_symbol_value, Fset)
10102 (let_shadows_buffer_binding_p, set_internal, default_value)
10103 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10104 (Fkill_local_variable, Fmake_variable_frame_local)
10105 (Flocal_variable_p, Flocal_variable_if_set_p)
10106 (Fvariable_binding_locus):
10107 * xdisp.c (select_frame_for_redisplay):
10108 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10109 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10110 * frame.c (store_frame_param):
10111 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10112 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10113 value structure.
10114 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10115 (clone_per_buffer_values): Only adjust markers into the current buffer.
10116 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10117 (Fbuffer_local_value, set_buffer_internal_1)
10118 (swap_out_buffer_local_variables):
10119 Adapt to the new symbol value structure.
10120 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10121 (defvar_per_buffer): Take a new arg for the fwd object.
10122 (buffer_lisp_local_variables): Return a proper alist (different fix
10123 for bug#4138).
10124 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10125 (Fgarbage_collect): Don't handle buffer_defaults specially.
10126 (mark_object): Handle new symbol value structure rather than the old
10127 special Lisp_Misc_* objects.
10128 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10129 * term.c (set_tty_color_mode):
10130 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10131 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10132 a buffer_local_flags.
10133 * print.c (print_object): Get rid of impossible forwarding objects.
10134
10135 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10136
10137 * bidi.c (bidi_get_type, bidi_get_category)
10138 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
10139 (bidi_type_of_next_char, bidi_level_of_next_char):
10140 Declare static. Use `INLINE' rather than `inline'.
10141
10142 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
10143
10144 * dired.c (Ffile_attributes): Fix typo in docstring.
10145
10146 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10147
10148 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10149 NSInteger (Bug#5811).
10150
10151 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10152
10153 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10154 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10155
10156 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10157
10158 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10159
10160 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
10161
10162 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10163 terminal frames (Bug#5837).
10164
10165 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10166
10167 * .gdbinit (xsubchartable): New command.
10168
10169 2010-04-19 Eli Zaretskii <eliz@gnu.org>
10170
10171 * xdisp.c (display_line): Don't write beyond the last glyph row in
10172 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
10173 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10174 and
10175 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10176
10177 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10178
10179 * alloc.c (Fpurecopy): Hash-cons if requested.
10180 (syms_of_alloc): Update purify-flag docstring.
10181
10182 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10183
10184 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10185 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10186
10187 2010-04-17 Eli Zaretskii <eliz@gnu.org>
10188
10189 Fix a crash when an NSM character is inserted at BEGV.
10190
10191 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10192 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10193 NEUTRAL_B or UNKNOWN_BT.
10194
10195 2010-04-16 Eli Zaretskii <eliz@gnu.org>
10196
10197 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10198 other rows with cursor unless they are different from this row and
10199 this row is part of a continued line. (Bug#5943)
10200
10201 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10202
10203 * s/freebsd.h: Restore osreldate.h include.
10204 Suggested by Naohiro Aota.
10205
10206 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10207
10208 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10209
10210 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10211
10212 * s/cygwin.h: Avoid linking against static libgcc.
10213
10214 2010-04-15 Juri Linkov <juri@jurta.org>
10215
10216 * window.c: Add Qscroll_command.
10217 Remove Vscroll_preserve_screen_position_commands.
10218 (window_scroll_pixel_based, window_scroll_line_based): Check the
10219 `scroll-command' property on the last command instead of searching
10220 the last command in Vscroll_preserve_screen_position_commands.
10221 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10222 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10223 (scroll-preserve-screen-position): Doc fix.
10224 (Vscroll_preserve_screen_position_commands): Remove variable.
10225
10226 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10227
10228 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10229
10230 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10231
10232 Reduce cpp use in Makefile.in.
10233 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10234 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10235 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10236 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10237 (CRT0_COMPILE): Remove, inline it in the only user.
10238
10239 2010-04-14 Juri Linkov <juri@jurta.org>
10240
10241 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10242 `scroll-up-command' and `M-v' from `scroll-down' to
10243 `scroll-down-command'.
10244
10245 2010-04-14 Juri Linkov <juri@jurta.org>
10246
10247 * window.c (Vscroll_preserve_screen_position_commands): New variable
10248 with the default value as the list of Qscroll_down and Qscroll_up.
10249 (window_scroll_pixel_based, window_scroll_line_based): Search the
10250 last command in the list Vscroll_preserve_screen_position_commands
10251 instead of comparing with Qscroll_up and Qscroll_down.
10252
10253 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10254
10255 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10256 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10257 does that.
10258
10259 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10260 to zero.
10261
10262 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10263
10264 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10265
10266 Try to solve the problem of spurious EOF chars in long lines of text
10267 sent to interactive subprocesses.
10268 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10269 (system_process_attributes): Remove unused var `ttotal'.
10270 * process.c (send_process): Don't bother breaking long line with EOF
10271 chars when talking to ttys any more.
10272 (wait_reading_process_output): Output a warning when called in such
10273 a way that it could block without being interruptible.
10274
10275 Try to detect file modification within the same second.
10276 * buffer.h (struct buffer): New field modtime_size.
10277 * buffer.c (reset_buffer): Initialize it.
10278 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10279 (Fverify_visited_file_modtime): Check it.
10280 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10281 (Fset_visited_file_modtime): Set (or clear) it.
10282
10283 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10284
10285 * process.c (status_notify): Remove unused var `ro'.
10286
10287 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10288
10289 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10290 more than one visual (Bug#5938).
10291
10292 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10293
10294 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10295 Undefine.
10296
10297 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10298
10299 Remove C_SWITCH_SYSTEM_TEMACS.
10300 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10301 (malloc, realloc, free): Use emacs, not temacs for conditional
10302 definition.
10303
10304 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10305 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10306
10307 Use autoconf, not cpp for some variables.
10308 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10309 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10310 (ALL_CFLAGS): Use them as make variables.
10311 (really-lwlib, really-oldXMenu): Do not pass them.
10312
10313 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10314
10315 * xmenu.c (apply_systemfont_to_dialog): New.
10316 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10317
10318 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10319
10320 * process.c (exec_sentinel): Preserve current-buffer.
10321
10322 * process.c (read_process_output): Move the save-current-buffer to
10323 apply to both the filter and the non-filter branches.
10324
10325 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10326
10327 * s/msdos.h (UNEXEC): New definition.
10328
10329 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10330
10331 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10332 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10333
10334 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10335 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10336 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10337 TRY_WINDOW_CHECK_MARGINS.
10338
10339 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
10340 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10341 width only when it is for padding.
10342
10343 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10344
10345 * xfns.c (Fx_show_tip): Call try_window in a loop until
10346 fonts_changed_p is zero (Bug#2423).
10347
10348 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10349
10350 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10351 the end of TEXT_AREA. (Bug#5856)
10352
10353 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10354
10355 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10356 HAVE_GCONF.
10357
10358 2010-04-08 Eli Zaretskii <eliz@gnu.org>
10359
10360 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10361 prev.orig_type, for resolving type of NSM. (Bug#5858)
10362
10363 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10364
10365 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10366 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10367 in current_font.
10368 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
10369 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10370 New functions.
10371 (syms_of_xsettings): Initialize current_font.
10372 defsubr Sfont_get_system_normal_font.
10373
10374 * xsettings.h (Ffont_get_system_normal_font)
10375 (xsettings_get_system_normal_font): Declare.
10376
10377 * xfns.c (extern xlwmenu_default_font): Remove.
10378 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10379 to xlwmenu.c.
10380
10381 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10382 menu items in UTF-8.
10383
10384 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
10385 (apply_systemfont_to_menu): New function.
10386 (set_frame_menubar, create_and_show_popup_menu):
10387 Call apply_systemfont_to_menu.
10388
10389 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10390
10391 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10392 FRAME_LINE_TO_PIXEL_Y.
10393
10394 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10395 pixelwidth/height.
10396
10397 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10398
10399 Simplify code for HP machines.
10400 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10401 for GNU_LINUX, not needed.
10402 (UNEXEC, NEED_BSDTTY): Move definitions...
10403 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10404
10405 * m/iris4d.h (UNEXEC): Move definition ...
10406 * s/irix6-5.h (UNEXEC): ... here.
10407
10408 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10409
10410 * xfns.c (set_machine_and_pid_properties): New function.
10411 (Fx_create_frame): Call set_machine_and_pid_properties.
10412
10413 2010-04-03 Eli Zaretskii <eliz@gnu.org>
10414
10415 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10416 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
10417 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10418
10419 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10420 in this function. (Bug#5703)
10421
10422 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
10423
10424 * nsterm.h: Fix last change.
10425
10426 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10427
10428 * m/intel386.h (NO_REMAP): Move definition ...
10429 * s/msdos.h (NO_REMAP): ... here.
10430
10431 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10432
10433 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10434 used on those platforms.
10435
10436 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10437
10438 Remove extern errno declarations.
10439 * xterm.c:
10440 * xrdb.c:
10441 * w32term.c:
10442 * unexec.c:
10443 * unexaix.c:
10444 * sysdep.c:
10445 * process.c:
10446 * lread.c:
10447 * keyboard.c:
10448 * floatfns.c:
10449 * filelock.c:
10450 * fileio.c:
10451 * emacs.c (main):
10452 * ecrt0.c:
10453 * dispnew.c:
10454 * callproc.c:
10455 * buffer.c: Remove errno extern declarations.
10456 * s/netbsd.h (NEED_ERRNO): Remove.
10457
10458 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10459
10460 Remove all uses of LIBX11_SYSTEM.
10461 * Makefile.in (LIBX11_SYSTEM): Remove.
10462 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10463 instead.
10464
10465 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10466
10467 Remove support for DJGPP v1.x (bug#5813).
10468
10469 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
10470 * s/msdos.h:
10471 * unexec.c (make_hdr, copy_text_and_data):
10472 * sysdep.c (wait_for_termination, sys_subshell):
10473 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10474 (IT_set_terminal_modes, __write, _rename, gethostname)
10475 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10476 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10477 the value of __DJGPP__.
10478 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10479 compatibility code.
10480 * lread.c:
10481 * gmalloc.c (memalign):
10482 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10483 * emacs.c (main):
10484 * dosfns.c (init_dosfns):
10485 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10486
10487 2010-04-01 Eli Zaretskii <eliz@gnu.org>
10488
10489 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10490 string with `cursor' property comes from an `after-string'
10491 overlay. (Bug#5816)
10492
10493 2010-04-01 Glenn Morris <rgm@gnu.org>
10494
10495 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10496 Define as Makefile variables.
10497 (LIBX): Use above variables rather than directly using autoconf.
10498
10499 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10500
10501 Clean up BSD_SYSTEM use.
10502 * xterm.c:
10503 * process.c:
10504 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10505 for including <sys/ioctl.h>.
10506 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10507 code is only used for MSDOS.
10508
10509 2010-03-31 Juri Linkov <juri@jurta.org>
10510
10511 * image.c: Add `Qextension_data'.
10512 (syms_of_image): Initialize and staticpro `Qextension_data'.
10513 (Fimage_metadata): Rename from `Fimage_extension_data'.
10514 (gif_load): Put GIF extension data to the property
10515 `Qextension_data'.
10516
10517 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10518
10519 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10520 * nsterm.h: Fix prototype.
10521
10522 2010-03-31 Eli Zaretskii <eliz@gnu.org>
10523
10524 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10525 trailing whitespace in right-to-left rows.
10526
10527 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10528
10529 Get rid of the direct_output optimizations.
10530 * keyboard.c (nonundocount): Remove extern declaration.
10531 (command_loop_1): Remove brittle optimisation for cheap and
10532 common operations.
10533 * xdisp.c (redisplay_internal): Don't bother checking
10534 redisplay_performed_directly_p any more.
10535 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10536 any more.
10537 * dispnew.c (redisplay_performed_directly_p)
10538 (direct_output_for_insert, direct_output_forward_char):
10539 * dispextern.h (redisplay_performed_directly_p)
10540 (direct_output_for_insert, direct_output_forward_char): Remove.
10541 * cmds.c (nonundocount): Make it static.
10542
10543 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
10544
10545 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10546
10547 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
10548
10549 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10550 invisible (Bug#5766).
10551
10552 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
10553
10554 * xdisp.c (x_consider_frame_title, update_window_cursor):
10555 Remove HAVE_NS conditionals.
10556 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
10557
10558 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10559 filename for the title.
10560 (ns_set_doc_edited): Do nothing if the selected window is a
10561 minibuffer window.
10562
10563 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10564 ns_set_doc_edited.
10565
10566 * nsterm.m: Remove unneeded prototype.
10567
10568 2010-03-31 Glenn Morris <rgm@gnu.org>
10569
10570 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10571 in the DOC file. (Bug#5336)
10572
10573 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
10574
10575 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10576
10577 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10578
10579 * window.c (keys_of_window): Remove redundant/overridden bindings.
10580
10581 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10582
10583 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10584 Restore original behavior when the iterator is not bidi_p.
10585
10586 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10587
10588 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10589
10590 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10591
10592 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10593 are outside the range of cached character positions.
10594
10595 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
10596
10597 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10598
10599 2010-03-30 Eli Zaretskii <eliz@gnu.org>
10600
10601 Initial support for bidirectional editing.
10602
10603 * Makefile.in (obj): Include bidi.o.
10604 (bidi.o): New target.
10605
10606 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10607 ($(BLD)/bidi.$(O)): New target.
10608
10609 * bidi.c: New file.
10610
10611 * buffer.h (struct buffer): New members bidi_display_reordering
10612 and bidi_paragraph_direction.
10613
10614 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10615 and bidi_paragraph_direction.
10616 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10617 and bidi-paragraph-direction.
10618 (Fbuffer_swap_text): Swap the values of
10619 bidi_display_reordering and bidi_paragraph_direction.
10620
10621 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10622 (bidi_type_t, bidi_dir_t): New types.
10623 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10624 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10625 prev_stop, base_level_stop, and eol_pos.
10626 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10627 (IT_STACK_SIZE): Enlarge to 5.
10628 (struct glyph_row): New member reversed_p.
10629 <string_buffer_position>: Update prototype.
10630 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10631 glyph_row if bidi_it.paragraph_dir == R2L.
10632 (struct glyph): New members resolved_level and bidi_type.
10633
10634 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10635 processing or buffer's direction is right-to-left.
10636 (prepare_desired_row): Preserve the reversed_p flag.
10637 (row_equal_p): Compare the reversed_p attributes as well.
10638
10639 * xdisp.c (init_iterator): Initialize it->bidi_p.
10640 Call bidi_init_it and set it->paragraph_embedding from the current
10641 buffer's value of bidi_paragraph_direction.
10642 (reseat_1): Initialize bidi_it.first_elt.
10643 (set_iterator_to_next, next_element_from_buffer): Use the value of
10644 paragraph_embedding to determine the paragraph direction.
10645 (set_iterator_to_next): Under bidi reordering, call
10646 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10647 new_paragraph flag is set in the bidi iterator.
10648 (next_element_from_buffer): If bidi_it.first_elt is set,
10649 initialize paragraph direction and find the first character to
10650 display in the visual order. If reseated to a middle of a line,
10651 prime the bidi iterator starting at the line's beginning.
10652 Handle the situation where we overstepped stop_charpos due to
10653 non-linearity of the bidi iteration. Likewise for when we back up
10654 beyond the previous stop_charpos. When moving across stop_charpos,
10655 record it in prev_stop.
10656 (display_line): Set row->end and it->start for the next row to the
10657 next character in logical order. Always extend reversed_p rows to
10658 the end of line, even if they end at ZV. Copy the reversed_p flag
10659 to the next glyph row. Keep calling set_cursor_from_row for
10660 bidi-reordered rows even if we already have a possible candidate
10661 for cursor position. Set row_end after all the row's glyphs have
10662 been produced, by looping over the glyphs. Record the position
10663 after EOL in it->eol_pos, and use it to set end_pos of the last
10664 row produced for a continued line.
10665 <Qright_to_left, Qleft_to_right>: New variables.
10666 (syms_of_xdisp): Initialize and staticpro them.
10667 (string_buffer_position_lim): New function.
10668 (string_buffer_position): Most of code moved to
10669 string_buffer_position_lim. Last argument and return value are
10670 now EMACS_INT; all callers changed.
10671 (set_cursor_from_row): Rewritten to support bidirectional text and
10672 reversed glyph rows.
10673 (text_outside_line_unchanged_p, try_window_id):
10674 Disable optimizations if we are reordering bidirectional text and the
10675 paragraph direction can be affected by the change.
10676 (append_glyph, append_composite_glyph)
10677 (produce_image_glyph, append_stretch_glyph): Set the
10678 resolved_level and bidi_type members of each glyph.
10679 (append_glyph): If the glyph row is reversed, prepend the glyph
10680 rather than appending it.
10681 (handle_stop_backwards): New function.
10682 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
10683 (reseat): Call handle_stop_backwards to recompute prev_stop and
10684 base_level_stop for the new position.
10685 (handle_invisible_prop): Under bidi iteration, skip invisible text
10686 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10687 paragraph direction. Update IT->prev_stop after skipping
10688 invisible text.
10689 (move_it_in_display_line_to): New variables prev_method
10690 and prev_pos. Compare for strict equality in
10691 BUFFER_POS_REACHED_P.
10692 (try_cursor_movement): Examine all the candidate rows that occlude
10693 point, to return the best match. If rows are bidi-reordered
10694 and point moved backwards, back up to the row that is not a
10695 continuation line, and start looking for a suitable row from
10696 there.
10697
10698 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10699 rather than appending, if the glyph_row's reversed_p flag is set.
10700 Set the resolved_level and bidi_type members of each glyph.
10701
10702 * .gdbinit (pbiditype): New command.
10703 (pgx): Use it to display bidi level and type of the glyph.
10704 (pitx): Display some bidi information about the iterator.
10705 (prowlims, pmtxrows): New commands.
10706
10707 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10708
10709 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10710 * s/usg5-4.h (LIBS_DEBUG):
10711 * s/irix6-5.h (C_DEBUG_SWITCH):
10712 * s/gnu-linux.h (LIBS_DEBUG):
10713 * s/darwin.h (LIBS_DEBUG):
10714 * s/bsd-common.h (LIBS_DEBUG):
10715 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10716 * m/iris4d.h (LIBS_DEBUG):
10717 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10718
10719 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10720 (LIBS_DEBUG): Remove definition.
10721
10722 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
10723
10724 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10725 Windows.
10726
10727 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10728
10729 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10730 `connect' (Bug#5723).
10731
10732 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
10733
10734 * process.c (Fmake_network_process): Call `select' for interrupted
10735 `connect' rather than creating new socket (Bug#5173).
10736
10737 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
10738
10739 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10740
10741 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10742
10743 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10744
10745 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10746
10747 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10748 XLoadQueryFont.
10749
10750 2010-03-24 Kenichi Handa <handa@m17n.org>
10751
10752 * coding.c (decode_coding_ccl): Fix previous change for the
10753 multibyte case.
10754 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10755 case that the output buffer is fullfilled.
10756 (encode_coding): Setup ccl program here.
10757
10758 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10759
10760 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10761
10762 Simplify LIBS_MACHINE definitions.
10763 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10764 * m/iris4d.h (LIBS_MACHINE): Likewise.
10765 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10766 * s/aix4-2.h (LIBS_SYSTEM): ... here.
10767 * s/netbsd.h: Remove commented out code.
10768
10769 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10770
10771 Remove dead code dealing with POSIX_SIGNALS.
10772 * atimer.c (set_alarm): Remove dead code, all USG systems define
10773 POSIX_SIGNALS.
10774 * data.c (arith_error): Likewise.
10775 * keyboard.c (input_available_signal, handle_user_signal)
10776 (interrupt_signal): Likewise.
10777 * process.c (sigchld_handler): Likewise.
10778 (create_process): Remove if 0 code. Remove HPUX conditional when
10779 !defined (POSIX_SIGNALS), it cannot be true.
10780 * syssignal.h: Remove USG5_4 and USG conditionals when
10781 !POSIX_SIGNALS, they cannot be true.
10782
10783 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10784 NO_SOCK_SIGIO, not used anymore.
10785
10786 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10787
10788 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10789 support vax on BSDs.
10790
10791 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10792 * s/aix4-2.h (ORDINARY_LINK): ... here.
10793
10794 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10795
10796 * Makefile.in (abs_builddir): Define.
10797 (bootstrap_exe): Use it.
10798 (VPATH): Use $(srcdir) instead of @srcdir@.
10799
10800 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10801
10802 * Makefile.in (bootstrap_exe): Use an absolute name.
10803
10804 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10805
10806 Remove support for old GNU/Linux using libc version 5.
10807 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10808 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10809
10810 Consolidate redundant definitions in s/bsd-common.h.
10811 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10812 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10813 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10814 doing it in all files that include this one.
10815 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10816 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10817 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10818 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10819 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10820 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10821 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10822 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10823 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10824
10825 Consolidate redundant definitions.
10826 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10827 it's undefined in all files that include this one.
10828 (POSIX_SIGNALS): Define here instead of doing it in all files that
10829 include this one.
10830 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10831 (POSIX_SIGNALS): Do not define.
10832 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10833 (POSIX_SIGNALS): Do not define.
10834 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10835 (POSIX_SIGNALS): Do not define.
10836
10837 Remove support for old UNIX System V systems.
10838 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10839 * s/usg5-4-2.h: Remove.
10840
10841 Remove support for Solaris on PPC and for old versions.
10842 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10843 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10844 that cancel each other.
10845 * s/sol2-3.h:
10846 * s/sol2-4.h:
10847 * s/sol2-5.h: Remove.
10848 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10849 (NO_REMAP): Remove, unused.
10850 (UNEXEC): Move definition ...
10851 * s/aix4-2.h (UNEXEC): ... here.
10852
10853 * s/openbsd.h: Remove support for non-ELF and for systems that do
10854 not support shared libraries.
10855 * s/netbsd.h:
10856 * s/freebsd.h: Likewise.
10857
10858 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10859
10860 Remove non-working support for lynxos 3.0.
10861 * s/lynxos.h: Remove file.
10862
10863 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10864 COFF_BSD_SYMBOLS, nothing defines it anymore.
10865
10866 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10867
10868 Remove obsolete uses of HAVE_SHM.
10869 * emacs.c (standard_args):
10870 (Fdump_emacs):
10871 (syms_of_emacs): Remove code depending on HAVE_SHM.
10872
10873 * alloc.c: Remove HAVE_SHM dependent definition.
10874
10875 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10876
10877 2010-03-18 Glenn Morris <rgm@gnu.org>
10878
10879 * emacs.c (USAGE4): Hard-code bug address.
10880 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10881 (bug_reporting_address): Remove.
10882 (main): Don't call bug_reporting_address.
10883
10884 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10885 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10886
10887 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * xfns.c (Fx_create_frame):
10890 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10891 on left.
10892
10893 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10894
10895 * editfns.c (Fformat): Account for string precision when computing
10896 field width (Bug#5710).
10897
10898 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
10899
10900 * xfns.c (Fx_create_frame): Set default to Qright.
10901
10902 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10903 all window systems.
10904
10905 2010-03-12 Eli Zaretskii <eliz@gnu.org>
10906
10907 These changes remove termcap.c from the build on Posix platforms.
10908 * Makefile.in (termcapobj): Move termcap.o from here...
10909 (MSDOS_OBJ): ...to here.
10910 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10911 now identical to when LIBS_TERMCAP is defined.
10912
10913 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10914
10915 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10916
10917 * config.in: Regenerated. (See top-level ChangeLog.)
10918
10919 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * Branch for 23.2.
10922
10923 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10924
10925 Cleanup setup of gl_state in various parts of the code.
10926 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10927 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10928 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10929 (skip_chars):
10930 * regex.c (regex_compile): Use it.
10931 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10932 it's now set in regex_compile when/if we need it.
10933
10934 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10935
10936 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10937 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10938 (QUIT): Use it to consolidate code and remove redundancy.
10939 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10940
10941 * regex.c (regex_compile): Setup gl_state as well.
10942
10943 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10944 (in_classes): Use CONSP before XCAR/XCDR.
10945
10946 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
10947
10948 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10949 definitions, so that keyboard macros are correctly handled
10950 (Bug#5481).
10951
10952 2010-03-02 Eli Zaretskii <eliz@gnu.org>
10953
10954 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10955 text that could be relocated inside the call to emacs_mule_char.
10956 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10957 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10958
10959 2010-03-02 Kenichi Handa <handa@m17n.org>
10960
10961 * character.c (parse_str_as_multibyte): Fix handling of the
10962 multibyte form of raw-bytes.
10963 (str_as_multibyte): Likewise.
10964
10965 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10966 form of raw-bytes.
10967
10968 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
10969
10970 * charset.c (load_charset_map_from_file)
10971 (load_charset_map_from_vector): Zero out allocated
10972 charset_map_entries before using them.
10973
10974 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10975
10976 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10977
10978 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
10979
10980 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10981 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
10982
10983 2010-02-26 Kenichi Handa <handa@m17n.org>
10984
10985 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10986
10987 * xdisp.c (reseat_to_string): Fix previous change.
10988
10989 2010-02-26 David Reitter <david.reitter@gmail.com>
10990
10991 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10992 Lisp_Object (Bug#4736).
10993
10994 2010-02-25 Kenichi Handa <handa@m17n.org>
10995
10996 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10997
10998 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10999
11000 * xterm.c (XTflash): Move declarations before statements.
11001
11002 * gtkutil.c (xg_get_gdk_display): Remove (unused).
11003 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
11004 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
11005 (xg_create_tool_bar): Remove unused variables.
11006 (x_wm_set_size_hint): Move declarations before statements.
11007 (xg_create_frame_widgets): Remove variable grav.
11008
11009 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
11010
11011 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
11012
11013 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11014
11015 * term.c (fatal): Add a final \n if needed (bug#5596).
11016
11017 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
11018
11019 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
11020
11021 2010-02-18 Glenn Morris <rgm@gnu.org>
11022
11023 * callint.c (Finteractive): Doc fix.
11024
11025 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
11026
11027 * coding.c (record_conversion_result):
11028 Handle CODING_RESULT_INSUFFICIENT_DST.
11029 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
11030 memory allocation error.
11031
11032 2010-02-17 Kenichi Handa <handa@m17n.org>
11033
11034 * coding.c (decode_coding_ccl): Don't setup ccl program here.
11035 Fix for the case that the output buffer is fullfilled.
11036 (decode_coding): Setup ccl program here. Keep looping when the
11037 decoder stopped because the output buffer is
11038 fullfilled (bug#5534).
11039
11040 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
11041
11042 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
11043
11044 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
11045 bug #5571.
11046 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
11047 overdrawn.
11048
11049 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
11050
11051 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11052 doing_interact here.
11053 (ice_connection_closed): New function.
11054 (x_session_check_input, smc_die_CB, ice_io_error_handler)
11055 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
11056 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
11057 returns I/O error.
11058 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
11059 bug #5512.
11060
11061 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
11062
11063 * nsfont.m (nsfont_open): The system's value for the font descent
11064 is negative, so round it down to avoid clipping.
11065
11066 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
11067
11068 * charset.c (load_charset_map_from_file)
11069 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
11070 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
11071
11072 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
11073
11074 * charset.c (load_charset_map_from_file): Allocate large
11075 charset_map_entries structure on the heap rather than the stack.
11076 (Bug#5526).
11077
11078 2010-01-31 Kenichi Handa <handa@m17n.org>
11079
11080 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
11081 size in NAME is invalid, return -1 (Bug#5396).
11082
11083 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
11084
11085 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11086 <deactivated@gmail.com> (Bug#3605).
11087
11088 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
11089
11090 * fileio.c (Frename_file): Correctly rename symlinks to
11091 directories (Bug#5496).
11092
11093 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11094
11095 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11096
11097 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11098
11099 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11100
11101 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
11102
11103 * frame.c (DEFAULT_ROWS): Change default to 35.
11104
11105 * xfns.c (x_default_font_parameter): Change default XFT font to
11106 monospace-10 (Bug#3643).
11107
11108 2010-01-29 Eli Zaretskii <eliz@gnu.org>
11109
11110 * w32inevt.c (key_event): Remove unnecessary comparison of
11111 event->uChar.AsciiChar with 128.
11112
11113 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
11114
11115 * fileio.c (Frename_file): Fix last change (Bug#5487).
11116
11117 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11118
11119 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11120
11121 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11122
11123 * xfns.c (Fx_create_frame): Remove window size matching code from
11124 2010-01-15.
11125 (x_get_current_desktop, x_get_desktop_workarea): Remove.
11126
11127 2010-01-27 Jason Rumney <jasonr@gnu.org>
11128
11129 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
11130 (key_event): Use unicode for characters 128 and higher (Bug#4567).
11131
11132 2010-01-27 Kenichi Handa <handa@m17n.org>
11133
11134 * regex.c (analyse_first): Fix setting of fastmap for unibyte
11135 pattern string (Bug#4209).
11136
11137 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
11138
11139 * fileio.c (Frename_file): Call copy-directory and
11140 delete-directory for directories, in order to handle cross-device
11141 renaming (Bug#3353).
11142
11143 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11144
11145 * xfns.c (Fx_create_frame): If frame height is too big, try
11146 sizes 24 and 10. Bug #3643.
11147
11148 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11149
11150 Try and fix bug#788, hopefully for real this time.
11151 * keymap.c (shadow_lookup): Add `remap' arg.
11152 (describe_map, describe_vector): Update calls to shadow_lookup.
11153 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11154 `remapped' so this flag is applicable to `sequence'. Be careful to
11155 perform remapping during shadow_lookup check of remapped_sequences.
11156
11157 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11158
11159 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11160 png_check_sig, which has been removed in libpng 1.4.
11161
11162 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11163
11164 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11165 lacks this header file).
11166
11167 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11168
11169 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11170 as in Emacs 22.
11171
11172 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11173
11174 * lisp.h (make_pure_string): String pointer arg now points to const.
11175
11176 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11177 args now point to const.
11178
11179 2010-01-22 Eli Zaretskii <eliz@gnu.org>
11180
11181 * lread.c (Fload): Don't treat files without .elc extension as
11182 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11183 them. (bug#5303)
11184
11185 2010-01-20 Kenichi Handa <handa@m17n.org>
11186
11187 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11188 treat the source as actual byte sequence.
11189
11190 2010-01-19 Alan Mackenzie <acm@muc.de>
11191
11192 Fix spurious before-change-functions invocation from (insert ?\n).
11193 * textprop.c (set_text_properties): Rename parameter
11194 `signal_after_change_p' to `coherent_change_p', and make the
11195 invocation of `modify_region' conditional on it.
11196
11197 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11198
11199 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11200 for debug purpose.
11201 (syms_of_xsettings): Declare xft-settings.
11202
11203 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
11204
11205 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11206
11207 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11208
11209 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11210
11211 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
11212
11213 * emacs.c (standard_args): Adjust arg priorities to reflect how
11214 they are processed in startup.el.
11215
11216 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11217
11218 * Makefile.in (lisp, shortlisp): Update.
11219
11220 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11221
11222 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11223 code, link the new kboard into all_kboard before running Lisp code,
11224 and protect the new terminal with GCPRO (Bug#5365).
11225 (x_term_init): Remove unused var `atom'.
11226 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11227
11228 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11229
11230 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11231 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11232 to find out usable size of the desktop. Don't make frames larger than
11233 this. Bug #3643.
11234
11235 2010-01-15 Kenichi Handa <handa@m17n.org>
11236
11237 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11238
11239 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
11240
11241 * nsterm.m (Qnone): Define.
11242
11243 * nsfns.m (Qnone): Move definition to nsterm.m.
11244
11245 2010-01-14 Kenichi Handa <handa@m17n.org>
11246
11247 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11248 systems.
11249
11250 2010-01-14 Kenichi Handa <handa@m17n.org>
11251
11252 Make auto-composition work on all buffers even if they are
11253 fundamental mode.
11254
11255 * composite.c (Vauto_composition_mode): New variable.
11256 (composition_compute_stop_pos): Check Vauto_composition_mode
11257 instead of Vauto_composition_function.
11258 (composition_adjust_point, Ffind_composition_internal): Likewise.
11259 (syms_of_composite): Declare Lisp variable
11260 "auto-composition-mode" here.
11261
11262 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
11263
11264 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11265 during call to vendor-specific-keysyms (Bug#5365).
11266
11267 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11268
11269 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11270 Call SIGNAL_THREAD_CHECK (Bug#5333).
11271
11272 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11273 Call SIGNAL_THREAD_CHECK.
11274
11275 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11276
11277 Try to fix bug#5314. This is probably not the final word, tho.
11278 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11279 recent-auto-save-p as a side-effect.
11280 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11281 * buffer.c (Fkill_buffer, reset_buffer):
11282 * editfns.c (Fsubst_char_in_region):
11283 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11284 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11285
11286 2010-01-13 Kenichi Handa <handa@m17n.org>
11287
11288 Display buffer name, etc. in mode line by composing correctly.
11289
11290 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11291 STRING is not nil.
11292 (display_mode_element): Adjust for the change of
11293 decode_mode_spec and display_line.
11294 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11295 (display_string): Handle the case that STRING is non-null and
11296 LISP_STRING is not nil.
11297
11298 * xterm.c (x_draw_composite_glyph_string_foreground):
11299 Pay attention to s->face->overstrike.
11300
11301 * composite.c (composition_reseat_it): Don't check PT if STRING is
11302 non nil.
11303
11304 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11305
11306 * keyboard.c (read_char): Don't apply previous change when current
11307 buffer is unchanged by command execution.
11308
11309 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11310
11311 * keyboard.c (read_char): Return after executing from special map.
11312
11313 2010-01-12 Glenn Morris <rgm@gnu.org>
11314
11315 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11316 bug-gnu-emacs rather than emacs-pretest-bug.
11317
11318 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11319
11320 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11321 initializing the Lisp variables that depend on them.
11322
11323 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11324
11325 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11326 Clear areas that will not be updated after change of menu bar lines.
11327 Clear the menu bar window's current matrix when the window gets empty.
11328
11329 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
11330
11331 * intervals.h, textprop.c (extend_property_ranges): Return value
11332 and args changed. Discard properties that begin at or after the
11333 new end (Bug#5306).
11334
11335 * editfns.c (Fformat): Caller changed.
11336
11337 * nsterm.m (ns_set_default_prefs): Delete function.
11338 (syms_of_nsterm): Initialize ns_command_modifier,
11339 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11340 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11341
11342 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11343 position (Bug#4040).
11344
11345 2010-01-09 Eli Zaretskii <eliz@gnu.org>
11346
11347 * editfns.c (Ffloat_time): Doc fix.
11348
11349 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11350
11351 * xfns.c (Fx_create_frame): Don't create frame larger than display
11352 by default bug#3643.
11353
11354 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11355
11356 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11357 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11358 windows above internal border.
11359
11360 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11361 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11362 windows above internal border.
11363
11364 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11365 tool bar windows specially.
11366
11367 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11368
11369 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11370 specially.
11371 (XTflash): Take account of menu bar height.
11372
11373 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11374 specially.
11375
11376 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11377
11378 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
11379 also be true before we can return early (bug #5339).
11380
11381 2010-01-06 David Reitter <david.reitter@gmail.com>
11382
11383 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11384 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11385 (Bug#3233).
11386
11387 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11388
11389 * font.c (font_open_entity): Enable chache and call cached_font_ok
11390 for the driver if defined.
11391 (QCuser_spec): New symbol.
11392 (font_spec_from_name): Save name as user-spec.
11393 (font_load_for_lface): Keep user-spec instead of name.
11394 (font_open_by_name): Save name as user-spec.
11395 (syms_of_font): Initialize QCuser_spec.
11396 (font_clear_prop): Clear name if it exists in font (bug#5157).
11397
11398 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11399 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11400 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11401
11402 * font.h (struct font_driver): Add cached_font_ok.
11403
11404 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11405
11406 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11407
11408 * xterm.c (x_new_font): Move code for setting rows/cols before
11409 resizing ...
11410 (x_set_window_size): ... to here. Bug #2568.
11411
11412 * gtkutil.c (xg_clear_under_internal_border): New function.
11413 (xg_frame_resized, xg_frame_set_char_size):
11414 Call xg_clear_under_internal_border.
11415 (xg_update_scrollbar_pos): Clear under old scroll bar position.
11416
11417 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
11418
11419 * keyboard.c (read_key_sequence): Catch keyboard switch after
11420 making a new tty frame (Bug#5095).
11421
11422 2010-01-05 Kenichi Handa <handa@m17n.org>
11423
11424 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11425
11426 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11429 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11430 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11431
11432 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
11433
11434 * dbusbind.c (xd_add_watch): Improve debug message.
11435 (xd_remove_watch): Improve debug message. If DATA is the session
11436 bus, unset D-Bus session environment.
11437 (Fdbus_init_bus): Pass the bus as argument to
11438 dbus_connection_set_watch_functions. (Bug#5283)
11439
11440 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
11441
11442 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11443
11444 * lread.c (syms_of_lread): Make it clearer that these are the
11445 names of loaded files (Bug#5068).
11446
11447 * eval.c (run_hook_with_args): Handle the case where the global
11448 value has the obsolete single-function form (Bug#5026).
11449
11450 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
11451
11452 * minibuf.c (Fall_completions): Minor optimization.
11453
11454 2009-12-26 Eli Zaretskii <eliz@gnu.org>
11455
11456 * .gdbinit (pgx): Fix display of composite glyphs.
11457 Display cmp.from and cmp.to as well.
11458 (pitx): Fix last change.
11459
11460 2009-12-25 Kenichi Handa <handa@m17n.org>
11461
11462 * composite.h (composition_adjust_point): Update prototype.
11463
11464 * composite.c (composition_reseat_it): Don't make a composition
11465 spanning over point.
11466 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11467 composable characters.
11468 (composition_adjust_point): New arg NEW_PT. Callers changed.
11469
11470 * keyboard.c (command_loop_1): Force redisplay if the last point
11471 was within a composition.
11472 (adjust_point_for_property): Don't adjust point for automatic
11473 composition when called after buffer modification.
11474
11475 2009-12-19 Eli Zaretskii <eliz@gnu.org>
11476
11477 * .gdbinit (pitx): Don't use enum names, use their values.
11478 Remove reference to non-existing value GET_FROM_COMPOSITION.
11479 (pgx): Don't use enum names, use their values.
11480 (pitmethod): New helper command.
11481 (pitx): Use it to display iteration method.
11482 (pgrowit): New command.
11483
11484 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11485
11486 Update dependencies in Makefile.in.
11487
11488 * Makefile.in (alloc.o): Depend on termhooks.h.
11489 (atimer.o): Depend on blockinput.h.
11490 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11491 and frame.h.
11492 (callint.o): Depend on systime.h, coding.h, and composite.h.
11493 (callproc.o): Depend on buffer.h.
11494 (casefiddle.o): Don't depend on charset.h.
11495 (casetab.o): Depend on character.h.
11496 (ccl.o): Depend on composite.h.
11497 (chartab.o): Depend on ccl.h.
11498 (cm.o): Depend on dispextern.h.
11499 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11500 (coding.o): Don't depend on $(INTERVALS_H).
11501 (composite.o): Don't depend on dispextern.h explicitly (it's in
11502 $(INTERVALS_H)). Depend on ccl.h.
11503 (data.o): Depend on systime.h, coding.h, composite.h,
11504 dispextern.h, font.h, and ccl.h.
11505 (dired.o): Depend on composite.h.
11506 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11507 composite.h (it's in $(INTERVALS_H)).
11508 (doc.o): Depend on systime.h, coding.h, and composite.h.
11509 (editfns.o): Don't depend explicitly on dispextern.h.
11510 (emacs.o): Depend on frame.h and coding.h.
11511 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11512 (fileio.o): Depend on frame.h and commands.h. Don't depend
11513 explicitly on dispextern.h.
11514 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11515 composite.h.
11516 (fns.o): Don't depend on termhooks.h.
11517 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11518 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11519 coding.h, $(INTERVALS_H), window.h, xterm.h.
11520 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11521 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11522 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11523 fontset.h, ccl.h, and ftfont.h.
11524 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11525 (gtkutil.o): Depend on dispextern.h and composite.h.
11526 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11527 termhooks.h, and ccl.h.
11528 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11529 (intervals.o): Depend on systime.h and coding.h.
11530 (keyboard.o): Depend on composite.h and coding.h.
11531 (keymap.o): Depend on coding.h and frame.h.
11532 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11533 (macros.o): Depend on systime.h, coding.h, and composite.h.
11534 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11535 and atimer.h.
11536 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11537 dispextern.h explicitly.
11538 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11539 Don't depend explicitly on dispextern.h and composite.h.
11540 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11541 (regex.o): Don't depend on charset.h.
11542 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11543 (search.o): Don't depend explicitly on composite.h.
11544 (sound.o): Depend on atimer.h and systime.h.
11545 (syntax.o): Don't depend explicitly on composite.h.
11546 (sysdep.o): Depend on coding.h and composite.h.
11547 (term.o): Depend on xterm.h and buffer.h.
11548 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11549 (textprop.o): Don't depend on dispextern.h explicitly.
11550 (undo.o): Depend on dispextern.h.
11551 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11552 dispextern.h and composite.h explicitly.
11553 (xdisp.o): Depend on ccl.h.
11554 (xfaces.o): Depend on coding.h and ccl.h.
11555 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11556 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11557 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11558 ftfont.h.
11559 (xgselect.o): New dependency.
11560 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11561 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11562 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11563 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11564 (xsmfns.o): Depend on frame.h and dispextern.h.
11565 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11566 sysselect.h.
11567
11568 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11569
11570 * font.c (Fclear_font_cache): Pass correct cache argument to
11571 font_clear_cache.
11572
11573 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11574
11575 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11576 twice.
11577
11578 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
11579
11580 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11581 calling file-remote-p. Reported by Jim Meyering.
11582
11583 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
11584
11585 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
11586 avoid compiler warnings. (Bug #5217)
11587
11588 2009-12-14 Kenichi Handa <handa@m17n.org>
11589
11590 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11591 in 8-bit encoding.
11592
11593 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
11594
11595 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11596 tooltip windows.
11597
11598 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11599
11600 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11601 Xatom_net_window_type.
11602
11603 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11604 Xatom_net_window_type.
11605
11606 * xterm.c (my_log_handler): New function.
11607 (x_term_init): Set my_log_handler as log handler during gtk_init
11608 so we can filter out buggy messages. (Bug #5120).
11609
11610 * xterm.c (xg_scroll_callback): Parameter list changed,
11611 use parameter GtkScrollType to determine scroll/line/page.
11612 Only allow dragging if a button < 4 is grabbed (bug #5177).
11613 (xg_end_scroll_callback): New function.
11614 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11615 xg_create_scroll_bar.
11616
11617 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11618 (scroll_end_callback): Remove.
11619 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11620 button-release-event. Replace value-changed event with change-value,
11621 bug #5177.
11622 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11623 bug #5177.
11624
11625 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11626 (xg_create_scroll_bar): Add GCallback end_callback.
11627
11628 * xftfont.c (QClcdfilter): New variable.
11629 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11630 (syms_of_xftfont): Initialize QClcdfilter.
11631
11632 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11633
11634 * xsettings.c (struct xsettings): Add member seen.
11635 (parse_xft_settings): Update member seen with what we have read.
11636 Return non-zero if Xft-settings have been parsed, 0 otherwise.
11637 (apply_xft_settings): Only update Xft settings with what member seen
11638 indicates as new.
11639
11640 2009-12-12 Eli Zaretskii <eliz@gnu.org>
11641
11642 * dispextern.h (struct text_pos): Use EMACS_INT.
11643 (struct glyph): Use EMACS_INT for charpos.
11644 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11645 region_beg_charpos, region_end_charpos,
11646 redisplay_end_trigger_charpos, and also for
11647 iterator_stack_entry.end_charpos and
11648 iterator_stack_entry.stop_charpos.
11649
11650 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11651
11652 * gtkutil.c (scroll_end_callback): New function (bug #5177).
11653 (xg_create_scroll_bar): Call scroll_end_callback on button release
11654 event (bug #5177).
11655 (xg_event_is_for_scrollbar): != replaced with ==.
11656
11657 2009-12-12 Kenichi Handa <handa@m17n.org>
11658
11659 * ftfont.c (struct ftfont_info): New member matrix.
11660 (ftfont_open): Setup xftfont_info->matrix.
11661 (MFLTFontFT): New member matrix.
11662 (FLOOR, CEIL, ROUND): New macros.
11663 (ftfont_get_metrics): Handle matrix transformation.
11664 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11665
11666 * xftfont.c (struct xftfont_info): New member matrix.
11667 (xftfont_open): Setup xftfont_info->matrix.
11668
11669 2009-12-10 Kenichi Handa <handa@m17n.org>
11670
11671 * xdisp.c (append_space_for_newline): Consider face-remapping.
11672
11673 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11674
11675 * xsettings.c: Include "keyboard.h".
11676
11677 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11678
11679 Fix implicit function declarations.
11680 * cmds.c: Include "frame.h".
11681 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11682 * frame.h: Move declaration of delete_frame outside of
11683 HAVE_WINDOW_SYSTEM.
11684
11685 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11686
11687 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11688
11689 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11690 GTK builds.
11691
11692 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11693
11694 * unexelf.c (unexec): Don't search for .data twice.
11695
11696 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
11697
11698 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11699 if push failed.
11700 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11701 of push_display_prop (Bug#5000).
11702
11703 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11704 value of font_list_entities (Bug#5085).
11705
11706 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
11707
11708 Fix `string-to-number' to deal consistently with integers and floats.
11709 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11710 trailing characters, not just whitespace.
11711 (read1): Pass new arg 0 to keep old behavior.
11712 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11713 trailing chars, as it is already done for integers. Doc fixes.
11714 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11715
11716 2009-12-04 Eli Zaretskii <eliz@gnu.org>
11717
11718 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11719 Delete unused enumeration value.
11720
11721 2009-12-03 Eli Zaretskii <eliz@gnu.org>
11722
11723 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11724
11725 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11726
11727 * process.c (Fmake_network_process): Fix up the tests for
11728 "connectionless socket", so they DTRT for seqpacket sockets as well.
11729
11730 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11731
11732 * process.c (Qseqpacket): New symbol.
11733 (HAVE_SEQPACKET): New macro.
11734 (Fmake_network_process): Accept new :type `seqpacket'.
11735 (init_process): Add `seqpacket' feature when applicable.
11736 (syms_of_process): Initialize Qseqpacket.
11737
11738 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11739
11740 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11741 if entity is Qnil.
11742
11743 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * print.c (print_preprocess): Preprocess the key_and_value table of
11746 hashtables, even tho they're "hidden" (bug#5082).
11747
11748 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11749
11750 * frame.c (frame_make_pointer_invisible)
11751 (frame_make_pointer_visible): Declare f before statements.
11752
11753 2009-11-28 Eli Zaretskii <eliz@gnu.org>
11754
11755 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11756 omitted dependencies on lisp.h.
11757
11758 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11759
11760 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11761 is NULL.
11762
11763 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11764
11765 * frame.c (frame_make_pointer_invisible)
11766 (frame_make_pointer_visible): Just return if there isn't any selected
11767 frame.
11768
11769 * search.c (simple_search): Remove warning by making *p const.
11770
11771 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11772
11773 * xdisp.c (power_letter): Remove duplicate const.
11774
11775 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11776
11777 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11778
11779 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
11780 defaults (bug #5025).
11781
11782 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11783
11784 * insdel.c (adjust_markers_for_delete): Move it in the
11785 right direction! (bug#4803)
11786
11787 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11788
11789 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11790
11791 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11792
11793 2009-11-24 Glenn Morris <rgm@gnu.org>
11794
11795 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11796
11797 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11798
11799 * Makefile.in: Must create deps for ecrt0.o in its rule.
11800
11801 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11802 because that is what Gtk+ font dialog understands.
11803
11804 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11805 of Fcopy_sequence.
11806 (font_open_by_name): Put name given into QCname for font-object returned.
11807
11808 * frame.c (x_set_font): Save original font name as frame parameter
11809 font-parameter.
11810
11811 * xsettings.c (set_default_xft_settings): New function.
11812 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11813 is found.
11814
11815 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11816
11817 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11818 searching backwards through multibyte buffer.
11819
11820 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11821
11822 * xterm.c: #include xgselect.h.
11823 (x_initialize): Call xgselect_initialize.
11824
11825 * xsettings.c (something_changedCB): C++ comments => C comments.
11826 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11827 does that now.
11828
11829 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11830 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11831 (scroll_bar_button_cb): Remove.
11832 (create_menus): C++ comments => C comments. Don't bind grab-notify
11833 event.
11834 (xg_create_scroll_bar): Don't bind button-press-event and
11835 button-release-event.
11836
11837 * process.c: Include xgselect.h if defined (USE_GTK) ||
11838 defined (HAVE_GCONF).
11839 (wait_reading_process_output): Call xg_select for the same condition.
11840
11841 * xgselect.c (xg_select): New function to better integrate with
11842 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11843
11844 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11845
11846 * Makefile.in (XOBJ): Add xgselect.o.
11847
11848 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11849
11850 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11851 Remove ignored second argument. All callers changed.
11852 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11853 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11854 * xdisp.c (string_char_and_length): Likewise.
11855
11856 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11857
11858 * xterm.c (x_new_font):
11859 * print.c (print_object):
11860 * cmds.c (Fself_insert_command): Move declarations before statements.
11861
11862 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11863
11864 * s/cygwin.h: Remove unneeded linker flags.
11865
11866 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11867
11868 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11869
11870 * xsettings.h: Declare xsettings_get_system_font.
11871
11872 * xsettings.c (xsettings_get_system_font): New function.
11873 (init_gconf): No use initiating gconf unless we have Xft also.
11874 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11875 HAVE_GCONF.
11876
11877 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11878 add a blank entry so it doesn't collapse into nothing.
11879
11880 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11881
11882 * lread.c (Funintern): Comment out last change.
11883
11884 2009-11-19 Richard Stallman <rms@gnu.org>
11885
11886 * lread.c (Funintern): Error if symbol is t or nil.
11887
11888 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11889
11890 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11891 representation of Lisp integers.
11892 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11893
11894 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11895
11896 * lisp.h: Remove declaration of Ffont_get_system_font.
11897 * xfns.c: Move include of "xsettings.h".
11898 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11899
11900 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11901
11902 * xsettings.c (something_changedCB, Ffont_get_system_font):
11903 Check use_system_font.
11904 (syms_of_xsettings): DEFVAR font-use-system-font.
11905
11906 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11907
11908 * xfns.c (x_default_font_parameter): Remove dead assignment.
11909
11910 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11911
11912 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11913
11914 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
11915 not have FC_LCD_*. #define them if not there.
11916
11917 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
11918
11919 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11920
11921 * xterm.c (handle_one_xevent): Call xft_settings_event for
11922 ClientMessage, PropertyNotify and DestroyNotify.
11923 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11924 Call xsettings_initialize.
11925
11926 * xftfont.c (xftfont_fix_match): New function.
11927 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11928 Call xftfont_fix_match after XftFontMatch.
11929
11930 * xfont.c (xfont_driver): Initialize all members.
11931
11932 * xfns.c (x_default_font_parameter):
11933 Try font from Ffont_get_system_font.
11934 Do not get font from x_default_parameter if we got one from
11935 Ffont_get_system_font.
11936 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
11937
11938 * w32font.c (w32font_driver): Initialize all members.
11939
11940 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11941
11942 * lisp.h: Declare syms_of_xsettings.
11943
11944 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11945 Handle CONFIG_CHANGED_EVENT.
11946
11947 * ftfont.c (ftfont_filter_properties): New function.
11948
11949 * frame.c (x_set_font): Remove unused variable lval.
11950
11951 * font.h (struct font_driver): Add filter_properties.
11952
11953 * font.c (font_put_extra): Don't return if val is nil, it means
11954 boolean option is off.
11955 (font_parse_fcname): Collect all extra properties in extra_props
11956 and call filter_properties for all drivers with extra_props and
11957 font as parameter.
11958 (font_open_entity): Do not use cache, it does not pick up new
11959 fontconfig settings like hinting.
11960 (font_load_for_lface): If spec had a name in it, store it in entity.
11961
11962 * emacs.c (main): Call syms_of_xsettings.
11963
11964 * config.in: HAVE_GCONF is new.
11965
11966 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11967 xsettings.o is new.
11968
11969 2009-11-17 Kenichi Handa <handa@m17n.org>
11970
11971 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11972 back to the default font in case that no suitable font is found.
11973
11974 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11975
11976 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11977 Suggested by Chad Brown <yandros@mit.edu>.
11978 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11979
11980 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11981
11982 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11983
11984 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11985
11986 * Makefile.in: Ignore errors from mkdir when creating deps directory.
11987
11988 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11989
11990 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11991 has a parent.
11992
11993 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
11994 dependency files in deps/. Include those files into Makefile.
11995
11996 * config.in: Generated (AUTO_DEPEND).
11997
11998 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
11999
12000 * dbusbind.c (Vdbus_registered_objects_table): Rename from
12001 Vdbus_registered_functions_table, because it contains also
12002 properties. Fix docstring.
12003 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
12004
12005 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
12006
12007 * alloc.c (mark_object): Don't reprocess marked strings.
12008 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
12009 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
12010
12011 2009-11-13 Kenichi Handa <handa@m17n.org>
12012
12013 * category.c (word_boundary_p): Adjust for the change of the
12014 semantics of Vword_combining_categories.
12015 (Vword_combining_categories): Describe the slight change of the
12016 semantics.
12017
12018 2009-11-13 Eli Zaretskii <eliz@gnu.org>
12019
12020 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
12021
12022 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
12023
12024 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * xdisp.c (syms_of_xdisp): Fix typo in last change.
12027
12028 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
12029
12030 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
12031
12032 2009-11-11 David Reitter <david.reitter@gmail.com>
12033
12034 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
12035 variables to fix 2009-11-09 change.
12036
12037 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
12038
12039 * process.c (ifflag_def): Make flag_sym constant.
12040 (Fnetwork_interface_info): Use a constant pointer.
12041 (ifflag_table):
12042 * xfns.c (cursor_bits):
12043 * xdisp.c (power_letter):
12044 * termcap.c (speeds, esctab):
12045 * sysdep.c (baud_convert):
12046 * keyboard.c (lispy_accent_codes, modifier_names):
12047 * image.c (xbm_format, xpm_format, pbm_format, png_format)
12048 (jpeg_format, tiff_format, gif_format, svg_format)
12049 (interlace_start, interlace_increment, gs_format):
12050 * gtkutil.c (separator_names):
12051 * fringe.c (swap_nibble):
12052 * fns.c (base64_value_to_char, base64_char_to_value):
12053 * fileio.c (make_temp_name_tbl):
12054 * coding.c (suffixes): Make constant.
12055
12056 * frame.c (make_initial_frame):
12057 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
12058 build_string.
12059 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
12060
12061 * s/freebsd.h:
12062 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
12063
12064 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
12065 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
12066
12067 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
12068 * xterm.c (syms_of_xterm):
12069 * xfaces.c (syms_of_xfaces):
12070 * xdisp.c (syms_of_xdisp):
12071 * lread.c (syms_of_lread):
12072 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
12073 build_string.
12074
12075 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
12076
12077 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12078
12079 * fns.c (Fplist_get): Merge the active and the commented out code.
12080
12081 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12082
12083 * keyboard.h: Declare timer_check.
12084
12085 * keyboard.c (timer_check_2): New function that does what the old
12086 timer_check did.
12087 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12088 returned, i.e. don't return -1 with timers pending.
12089
12090 * process.c: Remove extern declaration of timer_check.
12091
12092 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12093 even if timer_check returned -1.
12094
12095 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12096 xg_dialog_data.
12097 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12098 the event loop.
12099 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12100 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12101 Destroy the dialog after xg_dialog_run.
12102
12103 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12104
12105 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12106
12107 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12108
12109 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12110
12111 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
12112
12113 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12114
12115 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12116
12117 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12118 w32menu.c, and nsmenu.m.
12119 Simplify the obsolete case where position is nil.
12120 (cleanup_popup_menu): New function, moved from nsmenu.m.
12121 (struct skp): Remove slot `notreal'.
12122 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12123 adjust callers.
12124 (single_menu_item): Adjust call to parse_menu_item.
12125 (syms_of_menu): Defsubr x-popup-menu.
12126 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12127 (keymap_panes): Don't export any more.
12128 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12129 (xmenu_show): Declare.
12130 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12131 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12132 * keyboard.h (parse_menu_item): Update declaration.
12133 * xmenu.c (Fx_popup_menu): Remove.
12134 (syms_of_xmenu): Don't defsubr x-popup-menu.
12135 * w32menu.c (Fx_popup_menu): Remove.
12136 (syms_of_w32menu): Don't defsubr x-popup-menu.
12137 * nsmenu.m (cleanup_popup_menu): Remove.
12138 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12139 moved to menu.c's Fx_popup_menu.
12140 (Fx_popup_menu): Remove.
12141 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12142 menu_items (it's done in menu.c already).
12143
12144 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12145
12146 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12147 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12148
12149 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
12150
12151 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
12152 xmenu_show. Hide any tooltip before opening a menu.
12153 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12154 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12155
12156 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12157
12158 Let integers use up 2 tags to give them one extra bit and thus double
12159 their range.
12160 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12161 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12162 New macros.
12163 (enum Lisp_Type): Use them. Give explicit values.
12164 (Lisp_Type_Limit): Remove.
12165 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12166 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12167 Pay attention to USE_2_TAGS_FOR_INTS.
12168 (INTEGERP): Use LISP_INT_TAG_P.
12169 * fns.c (internal_equal): Simplify the default case.
12170 (sxhash): Use case_Lisp_Int.
12171 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12172 any more.
12173 (Ftype_of): Use case_Lisp_Int.
12174 (store_symval_forwarding): Take into account the fact that Ints can
12175 now have more than one tag.
12176 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
12177 (buffer_slot_type_mismatch):
12178 * xfaces.c (face_attr_equal_p):
12179 * print.c (print_object):
12180 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12181 Use case_Lisp_Int.
12182
12183 2009-11-06 Eli Zaretskii <eliz@gnu.org>
12184
12185 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12186
12187 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12188 warning.
12189
12190 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12191
12192 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12193
12194 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12195
12196 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12197 ButtonPressRelease and MotionNotify (bug#4870).
12198
12199 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12200
12201 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12202
12203 * xterm.c (syms_of_xterm):
12204 * xselect.c (syms_of_xselect):
12205 * xmenu.c (syms_of_xmenu):
12206 * xfns.c (syms_of_xfns):
12207 * xfaces.c (syms_of_xfaces):
12208 * xdisp.c (syms_of_xdisp):
12209 * window.c (syms_of_window):
12210 * w32fns.c (syms_of_w32fns):
12211 * undo.c (syms_of_undo):
12212 * textprop.c (syms_of_textprop):
12213 * terminal.c (syms_of_terminal):
12214 * syntax.c (syms_of_syntax):
12215 * sound.c (syms_of_sound):
12216 * search.c (syms_of_search):
12217 * print.c (syms_of_print):
12218 * minibuf.c (syms_of_minibuf):
12219 * macros.c (syms_of_macros):
12220 * keymap.c (syms_of_keymap, initial_define_key)
12221 (initial_define_lispy_key):
12222 * keyboard.c (syms_of_keyboard):
12223 * insdel.c (syms_of_insdel):
12224 * image.c (syms_of_image):
12225 * fringe.c (syms_of_fringe):
12226 * frame.c (syms_of_frame):
12227 * fontset.c (syms_of_fontset):
12228 * fns.c (syms_of_fns):
12229 * fns.c (syms_of_fns):
12230 * fileio.c (syms_of_fileio):
12231 * fileio.c (syms_of_fileio):
12232 * eval.c (syms_of_eval):
12233 * doc.c (syms_of_doc):
12234 * dispnew.c (syms_of_display):
12235 * dired.c (syms_of_dired):
12236 * dbusbind.c (syms_of_dbusbind):
12237 * data.c (syms_of_data):
12238 * composite.c (syms_of_composite):
12239 * coding.c (syms_of_coding):
12240 * cmds.c (syms_of_cmds):
12241 * charset.c (define_charset_internal, syms_of_character):
12242 * ccl.c (syms_of_ccl):
12243 * category.c (syms_of_category, init_category_once):
12244 * casetab.c (syms_of_casetab):
12245 * casefiddle.c (syms_of_casefiddle):
12246 * callint.c (syms_of_callint):
12247 * bytecode.c (syms_of_bytecode):
12248 * buffer.c (keys_of_buffer, syms_of_buffer):
12249 * alloc.c (syms_of_alloc):
12250 * process.c (syms_of_process, init_process):
12251 * lread.c (syms_of_lread, init_obarray):
12252 * font.c (build_style_table):
12253 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12254 intern_c_string, calls to make_pure_string with
12255 make_pure_c_string. Use pure_cons instead of Fcons.
12256
12257 * process.c (socket_options): Make it const.
12258 (set_socket_option, init_process): Use a const pointer.
12259
12260 * lread.c (intern_c_string): New function.
12261 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12262 (defvar_int): Uset it. Make the name const char*.
12263
12264 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12265 (defvar_int): Update prototypes.
12266 (DEFUN, EXFUN): Support for prototypes is now required.
12267 (intern_c_string): New prototype.
12268 (struct Lisp_Subr): Make symbol_name constant.
12269
12270 * font.c (struct table_entry): Remove unused member. Make NAMES
12271 constant.
12272 (weight_table, slant_table, width_table): Make constant.
12273
12274 * emacs.c (struct standard_args): Make name and longname constant.
12275
12276 * character.h (DEFSYM): Use intern_c_string.
12277
12278 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12279
12280 * alloc.c (make_pure_c_string): New function.
12281
12282 * eval.c (Fautoload): Purecopy all arguments.
12283
12284 2009-11-05 Kenichi Handa <handa@m17n.org>
12285
12286 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12287 the buffer in case of replace.
12288
12289 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12290
12291 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12292
12293 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12294
12295 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12296 when applicable (bug#4851).
12297
12298 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12299 (P_): Support for prototypes is now required.
12300
12301 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
12302
12303 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12304 (Bug#4827).
12305
12306 2009-10-30 Eli Zaretskii <eliz@gnu.org>
12307
12308 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
12309
12310 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12311
12312 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12313
12314 * lread.c (Fload): Purecopy the file name when building
12315 Vpreloaded_file_list.
12316
12317 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12318
12319 * w32fns.c (syms_of_w32fns): Change default value of
12320 w32-scroll-lock-modifier to nil. (Bug#2827)
12321
12322 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12323
12324 * minibuf.c (Fall_completions): Fix typos in docstring.
12325
12326 2009-10-26 Andreas Schwab <schwab@redhat.com>
12327
12328 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12329
12330 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
12331
12332 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12333 For delta < 0, skip check that only makes sense when the mini-window
12334 is going to be enlarged. (Bug#4534)
12335
12336 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
12337
12338 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12339 string in menu maps (Bug#4471).
12340
12341 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
12342
12343 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12344 FRAME_NS_VIEW on terminal frames (Bug#4765).
12345
12346 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12347
12348 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12349 DBUS_TYPE_UINTnn separately to get proper sign extension.
12350
12351 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12352 can properly handle unsigned types.
12353 (make_uid, make_gid): Remove.
12354
12355 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12356 types again.
12357
12358 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
12359 (system_process_attributes): Likewise.
12360
12361 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12362
12363 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12364
12365 * eval.c (Fautoload): Purecopy the filename. Simplify.
12366
12367 * category.c (Fdefine_category): Purecopy docstring.
12368
12369 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12370
12371 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12372
12373 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12374
12375 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
12376
12377 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12378 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12379 (Bug#4775).
12380
12381 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12382
12383 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12384 (init_fileio_once):
12385 * lisp.h (init_fileio_once): Remove.
12386 * emacs.c (main): Don't call init_fileio_once.
12387
12388 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12389
12390 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12391
12392 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12393
12394 * doprnt.c (doprnt): Fix overflow check.
12395
12396 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12397
12398 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12399
12400 * xterm.h (x_wait_for_event): Declare it.
12401
12402 * xterm.c (pending_event_wait): New variable.
12403 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12404 see pending_event_wait.eventtype.
12405 (handle_one_xevent): Don't change gravity when parent changes.
12406 (x_new_font): Call change_frame_size with new rows/columns before we
12407 try to resize the frame.
12408 (x_wait_for_event): New function.
12409 (x_set_window_size_1): Don't change gravity unless change_gravity
12410 is set.
12411 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12412 don't change frame size, instead wait for the ConfigureNotify.
12413 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12414 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12415 (x_initialize): Initialize pending_event_wait.
12416
12417 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12418 size.
12419
12420 * widget.c (EmacsFrameSetValues): Add comment.
12421 (EmacsFrameSetCharSize): Just call x_set_window_size.
12422
12423 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12424 x_wait_for_event.
12425 (flush_and_sync): Remove again.
12426 (xg_get_font_name): Suggest monospace if no previous font is known.
12427
12428 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12429
12430 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
12431 8th bit, since that only made sense in the ASCII world (bug#4751).
12432
12433 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12434
12435 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12436 processing pending events when event is filtered for input method.
12437 (Bug#3681)
12438
12439 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
12440
12441 * fns.c: Add #endif accidentally removed in previous change.
12442
12443 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12444
12445 * fns.c: Remove code for unsupported system: MAC_OS.
12446 * image.c: Likewise. Include setjmp.h.
12447
12448 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12449
12450 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12451 pixel -1 (bug #4742).
12452
12453 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12454
12455 * process.c (create_pty): Remove conditionals for no longer
12456 supported systems: UNIPLUS and RTU.
12457
12458 * xterm.c:
12459 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12460
12461 * alloc.c: Do not define struct catchtag.
12462 * eval.c: Move struct catchtag definition ...
12463 * lisp.h: ... here.
12464
12465 * image.c: Move png.h #include earlier to avoid warnings.
12466
12467 * xterm.c:
12468 * xsmfns.c:
12469 * xselect.c:
12470 * xrdb.c:
12471 * xmenu.c:
12472 * xftfont.c:
12473 * xfont.c:
12474 * xfns.c:
12475 * xfaces.c:
12476 * xdisp.c:
12477 * window.c:
12478 * widget.c:
12479 * w32xfns.c:
12480 * w32uniscribe.c:
12481 * w32term.c:
12482 * w32select.c:
12483 * w32reg.c:
12484 * w32proc.c:
12485 * w32menu.c:
12486 * w32inevt.c:
12487 * w32heap.c:
12488 * w32font.c:
12489 * w32fns.c:
12490 * w32console.c:
12491 * w32.c:
12492 * w16select.c:
12493 * vm-limit.c:
12494 * unexsol.c:
12495 * unexec.c:
12496 * unexcw.c:
12497 * unexaix.c:
12498 * undo.c:
12499 * tparam.c:
12500 * textprop.c:
12501 * terminfo.c:
12502 * terminal.c:
12503 * termcap.c:
12504 * term.c:
12505 * syntax.c:
12506 * sound.c:
12507 * sheap.c:
12508 * search.c:
12509 * scroll.c:
12510 * region-cache.c:
12511 * regex.c:
12512 * ralloc.c:
12513 * process.c:
12514 * print.c:
12515 * nsterm.m:
12516 * nsselect.m:
12517 * nsmenu.m:
12518 * nsimage.m:
12519 * nsfont.m:
12520 * nsfns.m:
12521 * msdos.c:
12522 * minibuf.c:
12523 * menu.c:
12524 * marker.c:
12525 * macros.c:
12526 * keymap.c:
12527 * keyboard.c:
12528 * intervals.c:
12529 * insdel.c:
12530 * indent.c:
12531 * gtkutil.c:
12532 * ftxfont.c:
12533 * ftfont.c:
12534 * fringe.c:
12535 * frame.c:
12536 * fontset.c:
12537 * font.c:
12538 * fns.c:
12539 * floatfns.c:
12540 * filelock.c:
12541 * fileio.c:
12542 * emacs.c:
12543 * editfns.c:
12544 * dosfns.c:
12545 * doprnt.c:
12546 * doc.c:
12547 * dispnew.c:
12548 * dired.c:
12549 * dbusbind.c:
12550 * data.c:
12551 * composite.c:
12552 * coding.c:
12553 * cmds.c:
12554 * cm.c:
12555 * chartab.c:
12556 * charset.c:
12557 * character.c:
12558 * ccl.c:
12559 * category.c:
12560 * casetab.c:
12561 * casefiddle.c:
12562 * callproc.c:
12563 * callint.c:
12564 * bytecode.c:
12565 * buffer.c:
12566 * atimer.c: Include setjmp.h. (Bug#4643)
12567
12568 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12569
12570 Remove leftover table unibyte_to_multibyte_table.
12571 * character.c (unibyte_to_multibyte_table): Remove.
12572 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12573 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12574 * character.h (UNIBYTE_TO_CHAR): New macro.
12575 (MAKE_CHAR_MULTIBYTE): Use it.
12576 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12577 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12578 (message_dolog, set_message_1):
12579 * search.c (Freplace_match):
12580 * editfns.c (Fcompare_buffer_substrings):
12581 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12582 (concat):
12583 * insdel.c (copy_text, count_size_as_multibyte):
12584 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12585 * term.c (produce_glyphs):
12586 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12587 * regex.c (RE_CHAR_TO_MULTIBYTE):
12588 * cmds.c (internal_self_insert):
12589 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12590
12591 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12592
12593 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12594
12595 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12596
12597 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
12598
12599 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12600
12601 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12602
12603 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12604 still needed under Tiger.
12605
12606 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12607
12608 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12609 __Apple__.
12610
12611 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12612
12613 2009-10-15 Kenichi Handa <handa@m17n.org>
12614
12615 * print.c (print_object): Escape a symbol like "2E10" too.
12616
12617 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
12618
12619 Cleanups and changes for 64-bit compile under Snow Leopard.
12620 Based on suggestions by Erik Charlebois.
12621
12622 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12623
12624 * nsfont.m (ns_char_width): Replace deprecated call.
12625 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12626 cast argument.
12627 (nsfont_open): Use ns_char_width() everywhere.
12628 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
12629
12630 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12631
12632 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12633 where appropriate.
12634
12635 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12636 where appropriate.
12637 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12638 Use stringWithUTF8String.
12639 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12640
12641 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12642 Add formal protocol mention to inheritance.
12643 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12644
12645 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12646 Fix printf format.
12647 (ns_query_color): Use CGFloat where appropriate.
12648 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
12649 (EmacsScroller-mouseDown:): Use long format in printf, and cast
12650 argument.
12651
12652 * config.in (NS_HAVE_NSINTEGER): Drop.
12653
12654 * dbusbind.c (dbus-method-return-internal)
12655 (dbus-method-error-internal): Use long format in printf, and cast
12656 argument.
12657
12658 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12659 in printf, and cast argument.
12660
12661 * process.c (list_processes_1): Use long format in printf, and
12662 cast argument.
12663
12664 2009-10-11 Glenn Morris <rgm@gnu.org>
12665
12666 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12667
12668 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12669
12670 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12671 menu bar with a small width so it doesn't enlarge the frame.
12672
12673 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
12674
12675 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12676
12677 2009-10-06 Glenn Morris <rgm@gnu.org>
12678
12679 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12680 SOME_MACHINE_LISP (this enters indirectly via DOC).
12681
12682 2009-10-05 Eli Zaretskii <eliz@gnu.org>
12683
12684 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12685
12686 2009-10-04 Eli Zaretskii <eliz@gnu.org>
12687
12688 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12689 Doc fix.
12690
12691 2009-10-03 Martin Rudalics <rudalics@gmx.at>
12692
12693 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12694
12695 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
12696
12697 * lisp.h (Qdelete_directory_internal): Remove, because it is not
12698 used anymore outside fileio.c.
12699
12700 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12701
12702 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
12703
12704 * lisp.h (Qdelete_directory_internal):
12705 Declare, instead of Qdelete_directory.
12706
12707 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12708
12709 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12710
12711 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12712
12713 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
12714
12715 * fileio.c (Fdelete_directory_internal): Rename from
12716 Fdelete_directory. It is not a command anymore. It has no file
12717 name handler.
12718
12719 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12720
12721 * xdisp.c (get_next_display_element): Use an enum in last change.
12722
12723 2009-09-28 Kenichi Handa <handa@m17n.org>
12724
12725 * xdisp.c (get_next_display_element): Pay attention to
12726 unibyte_display_via_language_environment in handling
12727 Vnobreak_char_display.
12728
12729 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12730
12731 * nsterm.h (ns_app_name): New extern variable.
12732
12733 * nsterm.m (ns_app_name): New variable.
12734 (ns_term_init): Set and use it.
12735 (ns_term_shutdown): Use it.
12736
12737 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12738 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12739
12740 * nsfns.m (ns_set_name_iconic, ns_set_name)
12741 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12742 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12743
12744 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12745 Remove double-casting in client_data comparison.
12746
12747 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12748
12749 * keyboard.c (make_lispy_event): Remember last wheel direction.
12750 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12751
12752 2009-09-26 Glenn Morris <rgm@gnu.org>
12753
12754 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12755 internal.elc. Add term/pc-win.elc.
12756 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12757 term/x-win.elc.
12758 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12759 term/w32-win.elc.
12760 (NS_SUPPORT): New.
12761 (lisp): Add NS_SUPPORT.
12762 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12763
12764 2009-09-25 David Reitter <david.reitter@gmail.com>
12765
12766 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12767 on Mac OS X 10.6+ (bug#4513).
12768
12769 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12770
12771 * frame.c (xrdb_get_resource): Return nil for empty string resources;
12772 some parts of Emacs code (like font selection) don't grok them.
12773 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
12774
12775 2009-09-24 Andreas Schwab <schwab@redhat.com>
12776
12777 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12778
12779 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
12780
12781 * dired.c (Fdirectory_files): Fix typo in docstring.
12782
12783 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12784
12785 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12786 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12787 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12788 under GNUstep.
12789 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12790
12791 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12792 glyph advancement.
12793
12794 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12795
12796 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
12797 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
12798
12799 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12800 deleted (bug #4492).
12801
12802 * nsfont.m (Vns_reg_to_script): New lisp variable.
12803 (syms_of_nsfont): Declare it.
12804 (ns_registry_to_script): New function.
12805 (ns_get_req_script): Call it.
12806 (ns_findfonts): Don't give up on non-unicode registry.
12807
12808 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12809
12810 2009-09-20 Tom Tromey <tromey@redhat.com>
12811
12812 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12813 batch mode (bug#4228).
12814
12815 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
12816
12817 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
12818 carefully. (Bug #4339)
12819
12820 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
12821
12822 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
12823
12824 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12825
12826 * emacs.c (inhibit_x_resources): Update doc string for NS.
12827 (main) [HAVE_NS]: Don't process --no-init-file option.
12828 Remove legacy code for -NXHost. Fix error printf in daemon case.
12829
12830 * nsterm.h (ns_no_defaults): Remove.
12831
12832 * nsterm.m (ns_no_defaults): Remove.
12833 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12834 (ns_use_qd_smoothing): Remove legacy variable.
12835 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12836 don't update the NSWindow itself.
12837 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12838 Improve state detection and store user rect ourselves. (Bug #3581)
12839
12840 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12841 ns_use_qd_smoothing.
12842
12843 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12844 platform versions. Drop support for emacs-20-style face specs.
12845 (x-close-connection): Drop PSFlush() under OS X.
12846 (x-focus-frame): Activate the app first. (Bug #4180)
12847
12848 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
12849
12850 * emacs.c (inhibit_x_resources): New variable.
12851 (main) [HAVE_NS]: Don't process --quick command line option.
12852 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12853
12854 * lisp.h (inhibit_x_resources): Declare it extern.
12855
12856 * w32reg.c (x_get_string_resource):
12857 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12858
12859 2009-09-17 Eli Zaretskii <eliz@gnu.org>
12860
12861 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12862 Add lisp/term/internal.elc.
12863
12864 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12865
12866 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12867 (bug#4461).
12868
12869 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12870
12871 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12872
12873 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12874 (OBJECTS_MACHINE): Remove, unused.
12875
12876 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12877
12878 * frame.c (x_get_resource_string): Remove unused.
12879
12880 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12881
12882 * xterm.c (x_new_font): Call change_frame_size before calling
12883 x_set_window_size, in case frame size won't change.
12884
12885 * frame.c (x_set_font): Remove dead code.
12886
12887 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12888
12889 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12890
12891 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12892
12893 * lread.c (Fload): Don't output a message after loading an obsolete
12894 package any more (done in Lisp now).
12895
12896 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12899
12900 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12901
12902 * keymap.c (Fwhere_is_internal): Use nconc2.
12903
12904 2009-09-11 Alan Mackenzie <acm@muc.de>
12905
12906 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12907 batch mode.
12908
12909 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12910
12911 * xdisp.c (display_mode_element): Detect cycles.
12912
12913 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12914
12915 * keymap.c (where_is_internal): Don't erroneously return nil right after
12916 filling the cache.
12917 (where_is_internal_1): Fix up typo.
12918
12919 2009-09-11 Glenn Morris <rgm@gnu.org>
12920
12921 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12922 share a common doc-string.
12923
12924 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12925
12926 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12927 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12928
12929 * keymap.c (QCadvertised_binding): New constant.
12930 (syms_of_keymap): Initialize it.
12931 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12932 if applicable.
12933
12934 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12935
12936 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12937 (parse_menu_item): Streamline since bindings are recomputed all the
12938 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12939 more and don't support lmenu's menu-alias any more either.
12940
12941 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12942 (where_is_internal): Strip it down to only traverse the keymaps.
12943 Move the cache handling from Fwhere_is_internal to here.
12944 (Fwhere_is_internal): Move the handling of remapping and the choice of
12945 the best binding from where_is_internal to here.
12946 Unify the cached/noncached paths, so remapping is also handled
12947 correctly when the cache is used, and so the cache can be used to
12948 speed up remap-handling when applicable.
12949 Give preference to non-remapped bindings.
12950 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12951 non-remapped bindings.
12952 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12953 command remapping.
12954
12955 * xdisp.c (display_mode_element): Move list length limit from 50 to
12956 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12957
12958 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
12959
12960 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12961
12962 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12963
12964 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12965 (Bug#4334)
12966
12967 * keymap.c (where_is_internal): Filter out shadowed remappings.
12968 Assume that where_is_internal returns unshadowed bindings to simplify
12969 the code and get rid of the gotos. Use ASIZE.
12970
12971 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12972
12973 * xterm.c (x_focus_changed): If we get a focusout and pointer
12974 is invisible, make it visible.
12975
12976 * xterm.h: Remove condition for declaration of
12977 x_*_window_to_frame.
12978
12979 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12980
12981 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12982 initial terminal as well.
12983
12984 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12985
12986 * xterm.h: Rename x_non_menubar_window_to_frame to
12987 x_menubar_window_to_frame.
12988
12989 * xterm.c: Remove declarations also in xterm.h.
12990 (XTmouse_position): Do not return valid positions
12991 for clicks in the menubar and the toolbar for Gtk+.
12992
12993 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12994 if the widget for the event has the same top level as a frame,
12995 return the frame.
12996 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12997 internal windows, bug #4122.
12998 (x_non_menubar_window_to_frame): Remove.
12999
13000 2009-09-02 Glenn Morris <rgm@gnu.org>
13001
13002 * buffer.c (default-major-mode): Move most of the doc from here...
13003 (major-mode): ... to here.
13004
13005 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
13006
13007 * process.c (wait_reading_process_output): Keep the descriptor
13008 when pty is used by a non-child process, e.g., in I/O buffer of
13009 GDB this allows inferior to be restarted.
13010
13011 2009-08-29 Eli Zaretskii <eliz@gnu.org>
13012
13013 * xdisp.c (redisplay_internal): Remove redundant test and collapse
13014 both branches into one.
13015
13016 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13017
13018 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
13019 (main): Use enable-multibyte-characters rather than
13020 default-enable-multibyte-characters. Output a warning message when
13021 running a unibyte session.
13022
13023 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13024
13025 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
13026 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
13027 (copy_data_segment): Also copy __program_vars section.
13028 (copy_dyld_info) [LC_DYLD_INFO]: New function.
13029 (dump_it) [LC_DYLD_INFO]: Use it.
13030
13031 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
13032
13033 2009-08-28 Eli Zaretskii <eliz@gnu.org>
13034
13035 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
13036 $(SRC)/buildobj.h.
13037 (buildobj.h): Rename from $(SRC)/buildobj.h.
13038 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
13039 $(SRC)/buildobj.h.
13040 (clean): Add buildobj.h.
13041
13042 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
13043
13044 * print.c (print_object): Set escapeflag to 1 when printing
13045 hashtable keys and values.
13046
13047 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
13048
13049 * lread.c (read_integer): Use doubles (and potentially return a float
13050 number) as we do in string-to-number.
13051 (read1): Use strtol to read integers, signal errors on strtol's
13052 overflow and use floats if strtol's output is too large for
13053 Elisp integers.
13054
13055 2009-08-27 Eli Zaretskii <eliz@gnu.org>
13056
13057 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
13058 (make-buildobj-SH): Fix last change.
13059 (SRC): Move to before where it's first used.
13060
13061 2009-08-27 Kenichi Handa <handa@m17n.org>
13062
13063 * process.c (send_process): Use encode_coding_object instead of
13064 encode_coding_string to perform eol-conversion even if the string
13065 is unibyte.
13066
13067 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
13068 character.
13069
13070 * cmds.c (Fself_insert_command): Avoid unnecessay
13071 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
13072
13073 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
13074
13075 * callproc.c (Fcall_process): Remove always true #if.
13076
13077 * lisp.h: Replace #if 0 code for checking with text pointing to
13078 the --enable-checking configure flag.
13079
13080 * emacs.c (main): Mention the --enable-profiling configure flag
13081 instead of using CFLAGS.
13082
13083 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
13084
13085 * Makefile.in (buildobj.h): New target.
13086 (doc.o): Depend on it.
13087 (temacs${EXEEXT}): Don't generate buildobj.lst.
13088 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13089 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13090 ($(BLD)/doc.$(O)): Depend on it.
13091 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13092 provided by Eli Zaretskii.)
13093 ($(TEMACS)): Don't generate buildobj.lst.
13094 * doc.c: Include buildobj.h.
13095 (buildobj): New static variable.
13096 (Fsnarf_documentation): Use it, instead of opening and reading
13097 buildobj.lst.
13098
13099 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
13100
13101 * dbusbind.c (Fdbus_call_method)
13102 (Fdbus_call_method_asynchronously): Use English numeric format for
13103 timeout values in doc string.
13104
13105 2009-08-25 Kenichi Handa <handa@m17n.org>
13106
13107 * alloc.c (mark_char_table): New function.
13108 (mark_object): Use mark_char_table for a char-table.
13109
13110 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13111 (CHAR_TABLE_REF): Use it.
13112
13113 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
13114
13115 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13116 before invoking the newly build emacs to check for load-path
13117 shadowing.
13118
13119 2009-08-22 Glenn Morris <rgm@gnu.org>
13120
13121 * Makefile.in (bootstrap_exe): New variable.
13122 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13123 Use ${bootstrap_exe}.
13124
13125 2009-08-22 Eli Zaretskii <eliz@gnu.org>
13126
13127 * coding.h (encode_coding_string): Don't encode unibyte strings.
13128 (Bug#4047)
13129
13130 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
13131
13132 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13133
13134 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13135 intended as hotfix only.
13136 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13137
13138 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13139
13140 * nsterm.m (ns_get_color): Update documentation properly for last
13141 change, and clean up loose ends in the code left by it.
13142 Fix longstanding bug with 16-bit hex parsing, and add support for
13143 yet another X11 format (rgb:r/g/b) for compatibility.
13144 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13145 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13146
13147 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13148
13149 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13150
13151 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
13152
13153 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13154 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13155 (xd_initialize, xd_pending_messages): Check, whether
13156 $DBUS_SESSION_BUS_ADDRESS is set.
13157
13158 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13159
13160 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13161
13162 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13163
13164 2009-08-20 Glenn Morris <rgm@gnu.org>
13165
13166 * emacs.c (system-type): Doc fix.
13167
13168 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13169
13170 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13171 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13172
13173 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
13174
13175 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13176 New functions.
13177 (xd_initialize): Revert change from 2009-08-16.
13178
13179 2009-08-18 Kenichi Handa <handa@m17n.org>
13180
13181 * fontset.c (Ffontset_font): If a nil element is found in a
13182 font-group vector, return nil.
13183
13184 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
13185
13186 * process.c (status_notify): Don't perform redisplay.
13187 (Fdelete_process, list_processes_1, process_send_signal):
13188 Expliticly perform redisplay.
13189 (wait_reading_process_output): Always check process status, but
13190 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13191
13192 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
13193
13194 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
13195 (XFLOAT_INIT): New macro for storing a float value.
13196 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13197 * fns.c (sxhash): Copy out the value of a float in order to
13198 examine its bytes.
13199 * dbusbind.c (xd_append_arg): Likewise.
13200
13201 * emacs.c (main): Don't call syms_of_data twice.
13202
13203 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
13204
13205 * dbusbind.c (xd_initialize): Add connection file descriptor to
13206 input_wait_mask, in order to let select() detect, whether a new
13207 message has been arrived.
13208 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
13209
13210 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
13211
13212 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13213 New functions.
13214
13215 * lisp.h (xd_pending_messages): Declare.
13216
13217 * keyboard.c (readable_events): Call xd_pending_messages.
13218
13219 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
13220
13221 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
13222
13223 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13224
13225 * buffer.c (set_buffer_internal_1)
13226 (swap_out_buffer_local_variables): Check for unbound local
13227 variables (Bug#4138).
13228
13229 2009-08-14 Eli Zaretskii <eliz@gnu.org>
13230
13231 * process.c (create_pty): Fix last change.
13232
13233 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
13234
13235 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13236 (xbm_load_image): Caller changed.
13237 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
13238
13239 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
13240
13241 * process.c (create_pty): New function.
13242 (Fstart_process): Use it to allow Emacs to just associate a pty
13243 with the buffer. See associated change in gdb-mi.el.
13244 (list_processes_1): Deal with no program name.
13245 (start_process_unwind): Use pid == -2 to mean no process.
13246
13247 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13248
13249 * cmds.c (nonundocount): New global variable.
13250 (keys_of_cmds): Initialize it.
13251 (Fself_insert_command): Use it to combine upto 20 sequential chars
13252 into a single undo entry, just like the Qself_insert_command code in
13253 keyboard.c does.
13254 Call frame_make_pointer_invisible, also like the Qself_insert_command
13255 code in keyboard.c does.
13256 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13257 than its own local replacement for it.
13258
13259 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
13260
13261 * fns.c (concat): Don't re-set string length to its current value.
13262
13263 * coding.h (decode_coding_string, encode_coding_string):
13264 Use SBYTES macro.
13265
13266 * doprnt.c (doprnt_lisp): Delete unused function.
13267 (doprnt): Merge with doprnt1, discarding lispstrings code.
13268 * lisp.h (doprnt_lisp): Don't declare.
13269
13270 2009-08-07 Juri Linkov <juri@jurta.org>
13271
13272 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13273
13274 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13275
13276 * print.c (syms_of_print): Undo previous change.
13277
13278 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13279
13280 * lread.c (read1, syms_of_lread): Read hashtables back from the
13281 readable format.
13282
13283 * print.c (print_preprocess, print_object): Print hashtables fully
13284 and readably.
13285 (syms_of_print): Provide 'hashtable-print-readable.
13286
13287 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13288
13289 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13290 no family set.
13291 (nsfont_open): Handle case when entity has no family.
13292
13293 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13294
13295 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13296 element, not a list, for match case.
13297
13298 2009-07-28 Kenichi Handa <handa@m17n.org>
13299
13300 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13301 rigidly.
13302
13303 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13304 font_parse_xlfd. Check font properties more rigidly.
13305
13306 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13307
13308 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13309 bsd-common.h.
13310
13311 2009-07-27 Kenichi Handa <handa@m17n.org>
13312
13313 * xfaces.c (face_with_height): Call font_clear_prop.
13314
13315 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
13316
13317 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13318
13319 * xterm.c (x_term_init): Use Qx.
13320
13321 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13322
13323 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
13324 (ns_get_color): Revert 2009-07-16 change.
13325
13326 2009-07-25 Eli Zaretskii <eliz@gnu.org>
13327
13328 * lread.c (syms_of_lread) <force_load_messages>: New variable.
13329 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
13330
13331 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
13332
13333 * coding.h (decode_coding_string, encode_coding_string):
13334 Use SCHARS macro.
13335
13336 * lread.c: Rewrite 2009-07-21 changes.
13337 (load_depth): Delete.
13338 (Qload_in_progress): New variable.
13339 (load_unwind): Don't reference load_depth or load_in_progress.
13340 (Fload): Likewise; specbind Qload_in_progress instead.
13341 (init_lread): Don't initialize load_depth.
13342 (syms_of_lread): Initialize and protect Qload_in_progress.
13343
13344 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13345
13346 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13347
13348 2009-07-23 Yavor Doganov <yavor@gnu.org>
13349
13350 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13351
13352 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13353
13354 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
13355 Bugs 3792, 3720, 2402.
13356 (ns_lookup_indexed_color): Check for bad index.
13357 (ns_index_color): Init unused slot to 0.
13358 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13359 Bug 3714, possibly 3082.
13360
13361 2009-07-22 Jason Rumney <jasonr@gnu.org>
13362
13363 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13364 Position IME window at cursor (Bug#2570).
13365 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13366 (globals_of_w32fns): Dynamically load functions required above.
13367
13368 * w32term.c (w32_draw_window_cursor): Send message to reposition
13369 any IME window.
13370
13371 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13372
13373 * fileio.c: Revert 2009-07-16 changes.
13374 (Vauto_save_include_big_deletions): New variable.
13375 (Fdo_auto_save): Disable auto-save only if
13376 auto-save-include-big-deletions is nil.
13377
13378 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
13379
13380 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13381 the overflowed pixels into account (Bug#3879).
13382
13383 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
13384
13385 * lread.c (load_depth): New variable.
13386 (Fload, load_unwind, init_lread): Set it to the load recursion
13387 depth; set load_in_progress as a simple boolean based on the
13388 current load_depth. (Bug#3892)
13389
13390 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13391
13392 * nsfont.m (ns_has_attribute): Remove.
13393 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13394
13395 2009-07-18 Juri Linkov <juri@jurta.org>
13396
13397 * process.c (Fset_process_query_on_exit_flag): Mention killing
13398 a buffer in docstring.
13399
13400 2009-07-17 Kenichi Handa <handa@m17n.org>
13401
13402 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13403
13404 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13405
13406 * nsfns.m (Fns_set_alpha): Remove function.
13407 (syms_of_nsfns): Don't defsubr it.
13408
13409 * nsterm.m (ns_get_color): Remove incompatible color formats.
13410 (ns_color_to_lisp): Generate #rrggbb color format string.
13411
13412 2009-07-16 Richard Stallman <rms@gnu.org>
13413
13414 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13415 (Fset_buffer_auto_saved): Handle save_length = -2.
13416
13417 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
13418
13419 * xterm.c (Qx_gtk_map_stock): New var.
13420
13421 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13422 of calling intern each time.
13423
13424 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13425
13426 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13427 does tiling.
13428
13429 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13430
13431 2009-07-14 Kenichi Handa <handa@m17n.org>
13432
13433 * font.c (font_vconcat_entity_vectors): New function.
13434 (struct font_sort_data): New member font_driver_preference.
13435 (font_compare): Check font_driver_preference.
13436 (font_sort_entities): The format of the first argument changed.
13437 (font_delete_unmatched): Likewise.
13438 (font_list_entities): The return type changed.
13439 (font_select_entity): The format of the second argument changed.
13440 (font_find_for_lface): Adjuste for the above changes.
13441 Don't suppress the checking of C even if the repertory supports it.
13442 (Flist_fonts): Adjust for the above changes.
13443
13444 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13445 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
13446 Reject a font who has adstyle property that is different from a
13447 langname derived from registry property.
13448 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
13449
13450 2009-07-13 Eli Zaretskii <eliz@gnu.org>
13451
13452 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13453 local copy of dirfilename.
13454
13455 2009-07-13 Kenichi Handa <handa@m17n.org>
13456
13457 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13458 against max_char.
13459
13460 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13461 calling XSYMBOL (sym).
13462
13463 2009-07-11 Eli Zaretskii <eliz@gnu.org>
13464
13465 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13466 New function.
13467 (directory_files_internal) [WINDOWSNT]:
13468 Bind w32-get-true-file-attributes to either t or nil, depending whether
13469 the filesystem of the directory is fast or slow.
13470
13471 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13472 file name.
13473 (is_slow_fs): New function.
13474 (stat): Use it to determine whether to issue more system calls to
13475 get accurate file attributes, when w32-get-true-file-attributes is
13476 `local'.
13477
13478 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13479
13480 * xfns.c (Fx_select_font): Remember last font selected in
13481 x_last_font_name and use that the next time. Also try the frame
13482 parameter font-parameter as default to the font dialog.
13483
13484 2009-07-10 Kenichi Handa <handa@m17n.org>
13485
13486 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13487
13488 2009-07-09 Eli Zaretskii <eliz@gnu.org>
13489
13490 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13491
13492 * w32.c (stat): Treat UNC file names as residing on remote
13493 drives. (Bug#3542)
13494
13495 2009-07-09 Kenichi Handa <handa@m17n.org>
13496
13497 * fontset.c (fontset_find_font): Fix previous change.
13498
13499 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
13500
13501 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13502 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13503 error flag.
13504
13505 2009-07-08 Kenichi Handa <handa@m17n.org>
13506
13507 * fontset.c (fontset_find_font): Fix the logic of handling
13508 charset_matched.
13509 (font_for_char): Delete unused var.
13510 (generate_ascii_font_name): Delete it.
13511
13512 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13513
13514 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13515 (encode_coding_sjis): Fix the code range check.
13516
13517 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
13518
13519 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13520 (Fexpand_file_name): Copy string data properly (Bug#3772).
13521
13522 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13523
13524 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13525 first MapNotify.
13526
13527 2009-07-07 Kenichi Handa <handa@m17n.org>
13528
13529 * character.h (unibyte_has_multibyte_table): Delete extern.
13530 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13531
13532 * charset.c (Fset_charset_priority): Update charset_unibyte.
13533 (syms_of_charset): Initialize charset_unibyte.
13534
13535 * character.c (unibyte_has_multibyte_table): Delete it.
13536 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13537 charset_unibyte.
13538 (multibyte_char_to_unibyte_safe): Likewise.
13539 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13540
13541 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
13542 (x_produce_glyphs): Likewise.
13543
13544 * .gdbinit (xcharset): Fix the treating $arg0.
13545
13546 2009-07-04 Eli Zaretskii <eliz@gnu.org>
13547
13548 Emulation of `getloadavg' on MS-Windows.
13549 * w32.c: Include float.h.
13550 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13551 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13552 (get_native_system_info, get_system_times): New functions.
13553 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13554 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13555 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13556 g_b_init_get_system_times, and num_of_processors.
13557
13558 2009-07-03 Jason Rumney <jasonr@gnu.org>
13559
13560 * w32term.c (w32_initialize): Use standard types.
13561
13562 2009-07-03 Eli Zaretskii <eliz@gnu.org>
13563
13564 * dired.c (Ffile_attributes): Decode user and group names by the
13565 locale's encoding. (Bug#3443)
13566
13567 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13568
13569 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13570 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13571
13572 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13573
13574 * term.c (init_tty): Remove spurious #ifdef.
13575
13576 * m/mips.h: Mention this file is also used for netbsd.
13577 * m/pmax.h: Remove file.
13578
13579 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13580
13581 * xterm.h (struct x_display_info): Add invisible_cursor.
13582 (struct x_output): Add current_cursor.
13583
13584 * xterm.c (XTtoggle_invisible_pointer): New function.
13585 (x_define_frame_cursor): Don't define cursor if invisible or the
13586 same as before. Set current_cursor.
13587 (x_create_terminal): Set toggle_invisible_pointer_hook.
13588
13589 * xfns.c (make_invisible_cursor): New function.
13590 (x_set_mouse_color): Call make_invisible_cursor.
13591 Set current_cursor.
13592 (x_window): Set current_cursor.
13593
13594 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13595
13596 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13597 inserting a character.
13598 (read_avail_input): Call frame_make_pointer_visible.
13599
13600 * frame.c (Vmake_pointer_invisible): New variable.
13601 (frame_make_pointer_invisible, frame_make_pointer_visible):
13602 New functions.
13603 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13604
13605 * frame.h: Declare frame_make_pointer_invisible and
13606 frame_make_pointer_visible.
13607 (struct frame): Add pointer_invisible.
13608
13609 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13610
13611 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13612 frame isn't visible.
13613 (xg_frame_resized): If width/height is -1, get size of window
13614 from X server.
13615
13616 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13617 for MapNotify.
13618
13619 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
13620 here or call change_frame_size. Just call flush_and_sync.
13621 (flush_and_sync): Reintroduce.
13622
13623 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
13624
13625 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
13626
13627 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13628 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13629
13630 * frame.h: Declare Qsticky.
13631
13632 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13633
13634 * nsfns.m (ns_frame_parm_handlers): Ditto.
13635
13636 * frame.c: Declare Qsticky.
13637 (frame_parms): Add sticky.
13638
13639 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13640
13641 * xterm.h: Declare x_set_sticky.
13642
13643 * xterm.c (x_set_sticky): New function.
13644
13645 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13646 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13647 xg_tool_bar_proxy_help_callback.
13648
13649 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13650
13651 * frame.c: Qmaximized is new.
13652 (x_set_frame_parameters): Do not handle fullscreen specially.
13653 Only set width and height if explicitly set.
13654 (x_set_fullscreen): Handle Qmaximized.
13655 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13656 (syms_of_frame): Initialize Qmaximized.
13657
13658 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13659 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
13660
13661 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
13662 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13663 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
13664 set gravity to NorthWestGravity when USE_GTK.
13665 (set_wm_state): New function.
13666 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
13667 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13668 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
13669 or the case when no window manager is running. That means remove calls
13670 to x_real_positions and x_fullscreen_adjust.
13671
13672 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13673 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13674 flush_and_sync.
13675 (xg_height_changed): New function.
13676 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
13677 and gtk_window_set_policy. Set frame gravity after parsing the
13678 geometry string.
13679 (xg_update_frame_menubar, free_frame_menubar)
13680 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13681 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13682 Remove calls to xg_frame_set_char_size.
13683
13684 2009-07-01 Kenichi Handa <handa@m17n.org>
13685
13686 * keyboard.c (decode_keyboard_code): New function.
13687 (tty_read_avail_input): Decode the input bytes if necessary.
13688
13689 * coding.c (setup_coding_system):
13690 Initialize coding->carryover_bytes to 0.
13691 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13692 use Qno_conversion.
13693
13694 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13695
13696 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13697
13698 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
13701
13702 2009-06-30 Jason Rumney <jasonr@gnu.org>
13703
13704 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13705 is already loaded.
13706 Set user model ID if supported (bug#1849).
13707
13708 2009-06-29 Jim Meyering <meyering@redhat.com>
13709
13710 Remove useless if-before-xfree test.
13711 * nsfont.m (nsfont_close): Remove useless test.
13712 * term.c (delete_tty): Likewise.
13713 * w32.c (system_process_attributes): Likewise.
13714 * w32font.c (w32font_close): Likewise.
13715 * xfaces.c (x_free_gc): Likewise.
13716 * xselect.c (buffer): Likewise.
13717
13718 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13719
13720 * process.c (send_process): Keep decoded string in a local
13721 variable and protect it from GC. (Bug#3521)
13722
13723 2009-06-28 Eli Zaretskii <eliz@gnu.org>
13724
13725 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13726 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13727
13728 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
13729
13730 * xdisp.c (start_display, handle_face_prop)
13731 (move_it_vertically_backward, cursor_row_fully_visible_p)
13732 (redisplay_window, try_window_id, produce_image_glyph):
13733 Delete some #ifdef-ed out code chunks that are now obsolete.
13734
13735 * xterm.c (x_update_window_begin, x_new_focus_frame)
13736 (x_scroll_bar_handle_click, handle_one_xevent)
13737 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13738 (x_make_frame_visible, x_make_frame_invisible)
13739 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13740 code chunks that are now obsolete.
13741
13742 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
13743
13744 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13745 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13746 for hours, when optimzation is enabled.
13747 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13748 (xd_read_message): Make them static.
13749
13750 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13751
13752 * term.c (turn_on_face): Allow simultaneously bold and dim
13753 terminal faces (Bug#3530).
13754
13755 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
13756
13757 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13758
13759 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13760 truncation glyphs (Bug#3686).
13761
13762 2009-06-27 Glenn Morris <rgm@gnu.org>
13763
13764 * m/pmax.h: Restore file, with only netbsd portions.
13765
13766 2009-06-26 David Reitter <david.reitter@gmail.com>
13767
13768 * nsterm.m (keydown): Avoid infinite loop.
13769
13770 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13771
13772 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13773 the arg FORCE_SYMBOL.
13774
13775 2009-06-25 Kenichi Handa <handa@m17n.org>
13776
13777 * fontset.c (fontset_find_font): When a usable rfont_def is found
13778 in a fallback font-group, make it the first element of the group.
13779
13780 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
13781
13782 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13783
13784 2009-06-24 Kenichi Handa <handa@m17n.org>
13785
13786 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13787 set for C.
13788 (fontset_font): Record the availability of a font for C both in
13789 the realized fontsets of the current one and the default one.
13790
13791 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13792
13793 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13794 conditional, it is always defined on AIX.
13795
13796 2009-06-23 Miles Bader <miles@gnu.org>
13797
13798 * window.c (Vrecenter_redisplay): New variable.
13799 (syms_of_window): Initialize it.
13800 (Qtty): New extern declaration.
13801 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13802
13803 2009-06-23 Jim Meyering <meyering@redhat.com>
13804
13805 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13806 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
13807 pointer dereferences are guaranteed to be valid.
13808
13809 2009-06-23 Kenichi Handa <handa@m17n.org>
13810
13811 * emacs.c (main): Call init_font ().
13812
13813 * font.h (Vfont_log): Extern it.
13814 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13815
13816 * font.c (font_sort_entities, font_list_entities)
13817 (font_matching_entity, font_open_entity)
13818 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13819 (Vfont_log): Delete static.
13820 (font_log_env_checked): Delete this variable.
13821 (font_add_log): Don't check font_log_env_checked.
13822 (font_deferred_log): Check Vfont_log.
13823 (init_font): New function.
13824
13825 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13826
13827 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13828
13829 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13830
13831 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13832
13833 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13834 (face_for_char): Don't call font_deferred_log here.
13835 (font_for_char): Likewise.
13836
13837 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
13838
13839 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13840 rather than its background_width for drawing the overline and
13841 underline (Bug#489).
13842
13843 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13844 rather than its background_width for drawing the overline and
13845 underline (Bug#489).
13846 (xg_default_icon_file): New variable.
13847 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13848 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
13849
13850 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13851 (load_overlay_strings): Remove externs.
13852 (fast_find_position): Function deleted.
13853 (mouse_face_from_buffer_pos): New function, based on
13854 fast_find_position. Correctly handle before-strings,
13855 display-strings, and after-strings (Bug#1220).
13856 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13857
13858 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13859
13860 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
13861 (move_it_in_display_line_to, move_it_in_display_line_to)
13862 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13863
13864 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
13865
13866 * Branch for 23.1.
13867
13868 2009-06-21 Jason Rumney <jasonr@gnu.org>
13869
13870 * w32term.c (keyboard_codepage): New static variable.
13871 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13872 (w32_read_socket) [WM_CHAR]: Use it to decode character
13873 input (bug#3237).
13874 (w32_initialize): Initialize it.
13875 (codepage_for_locale): New function.
13876
13877 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
13878
13879 * process.c (status_message): Pass Faset index argument as a lisp
13880 object, so as to work with USE_LISP_UNION_TYPE.
13881
13882 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13883
13884 * coding.c (Ffind_coding_systems_region_internal):
13885 Cache checked characters.
13886
13887 2009-06-18 Kenichi Handa <handa@m17n.org>
13888
13889 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
13890
13891 2009-06-18 Andreas Schwab <aschwab@redhat.com>
13892
13893 * xdisp.c (redisplay_internal): Check that the frame is still
13894 live after redisplay of its windows.
13895 (redisplay_windows): Check that the window is still live.
13896
13897 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13898
13899 * coding.c (detect_coding_utf_16): Fix previous change.
13900
13901 2009-06-16 Kenichi Handa <handa@m17n.org>
13902
13903 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13904 UTF-16 by checking the dispersion of Eth and Oth bytes.
13905
13906 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13907
13908 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13909
13910 2009-06-15 Kenichi Handa <handa@m17n.org>
13911
13912 * process.c (status_message): Fix previous change. Be sure to
13913 decode a localized string.
13914
13915 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13916
13917 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13918 add comment explaining why.
13919
13920 2009-06-14 Sidney Markowitz <sidney@sidney.com>
13921
13922 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
13923
13924 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13925
13926 * nsfont.m (ns_attribute_value): Remove.
13927 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13928 (ns_has_attribute): Shrink the normal range.
13929 (ns_findfonts): Don't worry about requested spec in determining
13930 need for synthItal.
13931 (ns_get_covering_families): Retain scriptToFamilies.
13932
13933 2009-06-14 Seiji Zenitani <zenitani@mac.com>
13934
13935 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13936
13937 2009-06-11 Kenichi Handa <handa@m17n.org>
13938
13939 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13940 overhang for the static composition case.
13941
13942 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13943
13944 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13945 overhang for the automatic composition case.
13946
13947 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13948 composition case.
13949
13950 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
13951
13952 * xdisp.c (get_next_display_element): When handling wrap-prefix
13953 and line-prefix, treat \n as a control character (bug#3502).
13954
13955 2009-06-10 Kenichi Handa <handa@m17n.org>
13956
13957 * font.c (font_parse_family_registry): Fix for one-char foundry.
13958 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13959
13960 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13961
13962 * process.c (status_message): Fix handling of multibyte signal
13963 string (Bug#3499).
13964
13965 2009-06-09 Jim Meyering <meyering@redhat.com>
13966
13967 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13968 color name is missing.
13969
13970 2009-06-09 Kenichi Handa <handa@m17n.org>
13971
13972 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13973 FROM-CODE and TO-CODE are codepoints of CHARSET.
13974
13975 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13976
13977 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13978
13979 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13980
13981 Changes to support :script/:lang/:otf in NS font driver.
13982 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13983 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13984 indicate not part of font driver interface, and change callers.
13985 (ns_get_family): Remove pointless null check.
13986 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13987 ns_spec_to_descriptor, ns_descriptor_to_entity.
13988 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13989 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13990 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13991 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13992 (ns_get_req_script, ns_accumulate_script_ranges)
13993 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13994 New functions.
13995 (nsfont_list, nsfont_match): Use ns_findfonts.
13996 (nsfont_open): Use font descriptor instead of traits.
13997 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13998 (dump_glyphstring): Rename to ns_dump_glyphstring.
13999
14000 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
14001
14002 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
14003
14004 * fontset.c (fontset_from_font): Remove NS-specific code.
14005
14006 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
14007
14008 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
14009 nonactive windows.
14010
14011 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
14012
14013 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
14014
14015 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14016
14017 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
14018
14019 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
14020
14021 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
14022 account for the overflowing of newlines into the last glyph on the
14023 display line (Bug#3482).
14024
14025 2009-06-05 David Reitter <david.reitter@gmail.com>
14026
14027 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
14028 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
14029 Fns_selection_exists_p, Fns_selection_owner_p.
14030
14031 2009-06-03 Jason Rumney <jasonr@gnu.org>
14032
14033 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
14034 available. (Bug#3379)
14035
14036 2009-05-29 Kenichi Handa <handa@m17n.org>
14037
14038 * coding.c (get_translation_table):
14039 Check Venable_character_translation.
14040
14041 2009-05-26 David Reitter <david.reitter@gmail.com>
14042
14043 * nsterm.m (ns_raise_frame): Only raise frame if visible.
14044 (x_make_frame_visible): Move frame to front rather than calling
14045 ns_raise_frame().
14046 (keyDown:): Do not swallow events that aren't re-sent if frame
14047 isn't key window.
14048 (drawRect:): Do not set visibility/iconified flags because
14049 drawRect may be called by NSView even if the frame is hidden.
14050
14051 * nsfns.m (Fx_create_frame): Follow other ports in
14052 determining visibility; default to t. Ensure async_visible is set.
14053
14054 2009-05-23 Eli Zaretskii <eliz@gnu.org>
14055
14056 * dired.c (Ffile_attributes): Doc fix.
14057
14058 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
14061
14062 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
14063
14064 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
14065 and xfont_scratch_props.
14066 (syms_of_xfont): Do it here instead.
14067 (xfont_find_ccl_program): Delete, unused.
14068 (xfont_open): Delete unused var `i'.
14069
14070 2009-05-21 Kenichi Handa <handa@m17n.org>
14071
14072 * fontset.c (Qlatin): Don't make it static.
14073
14074 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
14075 New functions.
14076 (xfont_scripts_cache, xfont_scratch_props): New variables.
14077 (Qlatin, Vscalable_fonts_allowed): Extern it.
14078 (xfont_list_pattern): Argument changed. Callers changed.
14079 Check Vscalable_fonts_allowed. Check the support of a script.
14080 (xfont_list): Don't reject a font spec with :script property.
14081 (xfont_has_char): Fix setting of encoding.
14082 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
14083 xfont_scratch_props.
14084
14085 2009-05-19 Kenichi Handa <handa@m17n.org>
14086
14087 * font.c (font_sort_entities): Rename from font_sort_entites.
14088 Callers changed.
14089
14090 2009-05-18 Kenichi Handa <handa@m17n.org>
14091
14092 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14093
14094 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14095
14096 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14097 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14098
14099 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14100
14101 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14102 (x_delete_terminal): Dissociate resource database from display and
14103 then call XrmDestroyDatabase before closing display.
14104
14105 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14106
14107 * nsterm.m (ns_read_socket): Remove unused variable.
14108 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14109 whether selected frame is viable before raising it (based on patch
14110 by David Reitter), and improve commentary.
14111 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
14112
14113 2009-05-15 Kenichi Handa <handa@m17n.org>
14114
14115 * font.c (Ffont_spec): Check arguments.
14116
14117 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
14118
14119 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14120 weight when testing attributes (Bug#3282).
14121
14122 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14123
14124 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14125 what we expect to get in the next ConfigureNotify event.
14126
14127 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14128 before Xft one (Bug#1696).
14129
14130 2009-05-07 David Reitter <david.reitter@gmail.com>
14131
14132 * nsfns.m (Fx_display_planes): Compute bitplanes using
14133 NSBitsPerPixelFromDepth (Bug#3207).
14134
14135 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
14136
14137 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14138
14139 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
14140
14141 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14142
14143 2009-05-07 David Reitter <david.reitter@gmail.com>
14144
14145 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14146 Respect mouse face background.
14147
14148 2009-05-07 David Reitter <david.reitter@gmail.com>
14149
14150 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14151 Mouse movement/highlight: bracket drawing operations
14152 in ns_update_begin and ns_update_end.
14153
14154 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14155
14156 * nsfns.m (ns_get_screen): Rewrite.
14157 Don't presume selected-frame is of type `ns'.
14158
14159 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14160 all drivers.
14161
14162 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14163
14164 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14165
14166 * keyboard.h (add_user_signal): Fix typo in extern.
14167
14168 * lisp.h (add_user_signal): Remove extern.
14169
14170 * unexelf.c (unexec): Consider a section to precede the .bss section
14171 if its addresses overlap that of .bss.
14172 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14173 instead of dumping process.
14174
14175 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14176
14177 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14178
14179 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14180
14181 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14182
14183 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14184
14185 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14186 any statements.
14187
14188 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14189
14190 * process.c (read_process_output): Make sure the current buffer is
14191 always restored.
14192
14193 * coding.c (record_conversion_result): Don't modify
14194 Vlast_code_conversion_error for successful result.
14195 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14196
14197 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14198
14199 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
14200 (load_charset_map): Remove unnecessary code.
14201
14202 2009-04-30 David Reitter <david.reitter@gmail.com>
14203
14204 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
14205 through f24.
14206
14207 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
14208
14209 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14210
14211 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14212 face_at_buffer_position.
14213 (face_before_or_after_it_pos, get_next_display_element)
14214 (note_mouse_highlight): Update face_at_buffer_position call.
14215
14216 * term.c (term_mouse_highlight):
14217 * msdos.c (IT_note_mouse_highlight):
14218 * fontset.c (Finternal_char_font):
14219 * font.c (font_at, font_range): Update face_at_buffer_position call.
14220
14221 * dispextern.h (face_at_buffer_position): Update prototype.
14222
14223 2009-04-30 Kenichi Handa <handa@m17n.org>
14224
14225 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
14226
14227 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14228
14229 * callproc.c (Fcall_process): Fix GC protection. Make sure
14230 current buffer is always restored.
14231
14232 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14233
14234 * atimer.c (init_atimer): Also clear stopped_atimers.
14235
14236 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14237
14238 * process.c (create_process): Clean up merger residues of
14239 2008-07-17 change.
14240
14241 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
14242
14243 * lread.c (Vread_circle): New variable.
14244 (read1): Disable recursive read if Vread_circle is nil.
14245
14246 2009-04-29 Kenichi Handa <handa@m17n.org>
14247
14248 * fontset.h (set_default_ascii_font): Delete extern.
14249
14250 * fontset.c (set_default_ascii_font): Delete this unused function.
14251
14252 * frame.c (x_set_font): When ARG is a font-object, check if the
14253 font-object matches with the ASCII font-spec of the frame's
14254 fontset. If not, create a new fontset for the frame. (Bug #3075)
14255
14256 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14257
14258 * fns.c (Flocale_info): Protect vector from GC during decoding.
14259
14260 * process.c (Fstart_process): Protect argv strings from GC during
14261 encoding.
14262
14263 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14264
14265 * sysdep.c: Include <ctype.h>.
14266
14267 2009-04-27 David Reitter <david.reitter@gmail.com>
14268
14269 * nsfont.m (nsfont_open): Remove unused variable shrink.
14270 Remove commented-out code.
14271
14272 2009-04-26 Johan Bockgård <bojohan@gnu.org>
14273
14274 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14275
14276 2009-04-25 Jason Rumney <jasonr@gnu.org>
14277
14278 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14279
14280 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14281
14282 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14283 Swap bytes in short integer if fringe bitmap width > 8.
14284
14285 2009-04-23 Kenichi Handa <handa@m17n.org>
14286
14287 * xfaces.c (Fx_list_fonts): If a font size is specified in
14288 PATTERN, set it in returned scalable fonts.
14289
14290 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
14291
14292 * keyboard.c (Fset_input_meta_mode): Doc fix.
14293
14294 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14295
14296 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
14297
14298 * coding.c (Fterminal_coding_system): Doc fix.
14299
14300 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14301 (Fx_display_pixel_height, Fx_display_planes)
14302 (Fx_display_color_cells, Fx_server_max_request_size)
14303 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14304 (Fx_display_mm_height, Fx_display_mm_width)
14305 (Fx_display_backing_store, Fx_display_visual_class)
14306 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14307 Doc fixes, replacing "terminal id" with "terminal object".
14308 (check_x_display_info): Handle terminal objects instead of
14309 terminal ids.
14310
14311 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14312 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
14313 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14314 Doc fixes, replacing "terminal id" with "terminal object".
14315
14316 2009-04-21 Kenichi Handa <handa@m17n.org>
14317
14318 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
14319 (font_score): Check AVGWIDTH too.
14320
14321 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14322 worst case.
14323 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14324 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
14325
14326 2009-04-19 Jason Rumney <jasonr@gnu.org>
14327
14328 The following changes fix Bug#3005 for wide glyphs on each platform,
14329 without reintroducing Bug#1258 for stretch glyphs.
14330
14331 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14332 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14333 get_phys_cursor_geometry.
14334
14335 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
14336 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14337 using get_phys_cursor_geometry.
14338
14339 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14340 correctly calculated.
14341
14342 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14343
14344 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14345 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
14346 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14347 is deprecated.
14348
14349 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14350
14351 * font.c (font_put_frame_data): Use xfree instead of free.
14352
14353 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
14354
14355 * w32font.c (Qja, Qko): Remove declarations.
14356 (syms_of_w32font): Don't DEFSYM them.
14357
14358 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
14359
14360 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14361
14362 * font.h (Qja, Qko): Extern them.
14363
14364 * ftfont.c (Qja, Qko): Remove declarations.
14365
14366 * xfont.c (Qja, Qko): Remove declarations.
14367
14368 2009-04-17 Kenichi Handa <handa@m17n.org>
14369
14370 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14371 string from a vector to handle Latin-1 characters correctly.
14372
14373 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14374 entity even if the cache hits.
14375
14376 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14377
14378 * search.c (boyer_moore): Use zero as marker value for a possible
14379 match instead of depending on overflow behavior. (Bug#2844)
14380
14381 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14382 * lisp.h: Adjust prototypes.
14383
14384 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
14385
14386 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14387 change (Bug#3003).
14388
14389 2009-04-16 Kenichi Handa <handa@m17n.org>
14390
14391 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
14392
14393 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14394 adstyle.
14395
14396 * ftfont.c (Qja, Qko): Don't make them static.
14397 (enum ftfont_cache_for): New enum.
14398 (fc_charset_table): Undo the previous change.
14399 (ftfont_get_latin1_charset): Delete it.
14400 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14401 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
14402 non-scarable font, try to get AVERAGE_WIDTH.
14403 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14404 Change ft_face_cache from a list of a hash-table. Don't check
14405 `ja' and `ko' adstyle here.
14406 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14407 FTFONT_CACHE_FOR_CHARET.
14408 (ftfont_get_charset): Undo the previous change.
14409 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
14410 (ftfont_close): Likewise.
14411 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14412
14413 * font.c (font_sort_entites): Change the meaning of the arg
14414 BEST-ONLY. Don't optimize for VEC of lenght 1.
14415 (font_select_entity): Just return the value of font_sort_entites.
14416
14417 * xfaces.c (merge_face_vectors): Reflect font properties in
14418 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14419 font_clear_prop if a face attribute doesn't change.
14420
14421 * charset.h (charset_ksc5601): Extern it.
14422
14423 * charset.c (charset_ksc5601): New variable.
14424 (Fdefine_charset_internal): Set charset_ksc5601.
14425 (init_charset_once): Initialize charset_ksc5601 to -1.
14426
14427 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14428
14429 * fileio.c (history_delete_duplicates): Remove unused declaration.
14430
14431 * callint.c (history_delete_duplicates): New declaration.
14432 (Fcall_interactively): Remove command history duplicates when
14433 history_delete_duplicates is true.
14434
14435 2009-04-14 Eli Zaretskii <eliz@gnu.org>
14436
14437 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14438
14439 2009-04-14 Kenichi Handa <handa@m17n.org>
14440
14441 * font.c (Ffont_info): Fix docstring. Fix the second element of
14442 the returned value (bug#2949).
14443
14444 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
14445
14446 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14447
14448 2009-04-14 Kenichi Handa <handa@m17n.org>
14449
14450 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14451 encoding charset is ascii_compatible.
14452
14453 * charset.c (Fdefine_charset_internal): Make charset
14454 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14455 code_offset is 0, and covers all ASCII characters.
14456
14457 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14458
14459 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14460 (ns_string_to_pasteboard_internal):
14461 * nsmenu.m (process_dialog):
14462 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14463 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14464 * lisp.h (Fx_load_color_file): Declare.
14465
14466 2009-04-13 Kenichi Handa <handa@m17n.org>
14467
14468 * font.c (font_delete_unmatched): Preserve the order of list elements.
14469 (font_select_entity): Suppress the code to optimize for the same
14470 kind of fonts.
14471 (font_load_for_lface): Get a font that supports at least ASCII
14472 characters.
14473
14474 * ftfont.c (Qja, Qko): New variables.
14475 (fc_charset_table): Delete uniquifier data for iso8859-1.
14476 (ftfont_get_latin1_charset): New function.
14477 (get_adstyle_property): New function.
14478 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14479 bitmap fonts.
14480 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14481 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14482 `ko' or `ja'.
14483 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
14484 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
14485 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14486 property.
14487 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14488 (syms_of_ftfont): DEFSYM Qja and Qko.
14489
14490 2009-04-09 Kenichi Handa <handa@m17n.org>
14491
14492 * charset.c (map_charset_chars): For a charset of `superset'
14493 method, fix calculation of code range.
14494
14495 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14496 from the list of extra properties.
14497 (font_clear_prop): Be sure to delete `:name' font property.
14498
14499 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14500
14501 * dispnew.c (redraw_overlapping_rows): Fix detection of
14502 overlapping for topmost and bottommost rows.
14503
14504 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
14505
14506 2009-04-06 Jason Rumney <jasonr@gnu.org>
14507
14508 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14509
14510 2009-04-06 Kenichi Handa <handa@m17n.org>
14511
14512 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14513
14514 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14515
14516 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14517
14518 * ftfont.c (ftfont_open): Fix checking of the return value of
14519 FT_Load_Char. Fix setting font->underline_thickness.
14520
14521 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
14522
14523 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14524 (Fterminal_parameters, Fterminal_parameter)
14525 (Fset_terminal_parameter): In doc string, refer to terminal
14526 objects rather than terminal ids.
14527
14528 2009-04-04 Eli Zaretskii <eliz@gnu.org>
14529
14530 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14531 ret_lim_data. (Bug#2867)
14532
14533 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
14534
14535 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14536 so they don't get wider than the window, matching 2006-01-23
14537 change to the partner function in xdisp.c (Bug#2800).
14538
14539 2009-04-03 Kenichi Handa <handa@m17n.org>
14540
14541 * print.c (print_object): Make each lowest sub_char_table start a
14542 new line (Bug#2866).
14543
14544 2009-04-02 Kenichi Handa <handa@m17n.org>
14545
14546 * fontset.c (fontset_font): Record no-font when a fontset
14547 explicitly tells not to try another font-specs.
14548
14549 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14550
14551 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14552
14553 2009-03-30 Kenichi Handa <handa@m17n.org>
14554
14555 * fontset.c (fontset_from_font): Specify only registry in a
14556 font-spec for all characters supported by that registry.
14557
14558 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14559 even if HAVE_M17N_FLT is not defined.
14560
14561 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14562
14563 * ftfont.c: Conditionalize prototyping and use of
14564 ftfont_variation_glyphs.
14565
14566 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14567
14568 * frame.c (delete_frame): Work around compiler bug.
14569
14570 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14571 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14572 Some more EMACS_INT.
14573 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14574
14575 * xdisp.c (dump_glyph): Fix typo.
14576
14577 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14578 (adjust_markers_gap_motion, adjust_markers_for_delete)
14579 (adjust_markers_for_insert, adjust_point)
14580 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14581 (make_gap, copy_text, count_size_as_multibyte, insert)
14582 (insert_and_inherit, insert_before_markers)
14583 (insert_before_markers_and_inherit, insert_1)
14584 (count_combining_before, count_combining_after, insert_1_both)
14585 (insert_from_string, insert_from_string_before_markers)
14586 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14587 (insert_from_buffer_1, adjust_after_replace)
14588 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14589 (replace_range_2, del_range, del_range_1, del_range_byte)
14590 (del_range_both, del_range_2, modify_region)
14591 (prepare_to_modify_buffer, signal_before_change)
14592 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14593 for buffer positions and sizes.
14594 * lisp.h: Adjust prototypes accordingly.
14595
14596 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14597 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14598 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14599
14600 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14601
14602 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14603
14604 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14605 lines and columns so we keep the same pixel height and width.
14606
14607 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14608 the property _NET_WM_STATE has changed.
14609 (x_handle_net_wm_state): New function to update frame parameter
14610 fullscreen.
14611 (x_term_init): Initialize atoms for _NET_WM_STATE.
14612
14613 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14614
14615 2009-03-27 Kevin Ryde <user42@zip.com.au>
14616
14617 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14618 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14619 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14620 (Fgpm_mouse_stop): Pass that new parameter.
14621 * termhooks.h (close_gpm): Adjust prototype.
14622
14623 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14624
14625 * lisp.h (Fx_focus_frame): Declare.
14626
14627 * callint.c (Fcall_interactively): For '^' just delegate the work to
14628 handle-shift-selection.
14629 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14630
14631 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
14632
14633 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14634
14635 * data.c (Qinteractive_form): New variable.
14636 (Finteractive_form): Use it.
14637
14638 * eval.c (Fcommandp): Use Qinteractive_form.
14639
14640 2009-03-24 Jason Rumney <jasonr@gnu.org>
14641
14642 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14643 Calculate total size precisely. Decode environment variables
14644 before substituting. (Bug#38)
14645
14646 2009-03-24 Kenichi Handa <handa@m17n.org>
14647
14648 * font.c (find_font_encoding): Return Qnil for unsupported
14649 encoding (Bug#2722).
14650
14651 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14652
14653 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14654 that gdpy is set.
14655
14656 2009-03-22 Alan Mackenzie <acm@muc.de>
14657
14658 * callint.c (Finteractive): Clarify the doc string - even
14659 promptless elements need \n separators.
14660
14661 2009-03-22 Jason Rumney <jasonr@gnu.org>
14662
14663 * w32term.c (syms_of_w32term): Doc fix for
14664 x-use-underline-position-properties.
14665
14666 2009-03-21 Eli Zaretskii <eliz@gnu.org>
14667
14668 * w32.c (getpwuid): Change argument type to unsigned.
14669 (struct w32_id): Change type of `rid' member to unsigned.
14670 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14671 argument ID to unsigned. All callers changed.
14672 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14673
14674 2009-03-20 Eli Zaretskii <eliz@gnu.org>
14675
14676 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14677 negative, produce a float value.
14678
14679 * dired.c (make_uid, make_gid): New functions.
14680 (Ffile_attributes): Use them to avoid negative UID and GID.
14681
14682 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
14683
14684 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14685 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14686 Fix typos in docstrings.
14687
14688 2009-03-19 Kenichi Handa <handa@m17n.org>
14689
14690 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
14691 changed, use font_load_for_lface to get a new font object.
14692 Call free_realized_fontset after handling ASCII font change.
14693
14694 * frame.c (x_set_font): Handle the case that ARG is a cons.
14695
14696 2009-03-19 Glenn Morris <rgm@gnu.org>
14697
14698 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14699
14700 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
14701
14702 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14703
14704 2009-03-19 Kenichi Handa <handa@m17n.org>
14705
14706 * charset.c (load_charset_map_from_file): When a mapfile can't be
14707 loaded, signal an error.
14708
14709 2009-03-18 Eli Zaretskii <eliz@gnu.org>
14710
14711 * dired.c (Ffile_attributes): Make sure UID and GID are always
14712 positive, even if the value is too large for a positive EMACS_INT.
14713 Doc fix.
14714
14715 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14716
14717 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14718
14719 * xmenu.c (xdialog_show): Move Fredisplay call ...
14720 (Fx_popup_dialog): ... here.
14721
14722 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14723
14724 * dired.c (file_name_completion): Disable the first optimization just
14725 installed, since it is not implemented correctly.
14726
14727 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14728
14729 * dired.c (file_name_completion): Check completion-ignored-extensions
14730 only if the entry can affect bestmatch.
14731 Stop the search early, as Ftry_completion already does.
14732
14733 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
14734
14735 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
14736
14737 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
14738
14739 * keyboard.c (parse_menu_item): Don't display remappings as menu
14740 equivalent bindings (Bug#788).
14741
14742 2009-03-15 Jason Rumney <jasonr@gnu.org>
14743
14744 * w32term.h (WM_EMACS_PAINT): New message.
14745 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14746 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14747 before passing to lisp thread. (Bug#950)
14748
14749 2009-03-14 David Reitter <david.reitter@gmail.com>
14750
14751 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14752 variable as it was never reset.
14753 (ns_term_init): Remove initialization of Lisp-settable defaults
14754 and ns_expand_space.
14755 (-setPanelFromDefaultValues): Remove ns_expand_space.
14756 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14757 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
14758 i.e. no additional spacing, similar to Carbon port.
14759
14760 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14761 * nsfns.m (ns-popup-prefs-panel): Remove.
14762
14763 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14764
14765 * sound.c (alsa_configure): Remove call to deprecated
14766 snd_pcm_sw_params_set_xfer_align.
14767
14768 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
14769
14770 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14771 after clicking in a detached tool bar.
14772 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14773
14774 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14775
14776 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14777 int/Lisp_Object mixup).
14778
14779 2009-03-13 Kenichi Handa <handa@m17n.org>
14780
14781 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
14782 Handle NAME nil and t correctly. Callers changed.
14783 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14784 (set_fontset_font): Change ARG to a vector. Handle range_list in
14785 ARG correctly.
14786 (Fset_fontset_font): Fix the case that TARGET is both a script
14787 name and charset name. Adjust the arg to set_fontset_font for
14788 the above change.
14789 (fontset_from_font): Fix previous change.
14790 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
14791 entry. If FONTSET is the default fontset, don't set the extra
14792 slot of the returning char-table.
14793
14794 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
14795
14796 * nsfns.m (Fx_close_connection): Doc fix.
14797 (Fns_do_applescript): Reflow docstring.
14798 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14799 (Fx_display_pixel_width, Fx_display_pixel_height)
14800 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14801 Fix typos in docstrings.
14802 (Fns_set_alpha): Fix typos in error messages.
14803
14804 2009-03-12 David Reitter <david.reitter@gmail.com>
14805
14806 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
14807 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14808 were used for such events.
14809
14810 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14811 (toggleToolbar, performDragOperation, runHelp): Use it.
14812
14813 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
14814 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14815
14816 2009-03-11 Kenichi Handa <handa@m17n.org>
14817
14818 * font.h (font_open_by_spec): Extern it.
14819
14820 * font.c (font_open_by_spec): New function.
14821 (font_open_by_name): Use font_open_by_spec.
14822
14823 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14824 fontset of the frame.
14825
14826 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14827 modify the default font of frames that use this fontset.
14828 (num_auto_fontsets): New variable.
14829 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14830 name. Be sure to set FONTSET_ASCII to the correct font name.
14831 (update_auto_fontset_alist): New function.
14832
14833 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
14834
14835 * makefile.w32-in: Update dependencies.
14836
14837 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14838
14839 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14840
14841 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14842
14843 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14844
14845 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
14846
14847 * lread.c (Feval_buffer): Doc fix.
14848
14849 2009-03-09 Kenichi Handa <handa@m17n.org>
14850
14851 * charset.c (Qfile_name_handler_alist): Extern it.
14852 (load_charset_map_from_file): Temporarily bind
14853 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14854
14855 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
14856
14857 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14858 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
14859
14860 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14861
14862 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14863 (x_set_window_size): Change back to calculated method of setting
14864 toolbar height under Cocoa. (Bug#2546)
14865 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14866 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14867
14868 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14869
14870 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14871 accelerator in parens under GNUstep.
14872
14873 2009-03-06 Kenichi Handa <handa@m17n.org>
14874
14875 These changes are to detect incorrect composition sequence without
14876 looking ahead the source. (Bug#2370)
14877
14878 * coding.h: Include "composite.h".
14879 (enum compisition_state): New enum.
14880 (struct compisition_status): New struct.
14881 (struct iso_2022_spec): New member cmp_status.
14882 (struct emacs_mule_spec): New struct.
14883 (struct coding_system): New members ctext_extended_segment_len and
14884 embedded_utf_8. Change the union member
14885 spec.emacs_mule_full_support to spec.emacs_mule.
14886
14887 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14888 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
14889 (MAX_ANNOTATION_LENGTH): Define to 5.
14890 (ADD_COMPOSITION_DATA): New arg nbytes.
14891 (emacs_mule_char): New arg cmp_status.
14892 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14893 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14894 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14895 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14896 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14897 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14898 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14899 (EMACS_MULE_COMPOSITION_END): New macro.
14900 (emacs_mule_finish_composition): New function.
14901 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14902 (decode_coding_emacs_mule): Avoid long looking ahead while
14903 handling composition.
14904 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14905 (ENCODE_COMPOSITION_RULE): New macro.
14906 (finish_composition): New function.
14907 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14908 (DECODE_COMPOSITION_START): New implementation.
14909 (DECODE_COMPOSITION_END): Likewise.
14910 (STORE_COMPOSITION_RULE): New macro.
14911 (decode_coding_iso_2022): Avoid long looking ahead while handling
14912 composition, CTEXT extended segment, and embedded UTF-8.
14913 (setup_coding_system): For a coding of type iso-2022, reset
14914 CODING_ISO_EXTSEGMENT_LEN (coding) and
14915 CODING_ISO_EMBEDDED_UTF_8 (coding).
14916 (get_translation): Delete arguments last_block, from_nchars,
14917 to_nchars. Callers changed.
14918 (produce_chars): Don't modify charbuf. Adjusted for the change of
14919 get_translation.
14920 (produce_composition): Adjust for the new annotation sequence.
14921 (handle_composition_annotation): Likewise.
14922 (consume_chars): Adjust for the change of get_translation.
14923
14924 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14925
14926 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
14927
14928 2009-03-05 Kenichi Handa <handa@m17n.org>
14929
14930 * font.c (font_select_entity): New function.
14931 (font_find_for_lface): Use font_select_entity to select a font.
14932
14933 * fontset.c (fontset_find_font): If a font found without
14934 restricting to the characters C doesn't support C, try to find a
14935 font with C restriction.
14936
14937 2009-03-04 Nikolaj Schumacher <me@nschum.de>
14938
14939 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
14940
14941 2009-03-04 Jason Rumney <jasonr@gnu.org>
14942
14943 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
14944 characters that have already been read. (Bug#2569)
14945
14946 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14947 Log an error message if check_image_size failed.
14948 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
14949 (gs_load): Mention max-image-size in size error message. (Bug#2560)
14950
14951 2009-03-02 Eli Zaretskii <eliz@gnu.org>
14952
14953 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14954 when decoding process output.
14955
14956 2009-03-01 Richard M Stallman <rms@gnu.org>
14957
14958 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14959
14960 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14961
14962 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14963
14964 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14965 (decode_coding_emacs_mule, decode_coding_iso_2022)
14966 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14967 (decode_coding_raw_text, decode_coding_charset)
14968 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14969 Honor inhibit-eol-conversion. (Bug #2186)
14970
14971 2009-02-28 Jason Rumney <jasonr@gnu.org>
14972
14973 * coding.c (detect_coding_charset): If not checking latin extra,
14974 fail on characters between 0x80 and 0xA0. (Bug#2354)
14975
14976 2009-02-28 Eli Zaretskii <eliz@gnu.org>
14977
14978 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
14979 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
14980
14981 2009-02-27 Glenn Morris <rgm@gnu.org>
14982
14983 * callint.c (Finteractive): Doc fix.
14984
14985 2009-02-27 Kenichi Handa <handa@m17n.org>
14986
14987 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14988
14989 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
14990
14991 * font.c (font_style_to_value): Set value for unknown symbols to
14992 100 instead of 255.
14993 (weight_table, slant_table, width_table): Treat "unspecified" as
14994 the default value.
14995
14996 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
14997
14998 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14999
15000 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
15001
15002 * lread.c (Fload): Stop checking Vloads_in_progress and signal
15003 error as soon as a recursive load is detected.
15004
15005 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15006
15007 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
15008 before caching.
15009
15010 2009-02-24 Kenichi Handa <handa@m17n.org>
15011
15012 * fontset.c (fontset_find_font): Fix the condition for checking
15013 unavailable font.
15014
15015 2009-02-24 Glenn Morris <rgm@gnu.org>
15016
15017 * xfaces.c (Finternal_set_font_selection_order): Remove leading
15018 whitespace that confuses documentation.
15019
15020 2009-02-23 Miles Bader <miles@gnu.org>
15021
15022 * process.c (Flist_system_processes, Fprocess_attributes)
15023 (syms_of_process): Rename `system-process-attributes' to
15024 `process-attributes'.
15025
15026 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
15027
15028 * coding.h (struct coding_system): Make safe_charsets a pointer to
15029 unsigned char.
15030 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
15031 being 255.
15032 (SAFE_CHARSET_P): Likewise.
15033 (setup_iso_safe_charsets): Properly setup safe_charsets.
15034 (Fdefine_coding_system_internal): Likewise.
15035 (setup_coding_system): Likewise. Remove unneeded casts.
15036 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
15037 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
15038 Remove unneeded casts.
15039
15040 * insdel.c (del_range_2): Don't modify gap contents when called
15041 from decode_coding_object. (Bug#1809)
15042
15043 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
15044
15045 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
15046 Qfont_object.
15047 (Ftype_of): Recognize font objects.
15048
15049 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
15050
15051 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
15052 Definitions moved to data.c.
15053
15054 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15055
15056 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15057 async_iconified. Based on a patch by Christian Lynbech
15058 <christian.lynbech@tieto.com>.
15059 (EmacsView-windowDidMiniaturize:): Unset async_visible.
15060
15061 2009-02-20 Glenn Morris <rgm@gnu.org>
15062
15063 * syntax.c (Fskip_chars_forward): Fix doc typo.
15064
15065 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
15066
15067 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
15068
15069 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
15070
15071 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
15072
15073 2009-02-19 Kenichi Handa <handa@m17n.org>
15074
15075 * coding.c (detect_coding): Preserve coding->mode.
15076 Don't overflow coding->carryover. (Bug#2370)
15077
15078 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
15079
15080 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
15081
15082 2009-02-18 Kenichi Handa <handa@m17n.org>
15083
15084 * font.c (font_check_otf_features): Fix handling of `nil' element.
15085 (Ffont_spec): Describe :lang and :otf in the docstring.
15086
15087 2009-02-16 Andreas Schwab <schwab@suse.de>
15088
15089 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15090 string.
15091
15092 2009-02-16 Kenichi Handa <handa@m17n.org>
15093
15094 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
15095 (Bug#1723)
15096
15097 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
15098
15099 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
15100
15101 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15102 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15103
15104 2009-02-14 Eli Zaretskii <eliz@gnu.org>
15105
15106 * msdos.c (MAX_SCREEN_BUF): New macro.
15107 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15108 Encode the entire run of glyphs sharing the same face, instead of
15109 doing that one glyph at a time (fixes a bug with displaying
15110 double-size characters).
15111
15112 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15113
15114 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15115
15116 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15117 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
15118 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
15119
15120 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
15121 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
15122
15123 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15124
15125 * keyboard.c (adjust_point_for_property): Allow stopping between two
15126 invisible areas.
15127
15128 2009-02-12 Jason Rumney <jasonr@gnu.org>
15129
15130 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15131 (add_font_entity_to_list): Call check_face_name even when family
15132 is unspecified.
15133
15134 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15135 Release DC when finished. Use NULL window to refer to desktop.
15136 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
15137
15138 * w32font.c (add_font_entity_to_list): Fix check for substituted
15139 raster fonts. (Bug#2219)
15140
15141 2009-02-12 Kenichi Handa <handa@m17n.org>
15142
15143 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15144 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15145 (autocmp_chars): Use fast_looking_at. Don't compose more
15146 characters than MAX_COMPOSITION_COMPONENTS.
15147 (find_automatic_composition): While looking forward and backward,
15148 check static composition. Fix where to stop looking forward.
15149 (composition_adjust_point): Fix checking of static composition.
15150 (Fcomposition_get_gstring): Pay attention to
15151 MAX_COMPOSITION_COMPONENTS.
15152
15153 * lisp.h (fast_looking_at): Extern it.
15154
15155 * search.c (fast_looking_at): New function.
15156
15157 * term.c (encode_terminal_code): Adjust for the change of
15158 <struct glyph>.u.cmp.to.
15159 (append_composite_glyph): Likewise.
15160
15161 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
15162 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15163 composition.
15164 (append_composite_glyph): Adjust for the change of
15165 <strcut glyph>.u.cmp.to.
15166
15167 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
15168
15169 * casetab.c (init_casetab_once):
15170 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15171 * font.c (font_update_lface):
15172 * fontset.c (Fnew_fontset):
15173 * ftfont.c (ftfont_drive_otf):
15174 * xfont.c (xfont_open):
15175 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15176
15177 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15178
15179 * fileio.c (Fwrite_region): !NILP -> CONSP.
15180
15181 2009-02-10 Andreas Schwab <schwab@suse.de>
15182
15183 * process.c (send_process): Properly relocate pointer into data
15184 when using encoded data. (Bug#2272)
15185
15186 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15187
15188 * coding.c (detect_coding_charset): Fix previous change.
15189
15190 2009-02-08 Jason Rumney <jasonr@gnu.org>
15191
15192 * w32fns.c (w32_hide_hourglass): Handle case where frame
15193 disappeared while hourglass was displayed. (Bug #2193)
15194
15195 2009-02-07 Andreas Schwab <schwab@suse.de>
15196
15197 * unexelf.c (unexec): Fix error message.
15198
15199 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15200
15201 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
15202 when modal window is active. (Bug #2152)
15203 (applicationShouldTerminate:): Remove now-unneeded while loop
15204 around NSRunAlertPanel.
15205
15206 * nsmenu.m (popupSession): New file-global variable.
15207 (pop_down_menu): End the popupSession before closing dialog.
15208 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15209 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15210 don't query NSApp for events (just sleep instead).
15211
15212 2009-02-07 Eli Zaretskii <eliz@gnu.org>
15213
15214 * coding.c (syms_of_coding) <translation-table-for-input>:
15215 Modify doc string to discourage use for character code unification.
15216
15217 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15218
15219 * atimer.c (run_timers): Update pending_atimers.
15220
15221 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
15222
15223 * image.c (svg_load_image): Fix last change.
15224
15225 * xfns.c (Fx_create_frame): Signal an error if no font is
15226 found (Bug#2147).
15227
15228 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
15229
15230 * character.c (syms_of_character) <script-representative-chars>:
15231 Fix typo in docstring.
15232
15233 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15234
15235 * nsmenu.m (pop_down_menu): New function.
15236 (ns_popup_dialog): Call it on unwind.
15237 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15238 call timer_check() (Bug#2154).
15239 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15240 handling_signal is set.
15241 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15242
15243 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
15244
15245 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15246
15247 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15248
15249 * keyboard.c (poll_for_input_1, handle_async_input):
15250 Set handling_signal under HAVE_NS.
15251
15252 2009-02-04 Glenn Morris <rgm@gnu.org>
15253
15254 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15255
15256 2009-02-04 Kenichi Handa <handa@m17n.org>
15257
15258 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15259
15260 * charset.c (Fchar_charset): New optional arg restriction.
15261
15262 * coding.h (coding_system_charset_list): Extern it.
15263
15264 * coding.c (coding_system_charset_list): New function.
15265
15266 * composite.c: Include coding.h and termhooks.h.
15267 (composition_gstring_p): Fix for the terminal case.
15268 (composition_gstring_width): Likewise.
15269 (fill_gstring_body): Likewise.
15270 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15271 the frame.
15272 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15273 is within a composition.
15274 (Fcomposition_get_gstring): Fix the terminal case.
15275
15276 * term.c (encode_terminal_code): Fix handling of composition.
15277 (produce_composite_glyph): For static composition, get pixel_width
15278 from struct composition.
15279
15280 2009-02-02 Andreas Schwab <schwab@suse.de>
15281
15282 * unexelf.c (unexec): Handle unaligned bss offset.
15283
15284 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15285
15286 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15287 XT,w32read_socket changes to ns_read_socket.
15288
15289 * keyboard.c (handle_interrupt): Don't call
15290 quit_throw_to_read_char() under NS.
15291
15292 * blockinput.h: Remove NS-specific code.
15293
15294 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15295
15296 * dispnew.c (window_change_signal): Don't try to get the size of a
15297 suspended tty frame.
15298 * term.c (Fresume_tty): Resize if the size has changed while the
15299 tty was suspended.
15300
15301 * alloc.c (mark_stack): Properly conditionalize previous change.
15302
15303 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15304
15305 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15306 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15307 Remove; this code is not used on Windows.
15308
15309 2009-01-30 Eli Zaretskii <eliz@gnu.org>
15310
15311 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15312 EOLs that also has stray ^M characters.
15313
15314 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
15315
15316 * atimer.c (run_timers, alarm_signal_handler):
15317 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15318 * w32inevt.c (w32_console_read_socket):
15319 * w32term.c (w32_read_socket):
15320 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15321
15322 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
15323
15324 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15325 Initialize it as a relative filename pattern.
15326 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15327 (Fcall_process_region): Simplify temp file creation using
15328 temporary-file-directory.
15329
15330 2009-01-29 Eli Zaretskii <eliz@gnu.org>
15331
15332 * msdos.c: Rename pending_signals to msdos_pending_signals.
15333 (sig_suspender, sigprocmask): Adjust.
15334
15335 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
15336
15337 * keyboard.c (pending_signals): New var.
15338 (poll_for_input, input_available_signal, init_keyboard): Set it.
15339 (process_pending_signals): New function.
15340
15341 * lisp.h (QUIT): Check pending_signals instead of
15342 interrupt_input_pending. Use process_pending_signals.
15343
15344 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
15345
15346 * process.c (wait_reading_process_output): Use process_pending_signals.
15347
15348 * sysdep.c (emacs_write): Use process_pending_signals.
15349
15350 * xterm.c (XTread_socket): Update pending_signals.
15351
15352 * w32term.c (w32_read_socket): Update pending_signals.
15353
15354 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15355
15356 2009-01-29 Kenichi Handa <handa@m17n.org>
15357
15358 * xftfont.c (xftfont_has_char): New function.
15359 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15360
15361 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15362
15363 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15364 under GNUstep.
15365 (ns_query_color): New declaration.
15366
15367 * nsterm.m (ns_confirm_quit): New variable.
15368 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15369 (EmacsApp-applicationShouldTerminate:): Use it.
15370 (EmacsPrefsController): Let user set it.
15371 (ns_query_color): New function.
15372 (ns_defined_color): Use it.
15373 (ns_initialize): Drop.
15374 (ns_term_init): Add two lines from ns_initialize(), and set
15375 input_interrupt_mode to nil.
15376
15377 * image.c (svg_load_image): Don't right-shift background RGB when
15378 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
15379
15380 2009-01-28 Kenichi Handa <handa@m17n.org>
15381
15382 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15383 (fontset_get_font_group): Remember that no font-group is specified
15384 for C.
15385
15386 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
15387
15388 * fns.c (concat): Check for string overflow (bug#1787).
15389
15390 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15391 Quadruple undo limits (bug#1501).
15392
15393 2009-01-27 Kenichi Handa <handa@m17n.org>
15394
15395 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15396 directly use GT_Get_Char_index.
15397
15398 * xftfont.c (struct xftfont_info): New member `index'.
15399
15400 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
15401 (Ffontset_font): Adjust for the change of fontset entry.
15402
15403 2009-01-26 Kenichi Handa <handa@m17n.org>
15404
15405 * fontset.c (fontset_find_font): Fix handling of non-cons return
15406 value of fontset_get_font_group.
15407 (fontset_font): Revert last change.
15408
15409 2009-01-26 Jason Rumney <jasonr@gnu.org>
15410
15411 * w32font.c (w32font_list_internal): Return quickly if registry is
15412 unknown. Simplify final return.
15413 (add_font_entity_to_list): Break complex logic down into more
15414 manageable chunks. Move unknown registry check to
15415 w32font_list_internal.
15416
15417 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15418
15419 Changes to remove Feval calls from GUI under NS.
15420
15421 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15422 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
15423 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15424
15425 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15426 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15427 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15428 instead of NON_ASCII_KEYSTROKE_EVENT.
15429 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15430 (EmacsApp-applicationShouldTerminate:): Query user.
15431 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15432 instead of Feval.
15433
15434 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15435
15436 * keyboard.c (kbd_buffer_get_event): Check for it.
15437 (keys_of_keyboard): Define lispy keys for
15438 ns-put/unput-working-text.
15439
15440 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15441 versions.
15442 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15443
15444 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
15445
15446 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
15447 setting current_buffer directly. (Bug#2044)
15448
15449 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
15450
15451 * fontset.c (fontset_font): If we know there is no font, don't do
15452 any work. (Bug#1952, bug#1990).
15453
15454 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
15455
15456 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15457
15458 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
15459 (ns_no_defaults): New declaration.
15460 (main): Use it.
15461
15462 * nsterm.h (ns_no_defaults): New declaration.
15463
15464 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
15465
15466 * nsterm.m (ns_no_defaults): New variable.
15467 (ns_initialize): Don't read defaults when ns_no_defaults.
15468 (EmacsView-readSelectionFromPasteboard:)
15469 (writeSelectionToPasteboard:types:): New stubbed-out methods for
15470 NSServicesRequests protocol. (Bug#1435)
15471 (ns_dumpglyphs_stretch): New function.
15472 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
15473 of 2008-11-15 to other terms. (Bug#615)
15474
15475 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15476
15477 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15478
15479 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15480 call for Sparc64.
15481
15482 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15483
15484 * nsfns.m:
15485 * nsgui.h:
15486 * nsmenu.m:
15487 * nsselect.m:
15488 * nsterm.h:
15489 * nsterm.m: Remove '23' comments that indicated code added during
15490 update from emacs-20 -> emacs-23.
15491
15492 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15493
15494 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
15495 ns_alternate_modifier. (Bug#1217)
15496
15497 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15498 Display all shortcuts, including those w/o super modifier.
15499
15500 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15501
15502 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
15503
15504 * fileio.c (Vwrite_region_post_annotation_function)
15505 (Vwrite_region_annotation_buffers): New vars.
15506 (build_annotations_unwind): Just reset
15507 Vwrite_region_annotation_buffers.
15508 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15509 Call write-region-post-annotation-function.
15510 (build_annotations): Add to Vwrite_region_annotation_buffers if
15511 buffer changes.
15512
15513 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15514
15515 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15516 Tiger.
15517 * nsfns.m (ns_do_applescript):
15518 Conditionalize typeUTF16ExternalRepresentation on Tiger.
15519
15520 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15521
15522 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15523
15524 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15525
15526 * nsmenu.m (NSMENUPROFILE): Change #if style.
15527
15528 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15529
15530 * nsterm.m (x_set_frame_alpha): Add prototype.
15531 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15532 handle Ctrl-tab. (Bug#1841)
15533 (ns_get_color): Use unsigned long long for scanned hex string value.
15534 (ns_term_shutdown): Abort on non SIGTERM signals.
15535 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
15536 (EmacsPrefsController-setPanelFromDefaultValues): New function.
15537 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
15538 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
15539 (ns_defined_color): Fix settings of the XColor variable fields:
15540 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
15541
15542 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
15543 DPI. (Bug#1316)
15544 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15545 values in onTiger section.
15546
15547 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
15548
15549 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15550 Check return value of font_spec_from_name.
15551 (Fx_list_fonts): Doc fix. (Bug#1951)
15552
15553 * font.c (font_spec_from_name): Return Qnil if font name could not
15554 be parsed.
15555 (font_parse_name): Treat a `?' character as part of an XLFD.
15556
15557 * fns.c (Fsubstring): Doc fix.
15558
15559 2009-01-19 Kenichi Handa <handa@m17n.org>
15560
15561 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
15562 (ftfont_list): Likewise.
15563
15564 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
15565
15566 * dbusbind.c (Fdbus_register_signal):
15567 * process.c (conv_sockaddr_to_lisp):
15568 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15569
15570 * callproc.c (Fgetenv_internal): Doc fix.
15571
15572 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
15573
15574 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15575 it is not even used.
15576
15577 2009-01-16 Glenn Morris <rgm@gnu.org>
15578
15579 * font.c (Ffont_variation_glyphs): Silence compiler.
15580
15581 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
15582
15583 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15584 Reported by David Robinow <drobinow@gmail.com>.
15585
15586 2009-01-15 Kenichi Handa <handa@m17n.org>
15587
15588 * coding.c (detect_coding_system): Fix handling of null_byte_found.
15589
15590 2009-01-14 Jason Rumney <jasonr@gnu.org>
15591
15592 * frame.c (x_set_font): Always store a font to the font parameter,
15593 never a fontset. (Bug#1562)
15594
15595 2009-01-14 Kenichi Handa <handa@m17n.org>
15596
15597 * coding.c (TWO_MORE_BYTES): New macro.
15598 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
15599
15600 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
15601
15602 * font.c (font_clear_prop): If clearing the family, clear the font
15603 width index too.
15604
15605 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
15606
15607 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
15608
15609 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15610 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15611 functions, use sizeof.
15612
15613 2009-01-12 Martin Rudalics <rudalics@gmx.at>
15614
15615 * keyboard.c (read_char): Fix case where last_nonmenu_event
15616 returned a bad value with submenus. (Bug#447)
15617
15618 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
15619
15620 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15621 family, clear the font width index too.
15622
15623 2009-01-11 Jason Rumney <jasonr@gnu.org>
15624
15625 * keyboard.c (cmd_error_internal): Exit when errors occur before
15626 frame creation and not in daemon mode. (Bug#1836)
15627
15628 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
15629
15630 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15631 of a display vector, backtrack.
15632 (try_window_reusing_current_matrix): Check glyph type before
15633 referencing charpos member.
15634
15635 2009-01-10 Eli Zaretskii <eliz@gnu.org>
15636
15637 Fix Bug #876:
15638
15639 * coding.c (inhibit_null_byte_detection): New variable.
15640 (detect_coding, detect_coding_system): Don't pay attention to null
15641 bytes if inhibit_null_byte_detection is non-zero.
15642 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
15643 <inhibit-iso-escape-detection>: Doc fix.
15644
15645 2009-01-09 Jason Rumney <jasonr@gnu.org>
15646
15647 * w32font.c (add_font_entity_to_list): Don't report unknown
15648 Windows charset as any unrecognized registry. (Bug#1548)
15649 Only report Unicode Plane 2 fonts as unicode-sip.
15650
15651 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
15652
15653 * xfaces.c (Fx_font_family_list): Delete function.
15654 Move compatibility version to faces.el.
15655
15656 * font.c (Ffont_family_list): Return a list of strings, not symbols.
15657
15658 2009-01-09 Martin Rudalics <rudalics@gmx.at>
15659
15660 * frame.c (x_set_frame_parameters): Remember requested value for
15661 fullscreen before it's reset by the parameter handler.
15662
15663 2009-01-09 Glenn Morris <rgm@gnu.org>
15664
15665 * keyboard.c (last_command_char): For clarity, rename to...
15666 (last_command_event): ... and update all users.
15667 (last_input_char): For clarity, rename to...
15668 (last_input_event): ... and update all users.
15669 (last-command-char, last-input-char): Move to subr.el as aliases.
15670 * cmds.c, commands.h: Update for last_command_char rename.
15671
15672 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
15673
15674 * font.c (font_open_for_lface): Handle unspecified height attribute.
15675
15676 2009-01-08 Jason Rumney <jasonr@gnu.org>
15677
15678 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15679 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15680 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15681 Don't declare.
15682 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
15683 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15684
15685 2009-01-07 Kenichi Handa <handa@m17n.org>
15686
15687 * fileio.c (Finsert_file_contents): In the case of replace,
15688 remember the coding system used for decoding in
15689 coding_system (Bug#1039).
15690
15691 * coding.c (decode_coding_utf_8): Check byte_after_cr before
15692 breaking the loop. (Bug#870)
15693 (decode_coding_utf_16, decode_coding_emacs_mule)
15694 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15695 (decode_coding_charset): Likewise.
15696
15697 2009-01-05 Martin Rudalics <rudalics@gmx.at>
15698
15699 * frame.c (x_set_frame_parameters): Make sure height (width) get
15700 applied when fullwidth (fullheight) is set. (Bug#1522)
15701
15702 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
15703
15704 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15705 (utc_base): Declare as ULONGLONG, not long double.
15706 (convert_time_raw): Delete.
15707 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15708 (initialize_utc_base): New function.
15709 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15710 (convert_from_time_t): Use initialize_utc_base; compute result with
15711 64-bit arithmetic.
15712 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15713
15714 2009-01-03 Eli Zaretskii <eliz@gnu.org>
15715
15716 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
15717 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15718 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15719 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15720 [!subprocesses]: Define.
15721 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15722 (Flist_system_processes, Fsystem_process_attributes)
15723 [!subprocesses]: Call list_system_processes and
15724 system_process_attributes instead of returning Qnil.
15725
15726 * dosfns.c (system_process_attributes, list_system_processes):
15727 New functions.
15728
15729 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15730
15731 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15732 Don't use the default (no-op) implementation.
15733
15734 2009-01-03 Jason Rumney <jasonr@gnu.org>
15735
15736 * keyboard.c (parse_modifiers_uncached): Wheel events are
15737 clicks (bug#687).
15738
15739 * w32term.c (x_query_colors, x_query_color): New functions.
15740
15741 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15742 (svg_load_image): Cast returned pointers from dynamically loaded
15743 functions. Eliminate W32 specific code.
15744
15745 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15746
15747 * nsfns.m (x_set_foreground_color, x_set_background_color)
15748 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15749 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15750 x_ prefix instead of ns_. Update references.
15751 (syms_of_nsfns): Add a FIXME comment.
15752
15753 * nsterm.m (x_set_cursor_type): New prototype.
15754 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15755
15756 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15757 for Solaris instead of incorrectly providing Qutime and Qcutime.
15758
15759 2009-01-02 Eli Zaretskii <eliz@gnu.org>
15760
15761 * w32.c (process_times): Compute sum of utime and stime.
15762 (system_process_attributes): Add Qtime to the alist.
15763
15764 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15765 and add them to the alist.
15766
15767 * process.c (top level) <Qtime, Qctime>: New variables.
15768 (syms_of_process): staticpro them.
15769 (Fsystem_process_attributes): Add their documentation to the doc
15770 string.
15771
15772 * process.h: Declare Qtime and Qctime.
15773
15774 2009-01-02 Jason Rumney <jasonr@gnu.org>
15775
15776 * image.c (Qgobject): New symbol.
15777 (syms_of_image): Initialize it.
15778 (init_svg_functions): Load some functions from gobject library.
15779
15780 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15781
15782 * frame.c (make_terminal_frame): Remove redundant code and useless
15783 block.
15784
15785 2009-01-01 Andreas Schwab <schwab@suse.de>
15786
15787 * process.c (conv_sockaddr_to_lisp): Add workaround for
15788 getsockname bug on BSD.
15789
15790 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
15791
15792 * xfns.c (x_create_tip_frame): Set border width of the X window.
15793
15794 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
15795
15796 2009-01-01 Jason Rumney <jasonr@gnu.org>
15797
15798 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
15799 Don't block input, as per earlier xterm.c changes.
15800
15801 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15802
15803 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15804 (ns_appkit_version_int): New function.
15805 (x-server-version): Use ns_appkit_version_int and follow 21+
15806 convention of returning 3 integers.
15807
15808 2008-12-30 Kenichi Handa <handa@m17n.org>
15809
15810 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15811 (CHAR_SURROGATE_PAIR_P): New macro.
15812
15813 * font.h (struct font_driver): New member get_variation_glyphs.
15814
15815 * font.c (font_range): Don't require a font for a variation selector.
15816 (Ffont_variation_glyphs): New function.
15817 (syms_of_font): Defsubr it.
15818
15819 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15820 ftfont_variation_glyphs.
15821 (setup_otf_gstring): New function.
15822 (ftfont_drive_otf): Use it.
15823 (ftfont_shape_by_flt): Handle variation selector.
15824 (ftfont_variation_glyphs): New function.
15825
15826 2008-12-30 Martin Rudalics <rudalics@gmx.at>
15827
15828 * frame.c (Vemacs_iconified): Remove.
15829
15830 2008-12-30 Jason Rumney <jasonr@gnu.org>
15831
15832 * frame.c (store_frame_param, x_get_arg): Enable newer code on
15833 WINDOWSNT too, as related changes have already been synced. (Bug#117)
15834
15835 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
15836
15837 * indent.c (Fvertical_motion): Don't advance iterator if we have
15838 reseated to the desired position.
15839
15840 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15841 checking for pos match.
15842
15843 2008-12-30 Kenichi Handa <handa@m17n.org>
15844
15845 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15846 just get the low 8-bit of the code.
15847
15848 * font.c (font_intern_prop): Validate str as multibyte.
15849
15850 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15851
15852 * dispextern.h (struct face): Move lface and hash from the middle
15853 of bitfields.
15854
15855 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15856
15857 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15858
15859 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15860 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15861 instead of intervals.h.
15862
15863 2008-12-26 Andreas Schwab <schwab@suse.de>
15864
15865 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15866 cons.
15867
15868 2008-12-26 Martin Rudalics <rudalics@gmx.at>
15869
15870 * textprop.c (Qminibuffer_prompt): New variable.
15871 (syms_of_textprop): Initialize it.
15872 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15873 in minibuffer-prompt face. (Bug#1662)
15874
15875 2008-12-25 Jason Rumney <jasonr@gnu.org>
15876
15877 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15878
15879 2008-12-24 Jason Rumney <jasonr@gnu.org>
15880
15881 * ralloc.c (r_alloc_reset_variable): New function.
15882
15883 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
15884 record of what points where. (Bug#716)
15885
15886 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15887
15888 * minibuf.c (read_minibuf): Follow the non-interactive case when
15889 running as a daemon, before detaching.
15890
15891 2008-12-22 Andreas Schwab <schwab@suse.de>
15892
15893 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15894 * gtkutil.c (free_widget_value): Use xfree instead of free.
15895
15896 2008-12-22 Martin Rudalics <rudalics@gmx.at>
15897
15898 * frame.c (delete_frame): New function derived from
15899 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15900 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15901 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15902 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15903 * frame.h: Extern delete_frame.
15904 * window.c (window_loop):
15905 * terminal.c (delete_terminal):
15906 * xterm.c (x_connection_closed):
15907 * xfns.c (Fx_hide_tip):
15908 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
15909
15910 2008-12-21 Jason Rumney <jasonr@gnu.org>
15911
15912 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15913 when character maps to .notdef character.
15914
15915 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15916
15917 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15918
15919 2008-12-20 Jason Rumney <jasonr@gnu.org>
15920
15921 * frame.c (Fmake_terminal_frame): Raise an error when called from
15922 a graphical frame on Windows. (Bug#1325)
15923
15924 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15925
15926 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15927
15928 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
15929
15930 * minibuf.c (Fread_buffer): Doc fix.
15931
15932 2008-12-20 Jason Rumney <jasonr@gnu.org>
15933
15934 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
15935 server name in UNC paths. (Bug#719)
15936
15937 * coding.c (decode_coding): Clear chars_at_source flag when using
15938 charbuf. (Bug#1035)
15939
15940 2008-12-19 Daniel Engeler <engeler@gmail.com>
15941
15942 * sysdep.c (serial_configure): Fix typo.
15943
15944 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15945
15946 * sysdep.c: Include alloca.h.
15947 (system_process_attributes): Add implementation for Solaris.
15948
15949 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
15950
15951 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15952
15953 Reorganize implementation of Flist_system_processes and
15954 Fsystem_process_attributes. No functional changes.
15955 * process.c: Don't #include pwd.h, grp.h and limits.h.
15956 (Flist_system_processes): Just call list_system_processes.
15957 (Fsystem_process_attributes): Just call system_process_attributes.
15958 (procfs_list_system_processes, time_from_jiffies)
15959 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15960 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15961
15962 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15963 (list_system_processes): Rename from
15964 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15965 Provide a do nothing implementation.
15966 (system_process_attributes): Rename from
15967 procfs_list_system_processes.
15968 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15969 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
15970
15971 * w32.c (list_system_processes): Rename from
15972 w32_list_system_processes.
15973 (system_process_attributes): Rename from
15974 w32_system_process_attributes.
15975
15976 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15977
15978 * process.h (w32_list_system_processes)
15979 (w32_system_process_attributes): Remove.
15980 (list_system_processes, system_process_attributes):
15981 New prototypes.
15982
15983 2008-12-19 Kenichi Handa <handa@m17n.org>
15984
15985 * xfont.c (xfont_decode_coding_xlfd): New function.
15986 (xfont_encode_coding_xlfd): New function.
15987 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15988 (xfont_list): Decode and encode XLFD by iso-8859-1.
15989 (xfont_match): Likewise.
15990 (xfont_list_family): Likewise.
15991 (xfont_open): Likewise.
15992
15993 * ftfont.c (ftfont_open): Generate a multibyte string if given
15994 names are utf-8.
15995
15996 * xftfont.c (xftfont_open): Generate a multibyte string if given
15997 names are utf-8.
15998
15999 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
16000
16001 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
16002 changed.
16003 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
16004 clicked on a detached tool bar button.
16005
16006 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
16007
16008 * emacs.c (main): Print and error and exit when no data is read
16009 from the pipe.
16010
16011 2008-12-17 Jason Rumney <jasonr@gnu.org>
16012
16013 * w32font.c (w32font_has_char): Always return -1.
16014
16015 2008-12-16 Kenichi Handa <handa@m17n.org>
16016
16017 * font.c (font_open_entity): Fix previous change.
16018
16019 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
16020
16021 * process.c: Include <limits.h>.
16022
16023 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
16024
16025 * font.c (font_update_drivers): Fix mistake in reconstructing the
16026 driver list.
16027
16028 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
16029
16030 * font.c (font_clear_cache): Fix format of font cache data.
16031
16032 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
16033
16034 * xftfont.c (xftfont_open): Free Xft font pattern if
16035 XftFontOpenPattern fails.
16036
16037 * xterm.c (x_free_frame_resources): Remove extraneous call to
16038 free_frame_faces.
16039
16040 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16041
16042 * xterm.c (x_delete_display): Move xim_close_dpy call to
16043 x_delete_terminal.
16044 (x_delete_terminal): Call xim_close_dpy.
16045
16046 2008-12-13 Jason Rumney <jasonr@gnu.org>
16047
16048 * w32font.c (intern_font_name): New function.
16049 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
16050 (w32font_open_internal, Fx_select_font): Decode font name.
16051 (fill_in_logfont, list_all_matching_fonts): Encode font name.
16052
16053 * w32font.h (intern_font_name): Declare new function.
16054
16055 * w32uniscribe.c (add_opentype_font_name_to_list):
16056 Use intern_font_name.
16057
16058 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16059
16060 * frame.c (Fdelete_frame): Call free_font_driver_list.
16061
16062 * font.c (free_font_driver_list): Implement missing function.
16063
16064 * w32term.c (w32_term_init): Don't initialize the image cache
16065 here; it will be done in init_frame_faces.
16066
16067 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
16068 (struct x_display_info): Remove unused member null_pixel.
16069 New member xim_callback_data.
16070
16071 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
16072 (xim_initialize): Save pointer to callback function data.
16073 (xim_close_dpy): Free callback function data. Call XCloseIM,
16074 reverting 2008-11-04 change by David Smith.
16075 (x_term_init): Don't initialize the image cache here; it will be
16076 done in init_frame_faces. Remove ancient "null_pixel" cruft.
16077 (x_delete_display): Free x_dnd_atoms member.
16078
16079 2008-12-13 Kenichi Handa <handa@m17n.org>
16080
16081 * font.c (font_rescale_ratio): Move from xfaces.c.
16082 Argument type changed. Handle a font-spec too.
16083 (font_score): Check Vface_font_rescale_alist.
16084 (font_open_entity): Likewise. (Bug#1547)
16085
16086 * xfaces.c (font_rescale_ratio): Move to font.c.
16087
16088 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
16089
16090 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16091
16092 2008-12-12 Jason Rumney <jasonr@gnu.org>
16093
16094 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16095 Set Vwindow_system_version to the real w32 major version.
16096
16097 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16098
16099 * term.c (init_tty): Move setting the terminal name before the
16100 potential user: maybe_fatal.
16101
16102 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
16103
16104 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
16105 all callers changed. Call free_frame_faces to free the face cache.
16106
16107 2008-12-11 Jason Rumney <jasonr@gnu.org>
16108
16109 * w32font.c (fill_in_logfont): Don't assume symbol script means
16110 SYMBOL_CHARSET. (Bug#547)
16111
16112 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
16113 size for surrogates. (Bug#1096, bug#872)
16114
16115 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16116
16117 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16118
16119 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16120
16121 * process.c (Fsystem_process_attributes, syms_of_process):
16122 Fix typo in name of Ssystem_process_attributes.
16123 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16124
16125 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
16126
16127 * syntax.c (Fmodify_syntax_entry): Doc fix.
16128
16129 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16130
16131 * font.c (Ffont_spec): Move usage to end of docstring.
16132
16133 2008-12-10 Jason Rumney <jasonr@gnu.org>
16134
16135 * w32font.c (Qcham): New symbol.
16136 (font_supported_scripts): Add cham, and comments for other new
16137 scripts in bitfield from OpenType spec.
16138 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16139 contain characters beyond the bmp.
16140
16141 2008-12-10 Kenichi Handa <handa@m17n.org>
16142
16143 * ftfont.c (fc_charset_table): Add "unicode-sip".
16144 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
16145 Qunicode_sip.
16146
16147 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
16148
16149 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16150 (Fcoding_system_put): Use QCdefault_char.
16151 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16152
16153 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
16154
16155 * xftfont.c (syms_of_xftfont): Fix typo.
16156
16157 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
16158
16159 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16160
16161 * emacs.c (main): Close daemon_pipe on exec.
16162
16163 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
16164
16165 * termchar.h (struct tty): New members termcap_term_buffer and
16166 termcap_strings_buffer.
16167
16168 * term.c (encode_terminal_code): Free any previous memory blocks
16169 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
16170 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16171 All callers changed.
16172 (init_tty): Store termcap data and string buffers in new struct
16173 tty members termcap_term_buffer and termcap_strings_buffer.
16174 (delete_tty): Free them.
16175 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
16176
16177 2008-12-07 Seiji Zenitani <zenitani@mac.com>
16178
16179 * nsfns.m (ns_set_background_color): Remove code duplication.
16180 It was a substitute for face-transparency on OS X 10.3.
16181
16182 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
16183
16184 * coding.c (make_conversion_work_buffer): Disable buffer
16185 modification hooks in the work buffer.
16186
16187 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16188
16189 * process.c (procfs_system_process_attributes): If `nread' has a
16190 negative value, assign zero to it.
16191
16192 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
16193
16194 * eval.c (Vdebug_on_error): Doc fix.
16195
16196 2008-12-05 Kenichi Handa <handa@m17n.org>
16197
16198 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16199 second character is a combining character.
16200
16201 2008-12-05 Eli Zaretskii <eliz@gnu.org>
16202
16203 * process.c (procfs_system_process_attributes): Don't use cmd,
16204 cmdsize, and q without initializing them first.
16205
16206 2008-12-04 Jason Rumney <jasonr@gnu.org>
16207
16208 * w32font.c (w32font_draw): Initialize orig_clip before getting
16209 it, and delete it when finished.
16210
16211 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16212
16213 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16214 case when running as a daemon before detaching.
16215
16216 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
16217
16218 * w32.c (init_environment): Don't unload library shell32.dll.
16219
16220 2008-12-03 Kenichi Handa <handa@m17n.org>
16221
16222 * font.c (font_at): Set `multibyte' at first.
16223
16224 * coding.c (decode_coding_charset): Check type of an element of
16225 vector VALIDS.
16226 (encode_coding_emacs_mule): Be sure to set `code'.
16227
16228 * fontset.c (face_for_char): Handle invalid charset property correctly.
16229 (font_for_char): Likewise.
16230
16231 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
16232
16233 * font.c (Fopen_font): Compute pixel size correctly.
16234 (font_update_lface): Handle fonts with corrupted size specs,
16235 i.e. non-int and non-float.
16236
16237 * ftfont.c (ftfont_match): Initialize entity variable.
16238 (ftfont_resolve_generic_family): Avoid using uninitialized var.
16239 (ftfont_list_family): Initialize list var earlier.
16240
16241 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16242
16243 * xterm.c (x_draw_glyph_string): Fall back on
16244 underline_minimum_offset for underline position.
16245
16246 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16247
16248 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16249
16250 * character.c (c_string_width): Specify the type for LEN.
16251
16252 2008-12-03 Kenichi Handa <handa@m17n.org>
16253
16254 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
16255 (decode_coding_utf_8): Likewise.
16256 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
16257 (produce_chars): Initialize consumed_chars to 0.
16258
16259 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16260
16261 * keyboard.c (make_lispy_position): Only use PT if the selected
16262 window is current.
16263
16264 2008-12-02 Andreas Schwab <schwab@suse.de>
16265
16266 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16267
16268 * doprnt.c (doprnt1): Fix size of charbuf.
16269
16270 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
16271
16272 * keyboard.c (timer_check): Revert last change.
16273
16274 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
16275
16276 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16277
16278 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
16279
16280 * makefile.w32-in: Update dependencies.
16281 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16282
16283 2008-12-01 Andreas Schwab <schwab@suse.de>
16284
16285 * font.c (register_font_driver): Use xmalloc.
16286 (font_put_frame_data): Likewise.
16287
16288 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
16289
16290 * xfaces.c (realize_x_face): Make abort condition clearer.
16291
16292 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16293
16294 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
16295
16296 * keyboard.c (timer_check): After a timer runs, ensure that the
16297 selected window's buffer is current.
16298
16299 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
16300
16301 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16302 It was accidentally restored by the Unicode merge.
16303
16304 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16305
16306 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
16307
16308 * w32proc.c: Include "coding.h".
16309 (Fw32_short_file_name): Encode filename passed to Windows API.
16310 (Fw32_long_file_name): Encode filename passed to Windows API and
16311 decode back the result. (Bug#1433)
16312
16313 2008-11-29 Kenichi Handa <handa@m17n.org>
16314
16315 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16316 not before accessing it.
16317
16318 * charset.c (Fdefine_charset_internal): After calculating
16319 min_char, max_char, and fastmap, copy the charset structure again.
16320 (encode_char): Fix the previous change.
16321
16322 2008-11-28 Seiji Zenitani <zenitani@mac.com>
16323
16324 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16325
16326 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16327
16328 * nsterm.m (x_set_frame_alpha): New function.
16329
16330 2008-11-27 Eli Zaretskii <eliz@gnu.org>
16331
16332 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16333
16334 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
16335
16336 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16337 pointer to check_face_name.
16338
16339 2008-11-27 Kenichi Handa <handa@m17n.org>
16340
16341 * category.h (SET_CATEGORY_SET): Call set_category_set.
16342 (set_category_set): Extern it.
16343
16344 * category.c (hash_get_category_set): New function.
16345 (Fmodify_category_entry): Adjust for the change of
16346 char_table_ref_and_range. Call hash_get_category_set to get a
16347 category set to store in the table.
16348
16349 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16350 Funify_charset.
16351
16352 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
16353 (DECODE_CHAR): Check if the decoder vector is ready.
16354 (ENCODE_CHAR): Check if the encoder char-table is ready.
16355 (maybe_unify_char): Extern it.
16356
16357 * charset.c (Vchar_unified_charset_table): Delete it.
16358 (inhibit_load_charset_map): New variable.
16359 (temp_charset_work): New variable.
16360 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16361 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16362 New macros.
16363 (load_charset_map): Meaning of control_flag changed.
16364 If inhibit_load_charset_map is nonzero, setup a table in
16365 temp_charset_work.
16366 (load_charset): New argument control_flag.
16367 (map_charset_for_dump): New function.
16368 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16369 map_charset_for_dump.
16370 (Fdefine_charset_internal): If the charset method is MAP, load
16371 mapping tables by calling load_charset.
16372 (Funify_charset): Don't load a mapping table but directly set
16373 Vchar_unify_table.
16374 (maybe_unify_char): New function.
16375 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16376 Handle the case of inhibit_load_charset_map being nonzero.
16377 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16378 Handle the case of inhibit_load_charset_map being nonzero.
16379 (Fclear_charset_maps): Just free temp_charset_work.
16380 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16381 variable.
16382
16383 * chartab.c (sub_char_table_ref_and_range): Adjust for the
16384 change of char_table_ref_and_range.
16385 (char_table_ref_and_range): Change the meaning of argument FROM
16386 and TO. Now the caller must provide initial values for *FROM
16387 and *TO.
16388
16389 * fontset.c (fontset_add): Adjust for the change of
16390 char_table_ref_and_range.
16391 (fontset_get_font_group): Likewise.
16392 (Ffontset_info): Likewise.
16393
16394 * keymap.c (describe_vector): Adjust for the change of
16395 char_table_ref_and_range. For char-table, put boundary between
16396 non-ASCII and 8-bit characters.
16397
16398 * print.c (print_object): For bool-vector, delete unnecessary
16399 check of ASCII_BYTE_P.
16400
16401 2008-11-26 Jason Rumney <jasonr@gnu.org>
16402
16403 * w32font.c (w32font_open_internal): Don't include external
16404 leading in font height. (Bug#879)
16405
16406 2008-11-26 Glenn Morris <rgm@gnu.org>
16407
16408 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16409 redefinition with ifdef. (Bug#1383)
16410
16411 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16412
16413 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16414
16415 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
16416
16417 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16418 New EmacsView methods.
16419 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16420 Fixes bug #1048,1357,1414.
16421
16422 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16423
16424 Fix bug #1362.
16425 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16426 is not an indexed color.
16427 * nsterm.m (free_indexed_color): Add argument checking.
16428 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16429
16430 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
16431
16432 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16433 Document confirm-after-completion value for
16434 minibuffer-completion-confirm.
16435
16436 2008-11-24 Jason Rumney <jasonr@gnu.org>
16437
16438 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16439 warning.
16440
16441 2008-11-23 Jason Rumney <jasonr@gnu.org>
16442
16443 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16444 restored before returning.
16445
16446 * w32font.c (check_face_name): New function.
16447 (add_font_entity_to_list): Use it to filter out common substituted
16448 fonts. (Bug#642)
16449
16450 2008-11-22 Martin Rudalics <rudalics@gmx.at>
16451
16452 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16453 confirm-nonexistent-file-or-buffer in doc-string.
16454
16455 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16456
16457 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16458 Fix copy/paste typo. Add checks.
16459
16460 2008-11-21 Kenichi Handa <handa@m17n.org>
16461
16462 * coding.c (detect_coding_iso_2022): Reject invalid composition
16463 sequence.
16464 (DECODE_COMPOSITION_START): If the current source is the last
16465 block, and the current composition doesn't end, regard this
16466 sequence as invalid.
16467 (decode_coding_iso_2022): Handle invalid composition sequence.
16468
16469 2008-11-20 Martin Rudalics <rudalics@gmx.at>
16470
16471 * window.c (coordinates_in_window): Don't return
16472 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16473 line when the window is not the rightmost one. (Bug#1372)
16474
16475 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16476
16477 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16478
16479 2008-11-15 Eli Zaretskii <eliz@gnu.org>
16480
16481 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16482 and bright_bg if noninteractive is non-zero.
16483
16484 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16485
16486 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16487 x_draw_glyph_string_background.
16488
16489 * w32term.c (x_draw_glyph_string): Likewise.
16490
16491 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
16492
16493 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16494 the next glyph string once past the overhang width.
16495
16496 * nsterm.m (ns_draw_glyph_string): Likewise.
16497
16498 * w32term.c (x_draw_glyph_string): Likewise.
16499
16500 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16501
16502 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16503 double file close.
16504
16505 2008-11-14 Martin Rudalics <rudalics@gmx.at>
16506
16507 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16508 dedicated status of window before attempting to display another
16509 buffer in it.
16510
16511 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
16512
16513 * msdos.c (Fmsdos_long_file_names):
16514 (syms_of_msdos) <dos-unsupported-char-glyph>:
16515 * dosfns.c (Fint86): Fix typos in docstrings.
16516
16517 2008-11-14 Eli Zaretskii <eliz@gnu.org>
16518
16519 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16520
16521 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16522
16523 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16524
16525 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16526
16527 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16528
16529 * frame.h: Negative alpha means "don't touch".
16530
16531 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16532
16533 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16534
16535 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16536
16537 * hftctl.c:
16538 * chpdef.h:
16539 * acldef.h: Remove files used only for systems no longer supported.
16540
16541 * Makefile.in: Fix .o alphabetical ordering.
16542 (hftctl.o): Remove dependency, file removed.
16543 (keymap.o, print.o): Depend on charset.h.
16544
16545 2008-11-10 Kenichi Handa <handa@m17n.org>
16546
16547 * character.c (Fget_byte): Fix and make it faster for unibyte target.
16548
16549 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
16550
16551 * dired.c (file_name_completion): If completion_ignore_case is
16552 enabled, ignore case when checking completion-regexp-list.
16553
16554 2008-11-08 Eli Zaretskii <eliz@gnu.org>
16555
16556 * vm-limit.c (get_lim_data): Fix last change.
16557
16558 2008-11-08 Kenichi Handa <handa@m17n.org>
16559
16560 * character.c (Fget_byte): New function.
16561 (syms_of_character): Defsubr Fget_byte.
16562
16563 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
16564
16565 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16566 cursor position is valid after scrolling.
16567
16568 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
16569
16570 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16571
16572 2008-11-06 Glenn Morris <rgm@gnu.org>
16573
16574 * xterm.c (handle_one_xevent): Don't let popup menus cause
16575 mouse-autoselect-window related window switching. (Bug#1261)
16576
16577 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16578
16579 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16580
16581 2008-11-04 Andreas Schwab <schwab@suse.de>
16582
16583 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16584
16585 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
16586
16587 * xfns.c (Fx_wm_set_size_hint): New function.
16588
16589 2008-11-03 Martin Rudalics <rudalics@gmx.at>
16590
16591 * textprop.c (Fprevious_single_char_property_change): Return 0
16592 when there's no change in a string. (Bug#1301)
16593
16594 2008-11-02 Martin Rudalics <rudalics@gmx.at>
16595
16596 * frame.c (do_switch_frame): New argument NORECORD passed to
16597 Fselect_window.
16598 (Fselect_frame): New argument NORECORD passed to
16599 do_switch_frame.
16600 (Fset_frame_selected_window): New argument NORECORD passed to
16601 Fselect_frame.
16602 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16603 in call of do_switch_frame.
16604 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16605 Handle NORECORD argument in call of Fselect_frame.
16606 * lisp.h (do_switch_frame, Fselect_frame)
16607 (Fset_frame_selected_window): Adjust declarations.
16608 * window.c (select_frame_norecord): New function.
16609 (run_window_configuration_change_hook): Use it and call
16610 Fselect_frame with NORECORD set.
16611 (Fselect_window): Pass NORECORD to Fselect_frame.
16612 (Fset_window_configuration): Handle NORECORD argument in call of
16613 do_switch_frame.
16614 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16615 Fset_frame_selected_window.
16616 * keyboard.c (command_loop_1): Handle NORECORD in call of
16617 Fselect_frame (currently ifdefd).
16618
16619 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16620
16621 * emacs.c (USAGE2): Untabify.
16622
16623 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16624
16625 * composite.c (fill_gstring_header): Fix copy/paste typo.
16626
16627 2008-10-31 Martin Rudalics <rudalics@gmx.at>
16628
16629 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16630 (Fother_window): Rename argument and rewrite doc-string.
16631 (select_window_norecord): Fix return value. (Bug#1276)
16632
16633 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
16634
16635 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16636 new frames overriding foreground for tooltips. Based on similar patch
16637 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16638
16639 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
16640
16641 * emacs.c (Fdaemon_initialized): Initialize nfd.
16642
16643 2008-10-29 Martin Rudalics <rudalics@gmx.at>
16644
16645 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16646 (Fwindow_text_height): Clarify doc-strings.
16647 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16648 doc-string of window-scroll-functions.
16649
16650 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16651
16652 * category.c (syms_of_category): Fix typo in docstring.
16653
16654 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
16655
16656 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16657 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16658 Fix typos in docstrings.
16659
16660 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16661
16662 * emacs.c (daemon_pipe): Make non-static.
16663 (IS_DAEMON): Move definition ...
16664 * lisp.h (IS_DAEMON): ... here.
16665 (daemon_pipe): Declare.
16666 (is_daemon): Remove.
16667 * dispnew.c (init_display): Use IS_DAEMON.
16668
16669 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16672 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16673
16674 * emacs.c (is_daemon): Remove.
16675 (main): Don't set is_daemon.
16676 (IS_DAEMON): New macro.
16677 (Fdaemonp, Fdaemon_initialized): Use it.
16678 (Fdaemon_initialized): Write a char into the pipe to make sure the
16679 parent exits.
16680 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16681
16682 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
16683
16684 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16685 over-sized glyph, draw it with the default glyph width.
16686
16687 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16688 glyph, draw it with the default glyph width.
16689
16690 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16691 glyph, draw it with the default glyph width.
16692
16693 * xdisp.c (try_scrolling): When computing the distance from the
16694 scroll margin to PT, try moving some distance past the window
16695 bottom before giving up.
16696
16697 2008-10-27 Martin Rudalics <rudalics@gmx.at>
16698
16699 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16700 (Fset_window_buffer): Explain in doc-string that a window can be
16701 "strongly" dedicated to its buffer.
16702
16703 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16704
16705 * emacs.c (daemon_name): New variable.
16706 (main): Deal with --daemon=SERVER_NAME.
16707 (Fdaemonp): Return a name if one was passed to --daemon.
16708
16709 2008-10-26 Romain Francoise <romain@orebokech.com>
16710
16711 * emacs.c (daemon_pipe): New variable.
16712 (main): Create a pipe before forking, make the parent exit only after
16713 the child has closed its end of the pipe. Move closing the
16714 descriptors ...
16715 (Fdaemon_initialized): ... here. New function.
16716
16717 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16718
16719 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16720 the previous unoptimized table.
16721
16722 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16723 the distinction between non-nil and non-t value of `dedicated'.
16724
16725 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
16726
16727 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
16728 read_char_minibuf_menu_text is large enough to hold the menu string.
16729
16730 2008-10-25 Martin Rudalics <rudalics@gmx.at>
16731
16732 * window.c (Fget_buffer_window, Fdelete_windows_on)
16733 (Freplace_buffer_in_windows): Make buffer argument optional and
16734 rename to buffer_or_name.
16735
16736 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
16737
16738 * xdisp.c (handle_single_display_spec, handle_display_prop):
16739 Undo 2005-05-16 change.
16740 (handle_stop): Pop iterator if it's loaded with an empty string.
16741 (get_overlay_strings_1): Don't save iterator if it's loaded with
16742 an empty string (bug#1201).
16743
16744 2008-10-24 Kenichi Handa <handa@m17n.org>
16745
16746 * ftfont.c (ftfont_otf_features): Fix previous change.
16747 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16748 calling ftfont_otf_features.
16749
16750 2008-10-24 Kenichi Handa <handa@m17n.org>
16751
16752 * font.c (font_match_p): Fix for the case that a vector of
16753 characters is in script-representative-chars.
16754
16755 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
16756
16757 * dbusbind.c (xd_in_read_queued_messages): New variable.
16758 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
16759 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16760 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
16761 macro. (Bug#1186)
16762
16763 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
16764
16765 * s/sol2-10.h: New file.
16766
16767 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16768
16769 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16770 poor beast has survived 9+ years and the jump from xterm.c!).
16771
16772 2008-10-23 Martin Rudalics <rudalics@gmx.at>
16773
16774 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16775 Reword doc-string.
16776 (Fbury_buffer): In doc-string say what happens to the buffer's window.
16777
16778 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
16779
16780 * character.c (syms_of_character) <script-representative-chars>:
16781 <unicode-category-table>: Doc fixes.
16782
16783 2008-10-23 Noah Friedman <friedman@splode.com>
16784
16785 * coding.c (make_conversion_work_buffer): Check that
16786 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16787 Fget_buffer_create.
16788
16789 2008-10-23 Kenichi Handa <handa@m17n.org>
16790
16791 * font.c (font_add_log): Check the values of extra properties.
16792
16793 2008-10-22 Martin Rudalics <rudalics@gmx.at>
16794
16795 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16796 Reword doc-string.
16797 (Fset_window_parameter): Use NILP.
16798 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
16799 (Frecenter): Use "selected" instead of "current" window in doc-strings.
16800
16801 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16802
16803 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16804
16805 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16806
16807 * nsfns.m (ns_appkit_version): New function.
16808 (x-server-version): Use it.
16809 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16810 (x-server-vendor): Don't check_ns().
16811
16812 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16813
16814 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
16815
16816 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16817 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16818
16819 2008-10-22 Kenichi Handa <handa@m17n.org>
16820
16821 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16822 scripts.
16823
16824 * category.c (word_boundary_p): Check scripts instead of charset.
16825 Handle nil value in word-separating-categories and
16826 word-combining-categories.
16827 (syms_of_category): Fix docstrings of word-separating-categories
16828 and word-combining-categories.
16829
16830 2008-10-21 Eli Zaretskii <eliz@gnu.org>
16831
16832 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16833 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16834
16835 2008-10-21 Martin Rudalics <rudalics@gmx.at>
16836
16837 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16838 Rename arg "buffer" to "buffer_or_name".
16839 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16840 it optional.
16841 (no_switch_window): Remove since the return value is not used.
16842 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
16843 Consider window as dedicated when Fwindow_dedicated_p returns a
16844 non-nil value.
16845 * lisp.h: Remove prototype for no_switch_window.
16846
16847 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16848
16849 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
16850 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
16851
16852 2008-10-21 Kenichi Handa <handa@m17n.org>
16853
16854 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16855 check Vlatin_extra_code_table.
16856
16857 2008-10-20 Eli Zaretskii <eliz@gnu.org>
16858
16859 * fileio.c (Fset_file_modes): Doc fix.
16860
16861 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
16862
16863 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16864 in arrays.
16865
16866 2008-10-19 Martin Rudalics <rudalics@gmx.at>
16867
16868 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16869 Mention kill-buffer in doc-string.
16870 (Fset_window_buffer): Reinsert tem check removed in last commit.
16871 (Fenlarge_window, Fshrink_window): Have argument names and
16872 doc-string follow Elisp manual more closely.
16873
16874 2008-10-18 Eli Zaretskii <eliz@gnu.org>
16875
16876 * fileio.c (Fset_file_modes): Doc fix.
16877
16878 2008-10-18 Martin Rudalics <rudalics@gmx.at>
16879
16880 * window.c (Fwindow_width, Fset_window_start)
16881 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
16882 (Fdelete_windows_on, Freplace_buffer_in_windows):
16883 Make doc-strings follow code and Elisp manual more closely.
16884 (Fwindow_dedicated_p): Make window argument optional.
16885 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16886 (Fset_window_buffer): Respect any non-nil dedicated value for
16887 window. Rename "buffer" argument to "buffer_or_name".
16888
16889 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
16890
16891 * m/sh3.h: New file, machine description for SuperH.
16892
16893 2008-10-17 Martin Rudalics <rudalics@gmx.at>
16894
16895 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16896
16897 2008-10-17 Kenichi Handa <handa@m17n.org>
16898
16899 * ftfont.c (ftfont_otf_features): Fix indexing
16900 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16901
16902 2008-10-16 Magnus Henoch <mange@freemail.hu>
16903
16904 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16905 (Fdbus_call_method_asynchronously): Ditto.
16906 This change makes C-h f display the argument list.
16907
16908 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
16909
16910 * fileio.c (Fexpand_file_name): Doc fix.
16911
16912 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16913 of :foreground and :background equivalent to unspecified (20.x
16914 compatibility).
16915
16916 2008-10-15 Eli Zaretskii <eliz@gnu.org>
16917
16918 * buffer.c (syms_of_buffer): Doc fix.
16919
16920 2008-10-14 Kenichi Handa <handa@m17n.org>
16921
16922 * font.c (font_clear_prop): When clearing font width, clear the
16923 average width field too.
16924
16925 2008-10-12 Andreas Schwab <schwab@suse.de>
16926
16927 * ftfont.c (ftfont_shape_by_flt): Make static.
16928 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16929
16930 * font.c: Don't include <m17n-flt.h>.
16931
16932 2008-10-10 Eli Zaretskii <eliz@gnu.org>
16933
16934 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16935
16936 2008-10-09 Eli Zaretskii <eliz@gnu.org>
16937
16938 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16939 away code.
16940
16941 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
16942
16943 * dispnew.c (update_text_area): Avoid looping due to large glyph
16944 overhangs (bug#1070).
16945
16946 2008-10-09 Kenichi Handa <handa@m17n.org>
16947
16948 * fontset.c (face_for_char): If face->fontset is negative, just
16949 return ascii_face.
16950
16951 * font.c (font_delete_unmatched): Fix previous change.
16952 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
16953
16954 2008-10-09 Martin Rudalics <rudalics@gmx.at>
16955
16956 * frame.c (Fraise_frame): On text-only terminals select frame in
16957 order to make it visible. (Bug#1061)
16958
16959 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
16960
16961 * fontset.c (fontset_find_font): Check frame validity.
16962
16963 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
16964
16965 * gtkutil.c (xg_display_open): Reset default display if none exists.
16966 (xg_display_close): Allow Emacs to close all displays (bug#985).
16967
16968 2008-10-06 Andreas Schwab <schwab@suse.de>
16969
16970 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
16971
16972 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
16973
16974 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
16975
16976 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
16977
16978 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16979 during initialization.
16980
16981 2008-10-04 Eli Zaretskii <eliz@gnu.org>
16982
16983 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16984 whole thing on MSDOS frames as well as on a TTY.
16985
16986 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16987 well as for TTY.
16988 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16989 well as on a TTY.
16990
16991 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16992 as well as for TTY.
16993
16994 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16995
16996 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16997 MSDOS frames as well.
16998
16999 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17000
17001 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
17002 correct arguments.
17003 * menu.c (find_and_return_menu_selection): Add cast.
17004
17005 2008-10-03 Glenn Morris <rgm@gnu.org>
17006
17007 * emacs.c (USAGE1): Add --daemon.
17008
17009 2008-10-02 Eli Zaretskii <eliz@gnu.org>
17010
17011 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
17012 100, so it's in percents as advertised.
17013
17014 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17015
17016 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
17017 (ns_output.current_cursor, ns_output.desired_cursor)
17018 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
17019 (FRAME_NEW_CURSOR_COLOR): Remove.
17020
17021 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
17022 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
17023 enumeration (HOLLOW_BOX_CURSOR, etc.).
17024
17025 * nsterm.m (ns_frame_rehighlight): Remove commented code.
17026 (draw_window_cursor): Simplify code.
17027 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
17028 Don't change cursor type. In latter, call rehighlight instead of doing
17029 updates manually.
17030 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
17031 Use core Emacs cursor types.
17032
17033 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
17034
17035 2008-10-02 Martin Rudalics <rudalics@gmx.at>
17036
17037 * process.c (Faccept_process_output): Fix doc-string.
17038
17039 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
17040
17041 * gmalloc.c (__sbrk): Also define for uClibc.
17042
17043 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
17044 for uClibc.
17045
17046 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17047
17048 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
17049 styles.
17050 (nsfont_open): Reenable the cache.
17051
17052 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17053
17054 * font.c (font_matching_entity): Reflect ATTRS in font selection.
17055 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
17056
17057 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
17058
17059 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
17060 a suspended terminal.
17061
17062 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
17063
17064 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
17065
17066 2008-09-30 Eli Zaretskii <eliz@gnu.org>
17067
17068 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
17069
17070 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
17071
17072 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
17073 in a continued line coincides with a line beginning.
17074
17075 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
17076
17077 * nsfont.m (nsfont_trait_distance): Fix bug.
17078 (nsfont_list): Return a list rather than a vector (syncs with Handa
17079 changes of 2008-05-14).
17080 (nsfont_open): Improve logging.
17081
17082 2008-09-29 Andreas Schwab <schwab@suse.de>
17083
17084 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
17085
17086 2008-09-28 Martin Rudalics <rudalics@gmx.at>
17087
17088 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17089 name as char-resolve-modifiers.
17090 Reported by: Markus Triska <markus.triska@gmx.at>
17091
17092 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17093
17094 * dispnew.c (init_display): Return earlier when running as a daemon.
17095
17096 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17097
17098 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17099
17100 2008-09-27 Eli Zaretskii <eliz@gnu.org>
17101
17102 * composite.c (Fcomposition_get_gstring)
17103 (Fcompose_region_internal, Fcompose_string_internal)
17104 (Ffind_composition_internal): Doc fix.
17105 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17106 (syms_of_composite) <auto-composition-function>: Doc fix.
17107 (syms_of_composite) <composition-function-table>: Doc fix.
17108
17109 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
17110
17111 * search.c (wordify): New argument for lax word-ends.
17112 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17113
17114 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17115
17116 * lisp.h (is_daemon): Declare.
17117 * dispnew.c (init_display): Do not try to initialize the terminal
17118 when running as a daemon.
17119
17120 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
17121
17122 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17123 x_display_pixel_height.
17124
17125 2008-09-22 Martin Rudalics <rudalics@gmx.at>
17126
17127 * undo.c (record_point): Don't call Fundo_boundary for first
17128 change. (Bug#731)
17129
17130 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
17131
17132 * emacs.c (Fdaemonp): Doc fix.
17133
17134 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17135
17136 * emacs.c (main): Place #ifdef in the proper place.
17137
17138 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17139
17140 * emacs.c (standard_args): Add --daemon.
17141 (main): Disconnect from the terminal when --daemon is passed.
17142 (is_daemon): New variable.
17143 (Fdaemonp): New function.
17144 (syms_of_emacs): Defsubr it.
17145
17146 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
17147
17148 * xdisp.c (get_next_display_element): Handle string display
17149 correctly when checking for the end of a box run.
17150
17151 2008-09-20 Glenn Morris <rgm@gnu.org>
17152
17153 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17154 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17155 (Frename_file): Avoid copying to trash if a rename involves
17156 a delete. (Bug#964).
17157
17158 2008-09-20 Eli Zaretskii <eliz@gnu.org>
17159
17160 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17161 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17162 frames as well as termcap frames.
17163 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17164 get_named_tty.
17165
17166 2008-09-19 Eli Zaretskii <eliz@gnu.org>
17167
17168 * process.c (procfs_system_process_attributes): Fix cmdline in
17169 case /proc/PID/cmdline is empty.
17170
17171 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17172 x_display_pixel_height.
17173
17174 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
17175
17176 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17177
17178 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17179 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17180
17181 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17182
17183 * dispextern.h (struct it): Move line_wrap away from the middle of
17184 bitfields. Move voffset in struct iterator_stack_entry after the
17185 bitfields. Move tab_width near after another short.
17186
17187 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17188
17189 * frame.h (struct frame): Move alpha from the middle of bitfields.
17190
17191 * window.h (struct window): Move frozen_window_start_p after the
17192 rest of the bitfields to reduce padding.
17193
17194 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
17195
17196 * xterm.h (x_display_info): Remove `height' and `width' members.
17197
17198 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17199
17200 * w32term.h (w32_display_info): Remove `height', `width',
17201 `height_in', and `width_in' members.
17202
17203 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17204 New functions.
17205 (x_calc_absolute_position): Use them.
17206 (x_term_init): Omit removed `height' and `width' members.
17207
17208 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17209 New functions.
17210 (w32_read_socket, x_calc_absolute_position): Use them.
17211 (w32_initialize_display_info, w32_term_init): Omit removed members
17212 of w32_display_info.
17213
17214 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17215 New functions.
17216 (ns_initialize_display_info): Omit removed members of ns_display_info.
17217
17218 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17219 New functions.
17220 (x_calc_absolute_position): Use them.
17221 (x_term_init): Omit removed `height' and `width' members.
17222
17223 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17224 (compute_tip_xy):
17225 * frame.c (x_fullscreen_adjust):
17226 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17227 x_display_pixel_width.
17228
17229 2008-09-18 Kenichi Handa <handa@m17n.org>
17230
17231 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17232 (composition_compute_stop_pos): Fix handling of static composition.
17233 (Fcomposition_get_gstring): Check FROM and TO at first.
17234
17235 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17236
17237 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
17238 mixup (YAILOM).
17239
17240 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
17241
17242 * indent.c (Fvertical_motion): Use position reported by iterator
17243 instead of PT for determining screen motion (bug#943).
17244
17245 2008-09-17 Romain Francoise <romain@orebokech.com>
17246
17247 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17248
17249 2008-09-17 Kenichi Handa <handa@m17n.org>
17250
17251 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17252
17253 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17254 if necessary.
17255
17256 2008-09-16 Kenichi Handa <handa@m17n.org>
17257
17258 * coding.c (make_conversion_work_buffer): Avoid calling
17259 Fget_buffer_create if it is not necessary.
17260
17261 2008-09-15 Martin Rudalics <rudalics@gmx.at>
17262
17263 * window.c (Fselect_window): Don't update window_select_count and
17264 use_time when norecord is not nil.
17265
17266 2008-09-14 Kenichi Handa <handa@m17n.org>
17267
17268 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17269 specpdl_ptr.
17270
17271 2008-09-12 Kenichi Handa <handa@m17n.org>
17272
17273 * indent.c (scan_for_column): Don't handle automatic composition
17274 if the current buffer is not associated with a window.
17275
17276 * composite.c (composition_reseat_it): If the current buffer is
17277 not associated with a window, ignore the automatic composition.
17278 (find_automatic_composition): Likewise.
17279
17280 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17281
17282 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17283 (Fgpm_mouse_stop): Use it.
17284 * termhooks.h (close_gpm): Declare.
17285 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17286 connection if Gpm_GetEvent fails.
17287
17288 * window.c (set_window_buffer): Always preserve current-buffer.
17289
17290 2008-09-12 Glenn Morris <rgm@gnu.org>
17291
17292 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17293
17294 2008-09-11 Glenn Morris <rgm@gnu.org>
17295
17296 * charset.c (charset-map-path): Doc fix.
17297
17298 2008-09-10 Kenichi Handa <handa@m17n.org>
17299
17300 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17301
17302 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17303 compose a grapheme cluster with the preceding base glyph.
17304
17305 * composite.c (composition_compute_stop_pos): Fix previous change.
17306 Reset cmp_it->id to -1 at first.
17307
17308 2008-09-10 Glenn Morris <rgm@gnu.org>
17309
17310 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17311
17312 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
17313
17314 * keyboard.c (read_key_sequence): Reapply translation maps when
17315 switching keyboards.
17316
17317 2008-09-09 Kenichi Handa <handa@m17n.org>
17318
17319 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17320 characters.
17321
17322 * composite.c (FORWARD_CHAR): Fix calculation
17323 of (POSITION).pos_byte.
17324 (composition_compute_stop_pos): Limit the search of composition to
17325 at most 500 characters ahead. If we reach the limit or find a
17326 newline, set cmp_it->ch to -2 and return 0.
17327 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17328
17329 2008-09-08 Kenichi Handa <handa@m17n.org>
17330
17331 * indent.c (Fvertical_motion): Be sure to set
17332 it_overshoot_expected if it.cmp_it.id is non-negative.
17333
17334 2008-09-07 Andreas Schwab <schwab@suse.de>
17335
17336 * callproc.c (Fcall_process): Don't hold references to string data
17337 across garbage collection. Move initialisation of new_argv down
17338 to avoid compiler bug.
17339
17340 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17341
17342 * process.c (Fsystem_process_attributes): Doc fix.
17343
17344 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
17345
17346 * callproc.c (Fcall_process): Canonicalize current directory name.
17347
17348 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17349 iterator advances to the next line if the current line ends in a
17350 continued tab.
17351
17352 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17353
17354 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17355 member to point to cmp_from.
17356
17357 * xdisp.c: Doc fix for references to gidx data member.
17358
17359 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17360
17361 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17362
17363 2008-09-07 Kenichi Handa <handa@m17n.org>
17364
17365 * composite.c (FORWARD_CHAR): Check STOP after
17366 incrementing (POSITION).pos.
17367
17368 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17369
17370 * process.c (Fsystem_process_attributes): Doc fix.
17371
17372 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
17373
17374 * keyboard.c (Ftop_level): Doc fix.
17375
17376 2008-09-06 Eli Zaretskii <eliz@gnu.org>
17377
17378 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17379 minibuffer, don't let lower part of menu invade the echo area.
17380
17381 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17382 "char *q" to access menu text and advance through it. Revert the
17383 change that displayed ">" instead of ASCII character 0x10.
17384
17385 2008-09-05 Eli Zaretskii <eliz@gnu.org>
17386
17387 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17388 toggle boxes and radio buttons on MS-DOS as well.
17389
17390 2008-09-05 Kenichi Handa <handa@m17n.org>
17391
17392 * composite.c (autocmp_chars): Check lookback count.
17393 (composition_compute_stop_pos): Set cmp_it->lookback.
17394 (composition_reseat_it): Check lookback count.
17395 (struct position_record): New struct.
17396 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17397 (find_automatic_composition): New function.
17398 (composition_adjust_point): Use find_automatic_composition.
17399
17400 * dispextern.h (struct composition_it): New member lookback.
17401
17402 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
17403
17404 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17405 if moving by a single line.
17406
17407 2008-09-02 Andreas Schwab <schwab@suse.de>
17408
17409 * xterm.c (x_delete_display): Fix merge error.
17410
17411 * fileio.c (Fexpand_file_name): Remove unused variables.
17412
17413 2008-09-02 Eli Zaretskii <eliz@gnu.org>
17414
17415 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17416 storage on all platforms, not just on DOS_NT.
17417
17418 2008-09-02 Jason Rumney <jasonr@gnu.org>
17419
17420 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17421 Ensure mouse is not grabbed after menu is finished.
17422
17423 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
17424
17425 * xfaces.c (Finternal_set_alternative_font_family_alist)
17426 (Finternal_set_alternative_font_registry_alist): Properly copy
17427 entire alist structure.
17428
17429 2008-09-01 Kenichi Handa <handa@m17n.org>
17430
17431 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
17432 representative chars of the script is a vector.
17433 (ftfont_list): Handle the case where the representative chars of
17434 the script is a vector.
17435
17436 * character.c (syms_of_character): Docstring of
17437 script-representative-chars fixed.
17438
17439 2008-08-31 Eli Zaretskii <eliz@gnu.org>
17440
17441 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17442 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17443 the menu. Allocate larger buffer for `text', to account for
17444 possible ^C characters.
17445
17446 2008-08-31 Martin Rudalics <rudalics@gmx.at>
17447
17448 * xdisp.c (prepare_menu_bars): Don't call
17449 Vwindow_size_change_functions with arg Qt.
17450
17451 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17452
17453 * font.h (font_range):
17454 * fileio.c (report_file_error):
17455 * composite.c (composition_update_it): Yet another int/Lisp_Object
17456 mixup (YAILOM).
17457
17458 2008-08-30 Glenn Morris <rgm@gnu.org>
17459
17460 * data.c (Fmake_variable_frame_local): Doc fix.
17461
17462 * frame.c (Fmodify_frame_parameters): Doc fix.
17463
17464 2008-08-30 Eli Zaretskii <eliz@gnu.org>
17465
17466 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17467 needed by GetTokenInformation.
17468 (w32_system_process_attributes): Check return values of all system
17469 APIs.
17470
17471 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17472 only when the state changes.
17473 (IT_update_begin, IT_update_end): Add termscript trace.
17474
17475 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17476 clipboard is unavailable. Set dst to NULL if it doesn't point to
17477 malloc'ed data.
17478 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17479 passing random values to xfree.
17480
17481 * dispnew.c (init_display): Set `tty's association in frame's
17482 parameters alist to the name of the terminal device, if that is known.
17483
17484 2008-08-29 Jason Rumney <jasonr@gnu.org>
17485
17486 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17487
17488 2008-08-29 Eli Zaretskii <eliz@gnu.org>
17489
17490 * composite.c (fill_gstring_body): Avoid compiler warnings.
17491
17492 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17493 LGLYPH_SET_CODE to avoid compiler warnings.
17494
17495 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
17496
17497 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17498
17499 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17500 LGLYPH_SET_CODE.
17501
17502 2008-08-29 Kenichi Handa <handa@m17n.org>
17503
17504 * fileio.c (report_file_error): Don't downcase the first character
17505 of errstring if it is still unibyte.
17506
17507 2008-08-29 Kenichi Handa <handa@m17n.org>
17508
17509 These changes are to re-implement the automatic composition so
17510 that it doesn't use text properties.
17511
17512 * Makefile.in (ftfont.o): Depend on composite.h.
17513 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17514
17515 * character.h (Vunicode_category_table): Extern it.
17516
17517 * character.c (Vunicode_category_table): New variable.
17518 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17519
17520 * chartab.c (optimize_sub_char_table): Perform more greedy
17521 optimization.
17522
17523 * composite.h (enum composition_method):
17524 Delete COMPOSITION_WITH_GLYPH_STRING.
17525 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17526 (Vcomposition_function_table): Extern it.
17527 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17528 (composition_gstring_put_cache, composition_gstring_from_id)
17529 (composition_gstring_p, composition_gstring_width)
17530 (composition_compute_stop_pos, composition_reseat_it)
17531 (composition_update_it, composition_adjust_point): Extern them.
17532 (Fcomposition_get_gstring): EXFUN it.
17533
17534 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
17535 (Vcomposition_function_table)
17536 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
17537 (gstring_hash_table, gstring_work, gstring_work_headers):
17538 New variables.
17539 (gstring_lookup_cache, composition_gstring_put_cache)
17540 (composition_gstring_from_id, composition_gstring_p)
17541 (composition_gstring_width, fill_gstring_header)
17542 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17543 (composition_reseat_it, composition_update_it)
17544 (composition_adjust_point, Fcomposition_get_gstring): New functions.
17545 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17546 and gstring_work_headers. DEFVAR_LISP composition-function-table.
17547 Defsubr composition_get_gstring.
17548
17549 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17550 cmp_id.
17551 (struct glyph_string): Delete the member gidx. New members
17552 cmp_id, cmp_from, and cmp_to.
17553 (enum it_method): Delete GET_FROM_COMPOSITION.
17554 (struct composition_it): New struct.
17555 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17556 Delete c, len, cmp_id, cmp_len in u.comp.
17557
17558 * font.h (enum lgstring_indices): Delete it.
17559 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
17560 (enum lglyph_indices): Likewise.
17561 (font_range): Adjust extern.
17562 (font_fill_lglyph_metrics): Extern it.
17563
17564 * font.c (QCf): New variable.
17565 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17566 (font_prepare_composition): Delete this function.
17567 (font_range): Type and arguments changed.
17568 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17569 (font_fill_lglyph_metrics): New function.
17570 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
17571 (syms_of_font): DEFSYM QCf. Delete defsubr for
17572 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17573 Defsubr Sfont_shape_gstring.
17574
17575 * fontset.h (font_for_char): Extern it.
17576
17577 * fontset.c (font_for_char): New function.
17578
17579 * ftfont.c: Include composite.h.
17580 (ftfont_resolve_generic_family): Add langset "en" to pattern.
17581 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17582
17583 * indent.c: Include composite.h and dispextern.h.
17584 (check_composition): Delete this function.
17585 (scan_for_column): Handle composition by
17586 composition_compute_stop_pos, composition_reseat_it, and
17587 composition_update_it.
17588 (compute_motion): Likewise.
17589 (Fvertical_motion): Fix checking of composition.
17590
17591 * keyboard.c (adjust_point_for_property): Check composition by
17592 composition_adjust_point.
17593
17594 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
17595 struct glyph_string.
17596
17597 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17598 (append_composite_glyph): Adjust for the change of struct it and
17599 struct glyph.
17600 (produce_composite_glyph): Likewise.
17601
17602 * w32term.c (x_draw_composite_glyph_string_foreground):
17603 Adjust for the change of struct glyph_string.
17604 (x_draw_glyph_string): Likewise.
17605
17606 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17607 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17608
17609 * xdisp.c: Include font.h.
17610 (it_props): Delete the entry for Qauto_composed.
17611 (init_iterator): Initialize it->cmp_it.id to -1.
17612 (compute_stop_pos): Call composition_compute_stop_pos.
17613 (face_before_or_after_it_pos): Adjust for the change of struct it.
17614 (handle_auto_composed_prop): Delete it.
17615 (handle_composition_prop): Handle only static composition.
17616 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17617 from xassert. Initialize it->cmp_it.stop_pos.
17618 (push_it): Adjust for the change of struct it.
17619 (pop_it): Likewise.
17620 (get_next_element): Delete next_element_from_composition.
17621 (CHAR_COMPOSED_P): New macro.
17622 (get_next_display_element): For automatic composition, get a face
17623 from the font in the glyph-string.
17624 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
17625 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
17626 (next_element_from_string): Check if the character at the current
17627 position is composed by CHAR_COMPOSED_P.
17628 (next_element_from_buffer): Likewise.
17629 (next_element_from_composition): Adjust for the change of struct it.
17630 Update it->cmp_it.
17631 (dump_glyph): Adjust for the change of struct glyph.
17632 (fill_composite_glyph_string): Adjust for the change of struct
17633 it and struct glyph. Don't handle automatic composition here.
17634 (fill_gstring_glyph_string): New function.
17635 (x_get_glyph_overhangs): Handle automatic composition.
17636 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
17637 (BUILD_GSTRING_GLYPH_STRING): New macro.
17638 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17639 automatic composition.
17640 (append_composite_glyph): Adjust for the change of struct it and
17641 struct glyph.
17642 (x_produce_glyphs): Adjust for the change of struct it.
17643
17644 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17645 the change of struct glyph_string.
17646 (x_draw_glyph_string): Likewise.
17647
17648 2008-08-29 Glenn Morris <rgm@gnu.org>
17649
17650 * buffer.c (word-wrap): Doc fix.
17651 * xdisp.c (truncate-partial-width-windows): Doc fix.
17652 Increase default to 50.
17653
17654 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
17655
17656 * xdisp.c (update_tool_bar_unwind): New function.
17657 (update_tool_bar): Temporarily set selected frame before building
17658 tool-bar items.
17659
17660 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
17661
17662 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17663 snprintf, respectively.
17664 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17665
17666 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
17667
17668 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17669 LDFLAGS to GNUstep CC invocation.
17670
17671 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
17672
17673 * indent.c (Fvertical_motion): Revert last change. Handle the
17674 general case where we are moving forward, and PT spans multiple
17675 screen lines.
17676
17677 * eval.c (find_handler_clause): Temporarily increase
17678 max-lisp-eval-depth while printing the backtrace buffer, to
17679 guarantee that help-mode code can run.
17680
17681 2008-08-27 Eli Zaretskii <eliz@gnu.org>
17682
17683 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17684 colors under -rv.
17685 (IT_set_frame_parameters): Don't swap foreground and background
17686 colors if `(reverse . t)' is present in the frame properties.
17687 (internal_terminal_init): Call init_frame_faces only for the
17688 initial frame.
17689
17690 2008-08-27 Andreas Schwab <schwab@suse.de>
17691
17692 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17693
17694 2008-08-27 Andreas Schwab <schwab@suse.de>
17695
17696 * search.c (search_buffer): Set char_base to zero only at the end.
17697
17698 2008-08-27 Kenichi Handa <handa@m17n.org>
17699
17700 * fileio.c (report_file_error): Fix handling of multibyte error string.
17701
17702 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17703
17704 * xterm.c (x_term_init): Temporarily hide the partially
17705 initialized terminal while calling vendor-specific-keysyms.
17706
17707 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17708
17709 * msdos.c (internal_terminal_init): Most initializations done only
17710 once, especially initial_screen_colors[] and termscript open.
17711
17712 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17713
17714 * eval.c (Fcondition_case): Doc fix.
17715
17716 * widgetprv.h (EmacsFramePart): Change font member to the new font
17717 struct.
17718
17719 * widget.c: Include character.h and font.h for XSETFONT.
17720 (setup_frame_gcs): Compute X font id from font struct, just once.
17721
17722 2008-08-26 Eli Zaretskii <eliz@gnu.org>
17723
17724 * term.c (get_named_tty): Fix last change.
17725
17726 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
17727
17728 * indent.c (Fvertical_motion): If moving forward starting from a
17729 multi-line string, move the iterator to the last line of that string.
17730
17731 2008-08-25 Eli Zaretskii <eliz@gnu.org>
17732
17733 * frame.c (do_switch_frame): Mark previously displayed frame as
17734 obscured for FRAME_MSDOS_P frames as well.
17735
17736 2008-08-24 Eli Zaretskii <eliz@gnu.org>
17737
17738 * frame.c (make_terminal_frame): Initialize f->terminal,
17739 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17740 Set the top frame to newly created frame.
17741 (Fmake_terminal_frame): Reuse the_only_display_info.
17742
17743 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17744 estimating available memory.
17745
17746 2008-08-23 David Reitter <david.reitter@gmail.com>
17747
17748 * nsterm.m (ns_draw_window_cursor): Don't call
17749 NSDisableScreenUpdates and NSEnableScreenUpdates on
17750 non-NS_IMPL_COCOA systems.
17751
17752 2008-08-23 Andreas Schwab <schwab@suse.de>
17753
17754 * process.c (procfs_system_process_attributes): Fix use of
17755 uninitialized variables.
17756
17757 2008-08-23 Eli Zaretskii <eliz@gnu.org>
17758
17759 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17760
17761 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17762 calling tty-set-up-initial-frame-faces.
17763
17764 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17765 Allow MSDOS frames along with X frames.
17766
17767 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17768 addition to output_termcap.
17769
17770 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17771
17772 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17773 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17774 highlight.
17775
17776 * process.c [!subprocesses]: Define QCname.
17777 (syms_of_process): Intern and staticpro it.
17778
17779 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
17780 Adjust for changes in encoding/decoding routines.
17781 Use encode_coding_object and decode_coding_object instead of
17782 encode_coding and decode_coding.
17783
17784 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
17785
17786 * dosfns.c: Include frame.h before termhooks.h.
17787 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17788 variable termscript.
17789
17790 * s/msdos.h (USER_FULL_NAME): Define.
17791 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17792
17793 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17794 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17795 pw->pw_gecos.
17796
17797 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17798 SELECTED_FRAME as additional (1st) argument.
17799 (tty_read_avail_input): Handle output_msdos_raw in
17800 addition to output_termcap.
17801
17802 * msdos.c: Include frame.h before termhooks.h.
17803 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17804 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17805 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17806 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17807 (IT_set_terminal_modes, IT_reset_terminal_modes)
17808 (IT_set_frame_parameters): Use tty->termscript instead of a global
17809 variable termscript.
17810 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17811 global variable terminal_coding. Don't refer to
17812 Vnonascii_translation_table.
17813 (internal_terminal_init): Set Vwindow_system in current_kboard.
17814 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17815 Announce date and time of session start, if termscript is open.
17816 Don't zero out the_only_display_info (it is done in
17817 term.c:init_tty). Open termscript only of not already open.
17818 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
17819 here instead of dos_ttraw. Don't initialize display if this is an
17820 initial tty. Don't set FRAME_FONT.
17821 (Vwindow_system_version): Bump to 23.
17822 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17823 is available, set up mouse_position_hook.
17824 (dos_ttraw, IT_set_terminal_modes): If called with initial
17825 terminal, do nothing.
17826 (IT_set_frame_parameters): Handle the Qtty_type frame
17827 parameter by calling internal_terminal_init.
17828 (dos_set_window_size, show_mouse_face)
17829 (clear_mouse_face, IT_note_mode_line_highlight)
17830 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17831 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17832 (initialize_msdos_display): New function.
17833 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17834 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17835 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17836 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
17837 Accept additional argument: a pointer to a frame. Update all callers.
17838 (request_sigio, unrequest_sigio): Don't define, now defined on
17839 sysdep.c.
17840 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17841
17842 * term.c [MSDOS]: Include msdos.h.
17843 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17844 conditional to DOS_NT. Allow only one call to this function in a
17845 session. Don't allocate a new struct tty_display_info; instead,
17846 reuse the_only_display_info. Call get_tty_size to get screen
17847 dimensions. Call init_baud_rate to set bad_rate.
17848 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17849 (Fsuspend_tty) [MSDOS]: Don't close input and output.
17850 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
17851 (get_tty_terminal, get_named_tty, Ftty_type)
17852 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17853 output_termcap.
17854 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17855 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
17856 only when subprocesses are supported.
17857
17858 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17859 f->output_data.x.
17860 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17861 terminal devices.
17862
17863 * msdos.h: Remove definition of struct x_display_info and struct
17864 x_output.
17865 (FRAME_FONT): Use output_data.tty.
17866 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
17867 (struct x_display_info): Rename from display_info. Update all users in
17868 msdos.c.
17869 (struct x_output): Remove background_pixel and foreground_pixel.
17870 (the_only_display_info): Rename from the_only_x_display.
17871 (dos_ttraw): Update prototype.
17872
17873 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17874 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17875
17876 2008-08-23 Jason Rumney <jasonr@gnu.org>
17877
17878 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17879 (fn_TIFFSetDirectory): New library function used.
17880 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17881 (tiff_load): Use :index to select among multiple images. Set count
17882 property when multiple images exist.
17883 (gif_format): Use :index, not :image.
17884
17885 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
17886
17887 * xdisp.c (try_scrolling): Check INT_MAX instead of
17888 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17889 to obtain INT_MAX.
17890
17891 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17892
17893 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17894
17895 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17896
17897 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17898 GNUstep library location.
17899
17900 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
17901
17902 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17903 before using it.
17904
17905 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17906
17907 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17908
17909 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17910 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17911 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17912 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17913 (EmacsApp-cursor_blink_handler): Remove declaration.
17914 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17915 match 01 Feb 2008 changes in xterm.c.
17916 (ns_read_socket): Add cast to avoid warning.
17917 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17918 GNUstep.
17919
17920 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
17921
17922 * xselect.c (x_get_foreign_selection): Return nil if desired
17923 selection could not be obtained, instead of signalling an error.
17924
17925 2008-08-20 David Reitter <david.reitter@gmail.com>
17926
17927 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17928 * nsterm.m: Remove ns-specific code for cursor blinking.
17929 (ns_draw_window_cursor): Clear cursor properly rather than
17930 redrawing the area. Respect width of bar cursors.
17931 These changes enable the use of generic blink-cursor-mode and
17932 generic cursor types in NS and support smooth cursor movements (do
17933 not blink off after command).
17934 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17935 Nextstep, too.
17936
17937 2008-08-19 Kenichi Handa <handa@m17n.org>
17938
17939 * font.c (Vfont_log_deferred): New variable.
17940 (font_add_log): Check Vfont_log_deferred.
17941 (font_deferred_log): New function.
17942
17943 * font.h (font_deferred_log): Extern it.
17944
17945 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17946 for sorting.
17947 (face_for_char): Use deferred log.
17948
17949 2008-08-18 Kenichi Handa <handa@m17n.org>
17950
17951 * fontset.c (face_for_char): Add font log.
17952
17953 * font.c (font_add_log): Add the font properties :script, :lang,
17954 and :otf in the log.
17955
17956 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
17957
17958 * xdisp.c: Remove dead code.
17959 (handle_invisible_prop, next_overlay_string): Defer call to
17960 setup_for_ellipsis.
17961 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17962
17963 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
17964
17965 * xfaces.c (lookup_derived_face): Properly handle possible zero
17966 return value of get_lface_attributes.
17967 (merge_faces): Don't tell lookup_derived_face to signal an error
17968 if face is not found.
17969
17970 * dired.c (Fdirectory_files): Doc fix.
17971
17972 * process.c (make_process): Initialize kill_without_query struct
17973 member.
17974
17975 2008-08-15 Eli Zaretskii <eliz@gnu.org>
17976
17977 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17978 Alternative calculation of totphys for Visual Studio 6.
17979
17980 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17981
17982 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17983 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17984 All users changed.
17985 (stat): Only root directory passed to GetDriveType. Allow RAM
17986 disk as well as local fixed disk when w32-get-true-file-attributes
17987 is set to `local'.
17988 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17989 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17990 (w32_cached_id, w32_add_to_cache): New functions.
17991 (get_name_and_id): Look account names in the cache before calling
17992 lookup_account_sid.
17993 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17994 New initialization flags.
17995 (globals_of_w32): Initialize them to zero.
17996 (w32_system_process_attributes): Use w32_cached_id and
17997 w32_add_to_cache.
17998
17999 2008-08-14 Lawrence Mitchell <wence@gmx.li>
18000
18001 * lread.c (Fread_char, Fread_char_exclusive): If no character
18002 event is read before timeout is reached, return nil, rather than
18003 converting to a number.
18004
18005 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
18006
18007 * fns.c (use_dialog_box): Doc fix.
18008
18009 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
18010 on OS X.
18011
18012 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
18013
18014 * frame.c (Qns_parse_geometry): New var.
18015 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
18016
18017 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
18018
18019 * xdisp.c (x_produce_glyphs): Handle the case when font has no
18020 space character in calculating tabs.
18021
18022 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
18023
18024 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
18025
18026 2008-08-10 Glenn Morris <rgm@gnu.org>
18027
18028 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
18029 silence gcc "limited range of data type" warnings in some
18030 make_fixnum_or_float calls.
18031
18032 2008-08-09 Eli Zaretskii <eliz@gnu.org>
18033
18034 * w32.c (w32_system_process_attributes): If the process does not
18035 exist, return nil.
18036
18037 * w32.c: Include thelp32.h, psapi.h and coding.h.
18038 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
18039 declarations.
18040 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
18041 (Process32Next_Proc): New typedefs.
18042 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
18043 (g_b_init_process32_next, g_b_init_open_thread_token)
18044 (g_b_init_impersonate_self, g_b_init_revert_to_self)
18045 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
18046 (g_b_init_get_process_working_set_size)
18047 (g_b_init_global_memory_status_ex): New static variables.
18048 (globals_of_w32): Initialize them.
18049 (create_toolhelp32_snapshot, process32_first, process32_next)
18050 (open_thread_token, impersonate_self, revert_to_self)
18051 (get_process_memory_info, get_process_working_set_size)
18052 (global_memory_status, global_memory_status_ex): New wrapper
18053 functions.
18054 (w32_list_system_processes, w32_system_process_attributes)
18055 (enable_privilege, restore_privilege, ltime, process_times):
18056 New functions.
18057 (convert_time_raw): New function.
18058 (convert_time): Remove conversion of FILETIME into time in 100
18059 nsec units, call convert_time_raw instead.
18060
18061 * process.h (w32_list_system_processes, w32_system_process_attributes):
18062 Add prototypes.
18063 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
18064 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
18065 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
18066 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
18067
18068 * process.c (Fsystem_process_attributes): Doc fix.
18069
18070 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
18071
18072 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
18073 a continued multi-char glyph; if so, advance to the actual glyph.
18074
18075 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
18076
18077 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
18078
18079 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
18080 (.m.o): Use it.
18081 * config.in: Regenerate.
18082
18083 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
18084
18085 * xdisp.c (redisplay_window): Revert last change.
18086 (try_window): Check bottom scroll margin too.
18087
18088 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18089
18090 * config.in: Regenerate.
18091
18092 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18093 -list-load-path-shadows'.
18094 (nsgui.h): Reduce number of things depending on it.
18095
18096 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
18097
18098 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18099 instead of window-end which does the wrong thing at eob.
18100 (try_cursor_movement): Minor optimization.
18101 (redisplay_window): If scroll margin is defined, don't assume
18102 window doesn't need scrolling.
18103
18104 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18105
18106 * config.in: Regenerate.
18107
18108 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18109 (mostlyclean): Don't delete *.d under NS.
18110
18111 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18112
18113 2008-08-06 Kenichi Handa <handa@m17n.org>
18114
18115 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18116
18117 2008-08-06 Andreas Schwab <schwab@suse.de>
18118
18119 * config.in: Regenerate.
18120
18121 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
18122
18123 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18124 forcing a window start.
18125
18126 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18127 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18128
18129 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18130
18131 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18132 argument.
18133
18134 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
18135
18136 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18137 <scroll-down-aggressively, before-change-functions>:
18138 <after-change-functions>: Reflow docstrings.
18139
18140 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18141 Ken Raeburn <raeburn@gnu.org>
18142
18143 Dock menu customization, based on a patch by Ken Raeburn, plus some
18144 other fixes.
18145 * nsmenu.m (dockMenu): New variable.
18146 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18147
18148 * nsterm.h (dockMenu): Declare.
18149
18150 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18151 (ns_term_init): Initialize dockMenu.
18152 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18153 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18154 left.
18155
18156 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18157
18158 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18159
18160 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18161
18162 * config.in: Regenerate.
18163
18164 2008-08-04 Seiji Zenitani <zenitani@mac.com>
18165
18166 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18167
18168 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
18169
18170 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18171
18172 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18173
18174 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18175
18176 * keyboard.h: Comment an #endif.
18177
18178 * lisp.h (have_menus_p): Adjust comment.
18179
18180 * menu.c (find_and_return_menu_selection): Fix comparison with
18181 client_data.
18182
18183 * nsmenu.m (popup_activated_flag): New variable.
18184 (popup_activated): New function.
18185 (menu-or-popup-active-p): New exported lisp definition.
18186 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18187 when popup done.
18188 (ns_popup_dialog): Set popup_activated_flag.
18189
18190 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18191 version for GNUstep (handled by conditional typedef in nsterm.m).
18192 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18193 in rgb.txt).
18194
18195 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18196
18197 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18198
18199 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18200
18201 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18202 shortcircuit if popup_activated like GTK and X toolkit.
18203
18204 * m/inter386.h: Change DARWIN to DARWIN_OS.
18205
18206 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18207 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
18208 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18209 Expand comment on NO_SOCK_SIGIO.
18210
18211 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
18212
18213 * nsterm.m (windowDidResize): Remove stopModal call.
18214
18215 2008-08-03 Andreas Schwab <schwab@suse.de>
18216
18217 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18218 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18219
18220 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
18221
18222 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18223 Don't use uninitialized pointer variable when using getrlimit.
18224
18225 2008-08-02 Jason Rumney <jasonr@gnu.org>
18226
18227 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18228
18229 2008-08-02 Eli Zaretskii <eliz@gnu.org>
18230
18231 * alloc.c (NSTATICS): Bump to 0x640.
18232
18233 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18234
18235 * lisp.h: Add prototype for directory_files_internal.
18236
18237 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18238 New functions.
18239 (syms_of_process): Defsubr them. Add initializations for various
18240 Q* symbols used in procfs_system_process_attributes.
18241 (procfs_list_system_processes, procfs_system_process_attributes)
18242 [HAVE_PROCFS]: New functions.
18243 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18244 (procfs_get_total_memory): New functions.
18245
18246 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18247
18248 * xfaces.c (Fx_load_color_file): Fix previous change;
18249 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18250
18251 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
18252
18253 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18254
18255 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18256
18257 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18258
18259 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
18260
18261 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18262
18263 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18264 define NSApplicationDelegateReplySuccess.
18265 (EmacsView -converstationIdentifier): Use long instead of
18266 NSInteger for GNUstep, since it doesn't have NSInteger.
18267
18268 * xmenu.c: Revert last change.
18269
18270 * keyboard.h: Fix last change.
18271
18272 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
18273
18274 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18275 on Windows.
18276
18277 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18278
18279 Warning clearing and clean-up in NS port.
18280 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18281 Add prototypes.
18282 * nsgui.h (FACE_DEFAULT): Remove, unused.
18283 (XGCValues): Change colors to unsigned long.
18284 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18285 nsterm.m.
18286 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18287 (ns_list_fonts): Remove, unused.
18288 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18289 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18290 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18291 (nsfont_draw): Compare face colors to 0, not nil.
18292 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18293 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18294 (-addSubmenuWithTitle:): Use NSMenuItem class.
18295 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18296 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18297 (ns_clip_to_row): Make gc arg a BOOL.
18298 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18299 ns_clip_to_row() call.
18300 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18301 used). Cast FRAME_FONT assignments.
18302 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18303 (ns_string_to_lispmod): Change arg to const char.
18304 (ns_term_init): Use NSMenuItem class.
18305 (EmacsApp -openFile:): Move to different section of file.
18306 (EmacsApp -application:openFiles:): Don't return a value, call
18307 -replyToOpenOrPrint:.
18308 (EmacsView -keyDown:): Fix up cast.
18309 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18310 (EmacsView -menuDown:): Cast tag in call to
18311 find_and_call_menu_selection().
18312 (ns_list_fonts): Remove, unused.
18313 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18314 (ns_fontname_to_xlfd): Make static.
18315 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18316 Remove prototypes (now in keyboard.h).
18317 (next_menubar_widget_id): Remove, unused.
18318 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18319 Remove prototypes (now in keyboard.h).
18320 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18321
18322 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18323
18324 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18325 (floatfns.o): Depend on syssignal.h.
18326 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18327
18328 * systty.h: Fix previous change that removed BSD_TERMIOS.
18329 Add comments to #ifdefs.
18330
18331 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18332
18333 * w32fns.c (w32-load-color-file): Remove.
18334 (x-open-connection): Use renamed Fx_load_color_file.
18335 * xfaces.c (x-load-color-file): Add.
18336 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18337 Emacs.clr.
18338 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18339
18340 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
18341
18342 * dbusbind.c (Fdbus_call_method_asynchronously)
18343 (Fdbus_method_error_internal): New defuns.
18344 (xd_read_message): Handle also reply messages.
18345 (Vdbus_registered_functions_table): Extend docstring.
18346
18347 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
18348
18349 * keyboard.c (gobble_input): Fix previous change.
18350
18351 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18352
18353 * bitmaps/README:
18354 * xfns.c:
18355 * termcap.c:
18356 * term.c:
18357 * syswait.h:
18358 * systty.h:
18359 * systime.h:
18360 * syssignal.h:
18361 * sysdep.c:
18362 * process.h:
18363 * process.c:
18364 * print.c:
18365 * ndir.h:
18366 * lread.c:
18367 * keyboard.c:
18368 * getpagesize.h:
18369 * floatfns.c:
18370 * fileio.c:
18371 * emacs.c:
18372 * doc.c:
18373 * dispnew.c:
18374 * dired.c:
18375 * data.c:
18376 * callproc.c:
18377 * buffer.c:
18378 * README:
18379 * Makefile.in:
18380 * s/template.h:
18381 * s/msdos.h:
18382 * m/vax.h: Remove VMS support.
18383 * s/vms.h:
18384 * vlimit.h:
18385 * uaf.h:
18386 * temacs.opt:
18387 * param.h:
18388 * ioctl.h: Remove file.
18389
18390 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18391
18392 * s/ms-w32.h (MULTI_KBOARD): Remove.
18393 * xterm.c:
18394 * xselect.c:
18395 * xfns.c:
18396 * window.c:
18397 * w32term.c:
18398 * w32fns.c:
18399 * terminal.c:
18400 * termhooks.h:
18401 * term.c:
18402 * sysdep.c:
18403 * keyboard.h:
18404 * keyboard.c:
18405 * frame.h:
18406 * frame.c:
18407 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18408 * config.in: Regenerate.
18409
18410 2008-07-30 Jason Rumney <jasonr@gnu.org>
18411
18412 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18413
18414 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18415 (w32font_open_internal): Get unicode version of textmetrics.
18416 Don't enable or disable glyph indices here.
18417 (w32font_open): Disable use of glyph indices.
18418
18419 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18420
18421 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
18422
18423 * minibuf.c (Vread_buffer_function): Doc fix.
18424
18425 2008-07-30 John Paul Wallington <jpw@pobox.com>
18426
18427 * minibuf.c (read_buffer_completion_ignore_case): New var.
18428 (Fread_buffer): Use it.
18429
18430 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18431
18432 * systty.h (sensemode): Remove empty #if. Remove reference to
18433 BSD_TERMIOS, unused.
18434
18435 * sysdep.c: Remove reference to DGUX.
18436 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18437
18438 * config.in: Regenerate.
18439
18440 2008-07-30 Jason Rumney <jasonr@gnu.org>
18441
18442 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18443
18444 2008-07-29 Jason Rumney <jasonr@gnu.org>
18445
18446 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18447 is populated.
18448 (uniscribe_encode_char): Always use uniscribe.
18449 Avoid using context if cache is populated.
18450
18451 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18452
18453 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18454 open menu.
18455
18456 * gtkutil.c (menu_nav_ended): Remove.
18457 (create_menus): Remove signal connect for menu_nav_ended.
18458
18459 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
18460
18461 * xdisp.c (redisplay_window): Check return value of
18462 compute_window_start_on_continuation_line before forcing a window
18463 start.
18464
18465 2008-07-28 Jason Rumney <jasonr@gnu.org>
18466
18467 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18468
18469 * w32term.c (w32_enable_unicode_output, cleartype_active):
18470 Remove obsolete display options.
18471 (x_draw_glyph_string_background): Don't use old cleartype_active
18472 workaround.
18473 (w32_initialize): Remove cleartype_active initialization.
18474 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18475
18476 2008-07-28 Andreas Schwab <schwab@suse.de>
18477
18478 * lisp.h (init_weak_hash_tables, syms_of_font)
18479 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18480 (remove_hash_entry): Don't declare.
18481 * eval.c (maybe_call_debugger): Make static and move before use.
18482 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18483 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18484 * xterm.h (x_set_frame_alpha): Declare.
18485
18486 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18487
18488 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18489 (create_menus): Connect selection-done to menu_nav_ended.
18490
18491 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18492
18493 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18494 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18495 parameter with read of 'alpha' one.
18496 (Qns_frame_parameter): Remove.
18497 * nsselect.m (selection-coding-system)
18498 (next-selection-coding-system, Vselection_coding_system)
18499 (Vnext_selection_coding_system): Drop.
18500
18501 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18502
18503 * nsfns.m (do-applescript, do_applescript): Rename to
18504 ns-do-applescript, ns_do_applescript, and move within file.
18505
18506 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18507
18508 Remove support for Mac Carbon.
18509 * mactoolbox.c:
18510 * macterm.h:
18511 * macterm.c:
18512 * macselect.c:
18513 * macmenu.c:
18514 * macgui.h:
18515 * macfns.c:
18516 * mac.c: Remove file.
18517 * s/darwin.h:
18518 * m/intel386.h:
18519 * xfaces.c:
18520 * xdisp.c:
18521 * window.c:
18522 * tparam.c:
18523 * termhooks.h:
18524 * termcap.c:
18525 * term.c:
18526 * syssignal.h:
18527 * sysselect.h:
18528 * sysdep.c:
18529 * process.c:
18530 * lread.c:
18531 * lisp.h:
18532 * keyboard.c:
18533 * image.c:
18534 * fringe.c:
18535 * frame.h:
18536 * frame.c:
18537 * fontset.c:
18538 * font.h:
18539 * font.c:
18540 * fns.c:
18541 * fileio.c:
18542 * emacs.c:
18543 * dispnew.c:
18544 * dispextern.h:
18545 * config.in:
18546 * atimer.c:
18547 * Makefile.in: Remove code for Carbon.
18548
18549 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18550
18551 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18552
18553 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18554
18555 * macterm.h (kCGBitmapByteOrder32Host): New define for
18556 non-universal SDKs.
18557
18558 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18559 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18560
18561 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18562 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18563
18564 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18565
18566 * w32inevt.c: Include dispextern.h.
18567
18568 2008-07-26 Andreas Schwab <schwab@suse.de>
18569
18570 * print.c (print_object): Fix off-by-one in last change.
18571
18572 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
18573
18574 * term.c (syms_of_term): Don't initialize default_orig_pair,
18575 default_set_foreground and default_set_background on Windows.
18576
18577 2008-07-25 Jason Rumney <jasonr@gnu.org>
18578
18579 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18580 ScriptItemize. Clean up return value checking. Remove unused
18581 variables.
18582 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18583 shaping engine.
18584
18585 * w32font.c (w32font_has_char): Handle the case where we can't
18586 determine the script for a character.
18587
18588 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18589
18590 * term.c (syms_of_term): Initialize default_orig_pair,
18591 default_set_foreground, and default_set_background.
18592
18593 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18594 clash (bug#86).
18595 (getloadavg): Callers changed.
18596
18597 * image.c (svg_load_image): Fix last change.
18598 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18599 image size is valid. Use g_object_unref instead of deprecated
18600 rsvg_handle_free to free rsvg handle.
18601 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18602
18603 2008-07-25 Jason Rumney <jasonr@gnu.org>
18604
18605 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18606 surrogates before looking up glyph index.
18607 (w32font_text_extents): Encode as surrogates if falling back to
18608 functions that need UTF-16 wide chars.
18609
18610 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18611 BMP as surrogates before looking up glyph index.
18612
18613 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
18614
18615 * image.c (svg_load_image): Check for failure in return value of
18616 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18617
18618 2008-07-25 Jason Rumney <jasonr@gnu.org>
18619
18620 * w32font.c (Fx_select_font): Reverse sense of second arg.
18621
18622 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18623
18624 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18625 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18626
18627 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18628 (PURESIZE): Use it.
18629
18630 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18631
18632 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18633 * m/alpha.h (TEXT_END):
18634 * m/ibmrs6000.h (TEXT_END):
18635 * m/macppc.h (TEXT_END):
18636 * s/darwin.h (TEXT_END):
18637 * s/msdos.h (TEXT_END): Remove, unused.
18638 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18639 * s/cygwin.h: Remove comment.
18640
18641 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18642 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18643 * m/intel386.h (DOT_GLOBAL_START):
18644 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18645 (USG): Remove, file not used on USG platforms.
18646
18647 * Makefile.in (HAVE_X11): Remove empty #else.
18648
18649 2008-07-24 Andreas Schwab <schwab@suse.de>
18650
18651 * fileio.c (Finsert_file_contents): Properly adjust undo list
18652 after format conversion.
18653
18654 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18655
18656 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18657 (menu_nav_ended): Remove.
18658 (create_menus): Remove signal connect for menu_nav_ended.
18659 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18660 create_menus.
18661 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18662
18663 2008-07-23 Jason Rumney <jasonr@gnu.org>
18664
18665 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18666 with opened font.
18667 (w32font_open): Set font type to gdi.
18668
18669 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18670
18671 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18672
18673 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18674 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18675 defines it.
18676 * unexec.c (ADDR_CORRECT): Define unconditionally.
18677
18678 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18679
18680 * unexec.c: Remove code depending on !COFF and USG, the file is
18681 not used for such systems.
18682
18683 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18684 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18685 (LD_SWITCH_SYSTEM_1): Remove, update users.
18686
18687 * s/darwin.h (DATA_END):
18688 * m/intel386.h (DATA_END):
18689 * m/ibmrs6000.h (DATA_END):
18690 * m/alpha.h (DATA_END): Remove, unused.
18691
18692 * config.in: Regenerate.
18693 * s/ms-w32.h (subprocesses): Define unconditionally.
18694 * s/template.h (subprocesses): Update comment.
18695 * s/vms.h (subprocesses):
18696 * s/usg5-4.h (subprocesses):
18697 * s/hpux10-20.h (subprocesses):
18698 * s/gnu-linux.h (subprocesses):
18699 * s/cygwin.h (subprocesses):
18700 * s/bsd-common.h (subprocesses):
18701 * s/aix4-2.h (subprocesses):
18702 * s/darwin.h (subprocesses): Do not define, defined by default now.
18703
18704 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18705 Remove all references.
18706 (temacs): Add GNUstep specific ld flags.
18707
18708 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18709 similarly to what X does.
18710
18711 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18712
18713 * nsfns.m (x-list-fonts): Remove.
18714 (syms_of_nsfns): Drop the x-list-fonts declaration.
18715 * nsterm.m: Get rid of remaining "//" comments.
18716
18717 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
18718
18719 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18720
18721 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18722 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18723 (Fns_own_selection_internal, Fx_disown_selection_internal)
18724 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18725
18726 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18727 ... */' style of docstrings. Doc fixes.
18728
18729 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18730
18731 * terminfo.c (UP, BC, PC): Undo previous change.
18732
18733 * nsfns.m: Rename ns prefixed functions/variables to the
18734 corresponding x versions. Update references.
18735
18736 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18737
18738 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18739
18740 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18741
18742 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18743 Remove forwarding functions.
18744 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18745 non-static.
18746 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18747 non-static.
18748 (ns_frame_parm_handlers): Use the new names.
18749 (syms_of_nsfns): Move to the end of file.
18750
18751 * nsterm.m (syms_of_nsterm): Move to the end of file.
18752
18753 * dispnew.c (init_display): Remove code for X10.
18754
18755 2008-07-22 Jason Rumney <jasonr@gnu.org>
18756
18757 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18758 bare drive.
18759
18760 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18761
18762 * nsterm.m (syms_of_nsterm): Remove debugging println.
18763
18764 2008-07-22 David Reitter <david.reitter@gmail.com>
18765
18766 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18767 Carbon implementation of the same functionality: execute arbitrary
18768 AppleScript code.
18769
18770 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18771
18772 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18773 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18774 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18775 (Fx_display_mm_height, Fx_display_mm_width)
18776 (Fx_display_backing_store, Fx_display_visual_class)
18777 (Fx_display_save_under, Fx_open_connection)
18778 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18779 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18780 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18781 (Fx_display_pixel_width, Fx_display_pixel_height)
18782 (Fx_display_usable_bounds, Fx_display_planes)
18783 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18784 ... */' style of docstrings.
18785
18786 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18787
18788 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18789 on this platform.
18790 (mips):
18791 * m/iris4d.h (mips): Do not define.
18792 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18793
18794 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18795
18796 * image.c:
18797 * nsfns.m:
18798 * nsselect.m:
18799 * nsterm.h:
18800 * nsterm.m: Rename ns prefixed functions/variables to the
18801 corresponding x versions. Update references.
18802
18803 * m/ibms390x.h (NO_REMAP): Do not undefine.
18804
18805 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18806
18807 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
18808
18809 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18810 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18811 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18812 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18813 (Fns_display_mm_height, Fns_display_mm_width)
18814 (Fns_display_backing_store, Fns_display_visual_class)
18815 (Fns_display_save_under, Fns_open_connection)
18816 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18817 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18818 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18819 (Fns_display_pixel_width, Fns_display_pixel_height)
18820 (Fns_display_usable_bounds, Fx_display_planes)
18821 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18822
18823 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18824
18825 * print.c (print_object): Check print_depth before searching for
18826 circularities.
18827
18828 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
18829
18830 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18831 only sprintf.
18832
18833 2008-07-21 Kenichi Handa <handa@m17n.org>
18834
18835 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18836
18837 2008-07-20 Andreas Schwab <schwab@suse.de>
18838
18839 * syntax.c (find_start_pos, find_start_value)
18840 (find_start_value_byte, find_start_begv, find_defun_start)
18841 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18842
18843 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18844
18845 * s/sol2-3.h: Insert contents of s/sol2.h.
18846 (LD_SWITCH_SYSTEM): Remove redundant definition.
18847 * s/sol2.h: Remove, unused.
18848
18849 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18850
18851 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18852
18853 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18854
18855 * Makefile.in (ns_appdir): Fix typo in find command.
18856
18857 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18858
18859 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18860
18861 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18862 added not supported anymore.
18863
18864 * s/usg5-4-2.h (LIBS_SYSTEM):
18865 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18866
18867 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18868 * s/lynxos.h (GETPGRP_NO_ARG):
18869 * s/hpux10-20.h (NO_SIOCTL_H):
18870 * s/gnu.h (GETPGRP_NO_ARG):
18871 * s/gnu-linux.h (NO_SIOCTL_H):
18872 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18873 * s/cygwin.h (GETPGRP_NO_ARG):
18874 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18875 (C_DEBUG_SWITCH): Remove duplicate definition.
18876
18877 * m/ibms390.h: Remove boilerplate comments.
18878
18879 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18880
18881 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18882 (wait_reading_process_output): Remove code for SunOS, platform not
18883 supported anymore. Use SOLARIS2 instead of sun.
18884
18885 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18886
18887 * font.c (font_open_by_name): Under NS, default lface height to zero.
18888 (font_open_for_lface): Under NS, set size based on frame fontsize.
18889 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18890 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18891
18892 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18893
18894 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18895 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18896 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18897 YES/NO.
18898 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18899 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18900 * Makefile.in (clean): Clear out build destination dir.
18901
18902 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18903
18904 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18905 xterm, xselect.
18906 * lisp.h: Remove declaration of hash_remove.
18907 * nsgui.h: Remove redefinitions of hash_remove.
18908 * fns.c (hash_remove): Rename to hash_remove_from_table.
18909
18910 2008-07-19 Seiji Zenitani <zenitani@mac.com>
18911
18912 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18913 strdup() the family UTF8String before modifying it.
18914
18915 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18916
18917 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18918 NS_FACE_BACKGROUND with 0 instead of nil.
18919 * nsfont.m (nsfont_draw): Same.
18920
18921 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
18922
18923 * nsfns.m (ns_set_background_color): Fix crash.
18924
18925 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
18926
18927 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18928
18929 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18930
18931 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18932
18933 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18934
18935 * gtkutil.c: Include <config.h> instead of "config.h".
18936
18937 * lisp.h (Foverlay_buffer): Add EXFUN.
18938
18939 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18940 child process to complete child_setup. Undo 2005-09-21 change.
18941
18942 * s/darwin.h: Mention setsid after vfork.
18943
18944 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18945
18946 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18947 Depend on macgui.h.
18948
18949 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18950 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18951
18952 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18953 and f19.
18954 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18955
18956 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18957 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18958 Remove enumerators.
18959
18960 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18961 Check if FACE_FROM_ID returns NULL.
18962
18963 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18964
18965 * w32inevt.c (change_frame_size): Remove extern declaration.
18966 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18967 change_frame_size.
18968
18969 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18970
18971 * getloadavg.c: Revert last change (2008-07-15).
18972
18973 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18974
18975 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
18976 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
18977 from configure.
18978
18979 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18980
18981 * s/sol2.h:
18982 * s/sol2-4.h: Reorganize conditionals.
18983
18984 * ecrt0.c: Remove code depending on m68000, not used anymore.
18985
18986 * fns.c (hash_remove): Make static.
18987 * lisp.h (hash_remove): Don't prototype.
18988
18989 * m/ibmrs6000.h:
18990 * m/ibms390x.h:
18991 * m/macppc.h: Remove boilerplate comments.
18992
18993 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18994 Solaris, which does not need them.
18995
18996 * m/vax.h: Remove comments about unsupported systems.
18997
18998 * s/darwin.h: Reorganize ifdefs.
18999
19000 2008-07-17 Andreas Schwab <schwab@suse.de>
19001
19002 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
19003
19004 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19005
19006 Use SDATA. Follow coding convention of placing operators at
19007 beginning of next line rather than end of previous line, and placing
19008 spaces around infix operators.
19009
19010 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
19011 in case it was defined already.
19012 USE @GNUSTEP_MAKEFILES@ rather than envvars.
19013 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
19014 ns_default.
19015 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
19016 Lisp_Objects.
19017 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
19018 (ns_defined_color, ns_color_to_lisp): Declare.
19019 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
19020 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
19021 it's accepted even with USE_LISP_UNION_TYPE.
19022 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
19023 (update_frame_tool_bar): Remove apparently obsolete tests for
19024 non-integerness of f->tool_bar_lines.
19025 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
19026 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
19027 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
19028 (nsfont_open): Don't confuse NULL for Qnil.
19029 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
19030 * menu.h (find_and_call_menu_selection):
19031 * menu.c (find_and_call_menu_selection): Use just int for vector size.
19032 (find_and_return_menu_selection): Always return something.
19033 * frame.h: Include dispextern.h for Display_Info.
19034 (display_x_get_resource): Declare.
19035
19036 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
19037
19038 * syntax.c: Remove stdio.h include accidentally introduced in
19039 Emacs.app commit.
19040 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
19041 NS_IMPL_COCOA.
19042 * keyboard.c (handle_async_input, input_available_signal): Remove
19043 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
19044
19045 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19046
19047 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
19048 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
19049 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
19050 Use SDATA.
19051
19052 * keymap.c: Remove all NS-specific code.
19053 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
19054 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
19055 where_is_preferred_modifier, return a different value depending on how
19056 preferred is the binding.
19057 (where_is_internal): Adjust accordingly.
19058 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
19059 Adjust to new preferred_sequence_p.
19060 (syms_of_keymap): Declare `where-is-preferred-modifier'.
19061 * keyboard.c (parse_solitary_modifier): Not static any more.
19062 * keyboard.h (parse_solitary_modifier): Declare.
19063
19064 2008-07-16 Andreas Schwab <schwab@suse.de>
19065
19066 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
19067 of easymenu.
19068
19069 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
19070
19071 * xdisp.c (move_it_in_display_line): Account for word wrap, so
19072 that we don't move off the line.
19073
19074 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19075
19076 * keyboard.c (Qsuper): Remove.
19077 (parse_menu_item): Don't call where_is_internal specially for NS.
19078
19079 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19080
19081 * s/gnu-linux.h: Remove boilerplate comments.
19082
19083 * m/alpha.h (__ELF__): Consolidate conditions.
19084
19085 * m/m68k.h (linux): Use GNU_LINUX instead.
19086 Remove boilerplate comments.
19087
19088 * m/intel386.h: Undo refactoring from previous change.
19089 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19090 too, remove dead code.
19091 (linux): Use GNU_LINUX instead.
19092
19093 2008-07-16 Jason Rumney <jasonr@gnu.org>
19094
19095 * w32gui.h: Repeat 26 June changes lost by last change.
19096
19097 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19098
19099 * systty.h: Remove code for Aix on 386, unsupported platform.
19100
19101 * s/ms-w32.h: Remove boilerplate comments.
19102 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19103
19104 * s/gnu-linux.h (TERM): Remove support.
19105 (HAVE_SYSVIPC): Remove, unused.
19106 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19107 for this system.
19108
19109 * process.c: Remove support for IRIS, unused.
19110 Remove support for TERM, not relevant anymore.
19111
19112 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19113 used with the definition.
19114
19115 * s/aix4-2.h (static): Do not undef.
19116
19117 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19118 only used on Aix.
19119 (HAVE_SYSVIPC): Remove, unused.
19120
19121 * m/hp800.h (CANNOT_DUMP): Do not undef.
19122
19123 * m/alpha.h: Fix comment.
19124
19125 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19126 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19127 used by this configuration.
19128 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19129 * unexec.c: Remove code depending on HPUX and
19130 USG_SHARED_LIBRARIES, not used with this file. Remove code
19131 depending on IRIS, unused. Remove if 0-ed code.
19132
19133 * s/template.h: Remove comments about static.
19134
19135 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19136 Remove if 0-ed code.
19137 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19138 were the same as the default.
19139 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19140 Remove boilerplate comments.
19141 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19142 (HAVE_SYSVIPC): Remove, unused.
19143 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19144
19145 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19146 Remove boilerplate comments.
19147 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19148 Remove boilerplate comments.
19149 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19150 Remove boilerplate comments.
19151 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19152
19153 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19154 USG systems which do not use DATA_SEG_BITS.
19155 Refactor code. Remove boilerplate comments.
19156
19157 * m/ibms390.h:
19158 * m/m68k.h:
19159 * s/bsd-common.h:
19160 * s/cygwin.h:
19161 * s/darwin.h:
19162 * s/freebsd.h:
19163 * s/gnu.h:
19164 * s/msdos.h: Remove boilerplate comments.
19165
19166 * m/iris4d.h: Remove boilerplate comments and code for systems that
19167 do not use this file.
19168 (IRIS_4D): Remove, unused.
19169
19170 * m/mips.h: Remove boilerplate comments and code for systems that
19171 do not use this file.
19172 (SIGN_EXTEND_CHAR):
19173 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19174 * unexmips.c: Remove file, unused.
19175
19176 * editfns.c (Fuser_full_name): Replace the only use of
19177 USER_FULL_NAME with its value.
19178 * config.in: Regenerate.
19179
19180 2008-07-16 David Reitter <david.reitter@gmail.com>
19181
19182 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19183 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19184
19185 2008-07-16 Glenn Morris <rgm@gnu.org>
19186
19187 * emacs.c (system-type): Doc fix.
19188
19189 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19192 If the cache doesn't work, let's fix it, rather than work around it.
19193
19194 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19195
19196 * Makefile.in: Correct additions for nsfont.o in last commit.
19197 * nsfont.m: New file (forgot last commit).
19198
19199 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19200
19201 * callproc.c (set_initial_environment):
19202 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
19203 batch-compiling for bootstrap).
19204
19205 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19206 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19207
19208 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19209 CANNOT_DUMP case -- fix crash due to different init order.
19210
19211 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19212
19213 Changes and additions for NeXTstep windowing system (Cocoa and
19214 GNUstep) support.
19215
19216 * Makefile.in:
19217 * config.in: Support defines and build commands for NS port.
19218 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19219 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19220 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19221 windowing.
19222 (struct face): Add synth_ital field.
19223 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19224 (init_display): Initialize Vinitial_window_system to "ns" when so
19225 compiled.
19226 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19227 (display_arg): Use under NS.
19228 (main): Under NS, allocate autorelease pool and handle command line
19229 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19230 (standard_args): Add NS-specific args.
19231 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19232 * font.c (DEFAULT_ENCODING): New variable.
19233 (font_find_for_lface): Use it.
19234 (syms_of_font): Load syms_of_nsfont under NS.
19235 * font.h: Declare nsfont_driver when compiled under NS.
19236 * fontset.c: When compiling under NS, include nsterm.h.
19237 (fontset_from_font): Autoconstruct fontset under NS.
19238 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19239 symbol, document and use it.
19240 (do_switch_frame): When for_deletion under Cocoa, add
19241 Fraise_frame(Qnil).
19242 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19243 (x_get_arg): Allow "yes" and "no" as boolean values.
19244 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19245 Qright under Cocoa.
19246 (focus-follows-mouse): Default to 0 under NS.
19247 * frame.h (enum output_method): Add output_ns.
19248 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19249 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19250 (FRAME_WINDOW_P): NS-specific definition.
19251 * fringe.c (max_used_fringe_bitmap): Make public.
19252 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19253 (getloadavg): Use NeXT code under descendant OS's.
19254 * image.c (includes and header section, x_create_bitmap_from_data)
19255 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19256 (image_background_transparent, x_clear_image_1)
19257 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19258 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19259 (x_to_xcolors, x_from_xcolors, x_disable_image)
19260 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19261 other GUIs, including XPM support using code originally written for
19262 Carbon GUI.
19263 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19264 using NS API.
19265 (image_ascent): Use font metrics macros instead of direct struct field
19266 access.
19267 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19268 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19269 Also, handle NS as GTK for menu bar purposes.
19270 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19271 toolkit where they differ.
19272 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19273 use cachelist, still needed under NS.
19274 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19275 (struct widget_value): Define it here for menu.c.
19276 * keymap.c (includes): Include modifier internals.
19277 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19278 NS.
19279 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19280 support for preferring sequences using certain modifiers, specified by
19281 the FIRSTONLY argument.
19282 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19283 under NS GNUstep implementation.
19284 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19285 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19286 * menu.c: Include nsterm.h under NS.
19287 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19288 (free_menubar_widget_tree_value, update_submenu_strings)
19289 (find_and_call_menu_selection): Treat NS as X and NT.
19290 (find_and_return_menu_selection): New function, used for popup menus.
19291 * nsgui.h:
19292 * nsterm.h:
19293 * nsfns.m:
19294 * nsimage.m:
19295 * nsmenu.m:
19296 * nsselect.m:
19297 * nsterm.m: New files.
19298 * process.c (wait_reading_process_output): Under NS, call ns_select()
19299 instead of plain select().
19300 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19301 beginning of buffer.
19302 * sysselect.h (init_process): Rename when compiling under Cocoa to
19303 avoid name conflict.
19304 * termhooks.h (display_info): Add ns_display_info to union.
19305 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19306 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19307 COCOA environment.
19308 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19309 unexec() signature. (Note, this will dump, but the resulting file
19310 crashes; unexosx is used instead; keeping around for reference and
19311 possible aid in getting dump working under GNUstep.)
19312 * w32gui.h (button_type, widget_value): Remove definitions (now in
19313 keyboard.h).
19314 * window.c: Include nsterm.h when compiling under NS.
19315 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19316 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19317 other GUI windowing systems.
19318 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19319 GTK.
19320 (x_consider_frame_title): Under NS, set icon type and frame
19321 modified-state indicator; use ns_set_name_as_filename() when using
19322 formatted title.
19323 (update_window_cursor): Make public when compiling under NS.
19324 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19325 (hourglass_atimer, Vhourglass_delay
19326 * xfaces.c (header section, init_frame_faces, clear_font_table)
19327 (defined_color, unload_color, x_face_list_fonts)
19328 (prepare_face_for_display): Add NS support parallel to other GUIs.
19329 Emulate GCs like other non-X GUIs.
19330 (split_font_name): Don't lowercase font name under NS.
19331 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19332 under NS.
19333 * s/darwin.h: Add support for compilation under NS.
19334
19335 2008-07-15 Jason Rumney <jasonr@gnu.org>
19336
19337 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19338 (w32_show_hourglass): Rename from show_hourglass.
19339 (w32_hide_hourglass): Rename from hide_hourglass.
19340 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19341 (Vhourglass_delay): Declare extern.
19342 (hourglass_started): Remove.
19343
19344 * xdisp.c (Vhourglass_delay): Remove static.
19345 (hourglass_started, start_hourglass, cancel_hourglass):
19346 Don't include these versions on WINDOWSNT.
19347
19348 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19349
19350 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19351 variables (formerly in xfns.c).
19352 (show_hourglass, hide_hourglass): New prototypes (same).
19353 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19354 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19355 in xfns.c).
19356 (syms_of_xdisp): Declare/initialize display-hourglass,
19357 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19358 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19359 formerly in xfns.c.
19360 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19361 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19362 (start_hourglass, cancel_hourglass): Remove.
19363 (show_hourglass, hide_hourglass): Remove prototypes and static
19364 modifiers.
19365 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19366 hourglass_atimer, hourglass_shown_p declaration/initialization.
19367 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19368 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19369 (start_hourglass, cancel_hourglass): Remove.
19370 (show_hourglass, hide_hourglass): Remove prototypes and static
19371 modifiers.
19372 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19373 hourglass_atimer, hourglass_shown_p declaration/initialization.
19374 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19375 (DEFAULT_HOURGLASS_DELAY): Remove.
19376 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19377 hourglass_shown_p declaration/initialization.
19378
19379 2008-07-14 Jason Rumney <jasonr@gnu.org>
19380
19381 * w32fns.c (w32_get_arg): Remove wrapper function.
19382 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19383 directly.
19384 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19385
19386 2008-07-14 Kenichi Handa <handa@m17n.org>
19387
19388 * xfont.c (xfont_open): Add workaround for X's bug.
19389
19390 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19391
19392 * fontset.c: Include <stdio.h> unconditionally.
19393
19394 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
19395
19396 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19397 for filtering.
19398
19399 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19400
19401 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19402
19403 * m/macppc.h:
19404 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19405
19406 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
19407 (SPECIAL_EMACS_INT):
19408 * m/ia64.h (SPECIAL_EMACS_INT):
19409 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19410 * s/gnu.h (NLIST_STRUCT):
19411 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19412 * s/gnu-linux.h (LINUX):
19413 * s/msdos.h (HAVE_FACES):
19414 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19415
19416 * systty.h:
19417 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19418 anymore.
19419
19420 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19421
19422 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19423 always defined as int.
19424
19425 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19426 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19427 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19428 * s/freebsd.h (HAVE_WAIT_HEADER):
19429 * s/bsd-common.h (HAVE_UNION_WAIT):
19430 * s/aix4-2.h (HAVE_WAIT_HEADER):
19431 * m/mips.h (HAVE_UNION_WAIT):
19432 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19433 (COFF, static): Do not define, they are undefined later in the file.
19434
19435 * process.c (update_status): Don't use a union.
19436 (status_convert):
19437 (sigchld_handler): Use int instead of WAITTYPE.
19438
19439 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
19440
19441 * indent.c (Fvertical_motion): Restore hscroll before moving to
19442 goal column.
19443
19444 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19445
19446 * lisp.h: Remove left over code.
19447
19448 2008-07-11 Andreas Schwab <schwab@suse.de>
19449
19450 * lisp.h: Fix logic in last change.
19451
19452 * menu.h: New file.
19453 * menu.c: Include it.
19454 * xmenu.c: Likewise.
19455 * Makefile.in: Update dependencies.
19456
19457 2008-07-11 Kenichi Handa <handa@m17n.org>
19458
19459 * fontset.c (fontset_from_font): Cancel the previous change.
19460
19461 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19462
19463 * lisp.h:
19464 * w32heap.c:
19465 * emacs.c:
19466 * alloc.c: Replace all references of NO_UNION_TYPE with
19467 USE_LISP_UNION_TYPE.
19468
19469 * m/xtensa.h (NO_UNION_TYPE):
19470 * m/vax.h (NO_UNION_TYPE):
19471 * m/template.h (NO_UNION_TYPE):
19472 * m/sparc.h (NO_UNION_TYPE):
19473 * m/mips.h (NO_UNION_TYPE):
19474 * m/macppc.h (NO_UNION_TYPE):
19475 * m/m68k.h (NO_UNION_TYPE):
19476 * m/iris4d.h (NO_UNION_TYPE):
19477 * m/intel386.h (NO_UNION_TYPE):
19478 * m/ibms390x.h (NO_UNION_TYPE):
19479 * m/ibms390.h (NO_UNION_TYPE):
19480 * m/ibmrs6000.h (NO_UNION_TYPE):
19481 * m/ia64.h (NO_UNION_TYPE):
19482 * m/hp800.h (NO_UNION_TYPE):
19483 * m/arm.h (NO_UNION_TYPE):
19484 * m/amdx86-64.h (NO_UNION_TYPE):
19485 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19486 defining it the same.
19487
19488 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
19489
19490 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19491
19492 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19493
19494 * fileio.c:
19495 * sysdep.c:
19496 * systty.h:
19497 * m/ibmrs6000.h:
19498 * m/iris4d.h:
19499 * s/aix4-2.h:
19500 * s/freebsd.h:
19501 * s/gnu-linux.h:
19502 * s/hpux10-20.h:
19503 * s/hpux11.h:
19504 * s/netbsd.h:
19505 * s/sol2-3.h:
19506 * s/sol2-4.h:
19507 * s/sol2.h:
19508 * s/usg5-4.h:
19509 * s/vms.h: Remove references to unused variables.
19510
19511 2008-07-10 Andreas Schwab <schwab@suse.de>
19512
19513 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19514 pattern before matching the generic family.
19515
19516 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19517
19518 * unexec.c:
19519 * s/vms.h:
19520 * s/usg5-4-2.h:
19521 * s/sol2-5.h:
19522 * s/freebsd.h:
19523 * s/darwin.h: Remove dead code.
19524
19525 * m/template.h:
19526 * m/sparc.h:
19527 * m/mips.h:
19528 * m/m68k.h:
19529 * m/iris4d.h:
19530 * m/intel386.h:
19531 * m/ibms390x.h:
19532 * m/ibms390.h:
19533 * m/ia64.h:
19534 * m/hp800.h:
19535 * m/arm.h:
19536 * m/amdx86-64.h: Remove dead code and references to unused
19537 and compiler defined symbols.
19538
19539 * unexmips.c:
19540 * unexelf.c: Remove references to desupported systems.
19541
19542 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19543
19544 * m/powermac.h: Remove boilerplate comments.
19545 (NO_REMAP): Remove unused definition.
19546
19547 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19548 define them.
19549
19550 2008-07-10 Kenichi Handa <handa@m17n.org>
19551
19552 * xfont.c (xfont_open): Log the reason of failure.
19553
19554 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19555
19556 * fontset.c (fontset_get_font_group):
19557 * font.c (font_check_otf): Specify argument types.
19558
19559 2008-07-09 Kenichi Handa <handa@m17n.org>
19560
19561 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19562 non-ASCII char is found.
19563
19564 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19565 (reorder_font_vector): Change the arg preferred_family to font.
19566 Prefer the spec matching with font.
19567 (fontset_get_font_group): New function.
19568 (fontset_find_font): Change the format of an element of a realized
19569 fontset. Use fontset_get_font_group.
19570 (fontset_font): Try the current fontset, the default fontset, the
19571 fallbacks of the current fontset, and the fallbacks of the default
19572 fontset in this order.
19573 (face_for_char): Delete the shortcut to use the current font.
19574 (fontset_from_font): Don't set fonts for Latin in the fontset.
19575
19576 * font.h (font_make_object, font_match_p): Adjust prototypes.
19577
19578 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19579
19580 * font.c (font_make_object): New arg entity and pixelsize.
19581 (font_check_otf_features, font_check_otf): New functions.
19582 (font_match_p): Check :lang, :script, and :otf properties.
19583
19584 * xfont.c (xfont_open): Adjust it for the change of
19585 font_make_object.
19586 (xfont_text_extents): Fix initial setting of metrics.
19587
19588 * ftfont.c (struct ftfont_info): New member index, delete member
19589 fc_charset_idx. Make the member order compatible with struct
19590 xftfont_info.
19591 (fc_charset_table): Change charset names to registry names.
19592 (ftfont_pattern_entity): Delete the args registry and
19593 fc_charset_idx. Change the value of :font-entity property
19594 to (FONTNAME . INDEX). Always set :registry property to
19595 `iso10646-1'.
19596 (struct ftfont_cache_data): New struct.
19597 (ftfont_lookup_cache): New arg for_face.
19598 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19599 (ftfont_driver): Set the member otf_capability.
19600 (ftfont_get_charset): Adjust it for the change of
19601 fc_charset_table.
19602 (OTF_TAG_SYM): New macro.
19603 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19604 for the change of fc_charset_table.
19605 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19606 ftfont_pattern_entity. Add FC_INDEX to objset.
19607 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19608 and ftfont_pattern_entity.
19609 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19610 font_make_object, struct ftfont_info.
19611 (ftfont_has_char): Use ftfont_get_fc_charset.
19612 (ftfont_otf_features, ftfont_otf_capability): New functions.
19613 (ftfont_shape): Use ftfont_get_otf.
19614 (ftfont_text_extents): Fix initial setting of metrics.
19615
19616 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19617 member order compatible with struct ftfont_info.
19618 (xftfont_open): Add FC_CHARSET to the pattern.
19619 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
19620 properties if appropriate.
19621 (xftfont_close): Unlock the face.
19622 (xftfont_anchor_point, xftfont_shape): Delete.
19623 (syms_of_xftfont): Don't set members anchor_point and shape of
19624 xftfont_driver.
19625
19626 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19627 font_make_object.
19628
19629 * w32font.c (w32font_open): Adjust it for the change of
19630 font_make_object.
19631 (w32font_open_internal): Don't set properties of font_object here.
19632
19633 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
19634
19635 * macfns.c (x_create_tip_frame):
19636 * w32fns.c (x_create_tip_frame):
19637 * xfns.c (x_create_tip_frame): Pass parameter argument to
19638 face-set-after-frame-default.
19639
19640 * xfaces.c (Finternal_merge_in_global_face): Save merged
19641 attributes for the default face back into the face vector.
19642
19643 2008-07-08 Andreas Schwab <schwab@suse.de>
19644
19645 * fontset.h: Declare fontset_from_font. Don't declare
19646 new_fontset_from_font and fontset_from_font_name.
19647 * xterm.c: Include "fontset.h".
19648 * Makefile.in (xterm.o): Update dependencies.
19649
19650 2008-07-08 Glenn Morris <rgm@gnu.org>
19651
19652 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19653 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19654
19655 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
19656
19657 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19658 (x_set_frame_parameters): Don't bind it.
19659
19660 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
19661
19662 * w32fns.c (map_w32_filename): Declare extern.
19663
19664 2008-07-07 Jason Rumney <jasonr@gnu.org>
19665
19666 * w32term.c (WS_EX_LAYERED): Define if not already.
19667
19668 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
19669
19670 * xfaces.c (set_font_frame_param): Don't try to set the font
19671 parameter if it is still unspecified in the lface.
19672
19673 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19674
19675 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19676 face if it didn't already exist.
19677
19678 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19679
19680 2008-07-05 Andreas Schwab <schwab@suse.de>
19681
19682 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19683
19684 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
19685
19686 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19687 word-wrapping.
19688 (IT_DISPLAYING_WHITESPACE): New macro.
19689 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19690 when word-wrapping. Simplify word-wrapping logic. Use correct
19691 pixel positions when saving copies of the iterator.
19692 (display_line): Use proper wrap point if the last character on a
19693 line was preceded by whitespace.
19694
19695 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19696
19697 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19698
19699 2008-07-04 Kenichi Handa <handa@m17n.org>
19700
19701 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19702
19703 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19704
19705 2008-07-02 Jason Rumney <jasonr@gnu.org>
19706
19707 * xfns.c (syms_of_xfns): Only define x-select-font when both
19708 HAVE_FREETYPE and USE_GTK.
19709
19710 * xdisp.c (next_element_from_display_vector): Move assignment out
19711 of if statement.
19712
19713 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19714
19715 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19716
19717 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19718 (syms_of_fileio): Initialize and export them.
19719 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19720
19721 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19722 (Fsystem_move_file_to_trash): New function.
19723 (syms_of_w32fns): Export it to lisp.
19724
19725 2008-07-01 Jason Rumney <jasonr@gnu.org>
19726
19727 * w32font.c (w32font_text_extents): Don't count overhang as part
19728 of width.
19729
19730 2008-06-30 Miles Bader <miles@gnu.org>
19731
19732 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19733 Add `avoid_cursor_p' field.
19734
19735 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19736 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19737 (append_glyph, append_composite_glyph, produce_image_glyph)
19738 (append_stretch_glyph): Initialize avoid_cursor_p.
19739 (get_it_property): Rename from `get_line_height_property'.
19740 (x_produce_glyphs): Use get_it_property.
19741 (handle_line_prefix, push_display_prop): New functions.
19742 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19743 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19744 New variables.
19745 (syms_of_xdisp): Initialize them.
19746
19747 2008-06-30 Kenichi Handa <handa@m17n.org>
19748
19749 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19750 XftDefaultSubstitute (they are called in XftFontMatch).
19751 (xftfont_open): Fix args to ftfont_font_format.
19752
19753 * ftfont.c (fc_charset_table): New member lang.
19754 (ftfont_resolve_generic_family): New arg pattern.
19755 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
19756 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19757 (ftfont_open): Fix args to ftfont_font_format.
19758 (ftfont_font_format): New arg filename.
19759
19760 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
19761
19762 * xfaces.c (Finternal_merge_in_global_face): If default face was
19763 modified, realize it again. Update the font face attribute.
19764
19765 2008-06-29 Jason Rumney <jasonr@gnu.org>
19766
19767 * w32term.c (x_set_frame_alpha): Fix logic.
19768
19769 2008-06-29 Kenichi Handa <handa@m17n.org>
19770
19771 * fontset.c (Finternal_char_font): Return font-object instead of
19772 font-name.
19773
19774 * composite.c (get_composition_id): Fix the width calculation for TAB.
19775
19776 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19777
19778 * indent.c (Fvertical_motion): Properly handle float column arg.
19779
19780 2008-06-28 Jason Rumney <jasonr@gnu.org>
19781
19782 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19783 (pfnSetLayeredWindowAttributes): New function pointer.
19784 (w32_initialize): Initialize it when supported.
19785 (x_set_frame_alpha): New function.
19786
19787 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19788 (w32_frame_parm_handlers): Set alpha handler.
19789
19790 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19791
19792 2008-06-27 Jason Rumney <jasonr@gnu.org>
19793
19794 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19795 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19796 (w32_to_x_charset, x_to_w32_charset)
19797 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19798 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19799 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19800 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19801 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19802 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19803 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19804 (Qw32_charset_unicode): Remove.
19805 (syms_of_w32fns): Update for above changes.
19806
19807 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19808 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19809 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19810 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19811 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19812 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19813 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19814 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19815 (syms_of_w32font): Update for above changes.
19816
19817 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19818
19819 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19820 removed #if.
19821 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19822
19823 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19824 Eli Zaretskii <eliz@gnu.org>
19825
19826 * makefile.w32-in (LOCAL_FLAGS):
19827 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19828
19829 * sysdep.c (_spawnlp, _getpid):
19830 Declare with explicit _cdecl instead of _CRTAPI1.
19831
19832 * editfns.c (Fget_internal_run_time):
19833 Check for WINDOWSNT with #ifdef, not #if.
19834
19835 2008-06-26 Jason Rumney <jasonr@gnu.org>
19836
19837 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19838
19839 * w32term.c (x_draw_glyph_string_foreground)
19840 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19841 Use FONT_HANDLE macro.
19842 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19843
19844 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19845 (uniscribe_encode_char): Use FONT_HANDLE macro.
19846
19847 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19848 (w32font_text_extents): Use precast w32_font.
19849 (w32font_close): Free cached metrics.
19850 (w32font_open_internal): Allocate space for name on stack.
19851
19852 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
19853
19854 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19855
19856 2008-06-26 Jason Rumney <jasonr@gnu.org>
19857
19858 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19859 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19860
19861 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
19862
19863 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19864
19865 2008-06-26 Jason Rumney <jasonr@gnu.org>
19866
19867 * w32bdf.c, w32bdf.h: Remove obsolete files.
19868
19869 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19870
19871 * w32gui.h: Don't include w32bdf.h.
19872 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19873 Remove obsolete font support.
19874
19875 * w32font.h (struct w32font_info): Remove compat_w32_font.
19876 Add hfont member.
19877 (FONT_COMPAT): Remove obsolete macro.
19878
19879 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19880 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19881 (w32font_open_internal): Remove compat code. Set new hfont member.
19882 (Fx_select_font): Use new hfont member.
19883
19884 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19885 (uniscribe_encode_char): Use new hfont member.
19886
19887 * w32term.c (x_draw_glyph_string_foreground)
19888 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19889 (x_draw_glyph_string): Use metrics in w32font_info.
19890
19891 2008-06-26 Kenichi Handa <handa@m17n.org>
19892
19893 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19894
19895 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19896
19897 * unexnext.c:
19898 * m/ews4800.h:
19899 * m/hp9000s300.h:
19900 * m/ibm370aix.h:
19901 * m/mips-siemens.h:
19902 * m/ncr386.h:
19903 * m/next.h:
19904 * m/pmax.h:
19905 * m/powerpcle.h:
19906 * m/tandem-s2.h:
19907 * s/386bsd.h:
19908 * s/bsd386.h:
19909 * s/bsd4-1.h:
19910 * s/bsd4-2.h:
19911 * s/bsdos2-1.h:
19912 * s/bsdos2.h:
19913 * s/bsdos3.h:
19914 * s/bsdos4.h:
19915 * s/nextstep.h:
19916 * s/ultrix4-3.h:
19917 * s/usg5-0.h:
19918 * s/usg5-2-2.h:
19919 * s/usg5-2.h:
19920 * s/usg5-4-3.h:
19921 * s/ux4800.h:
19922 * s/uxpds.h:
19923 * s/uxpv.h: Remove support for obsolete systems.
19924 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
19925 Remove, insert contents in s/hpux10-20.h.
19926 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19927 Remove, insert contents in s/aix4-2.h.
19928 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19929 * s/bsd4-3.h: Rename to ...
19930 * s/bsd-common.h: ... this.
19931 * data.c:
19932 * doc.c:
19933 * ecrt0.c:
19934 * emacs.c:
19935 * fileio.c:
19936 * floatfns.c:
19937 * keyboard.c:
19938 * mem-limits.h:
19939 * print.c:
19940 * process.c:
19941 * sysdep.c:
19942 * syssignal.h:
19943 * systty.h:
19944 * syswait.h:
19945 * term.c:
19946 * unexec.c:
19947 * unexelf.c:
19948 * unexhp9k800.c:
19949 * m/hp800.h:
19950 * m/ibmrs6000.h:
19951 * m/mips.h:
19952 * m/vax.h:
19953 * s/darwin.h:
19954 * s/freebsd.h:
19955 * s/gnu.h:
19956 * s/ms-w32.h:
19957 * s/msdos.h:
19958 * s/netbsd.h:
19959 * s/template.h: Remove references to obsolete variables.
19960
19961 * Makefile.in: Add dependencies for all unexec files.
19962 (admindir): Remove unused variable.
19963 (UNEXEC_SRC): Remove references.
19964
19965 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
19966
19967 * xfns.c (x_default_font_parameter): If Xft is available, first
19968 try Monospace-12 for the default font.
19969
19970 2008-06-25 Jason Rumney <jasonr@gnu.org>
19971
19972 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19973
19974 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19975
19976 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19977
19978 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19979
19980 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
19981
19982 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19983 <scroll-conservatively>: Fix typo in docstring.
19984
19985 * xselect.c (Fx_send_client_event): Doc fix.
19986
19987 2008-06-25 Kenichi Handa <handa@m17n.org>
19988
19989 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19990
19991 * font.c (font_parse_fcname): Remove unused variables.
19992 (font_sort_entites): Delete the arg SPEC. Caller changed.
19993 Fix for the case of ! best_only.
19994 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19995
19996 * lisp.h (Fstring_to_unibyte): EXFUN it.
19997
19998 * character.h (str_to_unibyte): Extern it.
19999
20000 * character.c (str_to_unibyte): New function.
20001
20002 * fns.c (Fstring_to_unibyte): New function.
20003 (syms_of_fns): Defsubr it.
20004
20005 2008-06-24 Kenichi Handa <handa@m17n.org>
20006
20007 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
20008 DPI too.
20009 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
20010
20011 2008-06-24 Andreas Schwab <schwab@suse.de>
20012
20013 * Makefile.in (${lispsource}loaddefs.el): Rename from
20014 ../lisp/loaddefs.el.
20015 (bootstrap-clean): Do what distclean does but don't remove
20016 Makefile.
20017 (distclean): Depend on bootstrap-clean and remove Makefile.
20018
20019 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
20020
20021 * buffer.h (struct buffer): New member word_wrap.
20022
20023 * buffer.c (syms_of_buffer): New variables default-word-wrap and
20024 word-wrap.
20025 (init_buffer_once): Initialize them.
20026
20027 * dispextern.h (struct it): Replace bool truncate_lines_p with a
20028 line_wrap enum possessing three possible values.
20029
20030 * termopts.h: Replace truncate_partial_width_windows with
20031 Vtruncate_partial_width_windows.
20032
20033 * dispnew.c (direct_output_for_insert): Avoid direct output when
20034 inserting a space with word wrap on.
20035
20036 * indent.c (compute_motion): Obey integer values of
20037 truncate-partial-width-windows.
20038
20039 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
20040 replacing truncate_partial_width_windows.
20041 (init_iterator): If Vtruncate_partial_width_windows is an integer,
20042 truncate only if the window width is below that integer.
20043 (start_display, resize_mini_window, produce_stretch_glyph)
20044 (display_string, move_it_in_display_line_to): Use line_wrap.
20045 (back_to_previous_visible_line_start, reseat_1):
20046 Reset string_from_display_prop_p.
20047 (display_line): Extend default face to end of line when wrapping.
20048
20049 2008-06-24 Kim F. Storm <storm@cua.dk>
20050
20051 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
20052 to wrap continued lines at word boundaries.
20053
20054 2008-06-24 Jason Rumney <jasonr@gnu.org>
20055
20056 * font.c (Ffont_face_attributes): Multiply pixel size before point
20057 conversion to avoid multiplying rounding error.
20058
20059 2008-06-23 Jason Rumney <jasonr@gnu.org>
20060
20061 * w32term.c (x_draw_glyph_string_background)
20062 (x_draw_glyph_string): Remove old bdf font code.
20063
20064 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
20065
20066 2008-06-22 Kenichi Handa <handa@m17n.org>
20067
20068 * font.c (font_find_for_lface): Try the adstyle specified in
20069 the property of LFACE_FONT of LFACE (if any).
20070
20071 2008-06-21 Seiji Zenitani <zenitani@mac.com>
20072 Ryo Yoshitake <ryo@shiftmode.net>
20073
20074 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
20075
20076 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
20077
20078 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
20079 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
20080 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
20081 (witness-emacs): Remove.
20082 (lisp, shortlisp): Move loaddefs.el earlier.
20083 (mostlyclean): Forget about witness-emacs.
20084
20085 2008-06-22 Glenn Morris <rgm@gnu.org>
20086
20087 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20088 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20089
20090 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20091
20092 * Makefile.in (PRECOMP): Remove.
20093 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20094 (witness-emacs): Run `compile-first'.
20095 (.el.elc): Use the new compile-onefile target.
20096
20097 2008-06-21 Kenichi Handa <handa@m17n.org>
20098
20099 * xftfont.c (xftfont_open): Handle QCembolden only when
20100 FC_EMBOLDEN is defined.
20101
20102 2008-06-21 Andreas Schwab <schwab@suse.de>
20103
20104 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20105 (.el.elc): Likewise.
20106
20107 2008-06-21 Miles Bader <miles@gnu.org>
20108
20109 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20110 build dir, not the lisp source dir.
20111
20112 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20113
20114 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20115 (bootstrapclean): Remove.
20116 (.el.elc): New rule.
20117 (PRECOMP): New var.
20118 (../lisp/subdirs.el): Remove.
20119 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20120 (witness-emacs): New target.
20121 (mostlyclean): Remove witness-emacs as well.
20122 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20123 Add witness-emacs dependency.
20124
20125 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
20126
20127 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20128 defined by the font.
20129
20130 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20131
20132 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20133 (bootstrap-clean): New target that keeps TAGS around.
20134 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20135 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20136
20137 2008-06-20 Jason Rumney <jasonr@gnu.org>
20138
20139 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20140 Remove obsolete font code.
20141
20142 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20143 to determine language support.
20144
20145 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20146
20147 * sysdep.c (cfsetspeed): New fun extracted from the code.
20148 (cfmakeraw): Move before first use.
20149
20150 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20151
20152 * sysdep.c (cfmakeraw): Provide fallback implementation.
20153 (serial_configure): Provide fallback implementation of cfsetspeed.
20154
20155 2008-06-20 Kenichi Handa <handa@m17n.org>
20156
20157 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20158 the pattern.
20159
20160 * fontset.c (fontset_from_font): Copy font_spec before changing
20161 the elements.
20162
20163 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20164
20165 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20166
20167 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20168 for explicit `font' parameters.
20169
20170 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20171
20172 2008-06-19 Kenichi Handa <handa@m17n.org>
20173
20174 * frame.c: Include <ctype.h>.
20175 (x_set_font_backend): Allow spacing characters in the X resource
20176 for FontBackend.
20177
20178 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20179
20180 * w32fns.c, xfns.c (Qfont_param): New var.
20181 (syms_of_w32fns): Initialize it.
20182 (x_default_font_parameter): Record explicit `font' into
20183 `font-parameter'.
20184
20185 2008-06-18 Kenichi Handa <handa@m17n.org>
20186
20187 * font.c (font_parse_xlfd): Fix previous change.
20188 (font_parse_fcname): Don't use :fc-unknown-spec.
20189 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20190 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20191 (font_add_log): Prepend the driver name to the resulting fonts.
20192
20193 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20194 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20195 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20196
20197 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20198 (QCembolden): New variables.
20199 (syms_of_xftfont): DEFSYM them.
20200 (xftfont_open): Call XftFontMatch. Don't trust the result of
20201 XftTextExtents8 if the pixel_size is less than 5.
20202
20203 2008-06-18 Andreas Schwab <schwab@suse.de>
20204
20205 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20206 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20207
20208 2008-06-18 Jason Rumney <jasonr@gnu.org>
20209
20210 * w32font.c (w32font_list, w32font_match): Add logging.
20211
20212 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20213
20214 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
20215
20216 * font.c (font_parse_fcname): Store divider characters for
20217 unknown-spec list. For known key symbols, intern using correct
20218 symbol name.
20219
20220 2008-06-17 Kenichi Handa <handa@m17n.org>
20221
20222 * xfaces.c (realize_default_face): If the frame is not on window
20223 system, set the fontset of face to nil.
20224
20225 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20226
20227 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20228
20229 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20230
20231 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20232 (build_font_name_from_vector): Delete externs.
20233
20234 * xfaces.c (struct font_name): Don't declare.
20235
20236 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20237
20238 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20239
20240 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20241
20242 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20243
20244 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
20245
20246 * font.c (Ffont_spec): Fix usage in docstring.
20247 (Ffont_face_attributes): Doc fix.
20248
20249 2008-06-16 Andreas Schwab <schwab@suse.de>
20250
20251 * font.c (Ffont_face_attributes): Fix definition.
20252
20253 2008-06-16 Jason Rumney <jasonr@gnu.org>
20254
20255 * font.h (font_style_symbolic_from_value): Remove.
20256
20257 * font.c (font_style_symbolic_from_value): Remove.
20258 (font_style_symbolic): Revert to pre 2008-06-13 version.
20259
20260 * w32font.c (w32_to_fc_weight): New function.
20261 (w32font_full_name, logfont_to_fcname): Use it.
20262
20263 2008-06-16 Kenichi Handa <handa@m17n.org>
20264
20265 * font.c (font_check_object): Delete it.
20266 (font_clear_cache): Check if a font-object is alive.
20267 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20268 font-object to nil.
20269 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20270 (font_at): Don't call font_check_object.
20271 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20272
20273 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20274
20275 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20276
20277 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
20278
20279 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20280
20281 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
20282
20283 * font.c (font_parse_fcname): Only one decimal point.
20284 (font_unparse_fcname): Handle data in family and foundry indices
20285 as symbols, not strings.
20286 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20287
20288 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20289
20290 * font.h (font_unparse_gtkname): Add prototype.
20291
20292 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20293
20294 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20295
20296 2008-06-15 Andreas Schwab <schwab@suse.de>
20297
20298 * font.c (font_update_drivers): Fix crash when no drivers match.
20299
20300 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20301
20302 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20303 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20304
20305 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20306
20307 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20308
20309 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20310
20311 * process.c (Fserial_process_configure, Fprocess_send_eof):
20312 Use EQ to compare Lisp_Objects.
20313
20314 2008-06-13 Jason Rumney <jasonr@gnu.org>
20315
20316 * w32fns.c (Fw32_select_font): Remove old font API function.
20317
20318 * w32font.c (logfont_to_fcname): New function.
20319 (Fx_select_font): New font dialog function compatible with
20320 GTK/fontconfig version.
20321
20322 * font.c (font_style_symbolic_from_value): New function.
20323 (font_style_symbolic): Use it.
20324
20325 * font.h (font_style_symbolic_from_value): Declare new function.
20326
20327 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
20328
20329 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20330 <font-width-table>: Fix typos in docstrings.
20331
20332 2008-06-13 Daniel Engeler <engeler@gmail.com>
20333
20334 These changes add serial port access.
20335 * process.c: Add HAVE_SERIAL.
20336 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20337 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20338 (list_processes_1, select_wrapper, Fstop_process)
20339 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20340 (status_notify): Modify to handle serial processes.
20341 [HAVE_SERIAL] (Fserial_process_configure)
20342 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20343 New functions.
20344 * process.h (struct Lisp_Process): Add `type'.
20345 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20346 New functions.
20347 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20348 serial ports.
20349 (serial_open, serial_configure): New functions.
20350 * w32.h: Add FILE_SERIAL.
20351 (struct _child_process): Add ovl_read, ovl_write.
20352
20353 2008-06-13 Kenichi Handa <handa@m17n.org>
20354
20355 * dispextern.h (enum lface_attribute_index): New member
20356 LFACE_FOUNDRY_INDEX.
20357
20358 * font.c (font_score): Delete arg alternate_families. Check only
20359 weight, slant, width, and size. Ignore the difference of alias
20360 style symbols.
20361 (font_sort_entites): Adjust for the above change. Reflect the
20362 order of font-driver to scores.
20363 (font_list_entities): Don't check alternate_familes here.
20364 (font_clear_prop): Handle foundry.
20365 (font_update_lface): Don't parse "foundry-family" form here.
20366 Handle FONT_FOUNDRY_INDEX.
20367 (font_find_for_lface): Likewise. Handle alternate families here.
20368 If registry is nil, try iso8859-1 and ascii-0.
20369 (font_open_for_lface): Pay attention to size in ENTITY.
20370 (font_open_by_name): Simplify by calling font_load_for_lface.
20371 (free_font_driver_list): Delete it.
20372 (font_update_drivers): Preserve the order of backends.
20373 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20374 of font_score and font_sort_entites.
20375 (font_update_sort_order): Likewise.
20376
20377 * xfaces.c (LFACE_FOUNDRY): New macro.
20378 (check_lface_attrs): Check foundry.
20379 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20380 (merge_face_vectors): Check foundry.
20381 (merge_face_ref): Likewise.
20382 (Finternal_set_lisp_face_attribute): Likewise.
20383 (x_update_menu_appearance): Likewise.
20384 (Finternal_get_lisp_face_attribute): Likewise.
20385 (lface_hash): Likewise.
20386 (lface_same_font_attributes_p): Likewise.
20387 (x_supports_face_attributes_p): Likewise.
20388 (tty_supports_face_attributes_p): Likewise.
20389 (Finternal_set_alternative_font_family_alist): Intern strings.
20390 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20391 (realize_default_face): Set LFACE_FOUNDRY (lface).
20392
20393 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20394 font-driver at first.
20395
20396 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20397
20398 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20399
20400 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20401
20402 2008-06-12 Jim Meyering <meyering@redhat.com>
20403
20404 Make unexec_free handle NULL the same way free does.
20405 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20406
20407 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20408
20409 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20410 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20411 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20412 (WEAK_ALIAS): Simplify.
20413 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20414 when searching a unibyte buffer.
20415
20416 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
20417
20418 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20419
20420 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
20421
20422 * w32font.c: Include ctype.h.
20423
20424 2008-06-11 Jason Rumney <jasonr@gnu.org>
20425
20426 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20427 misreported as space.
20428 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20429 as aliases for registry iso10646-1.
20430
20431 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20432
20433 * buffer.c (clone_per_buffer_values): Skip `name'.
20434
20435 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
20436
20437 * font.c (font_parse_fcname): Fix last change; accept decimal
20438 points in font size.
20439
20440 2008-06-10 Jason Rumney <jasonr@gnu.org>
20441
20442 * w32uniscribe.c (add_opentype_font_name_to_list):
20443 Skip non unicode fonts.
20444
20445 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20446
20447 * xfns.c (Fx_font_dialog): New function.
20448
20449 * gtkutil.c (xg_dialog_response_cb): Rename from
20450 xg_file_response_callback.
20451 (pop_down_dialog): Rename from pop_down_file_dialog.
20452 (xg_get_file_name): Callers changed.
20453 (xg_get_font_name): New function.
20454
20455 * gtkutil.h (xg_get_font_name): Insert prototype.
20456
20457 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20458
20459 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20460 x_underline_minimum_display_offset.
20461 (syms_of_xdisp): Declare it here rather than in xterm.c.
20462 * dispextern.h (underline_minimum_offset): Declare it.
20463 * w32term.c (x_draw_glyph_string): Use it.
20464 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20465 (syms_of_xterm): Don't declare it any more.
20466 (x_draw_glyph_string): Adjust to the new name.
20467
20468 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
20469
20470 * xterm.c (x_underline_minimum_display_offset): New var.
20471 (x_draw_glyph_string): Use it.
20472 (syms_of_xterm): Declare it.
20473
20474 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
20475
20476 * font.c (font_parse_fcname): Accept GTK-style font names too.
20477
20478 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20479
20480 * dired.c (file_name_completion): Don't return t if the match is exact
20481 but with different capitalization.
20482 * minibuf.c (Ftry_completion): Simplify.
20483
20484 * window.c (Vwindow_point_insertion_type): New var.
20485 (set_window_buffer): Use it.
20486 (syms_of_window): Init and export it to Lisp.
20487
20488 2008-06-10 Kenichi Handa <handa@m17n.org>
20489
20490 * font.h (font_intern_prop): Prototype adjusted.
20491
20492 * font.c (font_intern_prop): New arg force_symbol.
20493 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20494 Adjust for the change of font_intern_prop.
20495
20496 * ftfont.c (ftfont_pattern_entity):
20497 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20498 (w32_registry):
20499 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20500 the change of font_intern_prop.
20501
20502 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
20503
20504 * w32menu.c (digest_single_submenu): Declare extern.
20505
20506 2008-06-09 Jason Rumney <jasonr@gnu.org>
20507
20508 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20509
20510 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20511 (parse_single_submenu): Remove.
20512 (digest_single_submenu): Remove.
20513 (syms_of_w32menu): Don't initialise variables that have moved
20514 to menu.c.
20515 (set_frame_menubar): Sync with version in xmenu.c.
20516 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20517
20518 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20519 Make static again.
20520
20521 2008-06-09 Jason Rumney <jasonr@gnu.org>
20522
20523 Changes to w32 files related to the move of common menu code
20524 to menu.c on 2008-06-08 by Chong Yidong.
20525
20526 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20527 defs to w32gui.h.
20528 (single_keymap_panes, push_menu_item, push_menu_pane):
20529 Make globally visible.
20530
20531 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20532 (local_free, malloc_widget_value, free_widget_value)
20533 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20534 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20535 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20536 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20537 (menu_items, menu_items_allocated, menu_items_used)
20538 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20539 (init_menu_items, finish_menu_items, discard_menu_items)
20540 (grow_menu_items, push_submenu_start, push_submenu_end)
20541 (push_left_right_boundary, push_menu_pane, push_menu_item)
20542 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20543 (free_menubar_widget_tree_value, parse_single_submenu)
20544 (update_submenu_strings): Remove functions.
20545 (xmalloc_widget_value): Remove and declare extern.
20546
20547 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20548 (OBJ1): Build it.
20549
20550 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20551 (local_heap, local_alloc, local_free, malloc_widget_value)
20552 (free_widget_value): Define here.
20553
20554 2008-06-09 Kenichi Handa <handa@m17n.org>
20555
20556 * font.h (Qascii_0): Extern it.
20557
20558 * font.c (Qascii_0): New variable.
20559 (syms_of_font): DEFSYM it.
20560 (font_open_by_name): If the registry "iso8859-1" fails, try also
20561 "ascii-0".
20562
20563 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20564
20565 2008-06-08 Kenichi Handa <handa@m17n.org>
20566
20567 * .gdbinit (xfont): New command.
20568
20569 2008-06-08 Andreas Schwab <schwab@suse.de>
20570
20571 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20572 * Makefile.in (menu.o): Update dependencies.
20573
20574 * Makefile.in (obj): Always add menu.o.
20575 * emacs.c (main): Always call syms_of_menu.
20576 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20577
20578 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
20579
20580 * Makefile.in: Compile menu.c.
20581
20582 * lisp.h: Declare syms_of_menu.
20583
20584 * emacs.c (main): Call syms_of_menu.
20585
20586 * keyboard.h: Relocate platform-independent menu definitions from
20587 xmenu.c.
20588
20589 * menu.c: New file. Relocate platform-independent menu
20590 definitions from xmenu.c. Suggested by Adrian Robert.
20591
20592 * xmenu.c: Remove platform-independent menu definitions.
20593 (menu_items, menu_items_inuse, menu_items_allocated)
20594 (menu_items_used, menu_items_n_panes)
20595 (menu_items_submenu_depth): Move to keyboard.h.
20596 (init_menu_items, finish_menu_items, unuse_menu_items)
20597 (discard_menu_items, restore_menu_items, save_menu_items)
20598 (grow_menu_items, push_submenu_start, push_submenu_end)
20599 (push_left_right_boundary, push_menu_pane, push_menu_item)
20600 (keymap_panes, single_keymap_panes, single_menu_item)
20601 (list_of_panes, list_of_items, find_and_call_menu_selection)
20602 (xmalloc_widget_value, free_menubar_widget_value_tree)
20603 (parse_single_submenu, digest_single_submenu)
20604 (update_submenu_strings): Move to menu.c.
20605
20606 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20607
20608 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20609
20610 2008-06-06 Miles Bader <miles@gnu.org>
20611
20612 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20613 face, not frame default.
20614
20615 2008-06-05 Martin Rudalics <rudalics@gmx.at>
20616
20617 * window.c (pop_up_windows, pop_up_frames)
20618 (display_buffer_reuse_frames, Vpop_up_frame_function)
20619 (Vdisplay_buffer_function, Veven_window_heights)
20620 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20621 (Vspecial_display_function, Vsame_window_buffer_names)
20622 (Vsame_window_regexps, split_height_threshold)
20623 (Vsplit_window_preferred_function): Move those vars to window.el.
20624 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20625 (Fdisplay_buffer): Move those functions to window.el.
20626 (syms_of_window): Remove corresponding declarations.
20627 (display_buffer): New function.
20628 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20629 * dispnew.c (Flast_nonminibuf_frame): New function.
20630 * buffer.c (Fpop_to_buffer): Move to window.el.
20631
20632 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20633
20634 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20635
20636 2008-06-05 Kenichi Handa <handa@m17n.org>
20637
20638 * coding.c (detect_coding): Fix previous change.
20639 (detect_coding_system): Likewise.
20640
20641 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20642
20643 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20644
20645 * keymap.c (Vminibuffer_local_filename_must_match_map):
20646 Rename from Vminibuffer_local_must_match_filename_map.
20647 (syms_of_keymap):
20648 * minibuf.c (Fcompleting_read): Adjust accordingly.
20649 * commands.h: Rename declaration as well.
20650
20651 2008-06-05 Kenichi Handa <handa@m17n.org>
20652
20653 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20654 family name.
20655 (Ffont_put): Likewise.
20656
20657 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20658 current font-spec.
20659
20660 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20661 is unspecified.
20662
20663 * xfaces.c (realize_x_face): If the font-related face attributes
20664 are the same as those of default face, realize a new fontset from
20665 default->fontset.
20666 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20667
20668 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20669
20670 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20671 (move_it_in_display_line): New wrapper.
20672
20673 * window.c (window_scroll_pixel_based_preserve_x)
20674 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20675 (window_scroll_pixel_based, window_scroll_line_based):
20676 Use them to preserve column positions.
20677 (syms_of_window): Initialize them.
20678
20679 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20680 (HPOS . VPOS) pair.
20681
20682 * dispextern.h (move_it_in_display_line): Declare.
20683
20684 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
20685
20686 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20687 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20688 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20689
20690 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
20691
20692 * window.c (Fset_window_parameter): Doc fix.
20693 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20694
20695 2008-06-04 Joakim Verona <joakim@verona.se>
20696
20697 * window.h (struct window): Add new member window_parameters.
20698
20699 * window.c (Fwindow_parameters, Fwindow_parameter)
20700 (Fset_window_parameter): New defuns.
20701 (syms_of_window): Defsubr the new defuns.
20702 (make_window): Initialize window_parameters to nil.
20703
20704 2008-06-04 John Paul Wallington <jpw@pobox.com>
20705
20706 * eval.c (Fdefmacro): Doc fix.
20707
20708 2008-06-04 Kenichi Handa <handa@m17n.org>
20709
20710 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20711 Be sure to call setup_coding_system when we find a proper coding system.
20712 (detect_coding_system): Fix handling of coding->head_ascii.
20713
20714 2008-06-03 Andreas Schwab <schwab@suse.de>
20715
20716 * font.c (font_prop_validate_spacing): Fix last change.
20717
20718 2008-06-03 Kenichi Handa <handa@m17n.org>
20719
20720 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20721 (font_parse_fcname): Fix handling of unknown key.
20722
20723 * xfont.c (xfont_list): Try an alias.
20724
20725 * charset.c (char_charset): Return NULL if the arg charset_list is
20726 specified and C doesn't belong to any of them.
20727
20728 2008-06-02 Chip Coldwell <coldwell@redhat.com>
20729
20730 * font.c (font_pixel_size): Don't take cdr of an integer.
20731
20732 2008-06-02 Jim Meyering <meyering@redhat.com>
20733
20734 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20735 * alloc.c (xfree): Return right away for a NULL arg.
20736 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20737 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20738 * mac.c (create_apple_event_from_event_ref): Likewise.
20739 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20740 Likewise.
20741 * doprnt.c (doprnt1): Likewise.
20742 * frame.c (frame): Likewise.
20743 * keyboard.c (wipe_kboard): Likewise.
20744 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20745 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20746 * term.c (tty_default_color_capabilities, maybe_fatal)
20747 (delete_tty): Likewise.
20748 * w16select.c (string): Likewise.
20749 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20750 * w32bdf.c (w32_free_bdf_font): Likewise.
20751 * w32fns.c (w32_unload_font): Likewise.
20752 * w32font.c (w32font_close): Likewise.
20753 * window.c (size_window): Likewise.
20754 * xselect.c (receive_incremental_selection): Likewise.
20755 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20756 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20757 * w32.c (stat): Likewise.
20758
20759 Remove useless if-before-free tests.
20760 * editfns.c (Fset_time_zone_rule): Likewise.
20761 * lread.c (nosuffix): Likewise.
20762 * ralloc.c (get_bloc): Likewise.
20763 * regex.c (reg_free): Likewise.
20764 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20765 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20766 * xsmfns.c (smc_save_yourself_CB): Likewise.
20767
20768 2008-06-02 Kenichi Handa <handa@m17n.org>
20769
20770 * font.c (font_find_for_lface): Handle float font size.
20771 (font_open_for_lface): Likewise.
20772
20773 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20774 comparing the properties.
20775
20776 2008-06-01 Jason Rumney <jasonr@gnu.org>
20777
20778 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20779 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20780 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20781 Don't add empty script list.
20782 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20783
20784 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20785
20786 * Makefile.in (dot, dotdot): Remove, update users.
20787 ".." has been used elsewhere in the file for a long time.
20788 (LIBXT_STATIC): Remove conditional based on unused variable.
20789
20790 2008-06-01 Miles Bader <miles@gnu.org>
20791
20792 * xfaces.c (Vface_remapping_alist): New variable.
20793 (syms_of_xfaces): Initialize it.
20794 (enum named_merge_point_kind): New type.
20795 (struct named_merge_point): Add `named_merge_point_kind' field.
20796 (push_named_merge_point): Make cycle detection respect different
20797 named-merge-point kinds.
20798 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20799 Remove face-name alias resolution.
20800 (lface_from_face_name): New definition using
20801 `lface_from_face_name_no_resolve'.
20802 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20803 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20804 (get_lface_attributes): New definition that layers face-remapping on
20805 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20806 (lookup_basic_face): New function.
20807 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20808 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20809 `get_lface_attributes'.
20810 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20811 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20812 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20813
20814 * xdisp.c (init_iterator): Pass base_face_id through
20815 `lookup_basic_face' when we actually use it as a face-id.
20816 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20817 DEFAULT_FACE_ID.
20818
20819 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20820 lookup the initial face-id.
20821
20822 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20823
20824 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
20825
20826 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20827 (Fremove_text_properties): Fix typos in docstrings.
20828
20829 2008-05-31 Kenichi Handa <handa@m17n.org>
20830
20831 * font.c (font_list_entities): Fix the car part of data to be
20832 stored in the cache.
20833
20834 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20835
20836 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20837
20838 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20839 Add a `test' argument so another predicate than `equal' can be used.
20840 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20841 (map_char_table): Remove unused vars `c' and `i'.
20842 * lisp.h (Foptimize_char_table): Adjust declaration.
20843 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20844
20845 2008-05-30 Kenichi Handa <handa@m17n.org>
20846
20847 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20848 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20849 defined.
20850
20851 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20852
20853 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20854 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20855 frame-local settings for the same variable.
20856
20857 2008-05-30 Kenichi Handa <handa@m17n.org>
20858
20859 * fontset.c (Ffont_info): Move to font.c.
20860 (syms_of_fontset): Delete defsubr of Sfont_info.
20861
20862 * font.c (font_style_to_value, font_score): Delete casting of the
20863 args to xstcasecmp.
20864 (register_font_driver): Increment num_font_drivers only when
20865 registering the driver globally.
20866 (Ffont_info): Move from fontset.c. Handle a font object too.
20867 (syms_of_font): Defsubr Sfont_info.
20868
20869 2008-05-29 Kenichi Handa <handa@m17n.org>
20870
20871 * coding.h (enum define_coding_utf8_arg_index): New enum.
20872 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20873 coding_attr_utf_bom.
20874 (enum utf_bom_type): Rename from utf_16_bom_type.
20875 (struct utf_16_spec): Adjust for the above change.
20876 (struct coding_system): Add utf_8_bom in `spec' union.
20877
20878 * coding.c (CODING_UTF_8_BOM): New macro.
20879 (enum coding_category): Delete coding_category_utf_8, add
20880 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20881 coding_category_utf_8_sig.
20882 (CATEGORY_MASK_UTF_8): Delete it.
20883 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20884 (CATEGORY_MASK_UTF_8_SIG): New macros.
20885 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20886 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20887 CATEGORY_MASK_UTF_8_SIG.
20888 (CATEGORY_MASK_UTF_8): New macro.
20889 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20890 (detect_coding_utf_8): Check BOM.
20891 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20892 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20893 (encode_coding_utf_16): Likewise.
20894 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20895 (detect_coding, detect_coding_system): Handle utf-8-auto.
20896 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20897 (syms_of_coding): Fix setting up of Vcoding_category_table.
20898
20899 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20900
20901 * process.c (Faccept_process_output): If `millisec' is non-nil,
20902 `seconds' default to 0.
20903 (wait_reading_process_output): Also return non-nil if we read output
20904 from a non-running process.
20905
20906 2008-05-29 Jason Rumney <jasonr@gnu.org>
20907
20908 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20909 `raster' specified.
20910 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20911 in the uniscribe backend, but disallow any font that has no
20912 unicode subrange support.
20913
20914 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
20915
20916 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20917 Fix typos in docstrings.
20918
20919 2008-05-29 Kenichi Handa <handa@m17n.org>
20920
20921 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20922 (Fx_family_fonts): Set frame correctly.
20923
20924 2008-05-28 Jason Rumney <jasonr@gnu.org>
20925
20926 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20927
20928 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20929
20930 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20931 calling build_annotations.
20932
20933 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
20934
20935 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20936 (Fencode_coding_string):
20937 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20938 <latin-extra-code-table>: Fix typos in docstrings.
20939 (syms_of_coding) <coding-system-alist>: Doc fix.
20940 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20941
20942 2008-05-28 Kenichi Handa <handa@m17n.org>
20943
20944 * fontset.c (Ffont_info): Don't call font_close_object.
20945
20946 * font.c (font_parse_family_registry): Use Ffont_put to validate
20947 foundry and family.
20948 (font_delete_unmatched): Don't check spacing.
20949 (font_list_entities): Add spacing to the spec to list fonts.
20950
20951 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20952 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20953
20954 * coding.c (encode_coding_raw_text): Fix previous change.
20955 (encode_coding_object): When the dst_object is a buffer and is
20956 different from src_object, move gap to PT.
20957
20958 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20959
20960 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20961
20962 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20963
20964 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20965 all branches. Compute it differently.
20966
20967 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20968
20969 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
20970
20971 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20972 into "else if () ... else ...".
20973
20974 2008-05-27 Jason Rumney <jasonr@gnu.org>
20975
20976 * w32font.c (w32font_open_internal): Determine if glyph indices
20977 are likely to work here.
20978
20979 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
20980
20981 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20982 draw overlap glyphs with appropriate highlighting.
20983
20984 2008-05-27 Kenichi Handa <handa@m17n.org>
20985
20986 * xfont.c (xfont_open): Fix calculation of font->average_width.
20987
20988 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20989
20990 * casefiddle.c (casify_object): Try to guess better whether the
20991 argument is a byte or a char.
20992
20993 2008-05-26 Andreas Schwab <schwab@suse.de>
20994
20995 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20996 Always send multiples of format size.
20997
20998 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20999
21000 2008-05-26 Jason Rumney <jasonr@gnu.org>
21001
21002 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
21003 (compute_metrics): Don't set failure if we just cleared the cache.
21004 (w32_weight_table): Remove unused variable.
21005 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
21006 backwards compatibility.
21007
21008 2008-05-25 Kenichi Handa <handa@m17n.org>
21009
21010 * w32term.c (x_draw_glyph_string):
21011 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
21012
21013 * xfaces.c: Delete unused function prototypes.
21014 (xstrlwr, font_frame): Delete them.
21015 (clear_face_cache): Delete unused variable.
21016
21017 * xftfont.c (xftfont_open): Delete unused variable.
21018 If underline_thickness is not 1, adjust underline_position.
21019
21020 * ftxfont.c (ftxfont_open): Delete unused variable.
21021
21022 * fontset.c (face_for_char): Optimize for the case of no charset
21023 property.
21024
21025 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
21026 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
21027 (otf_open, font_otf_capability, generate_otf_features)
21028 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21029 Comment out by surrounding "#if 0" and "#endif" for the moment.
21030 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
21031 (syms_of_font): Codes for accessing above commented out.
21032
21033 2008-05-24 Eli Zaretskii <eliz@gnu.org>
21034
21035 * w32proc.c: Include dispextern.h.
21036
21037 * w32.c: Include dispextern.h.
21038
21039 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
21040
21041 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
21042 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
21043 Fix typos in docstrings.
21044
21045 2008-05-23 Jason Rumney <jasonr@gnu.org>
21046
21047 * xsmfns.c: Remove includes that are already included by config.h.
21048
21049 2008-05-23 Kenichi Handa <handa@m17n.org>
21050
21051 * charset.c (Qemacs, charset_emacs): New variables.
21052 (char_charset): Fix for non-Unicode characters.
21053 (syms_of_charset): Define charset_emacs.
21054
21055 * w32term.c (x_draw_glyph_string): Be sure to update
21056 s->underline_thickness and s->underline_position. Be sure to draw
21057 underline within the current line area.
21058
21059 * xterm.c (x_draw_glyph_string): Be sure to update
21060 s->underline_thickness and s->underline_position. Be sure to draw
21061 underline within the current line area.
21062
21063 * fontset.c: Delete unused variables and add casting for char *
21064 throughout the file.
21065 (fontset_font): Try the fallback fonts of the current fontset
21066 before consulting the default fontset.
21067
21068 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
21069
21070 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
21071
21072 2008-05-22 Jason Rumney <jasonr@gnu.org>
21073
21074 * font.c: Don't include strings.h.
21075
21076 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
21077
21078 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
21079 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
21080 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
21081 to call xstrcasecmp.
21082
21083 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
21084
21085 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21086
21087 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21088
21089 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21090
21091 2008-05-22 Kenichi Handa <handa@m17n.org>
21092
21093 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21094
21095 * font.c (font_prop_validate_style): Adjust for the format
21096 change of font_style_table.
21097
21098 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21099 two args.
21100
21101 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21102 two args.
21103
21104 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21105
21106 * minibuf.c (keys_of_minibuf): Delete.
21107 * lisp.h (keys_of_minibuf): Delete.
21108 * emacs.c (main): Don't call keys_of_minibuf.
21109
21110 2008-05-22 Kenichi Handa <handa@m17n.org>
21111
21112 * ftfont.c (ftfont_resolve_generic_family): Rename from
21113 ftfont_list_generic_family. Return a single family for each
21114 generic family.
21115 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21116 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21117 Call font_add_log.
21118 (ftfont_match): Call font_add_log.
21119
21120 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21121 (FONT_DEBUG): Define it.
21122 (font_add_log): Extern it.
21123 (font_assert): Rename from xassert.
21124
21125 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21126 (xfont_list_family): Call font_add_log.
21127 (xfont_match): Likewise.
21128 (memq_no_quit): Delete.
21129
21130 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21131 call of Ffont_xlfd_name.
21132
21133 * xfaces.c (struct table_entry, slant_table, weight_table)
21134 (swidth_table): Move to font.c.
21135
21136 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21137 xassert are changed to font_assert. Delete many unused variables.
21138 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21139 New variables.
21140 (struct table_entry): Move from xfaces.c and modified.
21141 (weight_table, slant_table, width_table): Move from xfaces.c and
21142 contents adjusted for the change of struct table_entry.
21143 (font_style_to_value, font_style_symbolic): Adjust for the
21144 format change of font_style_table.
21145 (font_parse_family_registry): Don't overwrite existing foundry and
21146 family of font_spec.
21147 (font_score): Fix calculation of diff for sizes.
21148 (font_sort_entites): Call font_add_log.
21149 (font_delete_unmatched): Return a newly created list.
21150 (font_list_entities): Fix previous change. Call font_add_log.
21151 (font_matching_entity, font_open_entity, font_close_entity):
21152 Call font_add_log.
21153 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21154 (Finternal_set_font_style_table): Delete.
21155 (BUILD_STYLE_TABLE): New macro.
21156 (build_style_table): New function.
21157 (Vfont_log, font_log_env_checked): New variables.
21158 (font_add_log): New function.
21159 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21160 Declare Lisp variables "font-weight-table", "font-slant-table",
21161 "font-width-table", and "font-log". Initialize font_style_table.
21162
21163 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21164
21165 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21166
21167 2008-05-21 Seiji Zenitani <zenitani@mac.com>
21168 Ryo Yoshitake <ryo@shiftmode.net>
21169
21170 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21171 (Vframe_alpha_lower_limit): New variable.
21172 (x_set_alpha): New function.
21173
21174 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21175
21176 * xfns.c (x-create-frame, Qalpha):
21177 Initialize the frame parameter `alpha'.
21178 * xterm.c (OPAQUE, OPACITY): New.
21179 (x_set_frame_alpha): New function.
21180 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21181
21182 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21183 * w32fns.c (w32_frame_parm_handlers): Likewise.
21184
21185 2008-05-20 Jason Rumney <jasonr@gnu.org>
21186
21187 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21188 truetype fonts to opentype list.
21189
21190 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
21191
21192 * fontset.c (Ffontset_info): Doc fix.
21193 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21194 <ignore-relative-composition>: Fix typos in docstrings.
21195
21196 * font.c (syms-of-font) <font-encoding-alist>:
21197 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21198 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21199 (Ffont_otf_alternates): Doc fixes.
21200
21201 2008-05-20 Kenichi Handa <handa@m17n.org>
21202
21203 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21204 font.h through out the file.
21205 (FONT_DRIVERS): Rename from FONTOBJ.
21206 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21207 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21208
21209 * emacs.c (main): Call syms_of_font unconditionally.
21210
21211 * font.h (find_font_encoding): Extern it.
21212
21213 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21214 fontset.c.
21215 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
21216 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21217 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21218 only when HAVE_WINDOW_SYSTEM is defined.
21219 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21220 when HAVE_WINDOW_SYSTEM is defined.
21221
21222 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21223 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21224
21225 * xfaces.c: Include font.h unconditionally.
21226 (merge_face_ref, merge_face_vectors)
21227 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21228
21229 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21230
21231 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21232 indirect_variable.
21233 * eval.c (lisp_indirect_variable): New fun.
21234 (Fuser_variable_p): Use it.
21235
21236 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21237
21238 * lisp.h (indirect_variable):
21239 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21240 Use Lisp_Symbol pointers rather than Lisp_Object.
21241 Adjust callers.
21242 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21243 To this end, change calling-convention.
21244
21245 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21246 if some non-hidden buffers are selected by string&pred.
21247
21248 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
21249
21250 * process.c (wait_reading_process_output): Always check status
21251 when in batch mode.
21252
21253 2008-05-19 Kenichi Handa <handa@m17n.org>
21254
21255 * font.c (font_list_entities): Fix handling of cache.
21256 (font_matching_entity): Likewise.
21257
21258 * ftfont.c (cs_iso8859_1): Delete.
21259 (ft_face_cache): New variable.
21260 (struct ftfont_info): New member fc_charset_idx.
21261 (ftfont_build_basic_charsets): Delete.
21262 (fc_charset_table): New variable.
21263 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21264 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21265 Callers changed.
21266 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21267 (ftfont_spec_pattern): New argument fc_charset_idx.
21268 Check registry more rigidly. Change callers.
21269 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21270 change of :font-entity property of the font.
21271
21272 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21273 property of the font.
21274
21275 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
21276
21277 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21278 (Funencodable_char_position, Fcheck_coding_systems_region)
21279 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21280 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21281 (Ffind_operation_coding_system, Fset_coding_system_priority)
21282 (Fcoding_system_eol_type): Doc fixes.
21283
21284 2008-05-17 Glenn Morris <rgm@gnu.org>
21285
21286 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21287
21288 2008-05-16 Eli Zaretskii <eliz@gnu.org>
21289
21290 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21291 and st_gid.
21292
21293 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21294 HAVE_WINDOW_SYSTEM is not defined.
21295
21296 * xfaces.c (merge_face_ref, merge_face_vectors)
21297 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21298 HAVE_WINDOW_SYSTEM is defined.
21299 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21300
21301 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21302
21303 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21304
21305 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21306
21307 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21308
21309 2008-05-15 Kenichi Handa <handa@m17n.org>
21310
21311 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21312 preference.
21313
21314 2008-05-15 Glenn Morris <rgm@gnu.org>
21315
21316 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21317
21318 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
21319
21320 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21321 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21322
21323 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21324
21325 2008-05-15 Kenichi Handa <handa@m17n.org>
21326
21327 * ftfont.c (ftfont_list): Downcase family name to check generic
21328 families.
21329
21330 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21331 font-spec for QCfont value.
21332
21333 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21334 buffer. Check the return value of it.
21335
21336 2008-05-14 Jason Rumney <jasonr@gnu.org>
21337
21338 * w32term.c (w32_get_glyph_overhangs): Remove.
21339 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21340
21341 2008-05-14 Kenichi Handa <handa@m17n.org>
21342
21343 * font.c (font_prop_validate): Make nil a valid value.
21344 (font_clear_cache): Check if the cached vector of entities is nil
21345 or not.
21346
21347 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21348
21349 * emacs.c (main_thread): Conditionalize on
21350 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21351 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21352
21353 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21354 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21355 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21356
21357 2008-05-14 Kenichi Handa <handa@m17n.org>
21358
21359 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21360 has no corresponding coding system.
21361
21362 2008-05-14 Jason Rumney <jasonr@gnu.org>
21363
21364 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21365
21366 * w32font.h (w32font_open_internal): Update declaration.
21367
21368 * w32font.c (w32font_open_internal): Change last argument from
21369 w32font_info struct to font object. Fill in font object from
21370 font_entity. Get Outline metrics if possible. Use them to
21371 calculate underline position and thickness. Use xlfd name as name
21372 property. Don't set codepage.
21373 (w32font_open): Pass font_object to w32font_open_internal. Don't
21374 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21375 (w32font_draw): Use s->font.
21376 (clear_cached_metrics): Don't clear non-existent blocks.
21377
21378 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21379 font was not found.
21380 (x_draw_glyph_string): Use underline position and thickness from font.
21381
21382 * w32uniscribe.c (uniscribe_open): Pass font_object to
21383 w32font_open_internal.
21384
21385 2008-05-14 Kenichi Handa <handa@m17n.org>
21386
21387 These changes are to delete all legacy font-handling codes, and
21388 make Emacs use only font-backends.
21389
21390 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21391 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21392
21393 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21394
21395 * charset.h (Vcharset_non_preferred_head)
21396 (Vcurrent_iso639_language): Extern them.
21397
21398 * charset.c (Vcharset_non_preferred_head): New variable.
21399 (Vcurrent_iso639_language): New variable.
21400 (syms_of_charset): Declare it as a Lisp variable.
21401 (char_charset): Don't check non preferred charsets. As a last
21402 resort, return charset_unicode.
21403 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21404
21405 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21406 conditionals. Don't check enable_font_backend. Delete all codes
21407 used only when USE_FONT_BACKEND is not defined.
21408
21409 * dispextern.h (struct glyph_string): Change type of `font' to
21410 `struct font *'.
21411 (struct glyph_string): New member underline_position and
21412 underline_thickness.
21413 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
21414 (struct face): Change type of `font' to `struct font *'.
21415 Remove members `font_name', `font_info_id'.
21416 (per_char_metric, encode_char): Delete externs.
21417 (calc_pixel_width_or_height): Adjust the prototype.
21418
21419 * emacs.c (enable_font_backend): Delete extern.
21420 (main): Don't set enable_font_backend. Don't check the command
21421 line argument "-disable-font-backend".
21422
21423 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21424 (enum font_property_index): New members FONT_DPI_INDEX,
21425 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21426 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21427 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21428 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21429 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21430 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21431 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21432 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21433 (struct font_spec, struct font_entity): New structs.
21434 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
21435 (struct font): Many members from old "struct font_info" moved to
21436 here. Members font and entity deleted.
21437 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21438 the new font-related objects.
21439 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21440 (CHECK_FONT_GET_OBJECT): Likewise.
21441 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
21442 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
21443 (struct font_driver): New members case_sensitive anc check.
21444 Type of the member list and open changed.
21445 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21446 (font_symbolic_width, font_find_object, font_get_spec)
21447 (font_set_lface_from_name): Delete extern.
21448 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21449
21450 * font.c: Include <strings.h>.
21451 (enable_font_backend): Delete it.
21452 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21453 (CHECK_VALIDATE_FONT_SPEC): Delete it.
21454 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
21455 (null_string): Delete it.
21456 (null_vector): Make it static.
21457 (font_family_alist): Delete it.
21458 (Qnormal): Extern it.
21459 (QCextra, QClanguage): Delete it.
21460 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21461 (font_make_spec, font_make_entity, font_make_object)
21462 (font_intern_prop): Rename from intern_downcase. Don't downcase
21463 the string. Callers changed.
21464 (font_pixel_size): Adjust for the format change of font-related
21465 objects.
21466 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21467 (font_style_to_value, font_style_symbolic): New function.
21468 (build_font_family_alist): Delete it.
21469 (font_registry_charsets): Use Fassoc_string instead of
21470 assq_no_quit.
21471 (font_prop_validate_symbol): Don't return null_string.
21472 (font_prop_validate_style): Adjust for the change of
21473 style-related values in a font vector.
21474 (font_property_table): Delete entries for QClanguage and
21475 QCantialias, add entries for QCavgwidth.
21476 (get_font_prop_index): Delete the 2nd argument FROM.
21477 (font_prop_validate): Arguments changed.
21478 (font_put_extra): Adjust for the change of font-related objects.
21479 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21480 (font_parse_fcname, font_unparse_fcname)
21481 (font_prepare_composition): Likewise.
21482 (font_parse_family_registry): Rename from font_merge_old_spec.
21483 (otf_open): Delete the 1st arg entity.
21484 (font_otf_capability): Adjust for the above change.
21485 (font_score): New arg alternate_families. Adjusted for the change
21486 of font-related objects.
21487 (font_sort_entites): New arg best_only.
21488 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21489 Delete them.
21490 (font_match_p): Check alternate families.
21491 (font_find_object): Delete it.
21492 (font_check_object): New function.
21493 (font_clear_cache): Adjust for the change of font-related objects.
21494 (font_delete_unmatched): New arg.
21495 (font_list_entities): Call font_driver->list with a spec that
21496 doesn't specify style-related properties.
21497 (font_matching_entity): Arguments changed. Caller changed.
21498 (font_open_entity): Adjust for the change of font-related objects.
21499 (font_close_object, font_has_char, font_encode_char)
21500 (font_get_name, font_get_spec): Likewise.
21501 (font_spec_from_name, font_clear_prop, font_update_lface):
21502 New functions.
21503 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21504 (font_prepare_for_face, font_done_for_face, font_open_by_name)
21505 (font_at): Adjust for the change of font-related objects.
21506 (font_range): New function.
21507 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
21508 (Ffont_xlfd_name): Adjust for the change of font-related objects.
21509 (Fcopy_font_spec, Fmerge_font_spec): New function.
21510 (Ffont_family_list): Rename from list-families.
21511 (Finternal_set_font_style_table): Arguments changed.
21512 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
21513 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
21514 change of font-related objects.
21515 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21516
21517 * fontset.h (struct font_info): Delete it. Most members go to
21518 struct font.
21519 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
21520 (enum FONT_SPEC_INDEX): Delete it.
21521 (font_info, list_fonts_func, load_font_func, query_font_func)
21522 (set_frame_fontset_func, find_ccl_program_func)
21523 (get_font_repertory_func, new_fontset_from_font_name):
21524 Delete externs.
21525 (fontset_from_font_name): Extern it.
21526 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21527 (FONT_INFO_FROM_FACE): Delete.
21528 (face_for_font): Adjust prototype.
21529
21530 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21531 conditionals. Don't check enable_font_backend. Delete all codes
21532 used only when USE_FONT_BACKEND is not defined.
21533 (get_font_info_func, list_font_func, load_font_func)
21534 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21535 (get_font_repertory_func): Delete them.
21536 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21537 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21538 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21539 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21540 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21541 (fontset_compare_rfontdef): New function.
21542 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21543 rfont-defs by qsort. Adjusted for the change of font-group vector.
21544 (load_font_get_repertory): Delete.
21545 (fontset_find_font): Use new macros to ref/set elements of
21546 font-def and rfont-def.
21547 (fontset_font): Fix the timing of remembering that no font for C.
21548 (free_face_fontset): Do nothing if the face has no fontset.
21549 (face_suitable_for_char_p): Use new macros to ref/set elements of
21550 rfont-def.
21551 (face_for_char): Likewise. Call face_for_char with font_object.
21552 (fs_load_font): Delete. Delete #pragma surrounding it.
21553 (fs_query_fontset): Use strcasecmp instead of strcmp.
21554 (generate_ascii_font_name): Adjust for the format change of
21555 font-spec.
21556 (Fset_fontset_font): Likewise. Use new macros to set elements of
21557 font-def.
21558 (Fnew_fontset): Use font_unparse_xlfd to generate
21559 FONTSET_ASCII (fontset).
21560 (new_fontset_from_font_name): Delete.
21561 (fontset_from_font): Rename from new_fontset_from_font. Check if
21562 a fontset is already created for the font. FIx updating of
21563 Vfontset_alias_alist.
21564 (fontset_ascii_font): Delete.
21565 (Ffont_info): Adjust for the format change of font-spec.
21566 (Finternal_char_font): Likewise.
21567 (Ffontset_info): Likewise.
21568 (syms_of_fontset): Don't check load_font_func.
21569
21570 * fns.c (internal_equal): Handle PREV_FONT.
21571
21572 * frame.h: Delete USE_FONT_BACKEND conditional.
21573
21574 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21575 conditionals. Don't check enable_font_backend. Delete all codes
21576 used only when USE_FONT_BACKEND is not defined.
21577 (x_set_font): Call x_new_font, not x_new_fontset2.
21578 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21579 already set for the frame.
21580
21581 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21582 Make a font-entity by font_make_entity. Use font_intern_prop instead
21583 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21584 font property. If a font is scalable, set avgwidth property to 0.
21585 Set font-entity property by font_put_extra.
21586 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
21587 (ffont_driver): Adjust for the change of struct font_driver.
21588 (ftfont_spec_pattern): New function.
21589 (ftfont_list): Return a list, not vector.
21590 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21591 (ftfont_list_family): Don't downcase names.
21592 (ftfont_free_entity): Delete.
21593 (ftfont_open): Return a font-object. Adjusted for the change of
21594 struct font. Get underline_thickness and underline_position from
21595 font property. Don't update dpyinfo->smallest_font_height and
21596 dpyinfo->smallest_char_width.
21597 (ftfont_close): Don't free `struct font'.
21598 (ftfont_has_char): Adjust for the format change of font-entity.
21599 (ftfont_encode_char, ftfont_text_extents): Likewise.
21600
21601 * ftxfont.c (ftxfont_list): Return a list, not vector.
21602 (ftxfont_open): Return a font-object. Adjusted for the change of
21603 struct font. Get underline_thickness and underline_position from
21604 font property. Don't update dpyinfo->smallest_font_height and
21605 dpyinfo->smallest_char_width.
21606 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
21607 (ftxfont_draw): Adjust for the change of struct font.
21608
21609 * image.c (image_ascent): Don't include "charset.h".
21610 Include "character.h" and "font.h".
21611
21612 * lisp.h (enum pvec_type): New member PREV_FONT.
21613 (Fassoc_string): EXFUN it.
21614
21615 * print.c: Include font.h.
21616 (print_object): Handle font-related objects.
21617
21618 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21619 conditionals. Don't check enable_font_backend. Delete all codes
21620 used only when USE_FONT_BACKEND is not defined.
21621 (handle_auto_composed_prop): Do nothing if it->f is not on a
21622 window system. Check how many following characters can be
21623 displayed by the same font.
21624 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21625 'struct font *'.
21626 (get_char_face_and_encoding): Assign the whole encoding task to
21627 the `encode-char' method of a font driver.
21628 (fill_composite_glyph_string): Adjust for the change of `struct
21629 face' and `struct glyph_string'.
21630 (fill_glyph_string): Likewise.
21631 (get_per_char_metric): Arguments changed.
21632 (x_get_glyph_overhangs): Adjust for the change of `struct face'
21633 and `struct glyph_string'.
21634 (produce_stretch_glyph, calc_line_height_property)
21635 (x_produce_glyphs): Likewise.
21636
21637 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21638 conditionals. Don't check enable_font_backend. Delete all codes
21639 used only when USE_FONT_BACKEND is not defined.
21640 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
21641 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21642 (Qp): Extern them.
21643 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21644 Delete.
21645 (struct font_name): Delete.
21646 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
21647 (compare_fonts_by_sort_order): New function.
21648 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21649 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21650 Delete.
21651 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21652 compare_fonts_by_sort_order.
21653 (Fx_font_family_list): Call Ffont_family_list.
21654 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21655 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21656 (face_symbolic_slant, face_symbolic_swidth)
21657 (split_font_name_into_vector, build_font_name_from_vector)
21658 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21659 (font_rescale_ratio, split_font_name, build_font_name)
21660 (free_font_names, sort_fonts, x_face_list_fonts)
21661 (face_font_available_p, sorted_font_list, cmp_font_names)
21662 (font_list_1, concat_font_list, font_list, remove_duplicates):
21663 Delete.
21664 (Fx_list_fonts): Use Ffont_list.
21665 (LFACE_AVGWIDTH): Delete.
21666 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21667 by FONTP.
21668 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21669 (set_lface_from_font_name): Delete it.
21670 (set_lface_from_font): Rename from
21671 set_lface_from_font_and_fontset. Caller changed. Don't set
21672 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21673 for face.
21674 (merge_face_vectors): Copy font-spec if necessary.
21675 Clear properties of the font-spec if necessary.
21676 (merge_face_ref): Clear properties of the font-spec if necessary.
21677 (Finternal_set_lisp_face_attribute): Likewise.
21678 (set_font_frame_param): Use font_load_for_lface to load a
21679 font-object, and call Fmodify_frame_parameters with it.
21680 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21681 font name by Ffont_xlfd_name.
21682 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21683 QCslant, and QCwidth.
21684 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21685 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21686 Compare fonts by EQ.
21687 (lookup_non_ascii_face): Delete.
21688 (face_for_font): The 2nd argument changed.
21689 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21690 Check atomic font properties by case insensitive.
21691 (realize_non_ascii_face): Set face->overstrike correctly.
21692 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21693 (dump_realized_face): Get font name from
21694 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21695
21696 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21697 conditionals. Don't check enable_font_backend. Delete all codes
21698 used only when USE_FONT_BACKEND is not defined.
21699 (xic_create_xfontset): Original code deleted and renamed from
21700 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21701 (x_make_gc): Don't set GCFont in GCs.
21702 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21703 opened by "fixed".
21704 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21705 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21706 get_font_repertory_func.
21707
21708 * xfont.c: Include <stdlib.h> and "ccl.h".
21709 (struct xfont_info): New structure.
21710 (xfont_query_font): Delete.
21711 (xfont_find_ccl_program): Rename from x_find_ccl_program and
21712 moved from xterm.c.
21713 (xfont_driver): Adjust for the change of struct font_driver.
21714 (compare_font_names): New function.
21715 (xfont_list_pattern): Sort font names case insensitively.
21716 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
21717 (xfont_list): Return a list, not vector.
21718 (xfont_match): If the font doesn't have QCname property, generate
21719 a name from the other font properties.
21720 (xfont_open): Return a font-object. Adjusted for the change of
21721 struct font. Get underline_thickness and underline_position from
21722 font property. Don't update dpyinfo->smallest_font_height and
21723 dpyinfo->smallest_char_width.
21724 (xfont_close): Don't free struct font.
21725 (xfont_prepare_face): Adjust for the change of struct font.
21726 (xfont_done_face): Delete.
21727 (xfont_has_char): Adjust for the change of struct font.
21728 (xfont_encode_char, xfont_draw): Likewise.
21729 (xfont_check): New function.
21730
21731 * xftfont.c (xftfont_list): Adjust for the change of `list'
21732 callback function.
21733 (xftfont_match): Adjust for the format change of font-entity.
21734 (xftfont_open): Adjust for the format change of font-entity and
21735 font-object. Adjusted for the change of struct font. Return a
21736 font-object. Don't update dpyinfo->smallest_font_height and
21737 dpyinfo->smallest_char_width.
21738 (xftfont_close): Block input while calling XftFontClose.
21739 (xftfont_prepare_face): Don't block input while calling
21740 xftfont_get_colors. Adjusted for the change of struct font.
21741 (xftfont_shape): Return value of error case fixed.
21742
21743 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21744
21745 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21746 conditionals.
21747 (FONT_WIDTH): Return (f)->max_width.
21748 (struct x_display_info): Delete member `font'.
21749 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21750 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21751 (struct x_output): Change type of `font' to `struct font *'.
21752
21753 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21754 conditionals. Don't check enable_font_backend. Delete all codes
21755 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21756 (x_per_char_metric, x_encode_char): Delete.
21757 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
21758 (x_compute_glyph_string_overhangs): Adjust for the change of
21759 `struct face'.
21760 (x_draw_glyph_string_foreground)
21761 (x_draw_composite_glyph_string_foreground): Likewise.
21762 (x_draw_glyph_string): Likewise. Use font->underline_position and
21763 font->underline_thickness.
21764 (x_new_font): Rename from x_new_fontset2.
21765 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
21766 (x_check_font): Call `check' method of a font driver.
21767 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21768 (x_query_font, x_get_font_repertory): Delete.
21769 (x_find_ccl_program): Rename and moved to xfont.c.
21770 (x_redisplay_interface): Adjust for the change of `struct
21771 redisplay_interface'.
21772
21773 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21774 conditionals. Don't check enable_font_backend. Delete all codes
21775 used only when USE_FONT_BACKEND is not defined. Surround non-used
21776 code by "#ifdef OLD_FONT" and "endif".
21777 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21778
21779 * w32font.h (struct w32font_info): New member.
21780 (FONT_COMPAT): New macro.
21781 (w32font_open_internal): Prototype adjusted.
21782
21783 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21784 OLD_FONT" and "endif".
21785
21786 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21787 conditionals. Don't check enable_font_backend. Delete all codes
21788 used only when USE_FONT_BACKEND is not defined.
21789 (w32font_open): Return a font-object. Make a font-object by
21790 font_make_object. Adjusted for the change of struct w32font_info.
21791 (w32font_close): Don't free struct font. Adjusted for the change
21792 of struct w32font_info.
21793 (w32font_encode_char, w32font_text_extents, w32font_draw):
21794 Adjust for the change of struct w32font_info.
21795 (w32font_draw): Likewise.
21796 (w32font_list_internal): Return a list, not vector.
21797 (w32font_open_internal): Change the 4th arg to font-object.
21798 Adjusted for the change of struct w32font_info and font-object format.
21799 (add_font_name_to_list): Don't downcase names.
21800 (w32_enumfont_pattern_entity): Make a font-entity by
21801 font_make_entity. Adjusted for the format change of font-entity.
21802 Use FONT_SET_STYLE to set a style-related font property. If a
21803 font is scalable, set avgwidth property to 0. Set font-entity
21804 property by font_put_extra.
21805 (font_matches_spec): Adjust for the format change of font-entity.
21806 (w32_weight_table, w32_decode_weight): New variables.
21807 (w32_encode_weight): New function.
21808 (fill_in_logfont): Adjust for the format change of font-spec.
21809 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21810 weight value.
21811 (w32font_driver): Adjust for the change of struct font_driver.
21812
21813 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21814 conditionals. Don't check enable_font_backend. Surround non-used
21815 code by "#ifdef OLD_FONT" and "endif".
21816 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
21817 (FONT_AVG_WIDTH): Adjust for the change of struct font.
21818
21819 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21820 conditionals. Don't check enable_font_backend. Delete all codes
21821 used only when USE_FONT_BACKEND is not defined. Surround non-used
21822 code by "#ifdef OLD_FONT" and "endif".
21823
21824 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21825 (uniscribe_open): Return value changed to font-object.
21826 Adjusted for the format change of font-object.
21827 (uniscribe_otf_capability): Adjust for the change of struct font.
21828 (add_opentype_font_name_to_list): Don't downcase names.
21829 (uniscribe_font_driver): Adjust for the change of struct
21830 font_driver.
21831
21832 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
21833
21834 * dispnew.c (update_frame_1): Check if tty output is still valid
21835 before flushing it.
21836
21837 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21838
21839 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21840 to Gtk+ menus.
21841
21842 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21843
21844 * dired.c (file_name_completion): Tweak the code so as to always do it
21845 in a single pass. Tighten the scope of some variables.
21846
21847 * dired.c (Qdefault_directory): New var.
21848 (file_name_completion): Use it instead of Fexpand_file_name.
21849 (syms_of_dired): Initialize it.
21850
21851 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21852
21853 * fileio.c (double_dollars): Remove dead code.
21854
21855 2008-05-10 Eli Zaretskii <eliz@gnu.org>
21856
21857 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21858 Mention w32-get-true-file-attributes in doc string.
21859
21860 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21861
21862 2008-05-09 Glenn Morris <rgm@gnu.org>
21863
21864 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21865 2008-04-23.
21866
21867 2008-05-09 Eli Zaretskii <eliz@gnu.org>
21868
21869 Support for reporting owner and group of each file on MS-Windows:
21870 * dired.c (stat_uname, stat_gname): New functions, with special
21871 implementation for w32.
21872 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21873
21874 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21875 (dflt_group_name): New static variable.
21876 (dflt_group): Rename from the_group.
21877 (init_user_info): Init dflt_group fields. Get user's group name
21878 from LookupAccountSid.
21879 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21880 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21881 New initialization states.
21882 (globals_of_w32): Initialize them to zero. Initialize the default
21883 group name to "None".
21884 (GetFileSecurity_Name): New global var, the name of the function
21885 to call for GetFileSecurity.
21886 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21887 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21888 (get_file_security, get_security_descriptor_owner)
21889 (get_security_descriptor_group, is_valid_sid)
21890 (get_file_security_desc, get_rid, get_name_and_id)
21891 (get_file_owner_and_group): New functions.
21892 (stat): Use get_file_security_desc and get_file_owner_and_group to
21893 report the owner and primary group of each file. Don't ignore the
21894 high 32 bits of file's size, now that st_size is 64-bit wide.
21895 Fix test when to get true file attributes.
21896 (init_user_info): Use get_rid instead of equivalent inline code.
21897 (fstat): Don't ignore the high 32 bits of file's size.
21898
21899 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
21900
21901 * image.c (png_load): Use correct bit-depth for setting background
21902 color.
21903
21904 2008-05-08 Eli Zaretskii <eliz@gnu.org>
21905
21906 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21907 epa-hook.elc.
21908
21909 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
21910
21911 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21912
21913 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21914
21915 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21916 because the original parameters are in pure storage now.
21917 (mac_window): Remove unused params. Update callers.
21918
21919 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21920
21921 * lread.c (substitute_object_recurse): Use lower-level primitives.
21922 Don't signal errors when traversing sub-char-tables.
21923 Don't loop over all the possible characters when traversing char-tables.
21924
21925 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21926 just like we do in print.c.
21927
21928 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21929
21930 * minibuf.c (Ftry_completion): Remove code left over from when we used
21931 scmp instead of Fcompare_strings.
21932
21933 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
21934
21935 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21936
21937 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21938
21939 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21940 Create bitmap context in native byte order.
21941
21942 * macterm.c (XDrawLine)
21943 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21944 context in native byte order.
21945
21946 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21947
21948 * config.in: Regenerate.
21949
21950 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21951 New definitions for Image I/O support.
21952 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21953 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21954 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21955 (mac_data_provider_release_data, image_load_image_io)
21956 [USE_MAC_IMAGE_IO]: New functions.
21957 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21958 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21959 (init_image_func_pointer) [MAC_OSX]: Remove function.
21960 (image_load_quartz2d) [MAC_OSX]: Check availability of
21961 CGImageCreateWithPNGDataProvider at compile time.
21962 Use lowercase `false' for boolean constant.
21963 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21964 Use image_load_image_io.
21965 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21966 Don't check MyCGImageCreateWithPNGDataProvider.
21967 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21968 Don't call init_image_func_pointer.
21969
21970 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21971
21972 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21973 Make variable non-static.
21974 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21975 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21976
21977 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21978 (RED_FROM_ULONG): Mask off higher bits.
21979 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21980
21981 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21982 Include AvailabilityMacros.h.
21983 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21984 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21985
21986 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21987
21988 * chartab.c (Fset_char_table_range): If range is t, really set all
21989 chars to that value.
21990
21991 2008-05-03 Eli Zaretskii <eliz@gnu.org>
21992
21993 * dired.c (Ffile_attributes): Don't allow the device number become
21994 negative.
21995
21996 2008-05-02 Daiki Ueno <ueno@unixuser.org>
21997
21998 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21999
22000 2008-05-02 Juri Linkov <juri@jurta.org>
22001
22002 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
22003 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
22004 DEFAULT argument as a list of default values in docstrings.
22005
22006 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
22007
22008 * puresize.h (BASE_PURESIZE): Increase to 1210000.
22009
22010 2008-05-01 Martin Rudalics <rudalics@gmx.at>
22011
22012 * dispnew.c (change_frame_size_1): Preserve small windows when
22013 shrinking frames by calling set_window_height|width with third
22014 arg 2.
22015
22016 * window.h (struct window): Replace field too_small_ok by field
22017 resize_proportionally.
22018
22019 * window.c (make_window): Initialize resize_proportionally.
22020 (enlarge_window): Temporarily set resize_proportionally to make
22021 sure that shrink_windows does scale the window proportionally.
22022 (shrink_windows): When window has resize_proportionally set try
22023 to shrink it proportionally by stealing from other windows.
22024 (struct saved_window, Fset_window_configuration)
22025 (compare_window_configurations): Handle resize_proportionally.
22026 (WINDOW_TOTAL_SIZE): New macro.
22027 (window_min_size, shrink_windows, size_window): Use it.
22028 (check_min_window_sizes): Remove. Invalid values of
22029 window-min-height|width are handled by window_min_size_2 now.
22030 (size_window, Fsplit_window, enlarge_window)
22031 (adjust_window_trailing_edge, grow_mini_window): Don't call
22032 check_min_window_sizes.
22033 (window_min_size_2, window_min_size_1, window_min_size):
22034 New argument safe_p for retrieving "safe" minimum sizes.
22035 (Fdisplay_buffer, Fsplit_window, enlarge_window)
22036 (adjust_window_trailing_edge, grow_mini_window):
22037 Adjust arguments of window_min_size... functions.
22038 (shrink_windows): Argument min_size removed. New argument
22039 safe_p allows shrinking windows to their safe minimum sizes.
22040 Calculate minimum size and decide whether a window shall be
22041 deleted for each window individually.
22042 (size_window): When nodelete_p equals 2, tell shrink_windows to
22043 delete windows only if their new minimum size is no more safe.
22044 (shrink_window_lowest_first): Call window_min_size_1 to make
22045 sure to preserve modeline of bottom-most window when resizing
22046 the minibuffer.
22047 (Fset_window_configuration, Fcurrent_window_configuration)
22048 (compare_window_configurations): Do not handle
22049 window-min-height|width any more.
22050 (syms_of_window): Clarify window-min-height|width doc-strings.
22051
22052 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
22053
22054 * dired.c (file_name_completion): Fix up the encoding/decoding issue
22055 some more. Copy some of the code from Ftry_completions.
22056 Remove special case code that dates back to initial revision when the
22057 slash was only added when necessary and that can't trigger nowadays.
22058
22059 2008-04-27 Kenichi Handa <handa@m17n.org>
22060
22061 * font.c (font_prop_validate): Signal `error' instead of `font'.
22062
22063 2008-04-29 Jason Rumney <jasonr@gnu.org>
22064
22065 * w32fns.c (Fw32_battery_status): New defun.
22066 (syms_of_w32fns): Defsubr it.
22067
22068 2008-04-28 Andreas Schwab <schwab@suse.de>
22069
22070 * dired.c (file_name_completion): Fix another mixing of encoded
22071 and decoded names.
22072
22073 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
22074
22075 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
22076
22077 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
22078
22079 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
22080
22081 2008-04-27 Andreas Schwab <schwab@suse.de>
22082
22083 * dired.c (file_name_completion): Fix inappropriate mixing of
22084 encoded and decoded names.
22085
22086 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22087
22088 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22089
22090 2008-04-26 Eli Zaretskii <eliz@gnu.org>
22091
22092 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22093 2008-03-31, it's not needed anymore with `struct stat' definition
22094 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22095 for the same reasons.
22096
22097 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22098
22099 * m/sparc.h: Additional redefinitions for GNU/Linux.
22100
22101 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22102
22103 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22104 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22105 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22106 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22107 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22108 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22109 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22110 Likewise.
22111
22112 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22113 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22114 (mac_ax_number_of_characters): Add externs.
22115 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22116 [USE_MAC_TSM]: Likewise.
22117 (mac_handle_text_input_event) [MAC_OSX]:
22118 Handle kEventTextInputOffsetToPos for no active input area case.
22119 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22120 (mac_handle_document_access_event)
22121 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22122 (install_application_handler) [MAC_OSX]: Register handlers for
22123 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22124 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22125 Register mac_handle_document_access_event.
22126
22127 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22128 Make functions non-static.
22129
22130 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22131
22132 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22133 (read_file_name_completion_ignore_case, insert_default_directory)
22134 (Qdefault_directory): Move to minibuffer.el.
22135 (Fread_file_name): Call the new `read-file-name' instead.
22136
22137 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22138
22139 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22140 Make function non-static.
22141 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22142 Remove function.
22143 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22144 Move to mactoolbox.c.
22145 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22146
22147 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22148 (mac_rect_make): New macro.
22149
22150 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22151 instead of float.
22152 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22153 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22154 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22155 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22156 CGRectMake.
22157 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22158 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22159 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22160 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22161 instead of WindowRef in argument type.
22162 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22163 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22164 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22165 instead of DISPLAY. All uses changed.
22166 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22167 (x_calc_absolute_position): Simplify so as not to use
22168 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22169
22170 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22171 instead of WindowRef in argument type.
22172 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22173 [TARGET_API_MAC_CARBON]: Remove externs.
22174 (create_apple_event, mac_event_parameters_to_lisp)
22175 [TARGET_API_MAC_CARBON]: Add externs.
22176
22177 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22178 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22179 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22180 is clicked.
22181 (x_activate_menubar): Remove extern for saved_menu_event_location.
22182 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22183 Move from mac.c.
22184
22185 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22186
22187 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22188 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22189
22190 2008-04-23 Jason Rumney <jasonr@gnu.org>
22191
22192 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22193 attributes only for local files.
22194
22195 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22196 default to Qlocal.
22197
22198 2008-04-22 Juri Linkov <juri@jurta.org>
22199
22200 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22201 read-buffer-to-switch instead of using the letter "B".
22202
22203 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22204
22205 * fileio.c (Qdefault_directory): New variable.
22206 (Fread_file_name): Use it to pass `dir' to the completion functions.
22207
22208 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
22209
22210 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22211
22212 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22213
22214 * keyboard.c (Vpre_help_message): Remove.
22215 (show_help_echo): Remove default C code.
22216
22217 * dired.c (directory_files_internal, file_name_completion):
22218 Only call ENCODE_FILE if the string is indeed decoded.
22219
22220 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22221
22222 * Makefile.in (TOOLKIT_DEFINES): Remove.
22223 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22224
22225 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22226
22227 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22228 (mactoolbox.o): New target.
22229
22230 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22231 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22232
22233 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22234 Use mac_set_frame_window_background instead of XSetWindowBackground.
22235 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22236 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22237 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22238 instead of SetWindowTitleWithCFString.
22239 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22240 Move function to mactoolbox.c.
22241 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22242 Use mac_set_window_modified instead of SetWindowModified.
22243 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22244 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22245 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22246 FrontNonFloatingWindow. Use mac_activate_window instead of
22247 ActivateWindow. Use mac_active_non_floating_window instead of
22248 ActiveNonFloatingWindow.
22249 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22250 Use mac_show_hourglass and mac_hide_hourglass.
22251 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22252 instead of GetGlobalMouse.
22253 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22254 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22255 Use mac_bring_window_to_front instead of BringToFront.
22256 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22257 mactoolbox.c.
22258 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22259 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22260 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22261 mactoolbox.c.
22262
22263 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22264 (XtPointer): Move typedef from macmenu.c.
22265 (enum button_type): Move enum from macmenu.c.
22266 (widget_value): Move typedef from macmenu.c.
22267 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22268 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22269 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22270 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22271 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22272 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22273 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22274 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22275 (Selection): Move typedef from macselect.c.
22276 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22277 macterm.c.
22278 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22279 (mac_is_window_collapsed, mac_bring_window_to_front)
22280 (mac_send_window_behind, mac_hide_window, mac_show_window)
22281 (mac_collapse_window, mac_front_non_floating_window)
22282 (mac_active_non_floating_window, mac_activate_window)
22283 (mac_move_window_structure, mac_move_window, mac_size_window)
22284 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22285
22286 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22287 (enum mac_menu_kind): Move enum to mactoolbox.c.
22288 (min_menu_id): Move variable to mactoolbox.c.
22289 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22290 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22291 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22292 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22293 [TARGET_API_MAC_CARBON]: Likewise.
22294 (XtPointer): Move typedef to macgui.h.
22295 (enum button_type): Move enum to macgui.h.
22296 (widget_value): Move typedef to macgui.h.
22297 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22298 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22299 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22300 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22301 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22302 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22303 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22304 (popup_activated_flag): Make variable non-static.
22305 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22306 (add_menu_item, fill_menu, dispose_menus):
22307 Move functions to mactoolbox.c.
22308 (restore_show_help_function, menu_target_item_handler)
22309 (install_menu_target_item_handler, mac_handle_dialog_event)
22310 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22311 [TARGET_API_MAC_CARBON]: Likewise.
22312 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22313 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22314 (find_and_call_menu_selection, name_is_separator): Make function
22315 non-static.
22316 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22317 to mactoolbox.c.
22318 (set_frame_menubar): Don't call install_menu_quit_handler.
22319 (menu_item_selection): New variable.
22320 (mac_menu_show): Use create_and_show_popup_menu.
22321 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22322 selection but set variable menu_item_selection. All uses changed.
22323 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22324 Call install_menu_quit_handler. Move to mactoolbox.c.
22325
22326 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22327 (Selection): Move typedef to macgui.h.
22328 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22329 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22330 Make variables non-static.
22331 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22332 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22333 Make functions non-static.
22334 (Vmac_service_selection) [MAC_OSX]: Likewise.
22335 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22336 (mac_valid_selection_target_p, mac_clear_selection)
22337 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22338 (mac_put_selection_value, mac_selection_has_target_p)
22339 (mac_get_selection_value, mac_get_selection_target_list)
22340 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22341 Move functions to mactoolbox.c.
22342 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22343 Likewise.
22344 (copy_scrap_flavor_data, mac_handle_service_event)
22345 (install_service_handler) [MAC_OSX]: Likewise.
22346 (syms_of_macselect) <Vmac_dnd_known_types>:
22347 Use mac_dnd_default_known_types.
22348
22349 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22350 Move to mactoolbox.c.
22351 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22352 (Fx_selection_owner_p): Add EXFUN.
22353 (install_window_handler, remove_window_handler, XSetWindowBackground):
22354 Remove externs.
22355 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22356 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22357 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22358 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22359 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22360 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22361 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22362 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22363 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22364 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22365 (mac_valid_selection_target_p, mac_clear_selection)
22366 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22367 (mac_put_selection_value, mac_selection_has_target_p)
22368 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22369 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22370 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22371 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22372 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22373 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22374 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22375 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22376 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22377
22378 * mactoolbox.c: New file.
22379
22380 2008-04-18 Jason Rumney <jasonr@gnu.org>
22381
22382 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22383
22384 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22385
22386 * character.c (Fmultibyte_char_to_unibyte):
22387 Return latin1 chars unchanged.
22388
22389 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22390 relocated if it points to `name'.
22391
22392 2008-04-17 Kenichi Handa <handa@m17n.org>
22393
22394 * data.c (Faset): Allow setting a multibyte character in an
22395 ASCII-only unibyte string.
22396
22397 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22398
22399 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22400
22401 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22402 done in config.h.
22403
22404 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
22405
22406 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22407 (Fchar_direction): Add usage in the docstring.
22408
22409 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
22410
22411 * keyboard.c (read_key_sequence): Remove always-true checks.
22412
22413 2008-04-14 Jason Rumney <jasonr@gnu.org>
22414
22415 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22416 compatibility struct, for better underline positioning.
22417
22418 2008-04-13 David Hansen <david.hansen@gmx.net>
22419
22420 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22421 string.
22422
22423 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22424
22425 * m/hp800.h (XUINT, XSET): Remove.
22426
22427 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
22428
22429 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22430 previous change.
22431
22432 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22433
22434 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22435 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22436
22437 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22438
22439 * keymap.h (map_keymap_canonical): Declare.
22440 * xmenu.c (single_keymap_panes): Use it.
22441
22442 2008-04-11 Glenn Morris <rgm@gnu.org>
22443
22444 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22445 set the target's value to that of the alias.
22446
22447 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22448
22449 * term.c (set_tty_color_mode): Left over typo.
22450
22451 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
22452
22453 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22454 only after check for file name handler functions. Signal, when
22455 native functionality is not supported.
22456 (syms_of_fileio): Declare it unconditionally.
22457
22458 2008-04-10 Jason Rumney <jasonr@gnu.org>
22459
22460 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22461 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22462
22463 * w32.c (logon_network_drive): Also logon to remote drives that
22464 are mapped to drive letters.
22465
22466 2008-04-10 Glenn Morris <rgm@gnu.org>
22467
22468 * xdisp.c (truncate-partial-width-windows): Doc fix.
22469
22470 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22471
22472 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22473 Move functions to minibuffer.el.
22474 (syms_of_fileio): Don't declare them.
22475
22476 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22477
22478 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22479 (syms_of_minibuf): Remove its initialization.
22480
22481 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22482
22483 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
22484
22485 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22486
22487 2008-04-09 Jason Rumney <jasonr@gnu.org>
22488
22489 * makefile.w32-in (distclean): Delete makefile too.
22490 (maintainer-clean): New target.
22491
22492 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22493
22494 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22495 for new font backend and composite cases.
22496
22497 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22498
22499 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22500 Most of the code moved to run_timers.
22501 (do_pending_atimers): Call run_timers.
22502 (run_timers): New function.
22503
22504 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22505 run atimers.
22506
22507 * process.c (wait_reading_process_output): The same as above.
22508
22509 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22510
22511 * minibuf.c (last_exact_completion): Remove variable.
22512 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22513 (complete_and_exit_1, complete_and_exit_2)
22514 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22515 (Fdisplay_completion_list, display_completion_list_1)
22516 (Fminibuffer_completion_help, Fself_insert_and_exit)
22517 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22518 minibuffer.el.
22519 (syms_of_minibuf): Remove corresponding initializations.
22520
22521 * keyboard.c (Qdeactivate_mark): New var.
22522 (command_loop_1): Use it to call `deactivate-mark'.
22523 (syms_of_keyboard): Initialize it.
22524
22525 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22526 to another frame.
22527 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22528 Don't call set_tty_color_mode.
22529 (store_frame_param): Reset previous_frame rather than call
22530 set_tty_color_mode.
22531 * term.c (set_tty_color_mode): Rewrite.
22532 * dispextern.h (set_tty_color_mode): New type.
22533 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22534
22535 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22536
22537 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22538 for generic chars, which do not exist any more in emacs-unicode.
22539
22540 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
22541
22542 * coding.c (detect_coding_emacs_mule)
22543 (Ffind_operation_coding_system): Fix typo.
22544
22545 2008-04-08 Jason Rumney <jasonr@gnu.org>
22546
22547 * w32uniscribe.c (SNAME): Extract only symbol name.
22548
22549 * w32font.h (struct w32_metric_cache): New struct.
22550 (w32font_info): Use it.
22551 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22552 (CACHE_BLOCKSIZE): New constants.
22553
22554 * w32font.c (Qja, Qko, Qzh): New symbols.
22555 (syms_of_w32font): Initialise them.
22556 (font_matches_spec): Use them to filter by language.
22557 (recompute_cached_metrics): Remove function.
22558 (compute_metrics, clear_cached_metrics): New functions.
22559 (w32font_encode_char): Use them to manage metric cache.
22560 (w32font_text_extents): Cache metrics for all glyphs on demand.
22561 Delay converting glyph indices to WORD until needed.
22562 (w32font_open_internal): Initialize metric cache to empty.
22563 (registry_to_w32_charset): Charset should always be a symbol.
22564 (fill_in_logfont, list_all_matching_fonts): Family should
22565 always be a symbol.
22566
22567 2008-04-06 Jason Rumney <jasonr@gnu.org>
22568
22569 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22570 Give up if glyph indices not supported. Use uniscribe obtained
22571 ABC widths for individual metrics. Map glyph clusters back to
22572 characters using fClusterStart flag. Return number of glyphs
22573 produced, not chars processed.
22574 (uniscribe_shape): Map char at FROM to current glyph.
22575
22576 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22577
22578 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22579 Use SetMenuItemHierarchicalMenu.
22580
22581 2008-04-05 Jason Rumney <jasonr@gnu.org>
22582
22583 * image.c (pbm_load): Allow color values up to 65535.
22584 Throw an error if max_color_idx is outside the supported range.
22585 Report an error when image size is invalid.
22586 Read two bytes at a time when raw images have max_color_idx above 255.
22587
22588 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22589
22590 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22591 append "CCL: Quitted" when the CCL program is quitted.
22592 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22593
22594 * ccl.h (struct ccl_program): New member quit_silently.
22595
22596 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
22597
22598 * search.c (compile_pattern_1): Treat non-nil and non-string of
22599 search-spaces-regexp as nil.
22600
22601 * minibuf.c (Fassoc_string): Tweak docstring.
22602
22603 2008-04-05 Eli Zaretskii <eliz@gnu.org>
22604
22605 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22606 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22607 2008-03-14 to force inode be positive.
22608
22609 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22610 _S_* ones, since we now use our own sys/stat.h.
22611 (stat, fstat): Don't mangle the inode number.
22612 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22613
22614 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22615
22616 * frame.h (struct frame): Give one more bit to `visible' since we use
22617 values larger than 1 to indicate obscured frames on ttys.
22618
22619 * keymap.c (Qkeymap_canonicalize): New var.
22620 (Fmap_keymap_internal): New fun.
22621 (describe_map): Use keymap-canonicalize.
22622
22623 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22624 (Fundo_boundary): Set them.
22625 (syms_of_undo): Initialize them.
22626 (record_point): Use them instead of last_point_position*.
22627 (last_undo_buffer): Change type.
22628
22629 2008-04-04 Jason Rumney <jasonr@gnu.org>
22630
22631 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22632 (recompute_cached_metrics): Don't set ascent and descent per char.
22633
22634 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22635 (uniscribe_check_otf): Add GC protection before consing.
22636 Rearrange loop for counting features.
22637
22638 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22639
22640 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22641 buffer with byte-size of source buffer.
22642
22643 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
22644
22645 * callint.c (Fcall_interactively): Handle temporary region even
22646 when shift-select-mode is off.
22647
22648 2008-04-03 Jason Rumney <jasonr@gnu.org>
22649
22650 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22651
22652 2008-04-03 Kenichi Handa <handa@m17n.org>
22653
22654 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22655 (CATEGORY_MASK_UTF_16): Likewise.
22656 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22657 binary file.
22658 (detect_coding): Add null-byte detection for a binary file.
22659 (detect_coding_system): Likewise.
22660
22661 2008-04-03 Jason Rumney <jasonr@gnu.org>
22662
22663 * w32uniscribe.c: New file.
22664
22665 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22666
22667 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22668
22669 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22670 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22671 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22672 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22673 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22674 (Qphonetic): New symbols.
22675 (syms_of_w32font): Initialize them.
22676 (font_supported_scripts): Use them.
22677 (w32font_list_family): List all charsets.
22678 (w32font_text_extents, recompute_cached_metrics): Fix metric
22679 calculations.
22680 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22681 Give opentype fonts their own format.
22682 (font_matches_spec): New arguments backend and logfont.
22683 Handle :otf spec for uniscribe backend.
22684 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22685 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22686
22687 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22688 font backend.
22689 (globals_of_w32fns): Initialize uniscribe font backend.
22690
22691 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22692 dependencies.
22693 (w32uniscribe.$(O)): New file to build.
22694 (FONT_OBJ): Include w32uniscribe.$(O).
22695 (LIBS): Add uniscribe libraries.
22696
22697 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22698
22699 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
22700
22701 * callint.c (Vshift_select_mode): New var.
22702 (Finteractive): Document new ^ spec.
22703 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22704 is present.
22705
22706 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22707 (command_loop_1): Avoid running the direct display versions of
22708 forward-char and backward-char if shift-selection may occur.
22709 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22710 shift-translation takes place.
22711
22712 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22713 avoid clobbering by define-minor-mode.
22714
22715 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22716 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22717
22718 * syntax.c (Fforward_word): Add ^ interactive spec.
22719
22720 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22721 (Fscroll_right): Add ^ interactive spec.
22722
22723 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22724
22725 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22726
22727 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22728
22729 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22730
22731 2008-03-31 Juri Linkov <juri@jurta.org>
22732
22733 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22734
22735 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22736
22737 * gtkutil.c (xg_set_geometry): Fix indentation.
22738 (xg_resize_outer_widget): Remove.
22739 (x_wm_size_hint_off): Fix indentation.
22740 (xg_frame_set_char_size): Call flush_and_sync after
22741 gtk_window_resize.
22742 (x_wm_set_size_hint): Pass NULL as geometry window to
22743 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22744 Add menu bar and tool bar height to base height.
22745 (xg_update_frame_menubar, free_frame_menubar)
22746 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22747 (update_frame_tool_bar, free_frame_tool_bar):
22748 Change xg_resize_outer_widget to xg_frame_set_char_size.
22749
22750 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
22751
22752 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22753 (Fdbus_call_method): New parameter TIMEOUT.
22754 (dbus-send-signal): Optimize UNGCPRO call.
22755
22756 2008-03-29 Juri Linkov <juri@jurta.org>
22757
22758 * window.c (Fdisplay_buffer): Move call to
22759 Vsplit_window_preferred_function out of conditions that check
22760 if window is eligible for vertical splitting.
22761 When Vsplit_window_preferred_function is non-nil, call it and use
22762 its non-nil return value as window. Otherwise, continue doing
22763 vertical splitting using Fsplit_window with arg horflag=nil.
22764 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22765 default value from `split-window' to nil.
22766
22767 2008-03-29 Juri Linkov <juri@jurta.org>
22768
22769 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22770 for interactive code letters 'b' and 'B'.
22771
22772 2008-03-29 Eli Zaretskii <eliz@gnu.org>
22773
22774 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22775 multibyte string.
22776
22777 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22778
22779 * keyboard.c (pending_funcalls): New var.
22780 (timer_check): Run it.
22781 (syms_of_keyboard): Initialize it.
22782 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22783 (Vdelete_terminal_functions): New vars.
22784 (syms_of_terminal): Initialize them.
22785 (Fdelete_terminal): Run delete-terminal-functions.
22786 * xdisp.c (safe_eval): Rewrite.
22787 (safe_call2): New fun.
22788 * frame.c (Qdelete_frame_functions): New var.
22789 (syms_of_frame): Initialize it.
22790 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22791 * lisp.h (safe_call2, pending_funcalls): Declare.
22792
22793 2008-03-28 Andreas Schwab <schwab@suse.de>
22794
22795 * indent.c (Fmove_to_column): Move declaration before statements.
22796
22797 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22798
22799 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22800 (struct frame): Use bit fields for boolean vars.
22801
22802 * process.c (server_accept_connection): Simplify naming.
22803 (emacs_get_tty_pgrp): Use SDATA.
22804
22805 * coding.c (decode_coding_object): Fix last change.
22806
22807 2008-03-27 Jason Rumney <jasonr@gnu.org>
22808
22809 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22810
22811 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22812
22813 * charset.c (Fdefine_charset_internal): Change the way of
22814 registering charsets in Vcharset_order_list.
22815 (syms_of_charset): Make the charset `eight-bit' supplementary.
22816
22817 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22818
22819 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22820 operations, to avoid having the difference between pointers
22821 overflow.
22822
22823 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22824
22825 * indent.c (check_display_width): New fun.
22826 (scan_for_column): Use it.
22827
22828 * data.c (syms_of_data): Mark most-positive-fixnum and
22829 most-negative-fixnum as constants.
22830
22831 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22832
22833 * indent.c (scan_for_column): Extract from current_column_1.
22834 Merge with the same code from Fmove_to_column.
22835 (current_column_1, Fmove_to_column): Use it.
22836
22837 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22838
22839 * keymap.c (map_keymap_internal): New fun.
22840 (map_keymap): Use it.
22841 (Fmap_keymap_internal): New fun.
22842 (Fmap_keymap): Remove left-out test from before make_save_value.
22843
22844 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22845
22846 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22847 Use XCAR/XCDR.
22848
22849 * process.h (struct Lisp_Process): Remove filter_multibyte.
22850 * process.c (QCfilter_multibyte): Remove.
22851 (setup_process_coding_systems): Don't use filter_multibyte.
22852 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22853 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22854 (Fset_process_filter_multibyte): Change the coding-system to
22855 approximate the previous behavior.
22856 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22857 coding-system.
22858
22859 * coding.c (decode_coding_object): When not decoding into a buffer,
22860 obey the coding system's preference of (uni|multi)byte.
22861
22862 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22863
22864 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22865 every char is changed and has a different byte-length.
22866 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22867 Fix int -> EMACS_INT.
22868
22869 2008-03-23 David Hansen <david.hansen@gmx.net>
22870
22871 * dbusbind.c (xd_read_message): Remove extra copying of message
22872 strings. Check for NULL `interface' or `member'.
22873
22874 2008-03-22 Eli Zaretskii <eliz@gnu.org>
22875
22876 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22877 cFileName a file name that includes `?' characters, use the 8+3
22878 alias in cAlternateFileName instead.
22879
22880 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22881
22882 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22883
22884 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22885
22886 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22887 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22888 work on current_buffer only instead (that was already the case
22889 for some of the code anyway).
22890 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22891 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22892 (SET_PT, SET_PT_BOTH): Adjust.
22893 * intervals.h (set_point, temp_set_point, set_point_both)
22894 (temp_set_point_both): Remove redundant declarations.
22895
22896 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22897
22898 * fileio.c (Finsert_file_contents):
22899 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22900 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22901 when buffer != current_buffer anyway.
22902
22903 2008-03-20 Andreas Schwab <schwab@suse.de>
22904
22905 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22906 as default.
22907
22908 2008-03-19 Jason Rumney <jasonr@gnu.org>
22909
22910 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22911 (syms_of_w32fns): Initialize them.
22912 (HOURGLASS_ID): New constant.
22913 (x_window_to_frame): Don't check hourglass_window.
22914 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22915 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22916 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22917 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22918 Only change the cursor if hourglass is not active.
22919 (Fx_create_frame): Initialize frame's current_cursor.
22920 (hourglass_atimer): Remove.
22921 (hourglass_started): New function.
22922 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22923 (show_hourglass): Adapt to w32, changing argument to frame.
22924
22925 * w32term.h (struct w32_output): Remove hourglass_window.
22926 Add current_cursor.
22927
22928 * eval.c (call_debugger, Fsignal):
22929 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22930 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22931 (Fexecute_extended_command, cancel_hourglass_unwind):
22932 * minibuf.c (read_minibuf):
22933 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22934
22935 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22936
22937 * window.c (run_funs): New fun.
22938 (run_window_configuration_change_hook): Use it to run the buffer-local
22939 and the global part of the hook.
22940
22941 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22942 (unwind_format_mode_line): Restore selected window.
22943 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22944
22945 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22946
22947 * editfns.c (Fchar_equal): Check they are valid characters.
22948
22949 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22950
22951 2008-03-17 Andreas Schwab <schwab@suse.de>
22952
22953 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22954 against a charset.
22955
22956 * lisp.h (Fbuffer_list): Declare.
22957
22958 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
22959
22960 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22961 handlebox_widget is != 0.
22962
22963 2008-03-16 Juri Linkov <juri@jurta.org>
22964
22965 * callint.c (Fcall_interactively): For interactive code letters
22966 'b' and 'B' put the buffer list into the list of default "future"
22967 values of the minibuffer.
22968
22969 2008-03-16 Andreas Schwab <schwab@suse.de>
22970
22971 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22972 modifiers.
22973
22974 * regex.c (re_match_2_internal): Correct matching of a charset
22975 against latin-1 characters.
22976
22977 2008-03-16 Kenichi Handa <handa@m17n.org>
22978
22979 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22980 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22981 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22982 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22983 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22984 CHAR_STRING_ADVANCE.
22985 (produce_chars): Fix for the case that the source and the
22986 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22987 instead of CHAR_STRING_ADVANCE.
22988 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22989 STRING_CHAR_ADVANCE.
22990
22991 2008-03-15 Andreas Schwab <schwab@suse.de>
22992
22993 * regex.c (re_match_2_internal): Correct matching of eight bit
22994 characters in unibyte strings.
22995
22996 2008-03-15 Martin Rudalics <rudalics@gmx.at>
22997
22998 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22999 at end of range when it coincides with the end of the buffer.
23000
23001 2008-03-14 Eli Zaretskii <eliz@gnu.org>
23002
23003 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
23004
23005 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
23006
23007 2008-03-14 Jason Rumney <jasonr@gnu.org>
23008
23009 * editfns.c (initial_tz): New variable.
23010 (syms_of_editfns): Initialize it.
23011 (Fset_time_zone_rule): Set it when first called.
23012 Use it when TZSTRING is nil.
23013
23014 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
23015 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
23016 (monitor_from_point_fn, get_monitor_info_fn): New globals.
23017 (globals_of_w32fns): Initialize them.
23018 (compute_tip_xy): Use them to position tooltips.
23019
23020 2008-03-14 Glenn Morris <rgm@gnu.org>
23021
23022 * emacs.c (main): Revert previous change.
23023 (standard_args): Revert -internal-script back to -scriptload,
23024 and remove the long-option form.
23025
23026 2008-03-13 Glenn Morris <rgm@gnu.org>
23027
23028 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
23029 Remove option -enable-font-backend.
23030
23031 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
23032
23033 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
23034
23035 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
23036
23037 * xterm.c (x_connection_closed): For GTK: If this is the last
23038 terminal just exit without closing the display.
23039
23040 2008-03-11 Jason Rumney <jasonr@gnu.org>
23041
23042 * w32font.c (w32font_full_name): Use floor to round.
23043
23044 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23045
23046 * sound.c (alsa_configure): Declare vol at beginning of block.
23047
23048 * fontset.c (Ffontset_info): Remove extra semicolon.
23049
23050 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
23051
23052 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
23053 size of resulting string.
23054
23055 2008-03-10 Jason Rumney <jasonr@gnu.org>
23056
23057 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
23058
23059 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23060
23061 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
23062 Don't pretend as if characters with display property haven't been
23063 consumed for string-replacing-string case.
23064
23065 2008-03-08 Kim F. Storm <storm@cua.dk>
23066
23067 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
23068 (get_next_display_element, next_element_from_string)
23069 (next_element_from_ellipsis, next_element_from_buffer): Use it.
23070
23071 2008-03-08 Andreas Schwab <schwab@suse.de>
23072
23073 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
23074
23075 2008-03-06 Jason Rumney <jasonr@gnu.org>
23076
23077 * w32font.c (w32_registry): Take font_type argument. Use ANSI
23078 when charset not specified. Only translate ANSI to unicode when
23079 font_type is truetype.
23080 (w32font_coverage_ok): New function.
23081 (add_font_entity_to_list): Use it to filter unsuitable fonts.
23082
23083 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
23084
23085 * lread.c (Fread_char): Resolve modifiers.
23086 (Fread_char_exclusive): Likewise.
23087
23088 * character.c (char_resolve_modifier_mask): New function.
23089 (char_string): Use char_resolve_modifier_mask.
23090 (Fchar_resolve_modifiers): New function.
23091 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23092 function.
23093
23094 2008-03-04 Jason Rumney <jasonr@gnu.org>
23095
23096 * makefile.w32-in: Always include w32font.c in the build.
23097 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23098
23099 2008-03-04 Andreas Schwab <schwab@suse.de>
23100
23101 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23102 (versionclean): Likewise.
23103
23104 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
23105
23106 * .cvsignore: Add oo.
23107
23108 2008-03-03 Andreas Schwab <schwab@suse.de>
23109
23110 * coding.c (decode_coding_object): Inhibit gap shrinking while
23111 decoding in place.
23112
23113 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23114
23115 * w32term.c: Remove unused include "gnu.h".
23116 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23117
23118 * gnu.h: Rename to ...
23119 * emacs-icon.h: ... this.
23120 * xterm.c: Use emacs-icon.h instead of gnu.h.
23121 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23122
23123 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
23124
23125 * w32font.c: Include math.h.
23126
23127 2008-03-03 Jason Rumney <jasonr@gnu.org>
23128
23129 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23130 Compute options separately.
23131 (w32font_open_internal): Set glyph_idx before caching metrics.
23132
23133 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23134 Define if system headers don't.
23135 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23136 (w32font_encode_char): Don't declare here.
23137
23138 * w32font.c (Quniscribe, QCformat): New symbols.
23139 (syms_of_w32font): Define them.
23140 (w32font_has_char): Indicate uncertainty.
23141 (w32font_encode_char): Encode as glyph point. Make static.
23142 (recompute_cached_metrics): New function.
23143 (w32font_open_internal): Use it. Set font to use glyph points
23144 initially. Set format based on type of font.
23145 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23146 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23147 on it. Set format based on information available here.
23148 (add_font_entity_to_list): Identify backend based on opentype_only.
23149
23150 2008-03-02 Andreas Schwab <schwab@suse.de>
23151
23152 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23153
23154 * coding.c (decode_coding_big5, produce_chars):
23155 Fix typos in last change.
23156
23157 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23158
23159 * gnu.h: New icon.
23160
23161 2008-03-02 Kenichi Handa <handa@m17n.org>
23162
23163 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23164 `dos', don't decode '\r' if that is the last in the source.
23165 (decode_coding_utf_16, decode_coding_emacs_mule)
23166 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23167 (decode_coding_raw_text, decode_coding_charset): Likewise.
23168 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23169
23170 2008-03-01 Jason Rumney <jasonr@gnu.org>
23171
23172 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23173
23174 2008-03-01 Kim F. Storm <storm@cua.dk>
23175
23176 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23177
23178 2008-03-01 Jason Rumney <jasonr@gnu.org>
23179
23180 * w32font.c (w32font_full_name): New function.
23181 (w32font_open_internal): Use it.
23182
23183 2008-03-01 Kim F. Storm <storm@cua.dk>
23184
23185 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23186
23187 2008-03-01 Jason Rumney <jasonr@gnu.org>
23188
23189 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23190
23191 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23192
23193 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23194 xg_frame_resized when the event is for the edit widget.
23195
23196 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
23197
23198 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23199 set_char_size.
23200 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
23201 operations on widgets here. Just set frame size if needed.
23202 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23203 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23204 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23205 the whole frame.
23206 (xg_create_tool_bar): Move attachment of the tool bar to
23207 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23208 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23209
23210 2008-03-01 Jason Rumney <jasonr@gnu.org>
23211
23212 * w32fns.c (w32_msg_pump): Disable debug code.
23213
23214 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23215
23216 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23217
23218 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23219
23220 * xdisp.c (next_overlay_string): Don't set
23221 overlay_strings_at_end_processed_p if we're currently reading from
23222 a display string.
23223
23224 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23225
23226 * xdisp.c (get_overlay_strings_1): Fix typo.
23227
23228 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
23229
23230 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23231
23232 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23233
23234 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23235
23236 * xdisp.c (display_mode_element): Cancel the previous change.
23237 (decode_mode_spec): Likewise.
23238 (handle_auto_composed_prop): Don't make composition if it->string
23239 is a string.
23240
23241 2008-02-27 Kim F. Storm <storm@cua.dk>
23242
23243 * lisp.h (GLYPH): Change type from int to struct with separate char
23244 and face_id members.
23245 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23246 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23247 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23248 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23249 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23250 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23251 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23252 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23253 handle new Lisp glyph code encoding, either an integer or a cons.
23254
23255 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23256 (GLYPH_ALIAS): Delete.
23257 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23258 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23259 (GLYPH_FROM_CHAR): Replace macro by ...
23260 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23261
23262 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23263 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23264 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23265 (GLYPH_INVALID_P): New macro.
23266 (spec_glyph_lookup_face): Update prototype.
23267
23268 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23269 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23270 new glyph code encoding.
23271 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23272 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23273
23274 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23275 Adapt to new glyph type and new glyph code encoding.
23276
23277 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23278
23279 * indent.c (current_column, current_column_1, Fmove_to_column)
23280 (compute_motion): Adapt to new glyph code encoding.
23281
23282 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23283
23284 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
23285
23286 * process.c (wait_reading_process_output): Check for window
23287 changes caused by timers.
23288 Suggested by Johan Bockgård.
23289
23290 2008-02-27 Glenn Morris <rgm@gnu.org>
23291
23292 * emacs.c (USAGE1): Add `--disable-font-backend'.
23293
23294 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23295
23296 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23297 is made to the buffer.
23298
23299 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23300
23301 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23302 (face_at_string_position):
23303 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23304 (face_at_string_position):
23305 * xdisp.c (display_string, next_overlay_change):
23306 * buffer.h (overlays_at):
23307 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23308 Update callers.
23309
23310 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
23311
23312 * editfns.c (Fformat): Doc fix.
23313
23314 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
23315
23316 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23317 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23318 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23319
23320 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23321
23322 * buffer.c (Fbuffer_swap_text): New function.
23323 (syms_of_buffer): Defsubr it.
23324
23325 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
23326
23327 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23328
23329 2008-02-25 Jason Rumney <jasonr@gnu.org>
23330
23331 * w32font.c (w32font_draw): Draw one character at a time when padding.
23332
23333 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23334
23335 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23336 Handle a nil arg. Use run_window_configuration_change_hook.
23337 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23338 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23339 Use run_window_configuration_change_hook.
23340
23341 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23342
23343 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23344 1-pixel width.
23345
23346 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23347
23348 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23349 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23350 if the glyph in the font is zero pixel with.
23351
23352 * dispextern.h (struct glyph_string): New member padding_p.
23353
23354 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23355
23356 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23357
23358 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23359
23360 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23361
23362 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23363
23364 2008-02-25 Jason Rumney <jasonr@gnu.org>
23365
23366 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23367
23368 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23369
23370 Allow fine-grained image-cache flushing.
23371 * dispextern.h (struct image): Add `dependencies' field.
23372 (clear_image_caches): Change arg to Lisp_Object.
23373 * image.c (make_image): Initialize `dependencies' field.
23374 (clear_image_cache): Change arg to allow fine-grained flushing.
23375 Perform the flush even if image-cache-eviction-delay is nil.
23376 (clear_image_caches): Change arg to Lisp_Object.
23377 (Fclear_image_cache): Expand meaning of the argument.
23378 (mark_image): Mark `dependencies' field.
23379 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23380 (lface_hash): Use XHASH rather than XFASTINT.
23381 (face_at_buffer_position): Fix int -> EMACS_INT position.
23382 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23383 (select_frame_for_redisplay): Remove code duplication.
23384 (redisplay_internal): Adapt arg to call to clear_image_caches.
23385
23386 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23387
23388 * s/vms4-0.h:
23389 * s/vms4-2.h:
23390 * s/vms4-4.h:
23391 * s/vms5-5.h: Remove, unused.
23392
23393 * s/irix5-2.h:
23394 * s/irix6-0.h:
23395 * s/riscos5.h:
23396 * s/mach-bsd4-3.h:
23397 * m/mips4.h: Remove files for obsolete systems.
23398
23399 * Makefile.in:
23400 * filelock.c:
23401 * unexmips.c:
23402 * m/hp9000s300.h:
23403 * m/iris4d.h:
23404 * s/aix3-1.h:
23405 * s/hpux.h:
23406 * s/msdos.h:
23407 * s/usg5-0.h:
23408 * s/usg5-2-2.h:
23409 * s/usg5-2.h:
23410 * s/usg5-3.h: Remove references to obsolete variables.
23411
23412 * s/irix5-0.h: Remove, move all the contents ...
23413 * s/irix6-5.h: ... here. Simplify.
23414 * config.in: Regenerate.
23415
23416 2008-02-24 Jason Rumney <jasonr@gnu.org>
23417
23418 * w32term.c (x_draw_glyph_string_background): Clear the background
23419 manually when cleartype is in use.
23420 (x_draw_glyph_string_foreground): Draw text transparently when
23421 cleartype is in use.
23422
23423 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23424 a font into it unless we have to.
23425
23426 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23427
23428 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23429 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
23430
23431 2008-02-18 Jason Rumney <jasonr@gnu.org>
23432
23433 * w32fns.c (Fw32_shell_execute): Encode parameters.
23434
23435 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23436
23437 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23438
23439 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
23440
23441 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23442
23443 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23444
23445 * xterm.c (x_set_offset): Don't change the gravity if
23446 CHANGE_GRAVITY is -1.
23447
23448 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
23449
23450 * fileio.c (auto_save_error_occurred): New var.
23451 (auto_save_error): Set it.
23452 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23453 error occurred.
23454
23455 2008-02-23 Eli Zaretskii <eliz@gnu.org>
23456
23457 * w32.c (globals_of_w32): Add initializations for
23458 g_b_init_get_sid_sub_authority and
23459 g_b_init_get_sid_sub_authority_count.
23460
23461 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23462
23463 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23464 (font_parse_xlfd): Use them for sanity check.
23465 (Finternal_set_font_style_table): Make sure the table is bijective.
23466
23467 Consolidate the image_cache to the terminal struct.
23468 * termhooks.h (P_): Remove redundant def.
23469 (struct terminal): New field `image_cache'.
23470 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23471 of FRAME_X_IMAGE_CACHE.
23472 * xterm.h (struct x_display_info): Remove image_cache field.
23473 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23474 * w32term.h (struct w32_display_info): Remove image_cache field.
23475 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23476 * macterm.h (struct mac_display_info): Remove image_cache field.
23477 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23478 * xterm.c (x_term_init):
23479 * w32term.c (w32_term_init):
23480 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23481 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23482 Remove declarations.
23483 (clear_image_caches, mark_image_cache): New declarations.
23484 * xfaces.c (clear_face_cache):
23485 * xdisp.c (redisplay_internal): Use clear_image_caches.
23486 * image.c (clear_image_cache): Don't check that a frame is on
23487 a window-system before checking if it shares the same cache.
23488 (clear_image_caches): New function.
23489 (Fclear_image_cache): Use it.
23490 (mark_image): Move from allo.c.
23491 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23492 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23493 (mark_object): Don't call mark_image_cache for frames.
23494 (mark_terminals): Call mark_image_cache.
23495
23496 * lisp.h (Fdelete_terminal): Declare.
23497
23498 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23499 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23500 wrong_type_argument.
23501
23502 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23503
23504 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23505 malayalam.el, and tamil.el. Add sinhala.el.
23506
23507 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23508
23509 * xterm.c (x_connection_closed): Consolidate identical tests.
23510 (x_delete_terminal): Don't crash if called via x_connection_closed.
23511
23512 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23513
23514 * xdisp.c (decode_mode_spec): New arg string.
23515 (display_mode_element): Adjust for the above change.
23516
23517 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23518
23519 * callint.c (Fcall_interactively): Use AREF.
23520
23521 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23522
23523 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23524
23525 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23526
23527 * xfns.c (Fx_show_tip): Set string to " " if empty.
23528
23529 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23530
23531 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23532 with Qt.
23533
23534 2008-02-17 Kenichi Handa <handa@m17n.org>
23535
23536 * ftfont.c (ftfont_shape): Return Lispy number.
23537
23538 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23539 for GCs.
23540 (Finternal_set_font_selection_order): Call font_update_sort_order
23541 only when enable_font_backend is set.
23542 (realize_x_face): Set face->font_info to that of default face only
23543 when enable_font_backend is set.
23544
23545 * xdisp.c (handle_composition_prop): Set it->c to the fist
23546 character of the composed region.
23547 (fill_composite_glyph_string): Set base_face->font_info to
23548 s->font_info. Get a face for ascii from base_face->ascii_face.
23549 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23550 with a face already decided.
23551 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23552 non-negative.
23553 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23554 call font_prepare_composition unconditionally.
23555
23556 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23557
23558 * xterm.h (struct x_display_info): New member font.
23559
23560 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23561 (x_set_mouse_face_gc, x_new_font): Likewise.
23562 (x_term_init): Setup display_info->font.
23563 (x_delete_terminal): Free display_info->font.
23564
23565 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23566
23567 * ftxfont.c (ftxfont_default_fid): Delete it.
23568 (ftxfont_open): Set xfont->fid to 0.
23569 (ftxfont_end_for_frame): Clear data specific to the frame and the
23570 font-driver.
23571
23572 * xftfont.c (xftfont_default_fid): Delete it.
23573 (xftfont_open): Set xfont->fid to 0.
23574
23575 * fontset.c (FONTSET_OBJLIST): New macro.
23576 (fontset_find_font): Update font-object list of the fontset.
23577 (free_realized_fontset): New function.
23578 (free_face_fontset): Call free_realized_fontset.
23579 (Ffont_info): Call font_close_object only when enable_font_backend
23580 is set.
23581
23582 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23583 [HAVE_NTGUI]: Include w32term.h.
23584 [MAC_OS]: Include macterm.ch.
23585 (font_otf_ValueRecord): Use make_number.
23586 (font_finish_cache): Fix handling of reference count.
23587 (font_clear_cache): Update num_fonts.
23588 (font_open_entity): Update smallest_char_width and
23589 smallest_font_height of the frame.
23590 (font_close_object): Update num_fonts.
23591 (Fclear_font_cache): Fix finding the target cache data.
23592
23593 2008-02-16 Glenn Morris <rgm@gnu.org>
23594
23595 * fontset.c (Finternal_char_font): Fix compilation warning.
23596
23597 2008-02-16 Eli Zaretskii <eliz@gnu.org>
23598
23599 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23600 instead of char arrays. Enlarge the size of array passed to
23601 get_token_information.
23602
23603 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23604 warnings.
23605
23606 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23607
23608 * .gdbinit: Don't set `args', it breaks gdb --args.
23609
23610 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23611
23612 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23613 within a narrowed buffer.
23614
23615 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23616
23617 * coding.c (decode_coding_object, encode_coding_object):
23618 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23619
23620 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23621
23622 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23623 hardcoding 1.
23624 (detect_coding_system):
23625 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23626 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23627 * insdel.c (insert_from_gap):
23628 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23629 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23630 (string_to_multibyte):
23631 * character.c (chars_in_text, multibyte_chars_in_text):
23632 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23633
23634 * character.h (FETCH_STRING_CHAR_ADVANCE)
23635 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23636 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23637 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23638
23639 * casefiddle.c (casify_region): Only call after-change and composition
23640 functions on the part of the region that was changed.
23641
23642 * keyboard.c (read_avail_input):
23643 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23644
23645 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23646
23647 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23648 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23649
23650 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
23651
23652 * w32menu.c (push_submenu_start, push_submenu_end)
23653 (push_left_right_boundary, push_menu_pane, push_menu_item):
23654 * keyboard.c (read_key_sequence): Don't pass args with side effects
23655 to AREF, it fails when compiling with -DENABLE_CHECKING.
23656
23657 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23658
23659 * Makefile.in (${lispsource}international/charprop.el):
23660 Delete this target.
23661
23662 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23663 emacs-unicode-2.
23664
23665 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23668
23669 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23670
23671 * frame.c (Qnoelisp): New symbol.
23672 (syms_of_frame): Initialize it.
23673 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23674 harmless Elisp code, from a strong `force' from x_connection_closed.
23675 * frame.h (Qnoelisp): Declare.
23676 * xterm.c (x_connection_closed): Pass `noelisp'.
23677
23678 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23679 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23680 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23681 rather than `int' for the type of `type'.
23682
23683 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23684
23685 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23686
23687 * Makefile.in (GNUC): Remove support for gcc-1.x.
23688
23689 2008-02-10 Richard Stallman <rms@gnu.org>
23690
23691 * lisp.h (ASET): Use AREF, not ASLOT.
23692
23693 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23694
23695 * lisp.h (ASET): Check bounds.
23696
23697 2008-02-10 Glenn Morris <rgm@gnu.org>
23698
23699 * buffer.c (mode-name): Doc fix.
23700
23701 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23702
23703 * Makefile.in:
23704 * emacs.c:
23705 * gmalloc.c:
23706 * keyboard.c:
23707 * lisp.h:
23708 * m/ibm370aix.h:
23709 * process.c:
23710 * regex.c:
23711 * s/hpux.h:
23712 * sysdep.c:
23713 * sysselect.h:
23714 * systty.h:
23715 * unexec.c:
23716 * w32term.c:
23717 * xsmfns.c:
23718 * xterm.c: Remove code that deals with obsolete variables.
23719
23720 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23721
23722 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23723 nothing else needs it anymore.
23724
23725 2008-02-09 Eli Zaretskii <eliz@gnu.org>
23726
23727 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23728 instead of unibyte_char_to_multibyte.
23729
23730 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23731
23732 * s/gnu-linux.h: Remove commented out code.
23733
23734 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23735
23736 * Makefile.in: Update what RMS says about using autoconf.
23737 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23738 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23739 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23740 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23741
23742 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23743
23744 * keymap.c (Fkey_description): Move side effect outside of macro call.
23745
23746 * xfaces.c (Finternal_make_lisp_face):
23747 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23748
23749 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23750 (syms_of_fontset): Use ASET.
23751
23752 * fns.c (concat): Move side effect outside of macro call.
23753 (hash_clear): Use ASET.
23754
23755 2008-02-08 Richard Stallman <rms@gnu.org>
23756
23757 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23758 If FORCE, and frame has a surrogate minibuffer for another frame,
23759 delete the other frame first.
23760
23761 2008-02-07 Timo Savola <timo.savola@iki.fi>
23762
23763 * xterm.c (x_detect_focus_change): Handle embed client message.
23764 (handle_one_xevent): Ditto.
23765 (handle_one_xevent): If embedded and we get a button press/release,
23766 request focus.
23767 (xembed_set_info, xembed_send_message): New functions.
23768 (x_make_frame_visible): Call xembed_set_info if embedded.
23769 (x_make_frame_invisible): Call xembed_set_info if embedded.
23770 (x_term_init): Initialize Xatom_XEMBED.
23771 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23772 (x_iconify_frame): Ditto.
23773
23774 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23775 (enum xembed_info, enum xembed_message, enum xembed_focus)
23776 (enum xembed_modifier, enum xembed_accelerator): New.
23777 (xembed_set_info, xembed_send_message): Declare.
23778 (FRAME_X_EMBEDDED_P): New.
23779
23780 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23781 gtk_plug_new.
23782
23783 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23784 window ID of a frame.
23785 (x_window): Reparent frame if embedded.
23786 (Fx_create_frame): Don't set border width if embedded.
23787
23788 * emacs.c (USAGE3): Add --parent-id.
23789 (standard_args): Ditto.
23790
23791 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23792
23793 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23794
23795 2008-02-07 Jim Meyering <meyering@redhat.com>
23796
23797 Use "do...while (0)", not "if (1)...else" in macro definitions.
23798 The latter provokes a warning from gcc about the empty else, when
23799 followed by ";". Also, without that trailing semicolon, it would
23800 silently swallow up any following statement.
23801 * syntax.h (SETUP_SYNTAX_TABLE)
23802 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23803 * buffer.h (DECODE_POSITION): Likewise.
23804 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23805 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23806 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23807 (FETCH_CHAR_ADVANCE): Likewise.
23808 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23809
23810 2008-02-07 Jim Meyering <meyering@redhat.com>
23811
23812 * lread.c [lint]: Don't include <sys/inode.h>.
23813
23814 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23815
23816 * xselect.c (x_handle_dnd_message):
23817 * xmenu.c (digest_single_submenu, xmenu_show):
23818 * xdisp.c (with_echo_area_buffer_unwind_data)
23819 (format_mode_line_unwind_data, unwind_format_mode_line)
23820 (display_menu_bar):
23821 * eval.c (Ffetch_bytecode):
23822 * doc.c (store_function_docstring):
23823 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23824 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23825 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23826
23827 2008-02-07 Kenichi Handa <handa@m17n.org>
23828
23829 * ftxfont.c (ftxfont_open): Don't set
23830 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23831
23832 * ftfont.c (ftfont_open): Fix previous change.
23833
23834 2008-02-06 Jason Rumney <jasonr@gnu.org>
23835
23836 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23837 Use cached metrics for ASCII characters.
23838 (w32font_open_internal): Don't set font's owning_frame.
23839 Cache metrics for ASCII characters.
23840
23841 * w32font.h (struct w32font_info): Add ascii_metrics.
23842 Remove owning_frame.
23843
23844 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23845
23846 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23847 to negative value.
23848
23849 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23850
23851 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23852
23853 * charset.c (syms_of_charset): Set QCtest and Qeq.
23854
23855 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23856
23857 * process.c (Fstart_process):
23858 * callproc.c (Fcall_process): Handle the case where
23859 Funhandled_file_name_directory returns nil.
23860
23861 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23862 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23863 * font.c (check_gstring): Use them and AREF to access the vector before
23864 we know it's really a gstring.
23865 (Ffont_shape_text): Fix typo.
23866 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
23867
23868 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23869 Declare.
23870
23871 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23872
23873 2008-02-05 Jason Rumney <jasonr@gnu.org>
23874
23875 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23876 Set smallest_font_height and smallest_char_width in display info.
23877
23878 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23879
23880 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23881
23882 2008-02-05 Miles Bader <miles@gnu.org>
23883
23884 * xfaces.c (get_lface_attributes, merge_named_face)
23885 (lookup_named_face, lookup_derived_face, realize_named_face):
23886 Revert 2008-02-01 change by cyd@stupidchicken.com.
23887
23888 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23889
23890 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23891 fallback fonts.
23892 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23893
23894 2008-02-04 Jason Rumney <jasonr@gnu.org>
23895
23896 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23897 set full_name.
23898 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23899
23900 2008-02-03 Jason Rumney <jasonr@gnu.org>
23901
23902 * makefile.w32-in (OBJ1): Include font.o here.
23903 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23904
23905 2008-02-02 Jason Rumney <jasonr@gnu.org>
23906
23907 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23908
23909 2008-02-01 Jason Rumney <jasonr@gnu.org>
23910
23911 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23912
23913 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23914
23915 2008-02-01 Andreas Schwab <schwab@suse.de>
23916
23917 * Makefile.in (shortlisp, lisp): Update for rename of
23918 ../lisp/language/myanmar.el.
23919
23920 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
23921
23922 * xfaces.c (get_lface_attributes): Delete function.
23923 (merge_named_face, lookup_named_face, lookup_derived_face)
23924 (realize_named_face): Call lface_from_face_name directly, and use
23925 the fact that merge_face_vectors does not alter its FROM argument.
23926
23927 2008-02-01 Jason Rumney <jasonr@gnu.org>
23928
23929 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23930 input in the default locale. Handle non-Unicode multibyte input.
23931
23932 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23933
23934 * fontset.c (reorder_font_vector): Exclude nil elements from the
23935 font group. Don't try multiple fonts.
23936 (fontset_font): Adjust for the above change.
23937 (Finternal_char_font): Return nil if the found font doesn't
23938 contain the character ch.
23939
23940 * Makefile.in (lisp, shortlisp): Add cham.el.
23941
23942 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23943
23944 * font.h (FONTP): Make it return 1 also for a font-object.
23945
23946 * .gdbinit (xfontset): New function.
23947
23948 * font.c (font_find_for_lface): Check if the character C is
23949 supported or not only for the first font.
23950
23951 * fontset.c (reorder_font_vector): Fix typo.
23952 (fontset_find_font): Don't add a font-spec specifying a script.
23953 Use 0 (not Qt) for the indication of empty font-group. Change the
23954 format of RFONT-DEF. Return Qt if no font in the font-group
23955 support the character.
23956 (fontset_font): Adjust for the above change. If no font was
23957 found the character, remember that.
23958 (face_for_char): Adjust for the change of RFONT-DEF.
23959 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23960 no font for the target.
23961 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23962
23963 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23964
23965 * font.c (font_load_for_face): Handle the case that the font in
23966 face->lface is a string.
23967
23968 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23969
23970 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23971
23972 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23973
23974 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23975 Fix previous change. If the frame is not on a window system,
23976 signal an error.
23977
23978 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23979
23980 * coding.c (decode_coding_object, encode_coding_object):
23981 Adjust marker positions after conversion.
23982
23983 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23984
23985 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23986
23987 * font.c (font_find_for_lface): Fix the handling of the return
23988 value of font_has_char.
23989 (Ffont_shape_text): Fix previous change.
23990
23991 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23992 (fontset_ref_and_range): Delete it.
23993 (fontset_find_font): Call char_table_ref_and_range instead of
23994 FONTSET_REF_AND_RANGE.
23995 (make_fontset): Don't setup font groups of Latin here.
23996 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23997 (new_fontset_from_font): Make the specified font the default for
23998 all Latin characters.
23999
24000 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24001
24002 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
24003 is on a window system before accessing the fontset of the frame.
24004
24005 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24006
24007 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
24008
24009 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
24010 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
24011
24012 * font.c (Ffont_shape_text): If the font driver doesn't have a
24013 shaper function, make zero-width glyphs to have at least one-pixel
24014 width. Fix setting of `to' field of glyphs.
24015
24016 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24017
24018 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
24019 glyphs.
24020
24021 * font.h (struct font_driver): Improve docstring of member `shape'.
24022
24023 2008-02-01 Kenichi Handa <handa@m17n.org>
24024
24025 * composite.c (syms_of_composite): Fix docstring of
24026 auto-composition-function.
24027
24028 * font.h (LGLYPH_SIZE): New macro.
24029
24030 * font.c (Ffont_fill_gstring): Stop filling when a character not
24031 supported by the font is found.
24032 (Ffont_shape_text): When a shape callback function returns nil,
24033 try at most two more times with larger gstring.
24034 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
24035
24036 * xdisp.c (handle_auto_composed_prop): Change the argument to
24037 auto-composition-function.
24038
24039 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
24040 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
24041 Lispy glyph and store it in the lgstring.
24042
24043 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
24044
24045 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
24046
24047 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24048
24049 * font.c (Ffont_shape_text): Avoid unnecessary composition.
24050
24051 * fontset.c (Vfont_encoding_charset_alist): New variable.
24052 (syms_of_fontset): DEFVAR it.
24053 (reorder_font_vector, fontset_find_font): Optimize for the case of
24054 no need of reordering.
24055 (face_for_char): Map the charset property by
24056 Vfont_encoding_charset_alist.
24057
24058 2008-02-01 Jason Rumney <jasonr@gnu.org>
24059
24060 * w32font.c (logfonts_match): Don't check adstyle here.
24061 (font_matches_spec): Check here against physical font instead.
24062 (add_font_entity_to_list): Avoid some substitutions.
24063
24064 * font.c (font_parse_fcname): Default weight and slant to normal.
24065 (font_score): Prefer normal fonts if weight or slant unspecified.
24066 (font_score) [WINDOWSNT]: Scale weight difference down to closer
24067 match freetype scores.
24068
24069 2008-02-01 Jason Rumney <jasonr@gnu.org>
24070
24071 * w32font.c (w32font_text_extents): Don't use the frame stored in the
24072 font, as it may have been deleted.
24073 (w32_enumfont_pattern_entity): Map generic family to adstyle using
24074 most common hyphenless variation.
24075 (logfonts_match): Check generic family.
24076 (font_matches_spec): Don't check generic family here.
24077 (fill_in_logfont): Set generic family based on adstyle.
24078
24079 * w32font.h (w32font_get_cache): Update declaration.
24080
24081 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24082
24083 * ftfont.c (ftfont_get_cache): Adjust the argument type.
24084
24085 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24086 If none of the new drivers are available, call font_update_drivers
24087 with the old drivers.
24088
24089 * w32font.c (w32font_get_cache): Adjust the argument type.
24090
24091 * xfont.c (xfont_get_cache): Adjust the argument type.
24092
24093 * font.h (struct font_driver): Change argument type of get_cache.
24094
24095 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24096
24097 * font.c (Ffont_get): Fix arguments to Fassoc.
24098 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24099 (font_clear_cache): New function.
24100 (font_list_entities, font_matching_entity): Use font_get_cache.
24101 (font_update_drivers): Call font_clear_cache when finishing a driver.
24102
24103 * fontset.c (fontset_find_font): Fix previous change.
24104
24105 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24106
24107 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24108 dpyinfo->font_table.
24109 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24110 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24111
24112 * font.c (font_at): Handle the case that the arg C is negative.
24113 Handle the unibyte case.
24114 (Ffont_at): Call font_at with the arg C -1.
24115
24116 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24117 the position here, and call font_at with the arg C -1.
24118 Don't check the range of the existing composition at the point.
24119
24120 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24121
24122 * fontset.c (fontset_add): New args charset_id and family.
24123 Change caller.
24124 (load_font_get_repertory, fontset_find_font): Assume that
24125 font_spec is always a font-spec object.
24126 (Fset_fontset_font): Always store a font-spec object in a fontset.
24127
24128 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24129 instead of get_property_and_range.
24130
24131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24132
24133 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24134 (xftfont_open): Don't keep locking face.
24135 (xftfont_close): Don't unlock face.
24136 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24137
24138 * fontset.c (fontset_find_font): Don't prefer a font of
24139 supplementary charset.
24140
24141 2008-02-01 Kenichi Handa <handa@m17n.org>
24142
24143 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24144 script, langsys_tag to langsys, new member script.
24145 (OTF_TAG_STR): Terminate by '\0'.
24146 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
24147 listing to the script specified in that property. Fix arg to
24148 OTF_check_features.
24149
24150 2008-02-01 Jason Rumney <jasonr@gnu.org>
24151
24152 * w32font.h: New file.
24153
24154 * w32font.c: Include it.
24155 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24156 (w32font_open): Set owning_frame.
24157 (w32font_text_extents): Use owning_frame.
24158 (struct font_callback_data): Add opentype_only field.
24159 (add_font_entity_to_list): Use it to filter fonts.
24160 Don't check against full name.
24161 (w32font_list_internal): New function.
24162 (w32font_list): Use it.
24163 (w32font_match_internal): New function.
24164 (w32font_match): Use it.
24165 (w32font_open_internal): New function.
24166 (w32font_open): Use it.
24167 (w32font_get_cache, w32font_close, w32font_has_char)
24168 (w32font_encode_char, w32font_text_extents, w32font_draw):
24169 Make non-static.
24170
24171 * makefile.w32-in (w32font.o): Depend on w32font.h.
24172
24173 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24174
24175 * charset.c (Fdefine_charset_internal): Record a supplementary
24176 charset at the tail of Vcharset_order_list.
24177
24178 * font.c (Ffont_shape_text): Fix the return value.
24179
24180 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24181
24182 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24183
24184 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24185
24186 * ftfont.c (struct OpenTypeSpec): New struct.
24187 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24188 (ftfont_get_open_type_spec): New function.
24189 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24190
24191 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24192
24193 2008-02-01 Jason Rumney <jasonr@gnu.org>
24194
24195 * w32font.c (add_font_entity_to_list): Compare only the beginning
24196 of full name.
24197
24198 2008-02-01 Kenichi Handa <handa@m17n.org>
24199
24200 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24201 Never return HANDLED_RECOMPUTE_PROPS.
24202
24203 2008-02-01 Kenichi Handa <handa@m17n.org>
24204
24205 * font.c (font_gstring_produce): Delete it.
24206
24207 * composite.h (COMPOSITION_METHOD):
24208 Handle COMPOSITION_WITH_GLYPH_STRING.
24209
24210 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24211
24212 * xfont.c (Qx): Delete.
24213 (syms_of_xfont): Don't initialize Qx.
24214
24215 * composite.h (enum composition_method):
24216 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24217
24218 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24219
24220 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24221 (choose_face_font): Accept new form of font-spec.
24222
24223 * frame.h (font_driver_list): Declare it unconditionally.
24224 (struct frame): Define members font_driver_list and font_data_list
24225 unconditionally.
24226
24227 * fontset.c: Include "font.h" unconditionally.
24228 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24229 (Fset_fontset_font): Accept a font-spec object.
24230
24231 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24232 PIXEL_SIZE part a wild card.
24233
24234 * dispextern.h (struct glyph_string): Define members clip and
24235 num_clips unconditionally.
24236 (struct face): Define members font_info and extra unconditionally.
24237
24238 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24239 ftfont_info only when HAVE_LIBOTF is defined.
24240
24241 2008-02-01 Andreas Schwab <schwab@suse.de>
24242
24243 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24244 and end.
24245
24246 2008-02-01 Jason Rumney <jasonr@gnu.org>
24247
24248 * w32font.c (w32font_driver): Add new fields.
24249
24250 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24251
24252 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24253 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24254 (LIBES): Add @M17N_FLT_CFLAGS@.
24255
24256 * composite.c (compose_text): Don't treat the new style
24257 composition specially.
24258
24259 * emacs.c (main): Call syms_of_font unconditionally.
24260
24261 * font.h (FONT_ENTITY_NOT_LOADABLE)
24262 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24263 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24264 (struct font_driver): New member shape.
24265 (font_registry_charsets): Extern it.
24266 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24267 (font_otf_capability, font_drive_otf): Delete their externs.
24268
24269 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24270 (font_charset_alist, font_registry_charsets): Move from xfont.c
24271 and rename.
24272 (font_prop_validate_otf): New function.
24273 (font_property_table): Register it for QCotf.
24274 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24275 (font_drive_otf): Delete.
24276 (font_prepare_composition): New arg F. Adjust for the change of
24277 lispy gstring.
24278 (font_find_for_lface): New arg C.
24279 (font_load_for_face): Adjust for the change of font_find_for_lface.
24280 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24281 lispy gstring.
24282 (Ffont_shape_text): New function.
24283 (Fopen_font): If the font size is not given, use 12-pixel.
24284 (Ffont_at): New arg STRING.
24285 (syms_of_font): Initialize font_charset_alist.
24286 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24287 conditionally.
24288
24289 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24290 fonts of the same font-spec. Change the format of RFONT-DEF.
24291 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24292 Adjust for the change of RFONT-DEF.
24293 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24294
24295 * ftfont.h: New file.
24296
24297 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24298 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24299 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24300 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24301 font_otf_capability and font_drive_otf, set ftfont_shape.
24302 (ftfont_list): Adjust for the change of :otf property value.
24303 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24304 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24305 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24306 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24307 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24308 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24309
24310 * w32term.c (x_draw_composite_glyph_string_foreground):
24311 Adjust for the change of lispy gstring.
24312
24313 * xdisp.c (handle_composition_prop): Adjust for the change of
24314 lispy gstring. Call a function for auto-composition with the
24315 third arg it->window.
24316 (fill_composite_glyph_string): Adjust for the change of lispy string.
24317 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24318
24319 * xfaces.c (set_font_frame_param): Adjust for the change of
24320 font_find_for_lface.
24321
24322 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24323 (xfont_registry_charsets): Likewise. Change caller.
24324 (syms_of_xfont): Don't handle x_font_charset_alist.
24325
24326 * xftfont.c: Include "ftfont.h".
24327 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24328 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24329 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24330 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24331 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24332 Set xftfont_driver.shape to xftfont_shape.
24333
24334 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24335 the change of lispy gstring.
24336
24337 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24338
24339 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24340
24341 2008-02-01 Jason Rumney <jasonr@gnu.org>
24342
24343 * w32font.c (w32font_draw): Fill background manually.
24344
24345 2008-02-01 Jason Rumney <jasonr@gnu.org>
24346
24347 * font.c (Qfontp): Remove unused symbol.
24348 (QCantialias): New symbol.
24349 (syms_of_font): Define it.
24350 (font_property_table): Set a validator for QCantialias.
24351
24352 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24353 Define if not already.
24354 (QCfamily): Share with xfaces.c.
24355 (Qstandard, Qsubpixel, Qnatural): New symbols.
24356 (syms_of_w32font): Define them. Don't define QCfamily here.
24357 (w32_antialias_type, lispy_antialias_type): New functions.
24358 (w32_enumfont_pattern_entity): New arg requested_font.
24359 Set antialias parameter if non-default was requested.
24360 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24361
24362 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24363
24364 * lread.c (read1): Undo the previous change.
24365
24366 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24367
24368 * frame.c (Fdelete_frame): Call font_update_drivers only when
24369 USE_FONT_BACKEND is defined.
24370
24371 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24372
24373 * font.h (struct font_bitmap): New member bits_per_pixel.
24374 (struct font_driver): New members start_for_frame and end_for_frame.
24375 (struct font_data_list): New struct.
24376 (font_put_frame_data, font_get_frame_data): Extern them.
24377
24378 * frame.h (struct frame): New member font_data_list.
24379
24380 * font.c (font_update_drivers): Call driver->start_for_frame and
24381 driver->end_for_frame at proper timings.
24382 (font_put_frame_data, font_get_frame_data): New functions.
24383 (Ffont_spec): Add usage in the docstring.
24384
24385 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24386 (Fdelete_frame): Call font_update_drivers.
24387
24388 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24389 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24390 (xftfont_get_xft_draw): New function.
24391 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24392 (xftfont_end_for_frame): New function.
24393 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24394
24395 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24396 Change argument. Cache GCs in the per-frame data.
24397 (struct ftxfont_frame_data): New struct.
24398 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24399 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24400 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24401 (ftxfont_end_for_frame): New function.
24402 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24403
24404 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24405
24406 2008-02-01 Kenichi Handa <handa@m17n.org>
24407
24408 * xselect.c (Vselection_coding_system)
24409 (Vnext_selection_coding_system): Delete them.
24410 (syms_of_xselect): Don't declare selection-coding-system and
24411 next-selection-coding-system. They are declared in select.el.
24412
24413 2008-02-01 Jason Rumney <jasonr@gnu.org>
24414
24415 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24416
24417 * w32fns.c: Include imm.h.
24418 (get_composition_string_fn, get_ime_context_fn): New optional
24419 system functions.
24420 (globals_of_w32fns): Load them from imm32.dll.
24421 (ignore_ime_char): New flag.
24422 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24423 WM_IME_ENDCOMPOSITION messages.
24424
24425 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24426 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24427
24428 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24429
24430 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24431 (READCHAR_REPORT_MULTIBYTE): New macro.
24432 (readchar): New 2nd arg MULTIBYTE.
24433 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24434 Make symbol's name multibyte according to the multibyteness of the
24435 source.
24436
24437 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24438
24439 * xfaces.c (face_for_overlay_string): Call lookup_face with
24440 correct arguments (fix of synching with the trunk).
24441
24442 2008-02-01 Kenichi Handa <handa@m17n.org>
24443
24444 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24445 (font_prop_validate_non_neg, font_prop_validate_spacing):
24446 Delete argument prop_index.
24447 (font_property_table): Change arguments to validater. Change Callers.
24448 (font_lispy_object): Delete.
24449 (font_at): Use font_find_object instead fo font_lispy_object.
24450
24451 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24452
24453 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24454 and file names.
24455
24456 2008-02-01 Jason Rumney <jasonr@gnu.org>
24457
24458 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24459 (font_matches_spec): Remove debug output.
24460 (add_font_entity_to_list): Avoid using substituted fonts.
24461
24462 2008-02-01 Jason Rumney <jasonr@gnu.org>
24463
24464 * doc.c (Fsnarf_documentation):
24465 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24466
24467 2008-02-01 Miles Bader <miles@gnu.org>
24468
24469 * dispextern.h (struct glyph_row): Only define "clip" field if
24470 HAVE_WINDOW_SYSTEM is defined.
24471
24472 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24473
24474 Fix up multi-tty merge.
24475
24476 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24477 and indentation.
24478
24479 * xfaces.c (free_realized_face, clear_face_gcs):
24480 Include font_done_for_face in the input_blocked section, just in case.
24481
24482 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24483 (get_char_face_and_encoding): Undo last change and remove the *other*
24484 duplicate definition (i.e. keep the one that's better scoped and that
24485 includes code for the font-backend).
24486
24487 * terminal.c (create_terminal): Default keyboard_coding to
24488 `no-conversion' and terminal_coding to `undecided'.
24489
24490 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24491
24492 * fontset.c (free_realized_fontsets): Check that the table entry does
24493 contain a fontset before trying to compare it to `base'.
24494
24495 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24496 syms_of_charset, and syms_of_coding earlier because init_window_once
24497 now needs Vcoding_system_hash_table to be setup.
24498
24499 * coding.h (default_buffer_file_coding): Remove.
24500
24501 * coding.c (default_buffer_file_coding): Remove.
24502 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24503 than ->symbol, and use the terminal-local coding system.
24504 (syms_of_coding): Don't setup the coding-systems that are not
24505 terminal-local.
24506 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24507
24508 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24509 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24510
24511 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24512 in chartab.c and were re-added here by mistake.
24513 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24514
24515 * doc.c (Fsnarf_documentation):
24516 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24517 src to etc.
24518
24519 * ChangeLog.10: Add mistakenly removed entry.
24520
24521 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24522
24523 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24524
24525 2008-02-01 Miles Bader <miles@gnu.org>
24526
24527 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24528 Add extra args to FACE_FOR_CHAR.
24529
24530 2008-02-01 Kenichi Handa <handa@m17n.org>
24531
24532 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24533 in sequence.
24534
24535 * chartab.c (map_sub_char_table, map_char_table): If the range
24536 contains just one character, call the function with that character
24537 even if the depth is not 3.
24538
24539 2008-02-01 Jason Rumney <jasonr@gnu.org>
24540
24541 * w32font.c (w32font_text_extents): Calculate metrics for the
24542 whole string.
24543
24544 2008-02-01 Jason Rumney <jasonr@gnu.org>
24545
24546 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24547
24548 2008-02-01 Jason Rumney <jasonr@gnu.org>
24549
24550 * w32term.c (x_set_glyph_string_clipping):
24551 Use get_glyph_string_clip_rects.
24552 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24553 Adjust for the change of struct glyph_string.
24554
24555 * w32font.c (w32font_draw): Do clipping here.
24556
24557 2008-02-01 Kenichi Handa <handa@m17n.org>
24558
24559 * xftfont.c (xftfont_draw): Adjust for the change of struct
24560 glyph_string.
24561
24562 * xterm.c (x_set_glyph_string_clipping):
24563 Use get_glyph_string_clip_rects.
24564 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24565 Adjust for the change of struct glyph_string.
24566
24567 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24568 the resulting clip(s}.
24569 (expose_overlaps): Add arg r. Change callers. Set it to
24570 row->clip temporarily.
24571 (expose_window): Redraw rows overlapping the exposed area.
24572
24573 * dispextern.h (struct glyph_row): New member clip.
24574 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24575 clip_height, new member clip, and num_clips.
24576
24577 2008-02-01 Kenichi Handa <handa@m17n.org>
24578
24579 * data.c (Fchar_or_string_p): Fix docstring.
24580
24581 2008-02-01 Kenichi Handa <handa@m17n.org>
24582
24583 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24584 create a temporary XftDraw object.
24585
24586 2008-02-01 Kenichi Handa <handa@m17n.org>
24587
24588 * font.c (Ffontp): Fix docstring.
24589
24590 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24591 strong evidence of ISO-2022.
24592
24593 2008-02-01 Kenichi Handa <handa@m17n.org>
24594
24595 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24596 SYNTAX_ENTRY_FOLLOW_PARENT.
24597
24598 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24599
24600 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24601 its type.
24602 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24603 Update to the new type of weak_hash_tables and next_weak.
24604
24605 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24606 a plain C pointer to Lisp_Hash_Table.
24607
24608 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24609 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24610 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24611 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24612 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24613 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24614 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24615 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24616 (GC_EQ): Remove since they've been identical to their non-GC_
24617 alter-egos ever since the markbit was eradicated.
24618
24619 * alloc.c:
24620 * buffer.c:
24621 * buffer.h:
24622 * data.c:
24623 * fileio.c:
24624 * filelock.c:
24625 * fns.c:
24626 * frame.h:
24627 * lisp.h:
24628 * macterm.c:
24629 * print.c:
24630 * process.c:
24631 * w32fns.c:
24632 * w32menu.c:
24633 * w32term.c:
24634 * xfns.c:
24635 * xmenu.c:
24636 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24637
24638 2008-02-01 Kenichi Handa <handa@m17n.org>
24639
24640 * chartab.c (map_sub_char_table): Make it work for the top-level
24641 char-table. Fix handling of parent char-table.
24642 (map_char_table): Adjust for the above change.
24643
24644 2008-02-01 Jason Rumney <jasonr@gnu.org>
24645
24646 * w32font.c (Qgdi): Rename from Qw32.
24647
24648 2008-02-01 Jason Rumney <jasonr@gnu.org>
24649
24650 * w32bdf.c (get_quoted_string): Make function static.
24651
24652 2008-02-01 Kenichi Handa <handa@m17n.org>
24653
24654 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24655 bigger ascent and descent than those of the font, use them as
24656 font's ascent and descent.
24657
24658 2008-02-01 Kenichi Handa <handa@m17n.org>
24659
24660 * Makefile.in (${lispsource}international/charprop.el): Move this
24661 target within "#ifdef HAVE_UNIDATA" and "#endif".
24662
24663 2008-02-01 Kenichi Handa <handa@m17n.org>
24664
24665 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24666 (shortlisp): Add ../lisp/language/tai-viet.el.
24667
24668 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
24669
24670 * Makefile.in (${lispsource}international/charprop.el): Depend on
24671 temacs${EXEEXT}.
24672
24673 2008-02-01 Jason Rumney <jasonr@gnu.org>
24674
24675 * w32font.c (w32font_close): Delete the GDI font object.
24676
24677 * w32menu.c: Include character.h.
24678
24679 * w32proc.c: Likewise.
24680
24681 * w32select.c: Likewise.
24682
24683 * makefile.w32-in (w32proc.o): Depend on character.h.
24684
24685 2008-02-01 Jason Rumney <jasonr@gnu.org>
24686
24687 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24688
24689 * w32menu.c (syms_of_w32menu): Likewise.
24690
24691 * w32proc.c (syms_of_ntproc): Likewise.
24692
24693 * w32select.c (syms_of_w32select): Likewise.
24694
24695 * w32term.c (syms_of_w32term): Likewise.
24696
24697 2008-02-01 Jason Rumney <jasonr@gnu.org>
24698
24699 * w32font.c (w32font_draw): Delete brush after using it.
24700
24701 2008-02-01 Jason Rumney <jasonr@gnu.org>
24702
24703 * w32font.c (w32font_open): Don't set font_idx.
24704 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24705 to font settings.
24706 (w32font_draw): Fill background explicitly.
24707
24708 2008-02-01 Jason Rumney <jasonr@gnu.org>
24709
24710 * w32term.c (w32_initialize): Don't call w32font_initialize.
24711
24712 * w32font.c (w32font_info): Remove subranges.
24713 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24714 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24715 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24716 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24717 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24718 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24719 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24720 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24721 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24722 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24723 New symbols.
24724 (font_callback_data): New struct.
24725 (w32font_list, w32font_match): Use it.
24726 (w32font_open): Don't populate subranges.
24727 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24728 (w32font_encode_char): Always return unicode code-point as-is.
24729 (w32font_text_extents): Supply a transformation matrix to
24730 GetGlyphOutline. Never look up by glyph index. Avoid looping
24731 twice. Use unicode version of GetTexExtentPoint32 instead of
24732 glyph index version.
24733 (set_fonts_frame): Remove.
24734 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24735 set frame parameter. Use backward compatible fake foundries.
24736 Save generic family in extra slot under QCfamily. Make width slot
24737 constant. Save QCspacing value. Save list of scripts instead of
24738 binary subranges.
24739 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
24740 (add_font_entity_to_list): Use font_callback_data struct.
24741 Filter unwanted fonts.
24742 (add_one_font_entity_to_list): Use font_callback_data struct.
24743 (w32_registry): Default to iso10646_1.
24744 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24745 string font registries. Don't fill in font name if it is a generic
24746 family name, fill family instead. Use spacing, family and script
24747 extra info to fill pitch, family and charset fields.
24748 (list_all_matching_fonts): Use font_callback_data struct.
24749 (unicode_range_for_char): Remove.
24750 (font_supported_scripts): New function.
24751 (w32font_initialize): Remove.
24752 (syms_of_w32font): Update which symbols are defined.
24753
24754 2008-02-01 Jason Rumney <jasonr@gnu.org>
24755
24756 * font.c (font_pixel_size): Reverse assq_no_quit args.
24757
24758 * w32term.h (FONT_WIDTH): Report max width, not average.
24759 (FONT_MAX_WIDTH): Remove.
24760 (FONT_AVG_WIDTH): New macro.
24761
24762 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24763 redefinition of FONT_WIDTH.
24764
24765 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24766 (w32_cache_char_metrics): Use FONT_WIDTH.
24767
24768 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24769
24770 2008-02-01 Jason Rumney <jasonr@gnu.org>
24771
24772 * w32font.c (w32font_open): Make lfHeight negative.
24773
24774 * w32fns.c (x_default_font_parameter): Use new style font name.
24775 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24776
24777 2008-02-01 Jason Rumney <jasonr@gnu.org>
24778
24779 * w32font.c (QCsubranges): New symbol.
24780 (w32font_open, w32font_has_char): Get subranges from subproperty
24781 of extra.
24782 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24783 (syms_of_w32font): Define :subranges symbol.
24784
24785 * font.c (font_put_extra): Expose externally.
24786
24787 * font.h (font_put_extra): Move declaration from font.c.
24788
24789 * font.c (Ffont_get): Use font driver to determine otf capability.
24790 (adjust_anchor): Check if driver defines anchor_point before using.
24791
24792 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24793 (w32font_draw): Use options.
24794 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24795 Fix detection of truetype fonts.
24796 (registry_to_w32_charset): Handle charsets other than iso8859-1
24797 expressed as lisp symbols.
24798 (w32_registry): Express charset as lisp symbol.
24799 (fill_in_logfont): Reverse pixel and point height logic.
24800 Don't set width here. Set quality to default.
24801
24802 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24803 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24804
24805 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24806 Remove redundant loop and allocation.
24807
24808 * makefile.w32-in (font.o, w32font.o): New objects.
24809 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24810 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24811
24812 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24813 STORE_XCHARB a valid l-value.
24814
24815 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24816 calculations for non-Truetype fonts.
24817 (x_draw_glyph_string): Sync with xterm.c.
24818 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24819 Remove redundant code.
24820 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24821
24822 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24823 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24824
24825 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24826 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24827
24828 * w32font.c: New file for w32 font backend.
24829
24830 2008-02-01 Kenichi Handa <handa@m17n.org>
24831
24832 * term.c: Don't include "buffer.h" twice.
24833
24834 2008-02-01 Kenichi Handa <handa@m17n.org>
24835
24836 * character.c (Funibyte_string): New function.
24837 (syms_of_character): Defsubr it.
24838
24839 2008-02-01 Jason Rumney <jasonr@gnu.org>
24840
24841 * w32term.c [USE_FONT_BACKEND]:
24842 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24843 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24844 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24845 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24846 (x_free_frame_resources): Sync with xterm.c.
24847
24848 2008-02-01 Andreas Schwab <schwab@suse.de>
24849
24850 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24851 char-table size.
24852
24853 2008-02-01 Kenichi Handa <handa@m17n.org>
24854
24855 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24856
24857 2008-02-01 Kenichi Handa <handa@m17n.org>
24858
24859 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24860 font_otf_gpos, add font_drive_otf.
24861
24862 * fontset.c (fontset_find_font): Pay attention to font size
24863 specified for a font.
24864 (reorder_font_vector): Check contents of font_def.
24865
24866 * font.c (struct otf_list): Delete it.
24867 (otf_list): Make it a lisp variable.
24868 (otf_open): Use lispy otf_list.
24869 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24870 (check_otf_features): New function.
24871 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24872 New functions.
24873 (font_drive_otf): New function merging font_otf_gsub and
24874 font_otf_gpos.
24875 (font_open_for_lface): New arg spec. Change argument order.
24876 (font_load_for_face): Adjust for the change of font_open_for_lface.
24877 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24878 Ffont_otf_gpos.
24879 (syms_of_font): Staticpro otf_list. Delete defsubr of
24880 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24881
24882 * xfaces.c (set_font_frame_param): Adjust for the change of
24883 font_open_for_lface.
24884
24885 * font.h (font_open_for_lface): Adjust prototype.
24886 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24887 member otf_drive.
24888 (font_otf_gsub, font_otf_gpos): Delete externs.
24889 (font_drive_otf): Extern it.
24890
24891 2008-02-01 Kenichi Handa <handa@m17n.org>
24892
24893 * font.c (font_at): If the window W is not on a window system,
24894 return Qnil.
24895
24896 * coding.c (produce_chars, encode_coding): Don't call
24897 insert_from_gap if no characters to produce.
24898
24899 2008-02-01 Kenichi Handa <handa@m17n.org>
24900
24901 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24902 Fclear_face_cache.
24903
24904 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24905
24906 2008-02-01 Miles Bader <miles@gnu.org>
24907
24908 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24909 Parse "--disable-font-backend" option.
24910 (standard_args): Add "--disable-font-backend" option.
24911
24912 2008-02-01 Kenichi Handa <handa@m17n.org>
24913
24914 * fontset.c (fontset_find_font): New function.
24915 (fontset_font): Use fontset_find_font.
24916 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24917 Register the specified font for all Latin characters.
24918 (new_fontset_from_font): Register the specified font for all Latin
24919 characters.
24920 (dump_fontset): For a realized fontset, include the base fontset
24921 name in the returned vector.
24922
24923 2008-02-01 Kenichi Handa <handa@m17n.org>
24924
24925 * character.h (CHAR_STRING): Cast C to unsigned on calling
24926 char_string.
24927
24928 * character.c (char_string): Type of arg C changed to unsigned.
24929 Signal an error if C is an invalid character code.
24930
24931 * editfns.c (general_insert_function, Fchar_to_string):
24932 Use CHARACTERP, not INTEGERP.
24933
24934 2008-02-01 Kenichi Handa <handa@m17n.org>
24935
24936 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24937 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24938
24939 * regex.c (analyse_first): Fix for multibyte characters in "case
24940 charset:" and "case categoryspec:".
24941
24942 2008-02-01 Andreas Schwab <schwab@suse.de>
24943
24944 * Makefile.in (LIBES): Move standard libraries to the end.
24945
24946 2008-02-01 Kenichi Handa <handa@m17n.org>
24947
24948 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24949 nonzero, don't shrink the buffer nextb.
24950
24951 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24952
24953 * coding.c (coding_alloc_by_making_gap): New arg offset.
24954 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24955 offset.
24956 (decode_coding_iso_2022): Update coding->safe_charsets.
24957 (decode_coding_gap): Temporarily set
24958 current_buffer->text->inhibit_shrinking to 1.
24959
24960 2008-02-01 Kenichi Handa <handa@m17n.org>
24961
24962 * xterm.c (x_draw_composite_glyph_string_foreground):
24963 Fix indexing into elements of s->cmp and s->char2b.
24964
24965 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
24966
24967 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24968
24969 2008-02-01 Kenichi Handa <handa@m17n.org>
24970
24971 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24972 target_multibyte instead of multibyte.
24973 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24974 (bcmp_translate): Change the argument name from multibyte to
24975 target_multibyte.
24976
24977 2008-02-01 Kenichi Handa <handa@m17n.org>
24978
24979 These changes are to compile a regexp into a pattern that can be
24980 used both for multibyte and unibyte targets.
24981
24982 * Makefile.in (search.o): Depend on charset.h.
24983
24984 * character.c (multibyte_char_to_unibyte_safe): New function.
24985
24986 * search.c: Include "charset.h".
24987 (compile_pattern_1): Delete argument multibyte. Don't set
24988 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24989 (compile_pattern): Don't compare cp->buf.target_multibyte.
24990 Compare cp->buf.charset_unibyte.
24991 (compile_pattern): Set cp->buf.target_multibyte.
24992
24993 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24994
24995 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24996
24997 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24998 multibyte. Change callers.
24999 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
25000 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
25001 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
25002 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
25003 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
25004 (regex_compile): Make the compiled pattern usable both for
25005 multibyte and unibyte targets.
25006 (analyse_first): Make the fastmap usable both for multibyte and
25007 unibyte targets.
25008 (TRANSLATE_VIA_MULTIBYTE): Delete.
25009 (re_match_2_internal): Pay attention to the case that the
25010 multibyteness of bufp and target may be different.
25011
25012 2008-02-01 Kenichi Handa <handa@m17n.org>
25013
25014 * xdisp.c (x_produce_glyphs): When a font is not found, make the
25015 empty box occupy at least one column width.
25016
25017 2008-02-01 Miles Bader <miles@gnu.org>
25018
25019 * Makefile.in: Remove redundant HAVE_XFT clause.
25020
25021 2008-02-01 Kenichi Handa <handa@m17n.org>
25022
25023 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
25024
25025 2008-02-01 Kenichi Handa <handa@m17n.org>
25026
25027 * fontset.c (Finternal_char_font): Fix for the case of POSITION
25028 being nil.
25029
25030 2008-02-01 Kenichi Handa <handa@m17n.org>
25031
25032 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
25033
25034 2008-02-01 Kenichi Handa <handa@m17n.org>
25035
25036 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
25037
25038 2008-02-01 Kenichi Handa <handa@m17n.org>
25039
25040 * search.c (simple_search): Fix previous change.
25041
25042 2008-02-01 Kenichi Handa <handa@m17n.org>
25043
25044 * xftfont.c (ftfont_font_format): Extern declaration.
25045
25046 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
25047
25048 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
25049 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
25050
25051 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
25052 (ftfont_font_format): Fix previous change.
25053
25054 * font.h (Ffont_xlfd_name): EXFUN it.
25055
25056 * font.c (font_parse_xlfd): Fix the array size of `f'.
25057 (register_font_driver): Use EQ to compare driver->type.
25058
25059 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
25060 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
25061 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
25062
25063 2008-02-01 Kenichi Handa <handa@m17n.org>
25064
25065 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
25066 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
25067
25068 2008-02-01 Kenichi Handa <handa@m17n.org>
25069
25070 * xfont.c (xfont_open): Set font->format.
25071
25072 * xftfont.c (xftfont_open): Set font->format.
25073
25074 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
25075 (ftfont_list): Include FC_FONTFORMAT in FcObject.
25076 (ftfont_open): Set font->format.
25077 (ftfont_font_format): New function.
25078
25079 * font.h (struct font): New member format.
25080
25081 * font.c (Qopentype): New variable.
25082 (syms_of_font): Defsym it.
25083 (Fquery_font): Change the format of the last element of the return
25084 value.
25085
25086 2008-02-01 Kenichi Handa <handa@m17n.org>
25087
25088 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25089 last resort.
25090
25091 2008-02-01 Kenichi Handa <handa@m17n.org>
25092
25093 * coding.c (detect_coding_charset): Fix detection of multi-byte
25094 charset.
25095
25096 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25097
25098 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25099
25100 2008-02-01 Kenichi Handa <handa@m17n.org>
25101
25102 * xdisp.c (get_next_display_element): Set it->face_id for the
25103 first component of a composition.
25104 (x_produce_glyphs): Check if the font is changed or not for composition.
25105
25106 2008-02-01 Kenichi Handa <handa@m17n.org>
25107
25108 * fontset.c (Qlatin): New variable.
25109 (syms_of_fontset): Define it as a lisp symbol.
25110 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25111
25112 2008-02-01 Kenichi Handa <handa@m17n.org>
25113
25114 * font.c (font_unparse_fcname): Pay attention to the case that
25115 some of font property is a null string.
25116
25117 2008-02-01 Kenichi Handa <handa@m17n.org>
25118
25119 * term.c: Include "composite.h".
25120 (encode_terminal_code): Output all components of composition.
25121 Check the size of encode_terminal_src.
25122 (produce_glyphs): For composition, call produce_composite_glyph.
25123 (append_composite_glyph, produce_composite_glyph): New functions.
25124
25125 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25126 is not found, get font_info from the current ascii face.
25127
25128 2008-02-01 Kenichi Handa <handa@m17n.org>
25129
25130 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25131 buffer-file-name to Qnil before calling insert_from_buffer.
25132
25133 * font.c (font_unparse_fcname): Pay attention to the case that
25134 foundry is a null string.
25135
25136 2008-02-01 Kenichi Handa <handa@m17n.org>
25137
25138 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25139
25140 * font.c (Qunicode_sip): New variable.
25141 (syms_of_font): Declare it as a Lisp symbol.
25142
25143 * font.h (Qunicode_sip): Extern it.
25144
25145 2008-02-01 Kenichi Handa <handa@m17n.org>
25146
25147 * composite.c (get_composition_id): Pay attention to TAB component.
25148
25149 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25150 TAB. Adjust for the change of s->char2b which always points to
25151 the first element of allocated memory.
25152
25153 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25154
25155 * xdisp.c (handle_composition_prop): Set it->c to the first
25156 non-TAB component.
25157 (fill_composite_glyph_string): Change argument.
25158 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25159 (x_produce_glyphs): Fix handling of left/right padding.
25160
25161 2008-02-01 Kenichi Handa <handa@m17n.org>
25162
25163 * coding.c (detect_coding_system): Fix for handling off
25164 inhibit_iso_escape_detection. Fix for the case that no coding
25165 system is defined for a specific coding category.
25166
25167 2008-02-01 Kenichi Handa <handa@m17n.org>
25168
25169 * font.c (font_matching_entity): Delete unused local var.
25170
25171 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25172 opening a font.
25173
25174 * fileio.c (Finsert_file_contents): On recovering a file, assume
25175 Unix-like eol.
25176 (choose_write_coding_system): On auto-saving a file, force
25177 Unix-like eol.
25178
25179 * coding.c (setup_coding_system): Fix setting of
25180 coding->common_flags based on eol_type.
25181 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25182 inherit from it.
25183
25184 2008-02-01 Kenichi Handa <handa@m17n.org>
25185
25186 * alloc.c (NSTATICS): Increas to 0x600.
25187
25188 2008-02-01 Kenichi Handa <handa@m17n.org>
25189
25190 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25191 (ftfont_list): Don't check :name property.
25192 (ftfont_match): New function.
25193 (ftfont_pattern_entity): If the pattern doesn't contain
25194 FC_SPACING, don't assume FC_MONO.
25195
25196 * font.h (struct font_driver): New member `match'.
25197 (font_update_drivers): Adjust prototype.
25198
25199 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25200 property of FONT.
25201 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25202 Define them unconditionally.
25203 (font_matching_entity): New function.
25204 (font_open_by_name): Try font_matching_entity if exact match is
25205 not found.
25206 (font_update_drivers): Delete the arg FONT. Return a list of
25207 actually used backends. Don't free faces, font caches here.
25208 Don't store data in frame parameters. Don't call x_set_font.
25209 (Ffont_spec): Store :name property as is.
25210 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25211 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25212 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25213 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25214 Call font->driver->otf_gsub instead of font_otf_gsub.
25215
25216 * frame.c (x_set_font_backend): Do more works that were done in
25217 font_update_drivers before.
25218
25219 * xfont.c (xfont_match): New function.
25220 (xfont_driver): Set xfont_driver.match to xfont_match.
25221 (xfont_draw): Set font in GC if necessary.
25222
25223 * ftxfont.c (ftxfont_match): New function.
25224 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25225
25226 * xftfont.c (xftfont_match): New function.
25227 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25228
25229 2008-02-01 Kenichi Handa <handa@m17n.org>
25230
25231 * font.h (struct font): New member scalable.
25232 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25233 (font_otf_gsub): Adjust prototype.
25234
25235 * font.c (font_otf_capability): Fix handling of the default langsys.
25236 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25237 Check the contents of SPEC.
25238 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25239 (check_gstring): New function.
25240 (REPLACEMENT_CHARACTER): New macro.
25241 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25242 glyph codes of GSTRING.
25243 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25244 (font_prepare_composition): Set cmp->glyph_len.
25245 (font_open_entity): Set font->scalable.
25246 (Ffont_get): Handle :otf property.
25247 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25248 New functions.
25249 (Fquery_font): Use font->font.full_name.
25250 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25251 Sfont_otf_alternates.
25252
25253 * ftfont.c (ftfont_open): Set font->font.full_name and
25254 font->font.name properly. Fix calculation of font->font.height
25255 and font->min_width.
25256
25257 * ftxfont.c (ftxfont_create_gcs): New function.
25258 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25259 (ftxfont_draw_backgrond): Fix filling region.
25260 (ftxfont_default_fid): New function.
25261 (ftxfont_open): Set xfont->fid to the return value of
25262 ftxfont_default_fid.
25263 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25264 (ftxfont_done_face): Free only GCs that are created by
25265 ftxfont_create_gcs.
25266 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25267
25268 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25269 Clip to src->width, etc (not src->clip_XXX).
25270
25271 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25272 FontBackend frame parameter.
25273
25274 2008-02-01 Kenichi Handa <handa@m17n.org>
25275
25276 * font.h (struct font_driver_list): New member `on'.
25277 (Fclear_font_cache): EXFUN it.
25278 (font_update_drivers): Extern it.
25279
25280 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25281 (font_list_entities): Check driver_list->on.
25282 (register_font_driver): Initialize `on' member to 0.
25283 (font_update_drivers): New function.
25284 (Fclear_font_cache): Check driver_list->on.
25285
25286 * frame.h (Qfont_backend): Extern it.
25287 (x_set_font_backend): Extern it.
25288
25289 * frame.c (Qfont_backend): New variable.
25290 (frame_parms): New element for font-backend.
25291 (x_set_font_backend): New function.
25292
25293 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25294 FontBackend frame parameter.
25295 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25296 x_set_font_backend.
25297
25298 * xfont.c (xfont_list): Don't try listing by :name property if the
25299 name is not for XLFD.
25300
25301 2008-02-01 Kenichi Handa <handa@m17n.org>
25302
25303 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25304 (LGLYPH_SET_TO): New macros.
25305 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25306 element of G is vector or not.
25307 (font_at): Extern it.
25308
25309 * font.c: Include window.h.
25310 (font_lispy_object): New function.
25311 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25312 end of valid glyph.
25313 (font_close_object): Fix getting (struct font *).
25314 (font_at): New function.
25315 (Ffont_get): If FONT is a font-object, get entity from it.
25316 (Ffont_make_gstring): Initialize elements of glyphs with nil.
25317 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25318 Fix range check.
25319 (Ffont_at): New function.
25320 (syms_of_font): Defsubr Sfont_at.
25321
25322 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25323 before the entry for Qcomposition.
25324 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25325 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25326 the font in gstring.
25327 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25328 LGLYPH_FORM (g) to detect the end of valid glyph.
25329 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25330 we are composing with gstring.
25331
25332 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25333 Check if adjustment is vector or not.
25334
25335 * Makefile.in (font.o): Make it depends on window.h.
25336
25337 2008-02-01 Kenichi Handa <handa@m17n.org>
25338
25339 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25340 adjustment is vector or not.
25341
25342 2008-02-01 Miles Bader <miles@gnu.org>
25343
25344 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25345
25346 2008-02-01 Kenichi Handa <handa@m17n.org>
25347
25348 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
25349 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
25350 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25351
25352 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25353 (DEVICE_DELTA): Fix typo.
25354 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25355 LGLYPH format.
25356
25357 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25358 the change of LGLYPH format.
25359
25360 2008-02-01 Kenichi Handa <handa@m17n.org>
25361
25362 * ftfont.c (ftfont_list): Fix typo.
25363 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25364
25365 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25366
25367 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25368
25369 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25370 xftface_info is non-NULL.
25371
25372 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25373
25374 * ftfont.c (ftfont_list): Move misplaced #endif.
25375
25376 2008-02-01 Kenichi Handa <handa@m17n.org>
25377
25378 * ftfont.c (ftfont_list): Pay attention to the case that
25379 FC_CAPABILITY is not defined.
25380
25381 2008-02-01 Kenichi Handa <handa@m17n.org>
25382
25383 * xftfont.c (xftfont_open): Set charset related members to -1.
25384
25385 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25386 QCname.
25387 (ftfont_open): Set charset related members to -1.
25388
25389 * fontset.c (Votf_script_alist): New variable.
25390 (syms_of_fontset): Initialize it.
25391 (fontset_font): Delete unused variable.
25392
25393 * fontset.h (Votf_script_alist): Extern it.
25394
25395 * font.c (font_find_for_lface): Optimize code.
25396
25397 * font.h (font_close_object, font_merge_old_spec): Extern them.
25398
25399 2008-02-01 Kenichi Handa <handa@m17n.org>
25400
25401 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25402 (syms_of_font): Initialize them.
25403 (font_pixel_size): Allow float value in dpi.
25404 (font_prop_validate_type): Delete.
25405 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25406 Change caller.
25407 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25408 (font_prop_validate_extra): Delete.
25409 (font_prop_validate_spacing): New function.
25410 (font_property_table): Add elements for all known properties.
25411 (get_font_prop_index): Rename from check_font_prop_name.
25412 New argument FROM. Change caller.
25413 (font_prop_validate): Validate all known properties.
25414 (font_put_extra): Delete argument force. Change caller.
25415 (font_expand_wildcards): Make it static. Fix the way of shrinking
25416 the possible range.
25417 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25418 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25419 Change caller.
25420 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25421 (font_parse_fcname): Delete argument merge. Fix parsing of point
25422 size. Don't validate properties values here. Change caller.
25423 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25424 (font_open_by_name): Delete unused variable.
25425 (Ffont_spec): Likewise. Validate property values.
25426 (Ffont_match_p): New function.
25427
25428 * font.h (QCscalable): Extern it.
25429 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25430
25431 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25432
25433 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25434 (xfont_list_pattern): New function.
25435 (xfont_list): Use xfont_list_pattern.
25436
25437 2008-02-01 Kenichi Handa <handa@m17n.org>
25438
25439 * font.h (Flist_fonts): EXFUN it.
25440
25441 2008-02-01 Jason Rumney <jasonr@gnu.org>
25442
25443 * w32term.c (w32_initialize): Add back smoothing_type and
25444 smoothing_enabled definitions.
25445
25446 2008-02-01 Kenichi Handa <handa@m17n.org>
25447
25448 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25449 s->face->font on determining underline position.
25450
25451 2008-02-01 Kenichi Handa <handa@m17n.org>
25452
25453 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25454 (font_has_char): Accept font-object too.
25455 (font_find_for_lface): Try at first with a size specified in face.
25456
25457 2008-02-01 Kenichi Handa <handa@m17n.org>
25458
25459 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25460 font_open_by_name.
25461
25462 2008-02-01 Kenichi Handa <handa@m17n.org>
25463
25464 * font.h (QCspacing, QCdpi): Extern them.
25465 (enum font_spacing): New enum.
25466 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25467
25468 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25469 (QCspacing, QCdpi): New variables.
25470 (syms_of_font): Initialize them.
25471 (font_pixel_size): New function.
25472 (font_put_extra): New function.
25473 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25474 in FONT_EXTRA.
25475 (font_parse_fcname): Handle enumerated values (e.g. bold).
25476 Fix handling font size. Add QCname property that contains only
25477 unknown properties.
25478 (font_score): Change argument. Change caller. Pay attention to
25479 FONT_PIXEL_SIZE_QUANTUM.
25480 (font_sort_entites, font_list_entities, font_find_for_lface)
25481 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25482 (Ffont_spec): Add QCname property that contains only unknown properties.
25483
25484 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25485 Don't include weight in listing pattern, instead check weight of each
25486 listed font. Don't include scalable in pattern. Pay attention to
25487 FONT_PIXEL_SIZE_QUANTUM.
25488
25489 2008-02-01 Kenichi Handa <handa@m17n.org>
25490
25491 * font.c (font_parse_fcname): Fix parsing of point-size.
25492 (font_unparse_fcname): Produce symbolic names for style properties.
25493 (font_list_entities): Handle float size correctly.
25494 (font_open_by_name): Prefer `normal' property values if the name
25495 doesn't specify them.
25496
25497 * fontset.c (Finternal_char_font): Use font_get_name, not
25498 Ffont_xlfd_name.
25499
25500 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25501 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25502 pattern. Don't force scalable.
25503
25504 * xftfont.c (xftfont_open): For generating a name, start from
25505 96-byte buffer.
25506
25507 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25508
25509 * frame.h (x_new_fontset2): Fix prototype.
25510
25511 2008-02-01 Kenichi Handa <handa@m17n.org>
25512
25513 * font.h (struct font_driver): Delete member parse_name.
25514 (font_match_p, font_get_spec, font_parse_fcname)
25515 (font_unparse_fcname): Extern them.
25516 (font_get_name): Adjust prototype.
25517
25518 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25519 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
25520 (font_expand_wildcards): Fix handling ENCODING field.
25521 Avoid unnecessary checks for weight, slant, and swidth.
25522 (font_parse_fcname): New function.
25523 (font_unparse_fcname): New function.
25524 (font_parse_name): New function.
25525 (font_match_p): New function.
25526 (font_get_name): Change return value to Lisp string.
25527 (font_get_spec): New function.
25528 (Qunspecified, Qignore_defface): Don't extern them.
25529 (font_find_for_lface): Assume that LFACE is fully specified.
25530 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25531 object, use it for FACE.
25532 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25533 driver->parse_name.
25534 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25535
25536 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25537 prototype.
25538
25539 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25540 argument F. Don't call Fnew_fontset. Instead, directly call
25541 make_fontset.
25542
25543 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25544
25545 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25546 of x_new_fontset2.
25547
25548 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25549 (Qsans__serif): New variables.
25550 (ftfont_generic_family_list): New variable.
25551 (syms_of_ftfont): Initialize the above variables.
25552 (ftfont_pattern_entity): Delete argument NAME.
25553 (ftfont_list_generic_family): New function.
25554 (ftfont_parse_name): Delete this function.
25555 (ftfont_list): Try generic family only when FcFontList found no font.
25556 (ftfont_list_family): Fix args to FcObjectSetBuild.
25557
25558 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25559 object in attrs[LFACE_FONT_INDEX].
25560 (set_lface_from_font_name): Cancel all changes for font-backend.
25561 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25562 function.
25563 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25564 font object in QCfont attribute.
25565 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25566 (realize_default_face) [USE_FONT_BACKEND]: Call
25567 set_lface_from_font_and_fontset.
25568
25569 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25570 "fixed", and signal error here if no suitable font was found.
25571
25572 * xfont.c (xfont_parse_name): Delete this function.
25573
25574 * xftfont.c (xftfont_open): Change coding style of error
25575 handling. Generate fontconfig's fontname pattern.
25576
25577 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25578 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25579
25580 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25581 Both args FONTSET and FONT_OBJECT must be existing ones.
25582
25583 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25584
25585 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25586
25587 2008-02-01 Kenichi Handa <handa@m17n.org>
25588
25589 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25590
25591 * font.h (struct font): Fix typo.
25592
25593 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25594 XLFD_XXX_INDEX.
25595 (enum xlfd_field_mask): New enum.
25596 (intern_font_field): Change argument. Change caller. If digits
25597 are followed by non-digits, return a symbol.
25598 (font_expand_wildcards): New function.
25599 (font_parse_xlfd): Fix wildcard handling.
25600 (Ffont_spec): If :name is specified, reflect the info in the other
25601 properties.
25602
25603 * ftfont.c (ftfont_pattern_entity): Fix typo.
25604 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25605 locale.
25606
25607 2008-02-01 Kenichi Handa <handa@m17n.org>
25608
25609 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25610
25611 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25612 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25613 registry doesn't specify encoding part.
25614 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25615 (font_open_by_name): At first try parsing the name.
25616 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25617 as Lisp symbols.
25618
25619 * fontset.c (reorder_font_vector): Pay attention to the case that
25620 the 3rd element of font_def is nil.
25621 (fontset_font): For the default fontset, append one more fontset
25622 elements for a script-based font specification. Don't add script
25623 attribute on finding a font.
25624 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25625 font name.
25626 (fontset_ascii_font): If a font can't be opened, return nil.
25627
25628 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25629 (ftfont_pattern_entity): New function.
25630 (ftfont_get_cache): Assume that freetype_font_cache is already
25631 initialized.
25632 (ftfont_list): Handle the case that a file is specified in font
25633 name. Use ftfont_pattern_entity to generate entities.
25634 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25635 (syms_of_ftfont): Initialize freetype_font_cache.
25636
25637 * xftfont.c (xftfont_open): Make the font name fontconfig's
25638 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25639 (xftfont_close): Free font->font.name if not NULL.
25640
25641 * xfont.c (xfont_list): If script is specified for a font, return
25642 null_vector.
25643 (xfont_list_family): Declare argument type.
25644
25645 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25646 name, set LFACE_FONT (lface) to nil.
25647
25648 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25649 return Qnil.
25650
25651 2008-02-01 Kenichi Handa <handa@m17n.org>
25652
25653 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25654 (standard_args): Add "-enable-font-backend".
25655
25656 2008-02-01 Kenichi Handa <handa@m17n.org>
25657
25658 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25659 (struct xftdraw_list, xftdraw_list): Delete them.
25660 (register_xftdraw, check_xftdraw): Delete them.
25661 (xftfont_prepare_face): Don't call register_xftdraw.
25662 (xftfont_done_face): Don't call check_xftdraw.
25663 (xftfont_draw): Get background color only when with_background is
25664 nonzero.
25665
25666 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25667
25668 2008-02-01 Kenichi Handa <handa@m17n.org>
25669
25670 These changes are for the new font handling codes.
25671
25672 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25673 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25674 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25675 (FONTSRC, FONTOBJ): New variables.
25676 (obj): Add $(FONTOBJ).
25677 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25678 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25679 @LIBOTF_LIBS@.
25680 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25681 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25682
25683 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25684
25685 * character.h (Vscript_representative_chars): Extern it.
25686
25687 * character.c (Vscript_representative_chars): New variable.
25688 (syms_of_character): Declare it as a Lisp variable.
25689
25690 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25691 enable_font_backend is nonzero, accept the composition method
25692 COMPOSITION_WITH_GLYPH_STRING.
25693
25694 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25695 enumeration COMPOSITION_WITH_GLYPH_STRING.
25696
25697 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25698 members clip_x, clip_y, clip_width, and clip_height.
25699 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25700
25701 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25702 --enable-font-backend. Call syms_of_font.
25703
25704 * fns.c (assoc_no_quit): New function.
25705
25706 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25707 (face_for_font, new_fontset_from_font)
25708 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25709
25710 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25711 (fontset_font, fontset_ascii, face_for_char)
25712 (make_fontset_for_ascii_face, Ffont_info)
25713 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25714 is nonzero, use font-backend mechanism.
25715 (find_font_encoding): Make it non-static.
25716 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25717 New functions.
25718
25719 * frame.h (struct frame): New members resx and resy.
25720 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25721 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25722
25723 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25724 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25725
25726 * lisp.h (assoc_no_quit): Extern it.
25727
25728 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25729 Through out the file, use FONT_INFO_FROM_FACE instead of
25730 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25731 rif->per_char_metric.
25732 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25733 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25734 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25735 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25736 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25737 nonzero, use font-backend mechanism.
25738 (get_per_char_metric): New function.
25739
25740 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25741 (set_lface_from_font_name)
25742 (set_font_frame_param, free_realized_face)
25743 (prepare_face_for_display, clear_face_gcs)
25744 (Finternal_set_font_selection_order, realize_x_face)
25745 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25746 font-backend mechanism.
25747 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25748 (load_face_font) [USE_FONT_BACKEND]: Abort.
25749 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25750 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25751
25752 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25753 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25754 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
25755 nonzero, register all available font drivers.
25756 Call x_default_font_parameter for deciding a font.
25757 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25758
25759 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25760 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25761 (x_set_glyph_string_clipping_exactly)
25762 (x_compute_glyph_string_overhangs)
25763 (x_draw_glyph_string_foreground)
25764 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25765 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25766 enable_font_backend is nonzero, use font-backend mechanism.
25767 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25768
25769 2008-02-01 Kenichi Handa <handa@m17n.org>
25770
25771 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25772 system_eol_type.
25773 (syms_of_coding): Initialize system_eol_type.
25774
25775 * process.c (Fset_process_coding_system): Inherit system's eol
25776 format if necessary.
25777
25778 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25779
25780 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25781
25782 2008-02-01 Kenichi Handa <handa@m17n.org>
25783
25784 * coding.c (decode_eol): Pay attention to buffer relocation in
25785 del_range_2.
25786 (decode_coding): Call decode_eol before restoring undo_list.
25787
25788 2008-02-01 Kenichi Handa <handa@m17n.org>
25789
25790 * charset.c (Fdefine_charset_internal): Fix setting of
25791 emacs_mule_bytes.
25792
25793 2008-02-01 Kenichi Handa <handa@m17n.org>
25794
25795 * keyboard.c (read_char): Check if C is a character or not before
25796 looking up Vkeyboard_translate_table.
25797
25798 2008-02-01 Kenichi Handa <handa@m17n.org>
25799
25800 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25801 Fix condition to terminate the loop.
25802
25803 2008-02-01 Kenichi Handa <handa@m17n.org>
25804
25805 * coding.c (produce_composition): Compare charbuf[i] instead of
25806 args[i] against 0.
25807 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25808
25809 2008-02-01 Kenichi Handa <handa@m17n.org>
25810
25811 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25812 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25813 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25814 detect_coding.
25815 (emacs_mule_char): Handle old style (Emacs 20) component character
25816 of a composition.
25817 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25818 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25819 composition rule.
25820 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25821
25822 2008-02-01 Kenichi Handa <handa@m17n.org>
25823
25824 * coding.c (encode_coding_ccl): Allocate destination dynamically
25825 when necessary.
25826
25827 2008-02-01 Kenichi Handa <handa@m17n.org>
25828
25829 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25830 the loop. When quitted, show a proper error message.
25831
25832 2008-02-01 Kenichi Handa <handa@m17n.org>
25833
25834 * xterm.c (x_set_glyph_string_clipping_exactly):
25835 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
25836
25837 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25838 character sequence.
25839 (Fccl_execute_on_string): Use ASET, not XSET.
25840
25841 2008-02-01 Kenichi Handa <handa@m17n.org>
25842
25843 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25844
25845 2008-02-01 Kenichi Handa <handa@m17n.org>
25846
25847 * coding.c (decode_coding): Fix the condition of terminating the
25848 decoding loop.
25849
25850 2008-02-01 Kenichi Handa <handa@m17n.org>
25851
25852 * data.c (Faset): On setting a character bigger than 255 in a
25853 unibyte string, signal an error instead of make the string multibyte.
25854
25855 2008-02-01 Kenichi Handa <handa@m17n.org>
25856
25857 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25858 made by a mapping table.
25859
25860 2008-02-01 Kenichi Handa <handa@m17n.org>
25861
25862 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25863 not.
25864 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25865 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25866
25867 * xterm.c (x_draw_composite_glyph_string_foreground):
25868 Check s->face is NULL or not.
25869
25870 2008-02-01 Kenichi Handa <handa@m17n.org>
25871
25872 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25873 (x_draw_glyph_string): Fix drawing of right_overhang and
25874 left_overhang around/on cursor.
25875
25876 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25877
25878 2008-02-01 Kenichi Handa <handa@m17n.org>
25879
25880 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25881
25882 2008-02-01 Kenichi Handa <handa@m17n.org>
25883
25884 * coding.c (Fdefine_coding_system_internal)
25885 (Fdefine_coding_system_alias): Avoid a duplicated element in
25886 Vcoding_system_alist.
25887
25888 2008-02-01 Kenichi Handa <handa@m17n.org>
25889
25890 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25891
25892 * coding.c (Qcoding_system_define_form): New variable.
25893 (syms_of_coding): Intern and staticpro it.
25894 (Fcoding_system_p): Check Qcoding_system_define_form.
25895 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25896
25897 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25898 Fcoding_system_p.
25899 (CHECK_CODING_SYSTEM): If ID is not available, call
25900 Fcheck_coding_system.
25901 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25902 Try also Fcheck_coding_system.
25903
25904 2008-02-01 Kenichi Handa <handa@m17n.org>
25905
25906 * coding.c (code_conversion_restore): GCPRO arg.
25907
25908 2008-02-01 Kenichi Handa <handa@m17n.org>
25909
25910 * character.c (lisp_string_width): Check multibyteness of STRING.
25911
25912 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25913
25914 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25915 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25916 (decode_mac_font_name): Use decode_coding_c_string instead of
25917 decode_coding.
25918 (x_load_font): Initialize fontp->fontset to -1.
25919 Set fontp->encoding_type.
25920
25921 2008-02-01 Kenichi Handa <handa@m17n.org>
25922
25923 * search.c (search_buffer): Give up BM search on case-fold-search
25924 if one of a target character has a case-equivalence of different
25925 byte length even if that target character is an ASCII.
25926 (simple_search): Fix calculation of byte length of matched text.
25927 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25928
25929 2008-02-01 Kenichi Handa <handa@m17n.org>
25930
25931 * coding.c (decode_coding): Fix handling of invalid bytes.
25932
25933 2008-02-01 Kenichi Handa <handa@m17n.org>
25934
25935 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25936 Unicode characters.
25937
25938 2008-02-01 Kenichi Handa <handa@m17n.org>
25939
25940 * coding.c (encode_coding_object): If a pre-write-conversion
25941 function makes a new buffer, kill it.
25942
25943 2008-02-01 Kenichi Handa <handa@m17n.org>
25944
25945 * coding.c (QCascii_compatible_p): New variable.
25946 (syms_of_coding): Initialize it.
25947 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25948 calling string_char.
25949 (record_conversion_result): Add `default:' case.
25950 (coding_charset_list): Delete unused variable `coding_type'.
25951 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25952 property in the plist of the coding system.
25953 (Fcoding_system_put): Check QCascii_compatible_p.
25954
25955 2008-02-01 Miles Bader <miles@gnu.org>
25956
25957 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25958 removed calculation of frame `f', as it's now used.
25959
25960 2008-02-01 Kenichi Handa <handa@m17n.org>
25961
25962 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25963 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25964 (UNIDATA): New variable.
25965 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
25966 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25967 Run $(RUN_TEMACS) unconditionally.
25968
25969 2008-02-01 Kenichi Handa <handa@m17n.org>
25970
25971 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25972 (admindir): New variable.
25973 ($(lispsource)international/charprop.el): New target.
25974
25975 2008-02-01 Miles Bader <miles@gnu.org>
25976
25977 * character.c (chars-in-region): Remove obsolete function.
25978 (syms_of_character): Remove its initialization.
25979
25980 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25981
25982 * w32select.c (validate_coding_system)
25983 (setup_windows_coding_system): New functions.
25984 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25985 Use setup_windows_coding_system.
25986 (setup_config, Fw32_get_clipboard_data):
25987 Use validate_coding_system.
25988 (Fx_selection_exists): Move call to setup_config to a place
25989 where signals are allowed.
25990
25991 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25992 (Fcheck_coding_system): Add declarations.
25993
25994 2008-02-01 Kenichi Handa <handa@m17n.org>
25995
25996 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25997
25998 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25999
26000 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
26001 string as the second argument for x_new_fontset.
26002
26003 2008-02-01 Kenichi Handa <handa@m17n.org>
26004
26005 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
26006 (encode_coding_object): Use safe_call instead of call2.
26007
26008 2008-02-01 Kenichi Handa <handa@m17n.org>
26009
26010 * fontset.c (Fset_fontset_font): Check family element of a given vector.
26011
26012 * Makefile.in (lisp): Include charprop.el.
26013
26014 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26015
26016 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
26017 Not sure if it's unnecessary.
26018
26019 2008-02-01 Steven Tamm <steventamm@mac.com>
26020
26021 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
26022 some possibly unnecessary fontset checking code that crashed
26023 when creating a new frame.
26024
26025 2008-02-01 Kenichi Handa <handa@m17n.org>
26026
26027 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
26028 lookup_face.
26029
26030 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
26031
26032 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
26033
26034 2008-02-01 Kenichi Handa <handa@m17n.org>
26035
26036 * coding.c: Cancel the change done in HEAD on 2008-02-01.
26037 (coding_charset_list): New function.
26038
26039 * coding.h (coding_charset_list): Extern it.
26040
26041 2008-02-01 Kenichi Handa <handa@m17n.org>
26042
26043 * fontset.c (Fset_fontset_font): Call find_font_encoding with
26044 concatenation of family and registry.
26045
26046 2008-02-01 Kenichi Handa <handa@m17n.org>
26047
26048 * character.h (BYTE8_STRING): Fix typo.
26049
26050 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
26051 string to multibyte (sync to HEAD).
26052
26053 * casefiddle.c (casify_region): Handle changes in byte-length
26054 using replace_range_2 (sync to HEAD).
26055
26056 2008-02-01 Andreas Schwab <schwab@suse.de>
26057
26058 * chartab.c (map_char_table): GCPRO table and arg.
26059
26060 2008-02-01 Kenichi Handa <handa@m17n.org>
26061
26062 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
26063 already at limit.
26064
26065 2008-02-01 Kenichi Handa <handa@m17n.org>
26066
26067 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
26068 instead of fast_c_string_match_ignore_case.
26069 (find_font_encoding): Change argument to Lisp_Object.
26070 Use fast_string_match_ignore_case instead of
26071 fast_c_string_match_ignore_case. Change caller.
26072
26073 2008-02-01 Kenichi Handa <handa@m17n.org>
26074
26075 * xdisp.c (get_next_display_element): In unibyte case, decide to
26076 display in octal form by checking a character by
26077 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
26078
26079 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
26080
26081 * character.c (unibyte_has_multibyte_table): New variable.
26082
26083 * character.h (unibyte_has_multibyte_table): Extern it.
26084 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
26085
26086 2008-02-01 Kenichi Handa <handa@m17n.org>
26087
26088 * coding.c (encode_coding_iso_2022): Fix handling of charset
26089 annotation.
26090
26091 2008-02-01 Kenichi Handa <handa@m17n.org>
26092
26093 * coding.c (setup_coding_system): If coding_system is nil, use
26094 Qundecided.
26095 (Fterminal_coding_system): Return nil if terminal coding system is
26096 `undecided'.
26097 (syms_of_coding): Define coding-system `undecided' here.
26098 Setup terminal_coding as `undecided'.
26099
26100 2008-02-01 Kenichi Handa <handa@m17n.org>
26101
26102 * xdisp.c (message_dolog, set_message_1):
26103 Call unibyte_char_to_multibyte with arg type int.
26104
26105 * lread.c (read1): Fix reading of a char-table.
26106
26107 * print.c (print_object): Include sub char-table in circularities
26108 detection.
26109
26110 2008-02-01 Kenichi Handa <handa@m17n.org>
26111
26112 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26113 Append the found sequences in car of ARGS instead of prepending.
26114
26115 2008-02-01 Kenichi Handa <handa@m17n.org>
26116
26117 * fileio.c (report_file_error): Make a unibyte string from
26118 strerror (errorno).
26119 (Fsubstitute_in_file_name): Fix the arg to
26120 unibyte_char_to_multibyte. It is evaluated twice.
26121
26122 2008-02-01 Kenichi Handa <handa@m17n.org>
26123
26124 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26125
26126 2008-02-01 Kenichi Handa <handa@m17n.org>
26127
26128 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26129 BOM is not found.
26130 (detect_coding, detect_coding_system): Optimization for ISO-2022
26131 when no 8-bit data is found.
26132
26133 2008-02-01 Jason Rumney <jasonr@gnu.org>
26134
26135 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26136
26137 2008-02-01 Kenichi Handa <handa@m17n.org>
26138
26139 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26140 CHARS.
26141
26142 2008-02-01 Steven Tamm <steventamm@mac.com>
26143
26144 * macterm.c (mac_encode_char): Add charset argument and update
26145 to use encoding_type.
26146 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26147 switch to pure fontset.
26148 (decode_mac_font_name): Temporarily remove decoding.
26149 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26150 (x_load_font): Temporarily remove encoding.
26151
26152 2008-02-01 Kenichi Handa <handa@m17n.org>
26153
26154 * xfaces.c (Fface_font): If frame is not on a window system,
26155 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26156 refer to face->font.
26157 (split_font_name_into_vector, build_font_name_from_vector)
26158 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26159 when HAVE_WINDOW_SYSTEM is defined.
26160
26161 2008-02-01 Kenichi Handa <handa@m17n.org>
26162
26163 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26164 (x_produce_glyphs): Fix setting of members of cmp in case
26165 cmp->glyph_len is zero.
26166
26167 * fontset.c (Fset_fontset_font): Fix docstring.
26168 (Ffontset_info): Make it backward compatible. New arg ALL.
26169
26170 2008-02-01 Kim F. Storm <storm@cua.dk>
26171
26172 * process.c (read_process_output): Grow decoding_buf when needed;
26173 this could cause a crash in allocate_string and compact_small_strings.
26174
26175 2008-02-01 Kenichi Handa <handa@m17n.org>
26176
26177 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26178
26179 2008-02-01 Kenichi Handa <handa@m17n.org>
26180
26181 * coding.c (setup_coding_system): Set coding->common_flags
26182 correctly for raw-text.
26183 (consume_chars): On encoding unibyte text by raw-text, don't check
26184 multibyte form.
26185 (encode_coding): On encoding by raw-text, never use translation tables.
26186
26187 * fileio.c (e_write): Short cut for the case of no encoding.
26188
26189 2008-02-01 Kenichi Handa <handa@m17n.org>
26190
26191 * coding.c (detect_coding, detect_coding_system): Delete unused
26192 variables.
26193
26194 2008-02-01 Kenichi Handa <handa@m17n.org>
26195
26196 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26197 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26198
26199 2008-02-01 Kenichi Handa <handa@m17n.org>
26200
26201 * coding.c (Ffind_coding_systems_region_internal):
26202 Include raw-text and no-conversion in the result.
26203
26204 2008-02-01 Kenichi Handa <handa@m17n.org>
26205
26206 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26207 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26208 FONT_DEF.
26209 (font_def_arg, add_arg, from_arg, to_arg): New args.
26210 (set_fontset_font): Change argument.
26211 (Fset_fontset_font): Fix for the case that TARGET is a script
26212 name and charset name.
26213 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26214
26215 2008-02-01 Kenichi Handa <handa@m17n.org>
26216
26217 * fontset.c (fontset_font): Rename from fontset_face. Change return
26218 value.
26219 (face_suitable_for_char_p, face_for_char): Adjust for the change
26220 of fontset_font.
26221 (make_fontset_for_ascii_face): Fix setting of the fontset element
26222 for ASCII.
26223 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26224 to get a font name.
26225 (Ffontset_info): Adjust for the change of fontset_font.
26226
26227 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26228
26229 * character.h (LEADING_CODE_LATIN_1_MIN)
26230 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26231
26232 2008-02-01 Kenichi Handa <handa@m17n.org>
26233
26234 * editfns.c (check_translation): New function.
26235 (Ftranslate_region_internal): Handle M:N mapping.
26236
26237 2008-02-01 Kenichi Handa <handa@m17n.org>
26238
26239 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26240
26241 2008-02-01 Kenichi Handa <handa@m17n.org>
26242
26243 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26244 goto invalid_code.
26245 (decode_coding_iso_2022): Fix handling of invalid designation.
26246
26247 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26248 after calling code_conversion_save.
26249
26250 2008-02-01 Kenichi Handa <handa@m17n.org>
26251
26252 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26253
26254 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26255
26256 * fontset.c: Include "intervals.h".
26257 (fontset_face): Fix comparing of Lisp_Objects.
26258 (free_face_fontset, new_fontset_from_font_name):
26259 Fix Lisp_Object/int mixup.
26260
26261 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26262
26263 * coding.c: Add many prototypes for static functions.
26264 (get_translation_table): Allow max_lookup to be NULL.
26265 (decode_coding, Ffind_coding_systems_region_internal)
26266 (Funencodable_char_position, Fcheck_coding_systems_region):
26267 Call get_translation_table with max_lookup NULL.
26268
26269 2008-02-01 Kenichi Handa <handa@m17n.org>
26270
26271 * coding.c (get_translation_table): Declare it as Lisp_Object.
26272 (LOOKUP_TRANSLATION_TABLE): New macro.
26273 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26274 instead of CHAR_TABLE_REF.
26275
26276 2008-02-01 Kenichi Handa <handa@m17n.org>
26277
26278 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26279 annotation data format.
26280 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26281 Change arguments FROM and TO to single argument NCHARS. Change caller.
26282 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26283 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26284 (decode_coding_ccl, decode_coding_charset): Pay attention to
26285 coding->charbuf_used.
26286 (get_translation): New function.
26287 (produce_chars): New arguments translation_table and last_block.
26288 Translate characters here. Return number of carryover chars.
26289 Change caller.
26290 (produce_composition): New argument pos. Change caller.
26291 Adjust for the change of annotation data format.
26292 (produce_charset, produce_annotation): Likewise.
26293 (decode_coding, encode_coding): Don't call translate_chars.
26294 (consume_chars): New arg translation_table. Change caller.
26295 (translate_chars): Delete.
26296 (syms_of_coding): Make translation-table's number of extra slots 2.
26297
26298 2008-02-01 Kenichi Handa <handa@m17n.org>
26299
26300 * search.c (simple_search): Fix setting this_pos_byte in backward
26301 search.
26302
26303 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26304 byte sequence.
26305 (detect_coding_ccl): Fix setting of the variable valids.
26306
26307 2008-02-01 Kenichi Handa <handa@m17n.org>
26308
26309 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26310
26311 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26312
26313 * editfns.c (Ftranslate_region_internal): Rename from
26314 Ftranslate_region. Accept a char-table in TABLE.
26315 (syms_of_editfns): Defsubr Stranslate_region_internal.
26316
26317 * xfaces.c (set_lface_from_font_name): If a font is specified for
26318 a frame, generate a fontset from the font.
26319 (build_scalable_font_name): If the scalable font is requested for
26320 a specific size, don't change that size.
26321 (try_font_list): Try a scalable font also in the case that a
26322 pattern string is specified.
26323
26324 2008-02-01 Kenichi Handa <handa@m17n.org>
26325
26326 * xfaces.c (Fface_font): New optional arg CHARACTER.
26327
26328 2008-02-01 Kenichi Handa <handa@m17n.org>
26329
26330 * charset.h (CHARSET_OFFSET): New macro.
26331
26332 2008-02-01 Kenichi Handa <handa@m17n.org>
26333
26334 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26335
26336 * fontset.c (fontset_face): Handle the case that repertory is a
26337 char-table.
26338 (find_font_encoding): Return nil for unknown encoding.
26339 (Fset_fontset_font): Ignore a font of unknown encoding.
26340
26341 2008-02-01 Kenichi Handa <handa@m17n.org>
26342
26343 * keymap.c (describe_vector): Handle default value of a char table.
26344
26345 * fontset.c (fontset_face): Handle fallback fonts correctly.
26346 (Ffontset_info): Return infomation about fallback fonts.
26347
26348 2008-02-01 Kenichi Handa <handa@m17n.org>
26349
26350 * fontset.c (FONTSET_DEFAULT): New macro.
26351 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26352 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26353 the case that it is nil.
26354 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26355 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26356
26357 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26358 subset or superset.
26359
26360 2008-02-01 Kenichi Handa <handa@m17n.org>
26361
26362 * emacs.c (main): Call init_charset after syms_of_XXX.
26363
26364 * charset.c (Vcharset_map_directory): Delete.
26365 (Vcharset_map_path): New variable.
26366 (load_charset_map_from_file): Use Vcharset_map_path instead.
26367 (init_charset): Initialize Vcharset_map_path.
26368 (syms_of_charset): Delete declaration of "charset-map-directory",
26369 add declaration of "charset-map-path".
26370
26371 2008-02-01 Kenichi Handa <handa@m17n.org>
26372
26373 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26374 ASCII only string.
26375
26376 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26377
26378 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26379 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26380
26381 2008-02-01 Kenichi Handa <handa@m17n.org>
26382
26383 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26384
26385 * coding.c (QCmnemonic, QCdefalut_char)
26386 (QCdecode_translation_table, QCencode_translation_table)
26387 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26388 (get_translation_table): Return a list of translation tables if
26389 necessary.
26390 (decode_coding): Call get_translation_table with ENCODEP 0.
26391 (char_encodable_p): If translation_table is non-nil, always call
26392 translate_char.
26393 (Fdefine_coding_system_internal): Accept list of translation
26394 tables as :encode-translation-table and :decode-translation-table.
26395 (Fcoding_system_put): New function.
26396 (syms_of_coding): Declare new symbols.
26397 Defsubr Scoding_system_put.
26398 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26399 typically JISX0212.
26400
26401 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26402 when the charset is superset type.
26403
26404 * character.c (translate_char): Accept list of translation tables.
26405
26406 2008-02-01 Kenichi Handa <handa@m17n.org>
26407
26408 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26409 (CODING_ATTR_TRANS_TBL): New macro.
26410
26411 * coding.c (get_translation_table): New function.
26412 (translate_chars): Fix the bug of skipping annotation data.
26413 (decode_coding, encode_coding): Utilize get_translation_table.
26414 (char_encodable_p, Funencodable_char_position): Translate char if
26415 necessary.
26416 (Ffind_coding_systems_region_internal)
26417 (Fcheck_coding_systems_region): Setup translation table for encode
26418 in a coding system attribute vector in advance.
26419 (Fdefine_coding_system_internal): Allow a symbol as translation
26420 table. For shift-jis type coding system, allow 4th charset.
26421
26422 2008-02-01 Kenichi Handa <handa@m17n.org>
26423
26424 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26425
26426 * xdisp.c (get_next_display_element): Pass -1 as POS to
26427 FACE_FOR_CHAR if displaying a C-string.
26428
26429 2008-02-01 Kenichi Handa <handa@m17n.org>
26430
26431 * composite.c (get_composition_id): Handle xoff and yoff in a
26432 composition rule.
26433
26434 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26435 (struct composition): New member lbearing and rbearing.
26436
26437 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26438 (x_get_glyph_overhangs): Handle a composition glyph.
26439 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26440
26441 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26442 composition glyph.
26443
26444 2008-02-01 Kenichi Handa <handa@m17n.org>
26445
26446 * print.c: Include charset.h.
26447 (Vprint_charset_text_property): New variable.
26448 (Qdefault): Extern it.
26449 (PRINT_STRING_NON_CHARSET_FOUND)
26450 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26451 (print_check_string_result): New variable.
26452 (print_check_string_charset_prop): New function.
26453 (print_prune_charset_plist): New variable.
26454 (print_prune_string_charset): New function.
26455 (print_object): Call print_prune_string_charset if
26456 Vprint_charset_text_property is not t.
26457 (print_interval): Print nothing if interval->plist is nil.
26458 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26459 variable. Init and staticpro print_prune_charset_plist.
26460
26461 2008-02-01 Kenichi Handa <handa@m17n.org>
26462
26463 * fontset.c (new_fontset_from_font_name): Use the specified font
26464 for all characters in the new fontset.
26465
26466 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26467 OBJECT args.
26468
26469 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26470 OBJECT args for composition too.
26471
26472 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26473 OBJECT args.
26474
26475 2008-02-01 Kenichi Handa <handa@m17n.org>
26476
26477 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26478
26479 * fontset.c (reorder_font_vector): Adjust for the change of
26480 FONT_DEF format.
26481 (fontset_face): New arg id. Change caller.
26482 (face_for_char): New args pos and object.
26483 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26484 (fs_query_fontset): Check NAME by Fassoc too.
26485 (Fset_fontset_font): Allow non-XLFD font name.
26486 (Ffontset_info): Adjust for the change of FONT_DEF format.
26487
26488 * fontset.h (face_for_char): Adjust prototype.
26489
26490 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26491 (append_space, extend_face_to_end_of_line)
26492 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26493 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26494
26495 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26496 POS and OBJECT args.
26497
26498 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26499 POS and OBJECT args.
26500
26501 2008-02-01 Jason Rumney <jasonr@gnu.org>
26502
26503 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26504 of GlobalAlloc'ed memory.
26505
26506 2008-02-01 Kenichi Handa <handa@m17n.org>
26507
26508 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26509
26510 * charset.h (charset_table_used): Delete extern.
26511
26512 * charset.c (charset_table_used): Make it static.
26513 (map_charset_chars): Fix args to c_function with.
26514
26515 * chartab.c (map_sub_char_table_for_charset): Fix args to
26516 c_function with.
26517
26518 * coding.h (enum coding_result_code):
26519 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
26520
26521 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26522 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26523 (Vlast_code_conversion_error): New variables.
26524 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26525 (ONE_MORE_BYTE): Record error if any instead of signaling an
26526 error. If non-ASCII multibyte char is found, return the negative
26527 value of the code. All callers changed to check it.
26528 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26529 (record_conversion_result): New function. Change all codes setting
26530 coding->result to call this function.
26531 (detect_coding_utf_8, decode_coding_utf_8)
26532 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26533 Don't use the local variable incomplete.
26534 (emacs_mule_char): Change the second arg to `const'.
26535 (decode_coding): Fix of flushing out unprocessed data.
26536 (make_conversion_work_buffer): Fix making of a work buffer.
26537 (decode_coding_object): Return coding->dst_object.
26538
26539 * fontset.c (set_fontset_font): Fix args.
26540
26541 * lisp.h (CHARACTERBITS): Define as 22.
26542
26543 * process.c (send_process): Be sure to set coding->src_multibyte.
26544
26545 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26546
26547 2008-02-01 Kenichi Handa <handa@m17n.org>
26548
26549 * xdisp.c (handle_auto_composed_prop): Give limit to
26550 Fnext_single_char_property_change.
26551
26552 2008-02-01 Kenichi Handa <handa@m17n.org>
26553
26554 * composite.c (syms_of_composite): Don't make the composition hash
26555 table weak.
26556
26557 * fontset.c (Fset_fontset_font): Fix docstring.
26558
26559 * lisp.h (detect_coding_system): Adjust prototype.
26560
26561 * fileio.c (kill_workbuf_unwind): Delete this function.
26562 (Finsert_file_contents): Adjust the call of detect_coding_system.
26563 Get conversion_buffer by code_conversion_save. Use the macro
26564 CODING_MAY_REQUIRE_DECODING. After decoding, update
26565 coding_system.
26566
26567 * coding.h (make_conversion_work_buffer): Delete extern.
26568 (code_conversion_save): Extern it.
26569
26570 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26571 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26572 (decode_coding_utf_8): Don't do eol converion.
26573 (detect_coding_utf_16): Check coding->src_chars, not
26574 coding->src_bytes. Add heuristics for those that have no signature.
26575 (decode_coding_emacs_mule, decode_coding_iso_2022)
26576 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26577 Don't do eol converion.
26578 (adjust_coding_eol_type): Return a new coding system.
26579 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26580 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26581 each change.
26582 (decode_coding): Pay attention to undo_list. Do eol conversion for
26583 all types of coding-systems (if necessary).
26584 (Vcode_conversion_work_buf_list): Delete it.
26585 (Vcode_conversion_reused_workbuf): Rename from
26586 Vcode_conversion_reused_work_buf.
26587 (Vcode_conversion_workbuf_name): New variable.
26588 (reused_workbuf_in_use): New variable.
26589 (make_conversion_work_buffer): Delete the arg DEPTH.
26590 (code_conversion_restore): Change argument to cons.
26591 (code_conversion_save): Delete the argument BUFFER. Change callers.
26592 (detect_coding_system): New argument src_chars. Change callers.
26593 Fix for utf-16 detection.
26594 (init_coding_once): Don't use ISO_carriage_return.
26595 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26596 reused_workbuf_in_use.
26597
26598 2008-02-01 Kenichi Handa <handa@m17n.org>
26599
26600 * keymap.c (store_in_keymap): Pay attention to the case that idx
26601 is a cons specifying a character range.
26602
26603 2008-02-01 Kenichi Handa <handa@m17n.org>
26604
26605 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26606 HANDLED_RECOMPUTE_PROPS.
26607
26608 * coding.c (Fdefine_coding_system_internal): Fix checking of
26609 ascii compatibility.
26610
26611 2008-02-01 Kenichi Handa <handa@m17n.org>
26612
26613 * charset.c (find_charsets_in_text): Delete unused locale variable.
26614 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26615
26616 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26617 Resync charset_list to Vemacs_mule_charset_list.
26618
26619 * keymap.c (store_in_keymap): Pay attention to the case that idx
26620 is a cons specifying a character range.
26621
26622 2008-02-01 Kenichi Handa <handa@m17n.org>
26623
26624 * composite.c (update_compositions): Bind inhibit-read-only, etc
26625 to t before calling remove-list-of-text-properties.
26626
26627 * print.c (print_object): Always print ASCII chars as is.
26628
26629 2008-02-01 Kenichi Handa <handa@m17n.org>
26630
26631 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26632
26633 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26634 is a char table.
26635
26636 2008-02-01 Kenichi Handa <handa@m17n.org>
26637
26638 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26639
26640 2008-02-01 Kenichi Handa <handa@m17n.org>
26641
26642 * xfaces.c (set_lface_from_font_name): Fix for the case that
26643 FONTNAME is not fontset name.
26644
26645 2008-02-01 Kenichi Handa <handa@m17n.org>
26646
26647 * fns.c (base64_encode_1): Fix previous change.
26648
26649 2008-02-01 Kenichi Handa <handa@m17n.org>
26650
26651 * fontset.c (set_fontset_font): New function.
26652 (Fset_fontset_font): If a font is specified for a charset, use
26653 map_charset_chars to store the font spec in a fontset.
26654
26655 2008-02-01 Kenichi Handa <handa@m17n.org>
26656
26657 * fontset.c (fontset_face): Create a fallback fontset on demand.
26658 (make_fontset): Don't create a fallback fontset here.
26659 (free_face_fontset): Free a fallback fontset (if any) too.
26660 (n_auto_fontsets): Delete this variable.
26661 (auto_fontset_alist): New variable.
26662 (new_fontset_from_font_name): Check auto_fontset_alist.
26663 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26664 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26665 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26666 Defsubr Sfontset_list_all.
26667
26668 2008-02-01 Kenichi Handa <handa@m17n.org>
26669
26670 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26671
26672 2008-02-01 Kenichi Handa <handa@m17n.org>
26673
26674 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26675
26676 2008-02-01 Kenichi Handa <handa@m17n.org>
26677
26678 * editfns.c (Fgoto_char): Fix docstring.
26679
26680 2008-02-01 Kenichi Handa <handa@m17n.org>
26681
26682 * insdel.c (insert_from_gap): Adjust intervals correctly.
26683
26684 2008-02-01 Jason Rumney <jasonr@gnu.org>
26685
26686 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26687 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26688 (w32_initialize): Try to load it.
26689 (x_get_font_repertory): Use it if available.
26690 (w32_encode_char): Add shortcut for unicode output.
26691
26692 * w32fns.c (w32_load_system_font): Default charset to -1.
26693 (x_to_w32_charset): Match all fonts for unicode.
26694 (w32_to_x_charset): New parameter matching. Don't return partial
26695 or wildcard charsets.
26696 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26697 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26698 (w32_to_x_font): Match charset to real charset.
26699 (enum_font_cb2): Always list unicode versions.
26700
26701 * makefile.w32-in (temacs): Increase EMHEAP.
26702
26703 2008-02-01 Jason Rumney <jasonr@gnu.org>
26704
26705 * w32term.c (w32_encode_char): New charset parameter.
26706 font_info.encoding becomes encoding_type.
26707 (x_get_font_repertory): New function. Warning: stub only!
26708 (x_new_font): Return quickly if font already set.
26709 (x_new_fontset): fontsetname parameter is Lisp_Object.
26710 Use new fs_query_fontset. Try new_fontset_from_font_name.
26711 Use fontset_name for return value.
26712
26713 * w32term.h: Declare x_get_font_repertory.
26714
26715 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26716 place of find_charset_in_text. Use encode_coding_object in place
26717 of encode_coding.
26718 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26719 decode_coding.
26720
26721 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26722 of x_new_fontset.
26723 (w32_load_system_font): Initialize charset as unicode.
26724 font_info.encoding becomes encoding_type.
26725 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26726 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26727 (syms_of_w32fns): Set get_font_repertory_func.
26728
26729 * w32console.c: Include character.h. Use terminal_encode_buffer
26730 from term.c.
26731 (write_glyphs): Use new version of encode_terminal_code.
26732 Use encode_coding_object in place of encode_coding.
26733
26734 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26735 encoding becomes encoding_type.
26736
26737 * term.c (terminal_encode_buffer): Make externally visible.
26738
26739 * makefile.w32-in: Add character.h dependancies.
26740 (character.o, chartab.o): New targets.
26741
26742 2008-02-01 Kenichi Handa <handa@m17n.org>
26743
26744 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26745 CODING_ID_EOL_TYPE.
26746
26747 2008-02-01 Andreas Schwab <schwab@suse.de>
26748
26749 * coding.c (produce_chars): Revert last change.
26750
26751 2008-02-01 Kenichi Handa <handa@m17n.org>
26752
26753 * charset.h (charset_unicode): Extern it.
26754
26755 * charset.c (string_xstring_p): Check by (C >= 0x100).
26756 (find_charsets_in_text): Change format of the arc CHARSETS.
26757 New arg MULTIBYTE.
26758 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26759 change of find_charsets_in_text.
26760 (Fsplit_char): Fix doc. Never return unknown.
26761
26762 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26763
26764 * coding.c (Fdefine_coding_system_alias):
26765 Update Vcoding_system_list.
26766
26767 * fontset.c (load_font_get_repertory): Pay attention to the case
26768 that ENCODING of a font is specified by a char-table.
26769
26770 * xterm.c (x_get_font_repertory): Handle the case that the
26771 encoding of font is other than Unicode.
26772
26773 2008-02-01 Kenichi Handa <handa@m17n.org>
26774
26775 * term.c (encode_terminal_code): Don't handle glyph-table.
26776 Check if a character is encodable by the terminal coding system.
26777 If not, produces proper number of `?'s. Update
26778 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26779 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26780
26781 2008-02-01 Kenichi Handa <handa@m17n.org>
26782
26783 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26784 New variables.
26785 (encode_terminal_code): Change argument. Encode multiple
26786 characters at once. Store the result of encoding in
26787 terminal_encode_buffer.
26788 (write_glyphs, insert_glyphs): Adjust for the change of
26789 encode_terminal_code.
26790 (term_init): Initialize terminal_encode_buffer and
26791 terminal_encode_buf_size.
26792
26793 * coding.c (consume_chars): If coding->src_object is nil, don't
26794 check annotation.
26795
26796 2008-02-01 Kenichi Handa <handa@m17n.org>
26797
26798 * character.c (char_string): Use ASCII_CHAR_P instead of
26799 SINGLE_BYTE_CHAR_P.
26800
26801 2008-02-01 Kenichi Handa <handa@m17n.org>
26802
26803 * xdisp.c (handle_auto_composed_prop): Check if the last
26804 characters of auto-composed region is newly composed with the
26805 following characters.
26806 (handle_composition_prop): Fix checking of point being inside
26807 composition.
26808
26809 2008-02-01 Kenichi Handa <handa@m17n.org>
26810
26811 * fns.c (concat): Don't change multibyteness of the result by
26812 concatenating an 8-bit character.
26813
26814 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26815 multibyteness of the result when newelt is an 8-bit character.
26816
26817 2008-02-01 Dave Love <fx@gnu.org>
26818
26819 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26820 EMACS_INT.
26821
26822 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26823
26824 * xfaces.c (face_numeric_value): Declare dim size_t.
26825 (Finternal_lisp_face_equal_p): Remove unused f.
26826
26827 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26828 (MATRIX_ROW): Remove unused vars.
26829 (draw_glyphs, x_insert_glyphs, fast_find_position)
26830 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26831 byte/char counts.
26832
26833 * regex.c (regex_compile): Remove unused var.
26834
26835 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26836
26837 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26838 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26839
26840 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26841
26842 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26843
26844 * fileio.c (Fwrite_region): Remove unused var.
26845
26846 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26847 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26848
26849 * composite.c (Fremove_list_of_text_properties): Declare.
26850
26851 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26852 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26853 (coding_inherit_eol_type): Remove unused attrs.
26854 (detect_coding): Cast arg of detect_eol.
26855
26856 * charset.c (syms_of_charset): Remove unused var p.
26857 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26858 byte/char counts.
26859
26860 * casetab.c (set_case_table): Remove unused var.
26861
26862 * window.c (Fdisplay_buffer, Fframe_selected_window):
26863 Remove unused vars.
26864
26865 2008-02-01 Dave Love <fx@gnu.org>
26866
26867 * xterm.c (x_bitmap_mask): Declare.
26868
26869 2008-02-01 Dave Love <fx@gnu.org>
26870
26871 * xterm.c (x_term_init): Fix type error.
26872
26873 * lisp.h: Add Funibyte_char_to_multibyte.
26874
26875 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26876 (Fset_coding_system_priority): Doc fix.
26877
26878 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26879
26880 * indent.c (check_composition): Make start and end EMACS_INT.
26881
26882 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26883
26884 * xdisp.c (handle_composition_prop, check_point_in_composition):
26885 Make buffer positions EMACS_INT.
26886
26887 * composite.c (find_composition, run_composition_function)
26888 (update_compositions, Ffind_composition_internal): Make buffer
26889 positions EMACS_INT.
26890
26891 * composite.h (find_composition, update_compositions):
26892 Make position args EMACS_INT.
26893
26894 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26895
26896 * intervals.c (get_property_and_range):
26897 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26898
26899 * unexalpha.c: Don't include varargs.h.
26900
26901 2008-02-01 Dave Love <fx@gnu.org>
26902
26903 * coding.h (ENCODE_UTF_8): New.
26904
26905 * Makefile.in (gtkutil.o): Depend on coding.h.
26906
26907 * coding.c (Fset_coding_system_priority): Doc fix.
26908
26909 2008-02-01 Kenichi Handa <handa@m17n.org>
26910
26911 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26912 the case of auto saving.
26913
26914 2008-02-01 Andreas Schwab <schwab@suse.de>
26915
26916 * chartab.c (map_char_table, map_char_table_for_charset):
26917 Protect `range' from GC.
26918
26919 2008-02-01 Kenichi Handa <handa@m17n.org>
26920
26921 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26922
26923 2008-02-01 Kenichi Handa <handa@m17n.org>
26924
26925 * fileio.c (choose_write_coding_system): Return a decided coding system.
26926 (Fwrite_region): Set Vlast_coding_system_used to the return value
26927 of choose_write_coding_system.
26928
26929 2008-02-01 Kenichi Handa <handa@m17n.org>
26930
26931 * charset.c (Fset_charset_priority): Pay attention to duplicated
26932 arguments.
26933
26934 * coding.c (QCcategory): New variable.
26935 (syms_of_coding): Defsym it. Set all elements of
26936 Vcoding_category_table and their symbol values.
26937 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26938 coding-category-XXX, and coding-category-list.
26939 (Fdefine_coding_system_internal): Add category in the plist.
26940
26941 2008-02-01 Kenichi Handa <handa@m17n.org>
26942
26943 * callproc.c (Fcall_process): Handle carryover correctly.
26944
26945 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26946 (raw_text_coding_system): Check NILP (coding_system).
26947 (coding_inherit_eol_type): Check NILP (coding_system) and
26948 NILP (parent).
26949 (consume_chars): Fix for the case of raw-text.
26950
26951 * process.c (read_process_output): Handle carryover correctly.
26952
26953 2008-02-01 Dave Love <fx@gnu.org>
26954
26955 * regex.c (re_search_2): Fix last change.
26956
26957 2008-02-01 Kenichi Handa <handa@m17n.org>
26958
26959 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26960 target_multibyte. Even in a unibyte case, return a converted
26961 multibyte char.
26962 (GET_CHAR_AFTER): New macro.
26963 (PATFETCH): Translate via multibyte char.
26964 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26965 (SETUP_MULTIBYTE_RANGE): New macro.
26966 (regex_compile): Setup compiled code so that its multibyteness
26967 matches that of a target. Fix the handling of "[X-YZ]" using
26968 SETUP_MULTIBYTE_RANGE.
26969 (analyse_first) <charset>: For filling fastmap for all multibyte
26970 characters, don't check by BASE_LEADING_CODE_P.
26971 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26972 the same as RE_MULTIBYTE_P (bufp) now.
26973 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26974 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26975 (TRANSLATE_VIA_MULTIBYTE): New macro.
26976 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26977 It is the same as RE_MULTIBYTE_P (bufp) now.
26978 <exactn>: Translate via multibyte.
26979 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26980 Don't translate it.
26981 <charset, charset_not>: Fetch a character by
26982 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26983 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26984 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26985 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26986 by GET_CHAR_AFTER.
26987 (bcmp_translate): Likewise.
26988
26989 * search.c (compile_pattern): Check the member target_multibyte,
26990 not the member multibyte of buf.
26991
26992 * lread.c (read1): While reading a string, set force_singlebyte
26993 and force_multibyte correctly.
26994
26995 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26996 up of unibyte_to_multibyte_table.
26997
26998 2008-02-01 Kenichi Handa <handa@m17n.org>
26999
27000 * coding.c (setup_coding_system): If coding has
27001 post-read-conversion or pre-write-conversion, set
27002 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
27003 respectively.
27004 (decode_coding_gap): Run post-read-conversion if any.
27005
27006 * fileio.c (Finsert_file_contents): Even if we read into a
27007 unibyte buffer, check if we must decode the result or not.
27008
27009 2008-02-01 Kenichi Handa <handa@m17n.org>
27010
27011 * coding.c (make_conversion_work_buffer): Change the work buffer
27012 name to the same one as that of Emacs 21.
27013
27014 2008-02-01 Kenichi Handa <handa@m17n.org>
27015
27016 * coding.h (make_conversion_work_buffer): Adjust prototype.
27017 (code_conversion_restore): Don't extern it.
27018
27019 * coding.c (detected_mask): Delete unused variable.
27020 (decode_coding_iso_2022): Pay attention to the byte sequence of
27021 CTEXT extended segment, and retain those bytes as is.
27022 (decode_coding_ccl): Delete unused variable `valids'.
27023 (setup_coding_system): Delete unused variable `category'.
27024 (consume_chars): Delete unused variable `category'. Make it work
27025 for non-multibyte case.
27026 (make_conversion_work_buffer): Change argument.
27027 (saved_coding): Delete unused variable.
27028 (code_conversion_restore): Don't check saved_coding->destination.
27029 (code_conversion_save): New function.
27030 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
27031 instead of record_unwind_protect.
27032 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
27033 (detect_coding_system): Delete unused variable `mask'.
27034 (Fdefine_coding_system_internal): Delete unused variable id.
27035
27036 * fileio.c (kill_workbuf_unwind): New function.
27037 (Finsert_file_contents): On replacing, call
27038 make_conversion_work_buffer with correct args, and call
27039 record_unwind_protect with the first arg kill_workbuf_unwind.
27040
27041 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
27042
27043 2008-02-01 Kenichi Handa <handa@m17n.org>
27044
27045 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
27046 (fontset_add): Fix for the case that TO is less than TO1.
27047 (Ffontset_info): Don't use fallback fontset on checking the
27048 default fontset.
27049 (dump_fontset): New function for debugging.
27050
27051 * coding.c (Fdefine_coding_system_internal): Fix for the case that
27052 coding_type is Qcharset.
27053
27054 2008-02-01 Kenichi Handa <handa@m17n.org>
27055
27056 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
27057 (map_char_table): Don't inherit the value from the parent on
27058 initializing VAL. Adjust for the above change.
27059
27060 2008-02-01 Kenichi Handa <handa@m17n.org>
27061
27062 * coding.c (Qsignature, Qendian): Delete these variables.
27063 (syms_of_coding): Don't initialize them.
27064 (CATEGORY_MASK_UTF_16_AUTO): New macro.
27065 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
27066 detect_info->found.
27067 (decode_coding_utf_16): Don't detect BOM here.
27068 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
27069 is NOT utf_16_without_bom.
27070 (setup_coding_system): For a coding system of type utf-16, check
27071 if the attribute :endian is Qbig or not (not nil or not), and set
27072 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
27073 (detect_coding): If coding type is utf-16 and BOM detection is
27074 required, detect it.
27075 (Fdefine_coding_system_internal): For a coding system of type
27076 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
27077
27078 2008-02-01 Kenichi Handa <handa@m17n.org>
27079
27080 * coding.c (coding_set_source): Fix for the case that the current
27081 buffer is different from coding->src_object.
27082 (decode_coding_object): Don't use the conversion work buffer if
27083 DST_OBJECT is a buffer.
27084
27085 2008-02-01 Dave Love <fx@gnu.org>
27086
27087 * lread.c (read_emacs_mule_char) [len==2]: Index
27088 emacs_mule_charset correctly.
27089
27090 2008-02-01 Dave Love <fx@gnu.org>
27091
27092 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27093 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27094 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27095 treated specially.)
27096 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27097 (detected_mask): Remove Big5 bits.
27098
27099 2008-02-01 Kenichi Handa <handa@m17n.org>
27100
27101 The following changes are to make the font rescaling facility
27102 compatible with Emacs 21.
27103
27104 * xfaces.c (Vface_font_rescale_alist): Rename from
27105 Vface_resizing_fonts.
27106 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27107 (font_rescale_ratio): Rename from font_resizing_ratio.
27108 (split_font_name): Set font->rescale_ratio.
27109 (better_font_p): Pay attention to font->rescale_ratio.
27110 (build_scalable_font_name): Likewise. Change RESX, and RESY
27111 fields.
27112 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27113
27114 2008-02-01 Kenichi Handa <handa@m17n.org>
27115
27116 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27117 (Qutf_16_le): Remove these variables.
27118 (syms_of_coding): Don't DEFSYM them.
27119 (decode_coding_utf_16): Fix handling of BOM.
27120 (encode_coding_utf_16): Fix handling of BOM.
27121
27122 2008-02-01 Kenichi Handa <handa@m17n.org>
27123
27124 * fileio.c (Finsert_file_contents): On replacing, before decoding
27125 the file into the work buffer, set point of the work buffer to the end.
27126
27127 2008-02-01 Dave Love <fx@gnu.org>
27128
27129 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27130
27131 2008-02-01 Dave Love <fx@gnu.org>
27132
27133 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27134 and fix C types.
27135
27136 2008-02-01 Kenichi Handa <handa@m17n.org>
27137
27138 * xdisp.c (SKIP_GLYPHS): New macro.
27139 (set_cursor_from_row): Pay attention to string display properties.
27140
27141 * category.c (copy_category_entry): Fix for the case that RANGE
27142 is an integer.
27143
27144 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27145
27146 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27147
27148 2008-02-01 Kenichi Handa <handa@m17n.org>
27149
27150 * charset.c (Fcharset_id_internal): New function.
27151 (syms_of_charset): Defsubr it.
27152
27153 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27154 with the last arg charset_list acquired from coding.
27155 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27156 the attribute coding_attr_ccl_valids.
27157
27158 * coding.h (enum define_coding_ccl_arg_index): Set the first
27159 member coding_arg_ccl_decoder to coding_arg_max.
27160
27161 * ccl.h (ccl_driver): Adjust prototype.
27162
27163 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27164 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
27165 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
27166 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27167 last arg Qnil.
27168
27169 2008-02-01 Kenichi Handa <handa@m17n.org>
27170
27171 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27172 call encode_char.
27173
27174 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27175
27176 2008-02-01 Dave Love <fx@gnu.org>
27177
27178 * composite.c (syms_of_composite): Make composition_hash_table weak.
27179
27180 2008-02-01 Kenichi Handa <handa@m17n.org>
27181
27182 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27183 (font_name_registry): Don't extern them.
27184 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27185
27186 * fontset.h (Qfontset): Don't extern it.
27187 (new_fontset_from_font_name): Extern it.
27188
27189 * fontset.c: Give 8 extra slots to fontset objects.
27190 (Qfontset_info): New variable.
27191 (syms_of_fontset): Defsym it.
27192 (FONTSET_FALLBACK): New macro.
27193 (fontset_face): Try also the default fontset.
27194 (make_fontset): Realize a fallback fontset from the default fontset.
27195 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27196 using split_font_name_into_vector and build_font_name_from_vector.
27197 (Fset_fontset_font): Access the elements of font_spec by enum
27198 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27199 name by using split_font_name_into_vector.
27200 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
27201 generate a proper font name from the fontset name.
27202 Update Vfontset_alias_alist.
27203 (n_auto_fontsets): New variable.
27204 (new_fontset_from_font_name): New function.
27205 (Ffont_info): Store the information about fonts generated from the
27206 default fontset in the first extra slot of the returned char-table.
27207
27208 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27209 (font_name_registry): Delete function.
27210 (split_font_name_into_vector): New function.
27211 (build_font_name_from_vector): New function.
27212 (font_list): The argument REGISTRY is now a list of registry names.
27213 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27214 specifies an explicit font name, return the name as is. Make a
27215 list of registy names.
27216
27217 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27218 of x_new_fontset.
27219 (Fx_create_frame): Don't call x_new_fontset here. Just use
27220 x_list_fonts to check the existence of fonts.
27221
27222 * xterm.h (x_new_fontset): Adjust prototype.
27223
27224 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27225 string. Use new_fontset_from_font_name to create a fontset from a
27226 font name.
27227
27228 2008-02-01 Kenichi Handa <handa@m17n.org>
27229
27230 * syntax.c (Vfind_word_boundary_function_table): New name for
27231 Vnext_word_boundary_function_table.
27232 (find-word-boundary-function-table): New name for
27233 next-word-boundary-function-table.
27234
27235 2008-02-01 Dave Love <fx@gnu.org>
27236
27237 * Makefile.in: Fix some dependencies.
27238
27239 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27240 set it to nil before returning.
27241
27242 * composite.c (update_compositions): Fix type error.
27243
27244 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27245
27246 2008-02-01 Kenichi Handa <handa@m17n.org>
27247
27248 * xterm.c (x_new_font): Optimize for the case that the font is
27249 already set for the frame.
27250
27251 2008-02-01 Kenichi Handa <handa@m17n.org>
27252
27253 * chartab.c (char_table_ascii): Check if the char table contents
27254 is sub-char-table or not.
27255 (char_table_set, char_table_set_range): Fix argument to
27256 char_table_ascii.
27257
27258 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27259 (detect_coding_utf_8, detect_coding_utf_16)
27260 (detect_coding_emacs_mule, detect_coding_iso_2022)
27261 (detect_coding_sjis, detect_coding_big5)
27262 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27263 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27264 sequence is valid in this coding system. Change callers.
27265 (MAX_ANNOTATION_LENGTH): New macro.
27266 (ADD_ANNOTATION_DATA): New macro.
27267 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27268 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
27269 (ADD_CHARSET_DATA): New macro.
27270 (emacs_mule_char): New argument ID. Change callers.
27271 (decode_coding_emacs_mule, decode_coding_iso_2022)
27272 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27273 Produce charset annotation data in coding->charbuf.
27274 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27275 to charset annotation data in coding->charbuf.
27276 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27277 coding->common_flags if the coding system is iso-2022 based and
27278 uses designation.
27279 (produce_composition): Adjust for the new annotation data format.
27280 (produce_charset): New function.
27281 (produce_annotation): Handle charset annotation.
27282 (handle_composition_annotation, handle_charset_annotation):
27283 New functions.
27284 (consume_chars): Handle charset annotation. Utilize the above two
27285 functions.
27286 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27287 buffer, get the deleted text as a string and set
27288 coding->src_object to that string.
27289 (detect_coding, detect_coding_system): Use the new struct
27290 coding_detection_info.
27291
27292 * coding.h (struct coding_detection_info): New structure.
27293 (struct coding_system): Adjust prototype of the member `detector'.
27294 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27295
27296 2008-02-01 Kenichi Handa <handa@m17n.org>
27297
27298 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27299
27300 2008-02-01 Dave Love <fx@gnu.org>
27301
27302 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27303 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27304 to new local and nullify apropos_accumulate before returning.
27305 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27306
27307 2008-02-01 Kenichi Handa <handa@m17n.org>
27308
27309 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27310 correctly.
27311
27312 2008-02-01 Dave Love <fx@gnu.org>
27313
27314 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27315
27316 2008-02-01 Kenichi Handa <handa@m17n.org>
27317
27318 The following changes are to make character composition happen
27319 automatically on displaying.
27320
27321 * Makefile.in (lisp, shortlisp): Add composite.elc.
27322
27323 * composite.h (Qauto_composed, Vauto_composition_function)
27324 (Qauto_composition_function): Extern them.
27325
27326 * composite.c (Vcomposition_function_table)
27327 (Qcomposition_function_table): Delete variables.
27328 (Qauto_composed, Vauto_composition_function)
27329 (Qauto_composition_function): New variables.
27330 (run_composition_function): Don't call
27331 compose-chars-after-function.
27332 (update_compositions): Clear `auto-composed' text property.
27333 (compose_chars_in_text): Delete this function.
27334 (syms_of_composite): Staticpro Qauto_composed and
27335 Qauto_composition_function. Declare Vauto_composition_function as
27336 a Lisp variable.
27337
27338 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27339
27340 * xdisp.c (it_props): Add an entry for Qauto_composed.
27341 (handle_auto_composed_prop): New function.
27342
27343 * xselect.c (selection_data_to_lisp_data): Don't call
27344 compose_chars_in_text.
27345
27346 2008-02-01 Dave Love <fx@gnu.org>
27347
27348 * keyboard.c (read_char): Modify checking around use of
27349 Vkeyboard_translate_table.
27350
27351 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27352 and fix C types.
27353
27354 2008-02-01 Kenichi Handa <handa@m17n.org>
27355
27356 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27357 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27358 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27359 the case that the last byte is '\r' correctly.
27360 (decode_coding): Flush out the unprocessed data correctly.
27361 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27362
27363 2008-02-01 Dave Love <fx@gnu.org>
27364
27365 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27366 Add XK_ISO... case.
27367 (xaw_scroll_callback): Revert last change.
27368
27369 2008-02-01 Kenichi Handa <handa@m17n.org>
27370
27371 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27372
27373 2008-02-01 Kenichi Handa <handa@m17n.org>
27374
27375 * xfaces.c (Vface_resizing_fonts): New variable.
27376 (struct font_name): New member `resizing_ratio'.
27377 (font_resizing_ratio): New function.
27378 (split_font_name): Set font->resizing_ratio.
27379 (better_font_p): Pay attention to font->resizing_ratio.
27380 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27381 RESX, and RESY fields.
27382 (try_alternative_families): Try scalable fonts if
27383 Vscalable_fonts_allowed is not Qt.
27384 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27385
27386 2008-02-01 Dave Love <fx@gnu.org>
27387
27388 * xterm.c (xaw_scroll_callback): Cast correctly.
27389
27390 2008-02-01 Dave Love <fx@gnu.org>
27391
27392 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27393 (lispy_kana_keys): Comment out.
27394 (make_lispy_event) [XK_kana_A]: Comment out.
27395
27396 * xterm.c (xaw_scroll_callback): Cast call_data.
27397 (XTread_socket): Deal with ASCII keysyms.
27398 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27399
27400 2008-02-01 Dave Love <fx@gnu.org>
27401
27402 * xterm.c (Vx_keysym_table): New.
27403 (syms_of_xterm): Initialize it.
27404 (XTread_socket): Use it.
27405 From head: Eliminate incorrect optimization that tried to avoid
27406 decoding the output of X*LookupString.
27407 (x_get_font_repertory): Delete charset declaration.
27408
27409 2008-02-01 Kenichi Handa <handa@m17n.org>
27410
27411 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27412 return 0.
27413 (Fdefine_coding_system_internal):
27414 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
27415
27416 2008-02-01 Dave Love <fx@gnu.org>
27417
27418 * coding.c (Fcheck_coding_system): Doc fix.
27419
27420 * editfns.c (Finsert_byte): Return a proper value.
27421
27422 2008-02-01 Kenichi Handa <handa@m17n.org>
27423
27424 * coding.c (decode_coding): Fix args to translate_chars.
27425 Pay attention to Vstandard_translation_table_for_decode.
27426 (encode_coding): Fix args to translate_chars. Pay attention to
27427 Vstandard_translation_table_for_encode.
27428
27429 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27430 SINGLE_BYTE_CHAR_P.
27431
27432 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27433 not by SINGLE_BYTE_CHAR_P.
27434
27435 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27436 SINGLE_BYTE_CHAR_P.
27437
27438 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27439 SINGLE_BYTE_CHAR_P.
27440
27441 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27442 by SINGLE_BYTE_CHAR_P.
27443
27444 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27445 SINGLE_BYTE_CHAR_P.
27446
27447 2008-02-01 Dave Love <fx@gnu.org>
27448
27449 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27450
27451 2008-02-01 Dave Love <fx@gnu.org>
27452
27453 * fns.c (Flanginfo): Fix typo.
27454
27455 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27456
27457 2008-02-01 Kenichi Handa <handa@m17n.org>
27458
27459 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27460 (detect_coding_emacs_mule, detect_coding_iso_2022)
27461 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27462 incomplete byte sequence. Don't update *mask when correctly detected.
27463 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27464 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27465 (detect_coding, detect_coding_system): Adjust for the changes above.
27466
27467 2008-02-01 Kenichi Handa <handa@m17n.org>
27468
27469 * character.c (char_string): Rename from
27470 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27471 (string_char): Rename from string_char.
27472
27473 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27474 if C is greater than MAX_3_BYTE_CHAR.
27475 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27476 Call string_char instead of string_char_with_unification.
27477
27478 2008-02-01 Dave Love <fx@gnu.org>
27479
27480 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27481
27482 2008-02-01 Kenichi Handa <handa@m17n.org>
27483
27484 * keymap.c (push_key_description): Pay attention to force_multibyte.
27485
27486 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27487
27488 2008-02-01 Dave Love <fx@gnu.org>
27489
27490 * charset.c (define_charset_internal): Rename `supprementary'.
27491
27492 * Makefile.in (lisp, shortlisp): Remove latin-N.
27493
27494 2008-02-01 Dave Love <fx@gnu.org>
27495
27496 * xfns.c (x_window, x_window): Use use_xim.
27497
27498 * xterm.c (use_xim): Initialize.
27499 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27500 (x_term_init): Maybe set use_xim.
27501
27502 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27503
27504 2008-02-01 Kenichi Handa <handa@m17n.org>
27505
27506 * search.c (search_buffer): Fix case-fold-search of multibyte
27507 characters.
27508 (boyer_moore): Rename the last argument to char_high_bits.
27509
27510 2008-02-01 Kenichi Handa <handa@m17n.org>
27511
27512 * xdisp.c (display_string): Fix for the case of zero width glyph.
27513
27514 * xfns.c (x_set_font): Change the error message of the case that
27515 x_new_fontset returns Qt.
27516
27517 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27518 (Finternal_set_lisp_face_attribute): Use signal_error for the
27519 error of invalid fontset.
27520
27521 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27522 fontset, return Qt.
27523
27524 2008-02-01 Dave Love <fx@gnu.org>
27525
27526 * unexelf.c (unexec): Make .got handling not SGI-specific.
27527
27528 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27529
27530 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27531
27532 * keyboard.c (read_key_sequence): Fix type error.
27533
27534 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27535 Fix type error.
27536
27537 * fontset.c (fontset_add): Return Lisp_Object.
27538
27539 2008-02-01 Dave Love <fx@gnu.org>
27540
27541 * charset.h (charset_ordered_list_tick): Declare extern.
27542
27543 2008-02-01 Kenichi Handa <handa@m17n.org>
27544
27545 The following changes (and some of 2008-02-01 changes of mine) are
27546 for handling syntax, category, and case conversion for unibyte
27547 characters by converting them to multibyte on the fly. With these
27548 changes, we don't have to setup syntax and case tables for unibyte
27549 characters in each language environment.
27550
27551 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27552 multibyte if necessary.
27553
27554 * bytecode.c (Fbyte_code): Likewise.
27555
27556 * character.h (LEADING_CODE_LATIN_1_MIN)
27557 (LEADING_CODE_LATIN_1_MAX): New macros.
27558 (unibyte_to_multibyte_table): Extern it.
27559 (unibyte_char_to_multibyte): New macro.
27560 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27561 (CHAR_LEADING_CODE): New macro.
27562 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27563
27564 * character.c (unibyte_to_multibyte_table): New variable.
27565 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27566 (multibyte_char_to_unibyte): If C is an eight-bit character,
27567 convert it to the corresponding byte value.
27568
27569 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27570 not 1, signals an error. Update the elements of
27571 unibyte_to_multibyte_table.
27572 (init_charset_once): Initialize unibyte_to_multibyte_table.
27573 (syms_of_charset): Define the charset `iso-8859-1'.
27574
27575 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27576 as is without converting it to unibyte. In a unibyte buffer,
27577 convert C to multibyte before checking the syntax.
27578
27579 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27580
27581 * minibuf.c (Fminibuffer_complete_word): Use the macro
27582 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27583
27584 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27585
27586 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
27587 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27588 If that is zero, convert an eight-bit char to multibyte.
27589 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27590 non-emacs case.
27591 (PATFETCH): Convert an eight-bit char to multibyte.
27592 (HANDLE_UNIBYTE_RANGE): New macro.
27593 (regex_compile): Setup the compiled pattern for multibyte chars
27594 even if the given regex string is unibyte. Use PATFETCH_RAW
27595 instead of PATFETCH in many places. To handle `charset'
27596 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27597 only for ASCII chars.
27598 (analyse_first) <exactn>: Simplify because the compiled pattern
27599 is multibyte.
27600 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27601 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27602 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27603 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27604 multibyte always 1.
27605 (re_search_2): In emacs, set the locale variable multibyte to 1,
27606 otherwise to 0. New local variable target_multibyte. Check it
27607 to decide the multibyteness of STR1 and STR2.
27608 If target_multibyte is zero, convert unibyte chars to multibyte
27609 before translating and checking fastmap.
27610 (TARGET_CHAR_AND_LENGTH): New macro.
27611 (re_match_2_internal): In emacs, set the locale variable multibyte
27612 to 1, otherwise to 0. New local variable target_multibyte.
27613 Check it to decide the multibyteness of STR1 and STR2.
27614 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
27615 <charset, charset_not>: If multibyte is nonzero, check fastmap
27616 only for ASCII chars. Call bcmp_translate with
27617 target_multibyte, not with multibyte.
27618 <begline>: Declare the local variable C as `unsigned'.
27619 (bcmp_translate): Change the last arg name to target_multibyte.
27620
27621 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27622 the regexp pattern and the matching target. Set cp->buf.multibyte
27623 to the multibyteness of the regexp pattern. Set
27624 cp->but.target_multibyte to the multibyteness of the matching target.
27625 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27626 FETCH_STRING_CHAR_ADVANCE.
27627 (Freplace_match): Convert unibyte chars to multibyte.
27628
27629 * syntax.c (char_quoted, back_comment, scan_words)
27630 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27631 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27632 unibyte chars to multibyte.
27633 (skip_chars): Delete the arg syntaxp, and move the code for
27634 handling syntaxes to skip_syntaxes. Change callers.
27635 Fix the case that the multibyteness of STRING and the current
27636 buffer doesn't match.
27637 (skip_syntaxes): New function.
27638 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27639 SINGLE_BYTE_CHAR_P.
27640
27641 2008-02-01 Kenichi Handa <handa@m17n.org>
27642
27643 * xfaces.c (QCfontset): New variable.
27644 (LFACE_FONTSET): New macro.
27645 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27646 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27647 (Finternal_set_lisp_face_attribute)
27648 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27649 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27650 check also LFACE_FONTSET_INDEX.
27651 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27652 attrs[LFACE_FONT_INDEX].
27653 (syms_of_xfaces): Intern and staticpro QCfontset.
27654
27655 * dispextern.h (enum lface_attribute_index): New member
27656 LFACE_FONTSET_INDEX.
27657
27658 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27659
27660 2008-02-01 Kenichi Handa <handa@m17n.org>
27661
27662 * coding.c (coding_set_destination): Fix coding->destination for
27663 the case converting a region.
27664 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27665 (encode_coding_object): Fix coding->dst_pos and
27666 coding->dst_pos_byte for the case converting a region.
27667
27668 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27669
27670 * character.h (BYTE8_STRING): New macro.
27671
27672 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27673
27674 2008-02-01 Kenichi Handa <handa@m17n.org>
27675
27676 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27677 characters by octal form.
27678
27679 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27680
27681 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27682 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27683 _fetch_multibyte_char_len.
27684 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27685
27686 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27687
27688 * casefiddle.c (casify_object): Simplify. Handle the case that
27689 the case conversion change the byte length.
27690 (casify_region): Likewise.
27691
27692 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27693
27694 * character.c (_fetch_multibyte_char_len): Delete this variable.
27695 (syms_of_character): Setup Vprintable_chars.
27696
27697 * editfns.c (Fchar_equal): Fix for the unibyte case.
27698 (Finsert_byte): New function.
27699 (syms_of_editfns): Defsubr it.
27700
27701 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27702 of direct code 0x3ffff.
27703
27704 * search.c (Freplace_match): Fix for the unibyte case.
27705
27706 2008-02-01 Kenichi Handa <handa@m17n.org>
27707
27708 * lread.c (safe_to_load_p): Fix the logic.
27709
27710 * syntax.c (scan_words): Don't treat characters belonging to
27711 different scripts as constituting a word.
27712
27713 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27714
27715 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27716
27717 * emacs.c (main): In the case of --unibyte, instead of aborting on
27718 finding non-empty buffer, make it unibyte.
27719
27720 2008-02-01 Kenichi Handa <handa@m17n.org>
27721
27722 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27723 to create a fontset.
27724
27725 2008-02-01 Dave Love <fx@gnu.org>
27726
27727 * character.c (Funibyte_char_to_multibyte): Doc fix.
27728
27729 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27730
27731 2008-02-01 Kenichi Handa <handa@m17n.org>
27732
27733 * fontset.c (fontset_add): Make the type `int'.
27734 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27735
27736 * character.c (unibyte_char_to_multibyte)
27737 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27738 charset_unibyte, not charset_primary.
27739
27740 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27741
27742 * charset.c (charset_unibyte): Rename from charset_primary.
27743 (Funibyte_charset): Rename from Fprimary_charset.
27744 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27745 (syms_of_charset): Adjust for the above changes.
27746
27747 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27748 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27749 it->multibyte_p is zero.
27750
27751 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27752 Delete extern.
27753
27754 2008-02-01 Kenichi Handa <handa@m17n.org>
27755
27756 * coding.c (Fdefine_coding_system_internal): Fix category setting
27757 for a coding system of type iso-2022.
27758
27759 2008-02-01 Kenichi Handa <handa@m17n.org>
27760
27761 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27762
27763 2008-02-01 Kenichi Handa <handa@m17n.org>
27764
27765 * syntax.c (Vnext_word_boundary_function_table): New variable.
27766 (next-word-boundary-function-table): Declare it as a Lisp variable
27767 in syms_of_syntax.
27768 (scan_words): Call functions in Vnext_word_boundary_function_table
27769 if any.
27770
27771 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27772
27773 * fontset.c (fs_load_font): If fontp->charset is not negative,
27774 return fontp without setting its members.
27775
27776 2008-02-01 Dave Love <fx@gnu.org>
27777
27778 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27779
27780 * m/sparc.h (HAVE_ALLOCA): Delete.
27781
27782 * s/irix6-5.h: Don't include strings.h.
27783 (bcopy, bzero, bcmp): Don't undef.
27784
27785 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27786
27787 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27788 (TIOCSIGSEND): Don't test IRIX6.
27789 (bcopy, bzero, bcmp): Define conditionally.
27790
27791 2008-02-01 Kenichi Handa <handa@m17n.org>
27792
27793 * buffer.c (Qas, Qmake, Qto): New variables.
27794 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27795 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27796
27797 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27798 we are inserting a process output into a multibyte buffer.
27799
27800 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27801 multibyte_char_to_unibyte.
27802
27803 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27804 by the primary charset, make it eight-bit char.
27805 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27806
27807 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27808 (charset_8_bit__control, charset_8_bit_graphic)
27809 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27810 (define_charset_internal): New function.
27811 (syms_of_charset): Call define_charset_internal for pre-defined
27812 charsets.
27813
27814 * charset.h (charset_8_bit): Extern it.
27815
27816 * coding.c (make_conversion_work_buffer): Adjust for the change
27817 of Fset_buffer_multibyte.
27818 (encode_coding_raw_text): Increment p0 in the loop.
27819
27820 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27821
27822 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27823 Adjust for the change of Fset_buffer_multibyte.
27824
27825 * fns.c (Fstring_to_multibyte): New function.
27826 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27827
27828 2008-02-01 Dave Love <fx@gnu.org>
27829
27830 * xfns.c (x_put_x_image): Declare args.
27831
27832 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27833 (try_font_list): Declare an arg.
27834
27835 * xdisp.c (message2_nolog, set_message): Declare an arg.
27836
27837 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27838
27839 * syntax.c (scan_sexps_forward): Declare an arg.
27840
27841 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27842 Declare an arg.
27843
27844 * lisp.h (Fnew_fontset): Declare.
27845
27846 * keymap.c (push_key_description): Call CHARACTERP correctly.
27847
27848 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27849 (face_for_char): Delete unused vars.
27850 (Fset_fontset_font): Doc fix. Delete unused vars.
27851
27852 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27853
27854 * composite.c (update_compositions): Declare arg.
27855
27856 * cm.c (calccost, cmgoto): Declare args.
27857
27858 * charset.c: Remove `emacs' conditional. Doc fixes.
27859 (map_char_table_for_charset): Declare.
27860
27861 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27862
27863 * ccl.c: Remove `emacs' conditional.
27864
27865 2008-02-01 Kenichi Handa <handa@m17n.org>
27866
27867 The following changes are to allow specifying multiple font
27868 patterns for a character range (specified by script or charset).
27869
27870 * Makefile.in (abbrev.o): Depend on syntax.h.
27871 (xfaces.o): Depend on charset.h.
27872
27873 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27874 SINGLE_BYTE_CHAR_P.
27875
27876 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27877
27878 * character.h (Vchar_script_table): Extern it.
27879
27880 * character.c (Vscript_alist): Delete.
27881 (Vchar_script_table, Qchar_script_table): New variable.
27882 (syms_of_character): Declare Vchar_script_table as a lisp variable
27883 and initialize it.
27884
27885 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27886 have property char-table-extra-slots, make no extra slot.
27887
27888 * dispextern.h (struct face): Delete member `charset'.
27889 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27890 SINGLE_BYTE_CHAR_P.
27891 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27892 Add prototypes.
27893 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27894 (generate_ascii_font_name): Rename from generate_ascii_font.
27895
27896 * fontset.h (get_font_repertory_func): New prototype.
27897 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27898 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27899
27900 * fontset.c (Qprepend, Qappend): New variables.
27901 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27902 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27903 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27904 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27905 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27906 (load_font_get_repertory): New functions.
27907 (fontset_set): Delete.
27908 (fontset_face): New arg FACE. Return face ID, not face.
27909 Complete re-write to handle new fontset structure. Change caller.
27910 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27911 (face_for_char): Don't call lookup_face.
27912 (make_fontset_for_ascii_face): New arg FACE.
27913 (fs_load_font): New arg CHARSET_ID. Don't check
27914 Vfont_encoding_alist here.
27915 (find_font_encoding): New function.
27916 (list_fontsets): Use STRINGP, not ! NILP.
27917 (accumulate_script_ranges): New function.
27918 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27919 Completely re-written to handle new fontset structure.
27920 (Ffontset_font): Return a copy of element.
27921 (syms_of_fontset): Define symbols Qprepend and Qappend.
27922 Fix docstring of font-encoding-alist.
27923
27924 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27925 (Fset_fotset_font): Fix arguments to 5.
27926
27927 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27928
27929 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27930 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27931 (highlight_trailing_whitespace): Adjust for the change of
27932 lookup_named_face.
27933
27934 * xfaces.c: Include charset.h.
27935 (load_face_font): Delete argument C. Change caller.
27936 (generate_ascii_font_name): Rename from generate_ascii_font.
27937 (font_name_registry): New function.
27938 (cache_face): Store ascii faces before non-ascii faces in buckets.
27939 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27940 Lookup only ascii faces.
27941 (lookup_non_ascii_face): New function.
27942 (lookup_named_face): Delete argument C. Change caller.
27943 (lookup_derived_face): Delete argument C. Change caller.
27944 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27945 a string, just call font_list with it.
27946 (choose_face_font): Delete arguments FACE and C. New arg
27947 FONT_SPEC. Change caller.
27948 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27949 Change caller.
27950 (realize_non_ascii_face): New function.
27951 (realize_x_face): Call load_face_font here.
27952 (realize_tty_face): Delete argument C. Change caller.
27953 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27954 get a face ID.
27955 (dump_realized_face): Don't print charset of FACE.
27956
27957 * xfns.c (x_set_font): Always call x_new_fontset and
27958 store_frame_parameter.
27959 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27960 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27961
27962 * xterm.h (x_get_font_repertory): Extern it.
27963
27964 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27965 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27966 it->multibyte_p is zero.
27967 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27968 (x_new_fontset): If FONTSETNAME doesn't match any existing
27969 fontsets, create a new one.
27970 (x_get_font_repertory): New function.
27971
27972 2008-02-01 Kenichi Handa <handa@m17n.org>
27973
27974 * coding.c (Ffind_coding_systems_region_internal): Detect an
27975 ASCII only string correctly.
27976
27977 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27978 version is 0.
27979
27980 2008-02-01 Kenichi Handa <handa@m17n.org>
27981
27982 * lread.c: Include "coding.h".
27983 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27984 (load_each_byte, unread_char): New variables.
27985 (readchar_backlog): Delete.
27986 (readchar): Return a character unless load_each_byte is nonzero.
27987 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27988 cons. If unread_char is not -1, simply return it.
27989 (unreadchar): Handle the case that readcharfun is
27990 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27991 (read_multibyte): Delete.
27992 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27993 (read_emacs_mule_char): New functions.
27994 (Fload): Even if the file doesn't have the extension ".elc", if
27995 safe_to_load_p returns a positive version number, assume that the
27996 file contains bytecompiled code. If the version is less than 22,
27997 load the file while decoding multibyte sequences by emacs-mule.
27998 (readevalloop): Don't use readchar_backlog.
27999 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
28000 (Fread_from_string): Pay attention to the case that STREAM is a cons.
28001 (read_escape): Delete the arg BYTEREP.
28002 (read1): Set load_each_byte to 1 temporarily while handling
28003 #@NUMBER. Don't call read_multibyte.
28004 (read_vector): Call Fread with a cons. If readcharfun is
28005 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
28006 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
28007 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
28008 and Qload_force_doc_strings.
28009
28010 2008-02-01 Kenichi Handa <handa@m17n.org>
28011
28012 * xdisp.c (face_before_or_after_it_pos):
28013 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
28014
28015 2008-02-01 Kenichi Handa <handa@m17n.org>
28016
28017 * character.h (TRAILING_CODE_P): New macro.
28018 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
28019 (string_char_with_unification): Fix prototype.
28020 (Vscript_alist): Extern it.
28021
28022 * character.c (Vscript_alist): New variable.
28023 (string_char_with_unification, str_as_unibyte)
28024 (string_escape_byte8): Add `const' to local variables.
28025 (syms_of_character): Declare script-alist as a Lisp variable.
28026
28027 * charset.h (Vcharset_ordered_list): Extern it.
28028 (charset_ordered_list_tick): Extern it.
28029 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
28030 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
28031 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
28032 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
28033 (Funify_charset): Adjust for the change of Funify_charset.
28034
28035 * charset.c (charset_ordered_list_tick): New variable.
28036 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
28037 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
28038 deunify instead of unify a charset.
28039 (string_xstring_p): Add `const' to local variables.
28040 (find_charsets_in_text): Add `const' to arguments and local variables.
28041 (encode_char): Adjust for the change of Funify_charset.
28042 Fix detecting of invalid code.
28043 (Fset_charset_priority): Increment charset_ordered_list_tick.
28044 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
28045 and TO_CODE.
28046
28047 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
28048 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
28049 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
28050 (decode_coding_ccl, consume_chars)
28051 (Ffind_coding_systems_region_internal)
28052 (Fcheck_coding_systems_region): Add `const' to local variables.
28053
28054 * print.c (print_object): Use octal form for printing the
28055 contents of a bool vector.
28056
28057 2008-02-01 Dave Love <fx@gnu.org>
28058
28059 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
28060 <version == 20>: Refuse to load.
28061
28062 2008-02-01 Dave Love <fx@gnu.org>
28063
28064 * fns.c: Move coding.h.
28065 (Qcodeset, Qdays, Qmonths): New.
28066 (concat): Use CHARACTERP instead of INTEGERP.
28067 (Flocale_codeset): Delete.
28068 (Flanginfo): New function.
28069 (syms_of_fns): Change accordingly.
28070
28071 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
28072
28073 2008-02-01 Dave Love <fx@gnu.org>
28074
28075 * casetab.c (init_casetab_once, init_casetab_once):
28076 Fix CHAR_TABLE_SET call.
28077
28078 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
28079
28080 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
28081
28082 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
28083 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
28084 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
28085
28086 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28087
28088 * coding.c (ENCODE_DESIGNATION, decode_eol)
28089 (make_conversion_work_buffer, code_conversion_restore)
28090 (Fdefine_coding_system_internal): Convert Lisp types.
28091 (code_conversion_restore): Use EQ, not ==.
28092 (Fencode_coding_string): Fix code_convert_string call.
28093
28094 * coding.h (code_convert_region): Fix prototype.
28095
28096 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28097
28098 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28099 (Ffontset_info): Convert Lisp types.
28100
28101 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28102
28103 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28104
28105 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28106
28107 * chartab.c: Include "...h", not <...h> in some cases.
28108
28109 * callproc.c (Fcall_process): Remove unused variables.
28110
28111 2008-02-01 Dave Love <fx@gnu.org>
28112
28113 * coding.c (Fset_coding_system_priority): Allow null arg list.
28114
28115 2008-02-01 Dave Love <fx@gnu.org>
28116
28117 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28118 (Fself_insert_and_exit): Use CHARACTERP.
28119
28120 * callproc.c (Fcall_process): Remove unused vars.
28121
28122 * xterm.c (XTread_socket): Add extra dead keysyms.
28123
28124 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28125
28126 * dispextern.h: Remove prototypes for redraw_frame,
28127 redraw_garbaged_frames.
28128
28129 * cmds.c (Fself_insert_command): Use CHARACTERP.
28130
28131 * chartab.c (make_sub_char_table): Remove unused var.
28132 (Fset_char_table_default, Fmap_char_table): Doc fix.
28133
28134 * keymap.c (access_keymap): Remove generic char code.
28135 (push_key_description): Use CHARACTERP.
28136
28137 2008-02-01 Dave Love <fx@gnu.org>
28138
28139 * charset.c: Doc fixes.
28140 (Funify_charset): Extra checking.
28141
28142 2008-02-01 Dave Love <fx@gnu.org>
28143
28144 * lread.c: Remove some unused variables.
28145 (safe_to_load_p): If safe, return the magic number version byte.
28146 (Fload): Maybe use load-with-code-conversion.
28147
28148 2008-02-01 Kenichi Handa <handa@m17n.org>
28149
28150 * category.c (Fmodify_category_entry): Don't modify the contents
28151 of category_set for characters out of the range.
28152 Avoid unnecessary modification.
28153
28154 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28155 Vchar_unify_table. The default value of the table is now nil.
28156
28157 * character.c (syms_of_character): Setup Vchar_width_table for
28158 eight-bit-control and raw-byte chars.
28159
28160 * charset.h (enum define_charset_arg_index):
28161 Delete charset_arg_parents and add charset_arg_subset and
28162 charset_arg_superset.
28163 (enum charset_attr_index): Delete charset_parents and add
28164 charset_subset and charset_superset.
28165 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28166 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28167 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28168 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28169 (CHARSET_SUPERSET): New macros.
28170 (charset_work): Extern it.
28171 (ENCODE_CHAR): Use charset_work.
28172 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28173 (map_charset_chars): Extern it.
28174
28175 * charset.c (load_charset_map): Set the default value of encoder
28176 and deunifier char-tables to nil.
28177 (map_charset_chars): Change argument. Change callers.
28178 Use map_char_table_for_charset instead of map_char_table.
28179 (Fmap_charset_chars): New optional args from_code and to_code.
28180 (Fdefine_charset_internal): Adjust for the change of
28181 `define-charset' (:parents -> :subset or :superset).
28182 (charset_work): New variable.
28183 (encode_char, syms_of_charset): Adjust for the change of
28184 Fdefine_charset_internal.
28185 (Ffind_charset_string): Setup the vector `charsets' correctly.
28186
28187 * chartab.c (sub_char_table_ref_and_range): New arg default.
28188 Fix the previous change.
28189 (char_table_ref_and_range): Adjust for the above change.
28190 (map_sub_char_table_for_charset): New function.
28191 (map_char_table_for_charset): New function.
28192
28193 * keymap.c (describe_vector): Handle a char-table directly here.
28194 (describe_char_table): Delete.
28195
28196 * lisp.h (map_charset_chars): Delete.
28197
28198 2008-02-01 Dave Love <fx@gnu.org>
28199
28200 * fns.c (count_combining): Comment out (unused).
28201 (Flocale_codeset): New.
28202 (syms_of_fns): Defsubr it.
28203
28204 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28205 (size_t): Remove.
28206
28207 2008-02-01 Dave Love <fx@gnu.org>
28208
28209 * Makefile.in (chartab.o): Depend on charset.h.
28210
28211 2008-02-01 Kenichi Handa <handa@m17n.org>
28212
28213 * character.c (syms_of_character): Set the default value of
28214 Vprintable_chars to Qnil.
28215
28216 2008-02-01 Dave Love <fx@gnu.org>
28217
28218 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28219
28220 2008-02-01 Kenichi Handa <handa@m17n.org>
28221
28222 * charset.c (load_charset_map): Handle the case that from < to
28223 correctly.
28224
28225 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28226 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28227 Pay attention to raw-8-bit chars.
28228
28229 2008-02-01 Kenichi Handa <handa@m17n.org>
28230
28231 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28232 It is not bytecompiled now.
28233
28234 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28235 (charset_jisx0208): New variables.
28236 (Fdefine_charset_internal): Setup them if appropriate.
28237 (init_charset_once): Initialize them to -1.
28238
28239 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28240 (charset_jisx0208): Extern them.
28241
28242 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28243 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28244 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28245 (setup_iso_safe_charsets): Fix arguments to Fassq.
28246 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28247 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28248 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28249 (encode_coding_iso_2022): Change the 1st arg to
28250 ENCODE_ISO_CHARACTER to a variable.
28251
28252 2008-02-01 Kenichi Handa <handa@m17n.org>
28253
28254 * charset.h (enum define_charset_arg_index): New enums
28255 charset_arg_min_code and charset_arg_max_code.
28256 (struct charset): New member char_index_offset.
28257
28258 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28259 Take charset->char_index_offset into account.
28260 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28261 args[charset_arg_max_code]. Setup charset.char_index_offset.
28262 (syms_of_charset): Fix args to Fdefine_charset_internal.
28263
28264 2008-02-01 Dave Love <fx@gnu.org>
28265
28266 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28267
28268 2008-02-01 Dave Love <fx@gnu.org>
28269
28270 * coding.c: Doc fixes.
28271 (Fcoding_system_aliases): Fix return value.
28272 (Qmac): Remove (duplicated) definition.
28273
28274 2008-02-01 Dave Love <fx@gnu.org>
28275
28276 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28277 New functions.
28278
28279 * character.c (Fstring): Doc fix.
28280
28281 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28282
28283 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
28284 (font-encoding-alist): Doc fix.
28285
28286 2008-02-01 Dave Love <fx@gnu.org>
28287
28288 * term.c (costs_set): Declare static, non-initialized for pcc.
28289 (encode_terminal_code): Remove unused var.
28290
28291 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28292 for K&R.
28293
28294 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28295
28296 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28297 (suffixes): Move out of make_subsidiaries for K&R.
28298
28299 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28300
28301 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28302
28303 2008-02-01 Dave Love <fx@gnu.org>
28304
28305 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28306
28307 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28308
28309 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28310
28311 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28312
28313 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28314
28315 2008-02-01 Kenichi Handa <handa@m17n.org>
28316
28317 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28318 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28319
28320 2008-02-01 Kenichi Handa <handa@m17n.org>
28321
28322 * coding.c (decode_coding_charset): Adjust for the change of
28323 Fdefine_coding_system_internal.
28324 (Fdefine_coding_system_internal): For a coding system of
28325 `charset' type, store a list of charset IDs in
28326 `charset_attr_charset_valids' element of coding attributes.
28327
28328 2008-02-01 Kenichi Handa <handa@m17n.org>
28329
28330 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
28331 (emacs_mule_char): New arg src. Delete arg `composition'.
28332 Change caller. Handle 2-byte and 3-byte charsets correctly.
28333 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28334 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28335 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
28336 (DECODE_EMACS_MULE_21_COMPOSITION):
28337 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
28338 sequence.
28339 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28340 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28341 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28342 and alt&rule composition.
28343 (decode_coding_iso_2022): Handle composition correctly.
28344 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28345
28346 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28347 re-defining a charset. If the charset has :emacs-mule-id, setup
28348 emacs_mule_bytes.
28349 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28350
28351 2008-02-01 Kenichi Handa <handa@m17n.org>
28352
28353 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28354 (encode_coding_big5, encode_coding_charset): If coding requires safe
28355 encoding, produce a character specified by
28356 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28357
28358 2008-02-01 Dave Love <fx@gnu.org>
28359
28360 * xterm.c (XSetIMValues): Declare.
28361
28362 * process.c: Conditionally include sys/wait.h, pty.h.
28363
28364 * print.c (print_object): Fix print format for 64-bit systems.
28365
28366 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28367
28368 * buffer.c (emacs_strerror): Declare.
28369
28370 * fontset.c (Fclear_face_cache): Declare.
28371 (accumulate_font_info): Comment-out (unused).
28372 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28373 variables.
28374
28375 * character.h (string_escape_byte8): Declare.
28376
28377 * charset.c (load_charset_map, load_charset_map_from_file):
28378 Remove unused vars.
28379 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28380 (Fmap_charset_chars): Doc fix.
28381
28382 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28383 (Fset_coding_system_priority, Fset_coding_system_priority)
28384 (Fdefine_coding_system_internal): Doc fix.
28385
28386 2008-02-01 Dave Love <fx@gnu.org>
28387
28388 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28389
28390 2008-02-01 Kenichi Handa <handa@m17n.org>
28391
28392 * character.c (string_escape_byte8): Make multibyte string with
28393 correct size.
28394
28395 * charset.c (Fmake_char): Delete unnecessary code.
28396
28397 2008-02-01 Kenichi Handa <handa@m17n.org>
28398
28399 * xfns.c (x_encode_text): Allocate coding.destination here, and
28400 call encode_coding_object with dst_object Qnil.
28401
28402 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28403 multibyte form correctly.
28404
28405 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28406 against Vfont_encoding_alist.
28407
28408 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28409 handling of charset list.
28410 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28411 (decode_coding_object): Move point to coding->dst_pos before
28412 calling post-read-conversion function.
28413 (encode_coding_object): Give correct arguments to
28414 pre-write-conversion. Ignore the return value of
28415 pre-write-conversion function. Pay attention to the case that
28416 pre-write-conversion changes the current buffer. If dst_object is
28417 Qt, even if coding->src_bytes is zero, allocate at least one byte
28418 to coding->destination.
28419
28420 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28421
28422 * charset.c (Fmake_char): Make it more backward compatible.
28423 (Fmap_charset_chars): Fix docstring.
28424
28425 2008-02-01 Dave Love <fx@gnu.org>
28426
28427 * coding.c: Doc fixes.
28428 (Fdefine_coding_system_alias): Use names, not symbols, in
28429 coding-system-alist.
28430
28431 2008-02-01 Kenichi Handa <handa@m17n.org>
28432
28433 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28434 of calling free_realized_face.
28435
28436 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
28437
28438 * charset.c (read_hex): Don't treat SPC as a comment starter.
28439 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28440 (Fdecode_char): Fix typo.
28441
28442 2008-02-01 Kenichi Handa <handa@m17n.org>
28443
28444 * charset.h (struct charset): New member `code_space_mask'.
28445
28446 * coding.c (coding_set_source): Delete the local variable beg_byte.
28447 (encode_coding_charset, Fdefine_coding_system_internal):
28448 Delete the local variable charset.
28449 (Fdefine_coding_system_internal):
28450 Setup attrs[coding_attr_charset_valids] correctly.
28451
28452 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28453 member to check if CODE is valid or not.
28454 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28455 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28456 is within the range of charset->min_code and carset->max_code.
28457
28458 2008-02-01 Dave Love <fx@gnu.org>
28459
28460 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28461
28462 * dispextern.h (generate_ascii_font): Fix return type.
28463
28464 * xfaces.c (generate_ascii_font): Fix arg declaration.
28465
28466 * coding.c (coding_inherit_eol_type)
28467 (Fset_terminal_coding_system_internal)
28468 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28469
28470 2008-02-01 Kenichi Handa <handa@m17n.org>
28471
28472 * coding.c (decode_coding_charset, encode_coding_charset):
28473 Handle multiple charsets correctly.
28474
28475 2008-02-01 Kenichi Handa <handa@m17n.org>
28476
28477 * search.c (boyer_moore): Fix handling of multibyte character
28478 translation.
28479
28480 * xdisp.c (display_mode_element): When the variable `elt' is
28481 changed, update `this' and `lisp_string'.
28482
28483 2008-02-01 Kenichi Handa <handa@m17n.org>
28484
28485 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28486
28487 * callproc.c (Fcall_process): Be sure to give the current buffer
28488 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28489
28490 * charset.c (struct charset_map_entries): New struct.
28491 (load_charset_map): Rename from parse_charset_map. New args
28492 entries and n_entries. Change caller.
28493 (load_charset_map_from_file): Rename from load_charset_map.
28494 Change caller. New arg control_flag. Call load_charset_map at
28495 the tail.
28496 (load_charset_map_from_vector): New function.
28497 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28498 (encode_char): If the charset is compact, change a character index
28499 to a code point.
28500
28501 * coding.c (coding_alloc_by_making_gap): Check the case that the
28502 source and destination are the same correctly.
28503 (decode_coding_raw_text): Set coding->consumed_char and
28504 coding->consumed to 0.
28505 (produce_chars): If coding->chars_at_source is nonzero, update
28506 coding->consumed_char and coding->consumed before calling
28507 alloc_destination.
28508 (Fdefine_coding_system_alias): Register ALIAS in
28509 Vcoding_system_alist.
28510 (syms_of_coding): Define `no-conversion' coding system at the tail.
28511
28512 * fileio.c (Finsert_file_contents): Set coding_system instead of
28513 val. If the current buffer is multibyte, always call
28514 decode_coding_gap.
28515
28516 * xfaces.c (try_font_list): Give higher priority to fontset's
28517 family than face's family.
28518
28519 2008-02-01 Kenichi Handa <handa@m17n.org>
28520
28521 * callproc.c (Fcall_process): Be sure to give the current buffer
28522 to decode_coding_c_string.
28523
28524 * xfaces.c (try_font_list): Give a family specified in a fontset
28525 higher priority than a family specified in a face.
28526
28527 2008-02-01 Kenichi Handa <handa@m17n.org>
28528
28529 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28530 Fix arguments to insert_from_buffer.
28531
28532 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28533
28534 2008-02-01 Kenichi Handa <handa@m17n.org>
28535
28536 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28537 (decode_coding_gap): Set coding->dst_multibyte correctly.
28538
28539 2008-02-01 Kenichi Handa <handa@m17n.org>
28540
28541 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28542 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28543 (encode_coding_utf_16): Substitute coding->default_char for
28544 non-Unicode characters.
28545 (decode_coding): Don't call record_insert here.
28546 (setup_coding_system): Initialize `surrogate' of
28547 coding->spec.utf_16 to 0.
28548 (EMIT_ONE_BYTE): Fix for multibyte case.
28549
28550 * insdel.c (insert_from_gap): Call record_insert.
28551
28552 2008-02-01 Kenichi Handa <handa@m17n.org>
28553
28554 * casefiddle.c (casify_region): Fix multibyte case.
28555
28556 * character.c (c_string_width): Add return type `int'.
28557 (char_string_with_unification): Delete arg ADVANCED.
28558
28559 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28560 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28561 (CHAR_STRING_ADVANCE): Make it do-while statement.
28562
28563 * chartab.c (sub_char_table_set_range): Optimize for the case
28564 DEPTH == 3. Add workaround code for a GCC optimization bug.
28565
28566 * charset.c (parse_charset_map): Remove an unused variable.
28567
28568 * coding.c: Delete unused variables.
28569
28570 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28571 earlier. If inserted is zero and the coding system doesn't
28572 require flushing, don't call decode_coding_gap.
28573
28574 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28575
28576 2008-02-01 Kenichi Handa <handa@m17n.org>
28577
28578 The following changes are for using Unicode as an internal
28579 character model, and use UTF-8 format for buffer/string
28580 representation.
28581
28582 * .gdbinit (xchartable): Adjust for the change of char table structure.
28583 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28584
28585 * Makefile.in (obj): Add character.o and chartab.o.
28586 (lisp, shortlisp): Remove utf-8.elc.
28587 (*.o): For many files, change dependency on charset.h to
28588 character.h, and add dependency on character.h.
28589 (character.o, chartab.o): New targets.
28590
28591 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28592 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28593 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28594 of "charset.h".
28595
28596 * dired.c, filelock.c: Include "character.h".
28597
28598 * alloc.c: Include "character.h" instead of "charset.h".
28599 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28600 (syms_of_alloc): Remove defsubr for Smake_char_table.
28601
28602 * buffer.c: Include "character.h" instead of "charset.h", don't
28603 include "coding.h".
28604 (Fset_buffer_multibyte): Adjust for UTF-8.
28605
28606 * buffer.h: EXFUN Fbuffer_live_p.
28607
28608 * callproc.c: Include "character.h" instead of "charset.h".
28609 (Fcall_process): Big change for the new code-conversion APIs.
28610
28611 * casetab.c: Include "character.h" instead of "charset.h".
28612 (set_canon, set_identity, shuffle): Adjust for the new
28613 map_char_table spec.
28614 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28615 accessing the char table structure.
28616
28617 * chartab.c: New file that implements char table.
28618
28619 * category.c: Include "character.h".
28620 (copy_category_entry): New function.
28621 (copy_category_table): Call map_char_table and copy_category_entry.
28622 (Fmake_category_table): Initialize all top-level slots.
28623 (char_category_set): New function.
28624 (modify_lower_category_set): Delete.
28625 (Fmodify_category_entry): Call char_table_ref_and_range.
28626
28627 * category.h (CATEGORY_SET): Just call char_category_set.
28628
28629 * ccl.c: Include "character.h".
28630 (Qccl, Qcclp): New variables.
28631 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28632 it's less than 256.
28633 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28634 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28635 and DST type.
28636 (ccl_driver): Change types of argument, adjust code accordingly.
28637 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28638 ccl_driver.
28639 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28640
28641 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28642 New members src_multibyte, dst_multibyte, consumed, and produced.
28643 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28644 (CODING_SPEC_CCL_PROGRAM): New macro.
28645 (ccl_driver): Update prototype.
28646 (Qccl, Qcclp, Fccl_program_p): Extern them.
28647 (CHECK_CCL_PROGRAM): New macro.
28648
28649 * character.c, character.h, chartab.c: New files.
28650
28651 * charset.c: Mostly re-written. Move character and multibyte sequence
28652 handling codes to character.c.
28653
28654 * charset.h: Mostly re-written. Move character and multibyte sequence
28655 handling codes to character.h.
28656
28657 * coding.c, coding.h: Mostly re-written.
28658
28659 * composite.c: Include "character.h" instead of "charset.h".
28660 (CHAR_WIDTH): Move to character.h.
28661 (HASH_KEY, HASH_VALUE): Delete.
28662
28663 * composite.h (enum composition_method): Change order of enumeration
28664 symbols.
28665
28666 * data.c: Include "character.h" instead of "charset.h".
28667 (Faref): Call CHAR_TABLE_REF for a char table.
28668 (Faset): Call CHAR_TABLE_SET for a char table.
28669
28670 * dispextern.h (free_realized_face, check_face_attribytes)
28671 (generate_ascii_font): Extern them.
28672 (free_realized_multibyte_face): Delete extern.
28673
28674 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28675 table structure.
28676
28677 * editfns.c: Include "character.h" instead of "charset.h".
28678 (Fchar_to_string): Always call CHAR_STRING.
28679
28680 * emacs.c (main): Call init_charset_once, init_charset,
28681 syms_of_chartab, and syms_of_character.
28682
28683 * fileio.c: Include "character.h" instead of "charset.h".
28684 (Finsert_file_contents): Big change for the new code-conversion API.
28685 (choose_write_coding_system, Fwrite_region): Likewise.
28686 (build_annotations_2): Delete.
28687 (e_write): Big change for the new code-conversion API.
28688
28689 * fns.c: Include "character.h" instead of "charset.h".
28690 (copy_sub_char_table): Move to chartab.c.
28691 (Fcopy_sequence): Call copy_char_table for a char table.
28692 (concat): Delete codes calling count_multibyte.
28693 (string_char_to_byte, string_byte_to_char): Adjust for the new
28694 multibyte form.
28695 (internal_equal): Adjust for the change of char table structure.
28696 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28697 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28698 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28699 (char_table_translate, optimize_sub_char_table)
28700 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28701 chartab.c.
28702 (char_table_ref_and_index): Delete.
28703 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28704 (Fmd5): Call preferred_coding_system instead of accessing
28705 Vcoding_category_list. Adjust for the new code-conversion API.
28706 (syms_of_fns): Move defsubr for char table related functions to
28707 chartab.c.
28708
28709 * fontset.c: Mostly re-written.
28710
28711 * fontset.h (struct font_info): Change type of the member encoding_type.
28712 (enum FONT_SPEC_INDEX): New enum.
28713 (fontset_font_pattern, fs_load_font): Update prototype.
28714 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28715
28716 * indent.c: Include "character.h" instead of "charset.h".
28717 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28718
28719 * insdel.c: Include "character.h" instead of "charset.h".
28720 (copy_text): Don't refer to Vnonascii_translation_table.
28721 (insert_from_gap): New function.
28722
28723 * keyboard.c: Include "character.h" instead of "charset.h".
28724 (command_loop_1): Never call direct_output_forward_char before
28725 a non-ASCII character.
28726 (read_char): If Vkeyboard_translate_table is a char table, always
28727 translate a character.
28728
28729 * keymap.c: Include "character.h".
28730 (store_in_keymap): Handle the case that IDX is a cons.
28731 (Fdefine_key): Handle the case that KEY is a cons and the car part
28732 is also a cons (range).
28733 (push_key_description): Adjust for the new character code.
28734 (describe_vector): Call describe_char_table for a char table.
28735 (describe_char_table): New function.
28736
28737 * keymap.h (describe_char_table): Extern it.
28738
28739 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28740 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28741 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28742 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28743 Delete.
28744 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28745 structure.
28746 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28747 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28748 (CHARTAB_SIZE_BITS_3): New macros.
28749 (chartab_size): Extern it.
28750 (struct Lisp_Char_Table): Re-design.
28751 (struct Lisp_Sub_Char_Table): New structure.
28752 (HASH_KEY, HASH_VALUE): Move from fns.c.
28753 (CHARACTERBITS): Define as 22.
28754 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28755 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28756 (GC_SUB_CHAR_TABLE_P): New macro.
28757 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
28758 (code_convert_string_norecord): Delete extern.
28759 (init_character_once, syms_of_character, init_charset)
28760 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28761
28762 * lread.c: Include "character.h".
28763 (read_multibyte): New arg NBYTES.
28764 (read_escape): Change the meaning of returned *BYTEREP.
28765 (to_multibyte): Delete.
28766 (read1): Adjust the handling of char table and string.
28767
28768 * print.c: Include "character.h" instead of "charset.h".
28769 (print_string): Convert 8-bit raw bytes to octal form by
28770 string_escape_byte8.
28771 (print_object): Adjust for the new multibyte form. Print 8-bit
28772 raw bytes always in octal form. Handle sub char table correctly.
28773
28774 * process.c: Include "character.h" instead of "charset.h".
28775 (read_process_output, send_process): Adjust for the new
28776 code-conversion API.
28777
28778 * puresize.h (BASE_PURESIZE): Increase.
28779
28780 * regex.c: Include "character.h" instead of "charset.h".
28781 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28782 (regex_compile): Accept a range whose starting and ending
28783 character have different leading bytes.
28784 (analyse_first): Adjust for the above change.
28785
28786 * search.c: Include "character.h" instead of "charset.h".
28787 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28788 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28789
28790 * syntax.c: Include "character.h" instead of "charset.h".
28791 (syntax_parent_lookup): Delete.
28792 (Fmodify_syntax_entry): Accept a cons as CHAR.
28793 (skip_chars): Adjust for the new multibyte form.
28794 (init_syntax_once): Call char_table_set_range instead of directly
28795 accessing the structure of a char table.
28796
28797 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28798 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28799 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28800 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28801
28802 * term.c: Include "buffer.h" and "character.h".
28803 (encode_terminal_code, write_glyphs): Adjust for the new
28804 code-conversion API.
28805 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28806
28807 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28808
28809 * xdisp.c: Include "character.h".
28810 (get_next_display_element): Adjust for the new multibyte form.
28811 (disp_char_vector): Adjust for the new char table structure.
28812 (decode_mode_spec_coding): Adjust for the new structure of
28813 coding system.
28814 (decode_mode_spec): Adjust for the new code-conversion API.
28815
28816 * xfaces.c: Include "character.h" instead of "charset.h".
28817 (load_face_font): Adjust for the change of choose_face_font and
28818 FS_LOAD_FONT.
28819 (generate_ascii_font): New function.
28820 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28821 (set_font_frame_param): Adjust for the change of choose_face_font.
28822 (free_realized_face): Make it public.
28823 (free_realized_faces_for_fontset): Rename from
28824 free_realized_multibyte_face. Free also faces realized for ASCII.
28825 (choose_face_font): Change arguments. Adjust for the change of
28826 fontset_font_pattern and FS_LOAD_FONT.
28827
28828 * xfns.c: Include "character.h".
28829 (x_encode_text): Adjust for the new code-conversion API.
28830
28831 * xselect.c: Don't include "charset.h".
28832 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28833
28834 * xterm.c: Include "character.h".
28835 (x_encode_char): New argument CHARSET. Change caller.
28836 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28837 Call ENCODE_CHAR instead of SPLIT_CHAR.
28838 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28839 CHAR_WIDTH instead of CHARSET_WIDTH.
28840 (XTread_socket): Adjust for the new code-conversion API.
28841 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28842 (x_load_font): Adjust for the change of struct font.
28843
28844 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28845
28846 * xfaces.c (face_at_buffer_position): Remove unused vars.
28847
28848 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28849
28850 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28851 Fix overflow checking.
28852
28853 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28854
28855 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28856 Cancel previous change.
28857
28858 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28859
28860 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28861 ccl->eight_bit_control. Fix check for buffer overflow.
28862 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28863 (ccl_driver): Initialize extra_bytes to 0.
28864
28865 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28866
28867 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28868 return it ORed with ctrl_modifier.
28869
28870 2008-01-29 Miles Bader <miles@gnu.org>
28871
28872 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28873
28874 2008-01-28 Jason Rumney <jasonr@gnu.org>
28875
28876 * w32.c (stat): Don't double check for networked drive.
28877
28878 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28879
28880 * window.c (run_window_configuration_change_hook): New function.
28881 Code extracted from set_window_buffer. Set the selected frame.
28882 (set_window_buffer): Use it.
28883 * window.h (run_window_configuration_change_hook): Declare.
28884 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28885
28886 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28887
28888 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28889
28890 * Makefile.in: Remove references to unused macros.
28891
28892 2008-01-26 Eli Zaretskii <eliz@gnu.org>
28893
28894 * w32.c (g_b_init_get_sid_sub_authority)
28895 (g_b_init_get_sid_sub_authority_count): New static variables.
28896 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28897 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28898 (init_user_info): Use them to retrieve uid and gid.
28899 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28900 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28901 st_uid and st_gid of the file.
28902
28903 2008-01-26 Jason Rumney <jasonr@gnu.org>
28904
28905 * w32.c (logon_network_drive): New function.
28906 (stat): Use it.
28907
28908 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
28909
28910 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28911 invisible text covered with an ellipsis.
28912
28913 2008-01-25 Richard Stallman <rms@gnu.org>
28914
28915 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28916 jump back to beginning. Move some other initializations after that.
28917 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28918 New variables.
28919 (syms_of_xdisp): Init them.
28920
28921 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28922
28923 * buffer.c (reset_buffer_local_variables):
28924 Implement `permanent-local-hook'.
28925 (Qpermanent_local_hook): New variable.
28926 (syms_of_buffer): Init and staticpro it.
28927
28928 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
28929
28930 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28931
28932 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28933
28934 * fns.c (Fclrhash): Return TABLE.
28935
28936 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28937
28938 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28939 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28940 is set even without positional changes.
28941 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28942
28943 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28944
28945 2008-01-23 Jason Rumney <jasonr@gnu.org>
28946
28947 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28948
28949 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28950 the unicode range available in MULE by locale-coding-system.
28951 Improve dbcs lead byte detection. Set event timestamp and modifiers
28952 earlier.
28953
28954 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28955
28956 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28957 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28958 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28959 when used on child processes.
28960
28961 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
28962
28963 * dbusbind.c (Fdbus_method_return_internal): Rename from
28964 Fdbus_method_return.
28965 (Fdbus_unregister_object): Move to dbus.el.
28966 (Fdbus_call_method, Fdbus_method_return_internal)
28967 (Fdbus_send_signal): Improve debug messages.
28968
28969 2008-01-20 Martin Rudalics <rudalics@gmx.at>
28970
28971 * undo.c (undo_inhibit_record_point): New variable.
28972 (syms_of_undo): Initialize it.
28973 (record_point): Don't record point when undo_inhibit_record_point
28974 is set.
28975
28976 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28977
28978 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28979
28980 * xdisp.c (Qauto_hscroll_mode): New var.
28981 (syms_of_xdisp): Initialize it.
28982 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28983 window's buffer.
28984 (hscroll_windows): Don't check automatic_hscrolling_p here.
28985
28986 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28987 vscroll if we're setting window-buffer to the value it already has.
28988
28989 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28990
28991 * m/intel386.h: Remove references to XENIX.
28992
28993 2008-01-17 Andreas Schwab <schwab@suse.de>
28994
28995 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28996 instead of HAVE_X86_64_LIB64_DIR.
28997 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28998
28999 2008-01-17 Glenn Morris <rgm@gnu.org>
29000
29001 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
29002 to HAVE_X86_64_LIB64_DIR.
29003
29004 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
29005
29006 * s/irix3-3.h:
29007 * s/irix4-0.h:
29008 * s/386-ix.h:
29009 * s/domain.h:
29010 * s/hpux9-x11r4.h:
29011 * s/hpux9shxr4.h: Remove files for systems no longer supported.
29012
29013 * sysdep.c: Remove code containing references to symbols defined
29014 by unsupported systems.
29015
29016 2008-01-16 Glenn Morris <rgm@gnu.org>
29017
29018 * coding.c (select-safe-coding-system-function): Doc fix.
29019
29020 2008-01-15 Glenn Morris <rgm@gnu.org>
29021
29022 * config.in: Revert 2008-01-13 change: this is a generated file.
29023
29024 2008-01-13 Tom Tromey <tromey@redhat.com>
29025
29026 * lisp.h: Fix typo.
29027
29028 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29029
29030 * m/sequent-ptx.h:
29031 * m/sequent.h:
29032 * s/ptx.h:
29033 * s/ptx4-2.h:
29034 * s/ptx4.h: Remove files for systems no longer supported.
29035
29036 * callproc.c (Fcall_process): Fix previous change.
29037
29038 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29039
29040 * unexsunos4.c: Remove file, system not supported anymore.
29041
29042 * m/mips.h:
29043 * m/intel386.h:
29044 * callproc.c:
29045 * config.in:
29046 * ecrt0.c:
29047 * emacs.c:
29048 * fileio.c:
29049 * frame.c:
29050 * getpagesize.h:
29051 * keyboard.c:
29052 * lread.c:
29053 * process.c:
29054 * puresize.h:
29055 * sysdep.c:
29056 * systty.h:
29057 * syswait.h:
29058 * unexec.c:
29059 * xdisp.c:
29060 * alloc.c: Remove code containing references to symbols defined by
29061 unsupported systems.
29062
29063 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
29064
29065 * coding.c (detect_coding_mask): Fix previous change.
29066
29067 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
29068
29069 * coding.c (detect_coding_iso2022): New arg
29070 latin_extra_code_state. Allow Latin extra codes only
29071 when *latin_extra_code_state is nonzero.
29072 (detect_coding_mask): If there is a NULL byte, detect the encoding
29073 as UTF-16 or binary. If Latin extra codes exist, detect the
29074 encoding as ISO-2022 only when there's no other proper encoding is
29075 found.
29076
29077 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29078
29079 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
29080 #ifdef MAC_OS.
29081
29082 2008-01-08 Richard Stallman <rms@gnu.org>
29083
29084 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
29085
29086 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
29087
29088 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29089 menu bar in parentheses.
29090
29091 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29092
29093 * m/7300.h:
29094 * m/acorn.h:
29095 * m/alliant-2800.h:
29096 * m/alliant.h:
29097 * m/alliant1.h:
29098 * m/alliant4.h:
29099 * m/altos.h:
29100 * m/amdahl.h:
29101 * m/apollo.h:
29102 * m/att3b.h:
29103 * m/aviion-intel.h:
29104 * m/aviion.h:
29105 * m/celerity.h:
29106 * m/clipper.h:
29107 * m/cnvrgnt.h:
29108 * m/convex.h:
29109 * m/cydra5.h:
29110 * m/delta88k.h:
29111 * m/dpx2.h:
29112 * m/dual.h:
29113 * m/elxsi.h:
29114 * m/f301.h:
29115 * m/gould-np1.h:
29116 * m/gould.h:
29117 * m/i860.h:
29118 * m/ibmps2-aix.h:
29119 * m/ibmrt-aix.h:
29120 * m/ibmrt.h:
29121 * m/irist.h:
29122 * m/is386.h:
29123 * m/isi-ov.h:
29124 * m/mega68.h:
29125 * m/mg1.h:
29126 * m/news-r6.h:
29127 * m/news-risc.h:
29128 * m/news.h:
29129 * m/nh3000.h:
29130 * m/nh4000.h:
29131 * m/ns16000.h:
29132 * m/ns32000.h:
29133 * m/nu.h:
29134 * m/orion.h:
29135 * m/orion105.h:
29136 * m/paragon.h:
29137 * m/pfa50.h:
29138 * m/plexus.h:
29139 * m/pyramid.h:
29140 * m/pyrmips.h:
29141 * m/sh3el.h:
29142 * m/sps7.h:
29143 * m/sr2k.h:
29144 * m/stride.h:
29145 * m/sun1.h:
29146 * m/sun2.h:
29147 * m/sun3-68881.h:
29148 * m/sun3-fpa.h:
29149 * m/sun3-soft.h:
29150 * m/sun3.h:
29151 * m/sun386.h:
29152 * m/symmetry.h:
29153 * m/tad68k.h:
29154 * m/tahoe.h:
29155 * m/targon31.h:
29156 * m/tek4300.h:
29157 * m/tekxd88.h:
29158 * m/tower32.h:
29159 * m/tower32v3.h:
29160 * m/ustation.h:
29161 * m/wicat.h:
29162 * m/xps100.h:
29163 * s/cxux.h:
29164 * s/cxux7.h:
29165 * s/dgux.h:
29166 * s/dgux4.h:
29167 * s/dgux5-4-3.h:
29168 * s/dgux5-4r2.h:
29169 * s/esix.h:
29170 * s/esix5r4.h:
29171 * s/hiuxmpp.h:
29172 * s/hiuxwe2.h:
29173 * s/iris3-5.h:
29174 * s/iris3-6.h:
29175 * s/isc2-2.h:
29176 * s/isc3-0.h:
29177 * s/isc4-0.h:
29178 * s/isc4-1.h:
29179 * s/newsos5.h:
29180 * s/newsos6.h:
29181 * s/osf1.h:
29182 * s/osf5-0.h:
29183 * s/riscix1-1.h:
29184 * s/riscix12.h:
29185 * s/sco4.h:
29186 * s/sco5.h:
29187 * s/sunos4-0.h:
29188 * s/sunos4-1.h:
29189 * s/sunos413.h:
29190 * s/sunos4shr.h:
29191 * s/umax.h:
29192 * s/unipl5-2.h:
29193 * s/xenix.h:
29194 * cxux-crt0.s:
29195 * unexapollo.c:
29196 * unexconvex.c:
29197 * unexenix.c:
29198 * unexsni.c: Remove files for systems no longer supported.
29199
29200 * m/intel386.h: Remove references to unsupported systems.
29201
29202 * w32.c (get_emacs_configuration): Remove reference to i860.
29203
29204 * sysdep.c: Remove dead code.
29205
29206 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29207
29208 * s/rtu.h:
29209 * m/masscomp.h: Remove files. Platform is obsolete.
29210
29211 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
29212
29213 * dbusbind.c (Fdbus_method_return): New function.
29214 (xd_read_message): Add the serial number to the event.
29215 (Fdbus_register_method): Activate the function.
29216
29217 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29218
29219 * keyboard.c (read_key_sequence): Fix typo.
29220
29221 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
29222
29223 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29224 (xd_signature, xd_append_arg): Handle element type detection for
29225 empty arrays.
29226 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29227 SDATA () calls; this must be solved more general.
29228 (Fdbus_register_signal): Use SBYTES instead of strlen.
29229
29230 2008-01-03 Magnus Henoch <magnus@zemdatav>
29231
29232 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29233 unsigned int for byte values (necessary for big-endian platform).
29234 (Fdbus_call_method): Handle the case of no returned arguments.
29235
29236 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29237
29238 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29239
29240 2007-12-31 Magnus Henoch <mange@freemail.hu>
29241
29242 * dbusbind.c (xd_signature): Signature of variant is just "v".
29243
29244 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
29245
29246 * dbusbind.c: Fix several errors and compiler warnings.
29247 Reported by Tom Tromey <tromey@redhat.com>.
29248 (XD_ERROR, XD_DEBUG_MESSAGE)
29249 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29250 (xd_append_arg): Part for basic D-Bus types rewritten.
29251 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29252 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29253 appropriate.
29254 (xd_read_message): Return Qnil. Don't signal an error; it is not
29255 useful during event reading.
29256 (Fdbus_register_signal): Signal an error if the check for
29257 FUNCTIONP fails.
29258 (Fdbus_register_method): New function. The implementation is not
29259 complete, the call of the function signals an error therefore.
29260 (Fdbus_unregister_object): New function, renamed from
29261 Fdbus_unregister_signal. The initial check signals an error, if
29262 the object is not well formed.
29263
29264 2007-12-30 Richard Stallman <rms@gnu.org>
29265
29266 * textprop.c (get_char_property_and_overlay):
29267 Signal error if POSITION is out of range in a buffer.
29268
29269 2007-12-29 Martin Rudalics <rudalics@gmx.at>
29270
29271 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29272 because the original parameters are in pure storage now.
29273
29274 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29275
29276 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29277
29278 2007-12-22 Eli Zaretskii <eliz@gnu.org>
29279
29280 * callint.c (syms_of_callint) <command-history>: Add reference to
29281 history-length in the doc string.
29282
29283 2007-12-17 Jason Rumney <jasonr@gnu.org>
29284
29285 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29286 before passing as wParam.
29287
29288 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
29289
29290 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29291 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29292 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29293 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29294 as number.
29295 (Fdbus_call_method): Fix docstring.
29296
29297 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
29298
29299 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29300 New macros.
29301 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29302 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29303 Simplify.
29304 (xd_signature): New function.
29305 (xd_append_arg): Compute also signatures. Major rewrite.
29306 (xd_retrieve_arg): Make debug messages friendly.
29307 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29308 Check for signatures of arguments.
29309
29310 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
29311
29312 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29313 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29314 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29315 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29316 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29317 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29318 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29319 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29320 (xd_retrieve_value): Remove. Functionality included in ...
29321 (xd_append_arg): New function.
29322 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29323
29324 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
29325
29326 * dbusbind.c (top): Include <stdio.h>.
29327 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29328 dbus_message_new_method_call and dbus_message_new_signal.
29329 (Fdbus_register_signal): Rename unique_name to uname.
29330 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29331 non-existing unique name. Fix typos in matching rule. Return an
29332 object which is useful in Fdbus_unregister_signal.
29333 (Fdbus_unregister_signal): Reimplementation, in order to remove
29334 only the corresponding entry.
29335 (Vdbus_registered_functions_table): Change the order of entries.
29336 Apply these changes in xd_read_message and Fdbus_register_signal.
29337
29338 2007-12-16 Andreas Schwab <schwab@suse.de>
29339
29340 * fileio.c (Finsert_file_contents): Fix overflow check to not
29341 depend on undefined integer overflow.
29342
29343 2007-12-14 Jason Rumney <jasonr@gnu.org>
29344
29345 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29346 for characters above 127.
29347
29348 2007-12-13 Jason Rumney <jasonr@gnu.org>
29349
29350 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29351 before dereferencing array.
29352 (lookup_vk_code): Remove zero comparison.
29353
29354 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
29355
29356 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29357 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29358 Use `unsigned int' instead of `uint'.
29359 (xd_read_message, Fdbus_register_signal): Split expressions into
29360 multiple lines before operators "&&" and "||", according to the
29361 GNU Coding Standards.
29362
29363 2007-12-14 Eli Zaretskii <eliz@gnu.org>
29364
29365 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29366
29367 2007-12-12 Juri Linkov <juri@jurta.org>
29368
29369 * buffer.c (Frename_buffer): In interactive spec replace
29370 `read-buffer' with `read-string' that uses `buffer-name-history'
29371 as history, and the current buffer's name as default.
29372
29373 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29374
29375 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29376 manipulating the backtrace manually.
29377 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29378 (struct backtrace, backtrace_list): Remove.
29379 (command_loop_1): Remove dead var `no_direct'.
29380
29381 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29382 preserve non-built-in buffer-local variables.
29383 (Fkill_all_local_variables): Don't re-create&re-set permanent
29384 buffer-local variables.
29385
29386 2007-12-09 Juri Linkov <juri@jurta.org>
29387
29388 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29389 Lisp code that uses `read-buffer' with current buffer as default.
29390
29391 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
29392
29393 * dbusbind.c (xd_read_message): Generate an event for every
29394 registered handler. There might be several handlers registered
29395 for the same signal.
29396 (Fdbus_register_signal): Don't overwrite a registration for the
29397 same signal. Add a new registration if handlers are different.
29398 (Vdbus_registered_functions_table): Rework doc string.
29399
29400 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
29401
29402 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29403 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29404 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29405 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29406 Unify argument lists.
29407 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29408 arguments and hash table keys. Use unique name for service.
29409 (Fdbus_unregister_signal): Remove checks.
29410 (Vdbus_registered_functions_table): Fix doc string.
29411
29412 2007-12-05 Magnus Henoch <mange@freemail.hu>
29413
29414 * process.c (make_process): Initialize pty_flag to 0.
29415
29416 2007-12-05 Jason Rumney <jasonr@gnu.org>
29417
29418 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29419 specified XBMs.
29420
29421 2007-12-05 Richard Stallman <rms@gnu.org>
29422
29423 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29424
29425 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29426
29427 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29428 New variable.
29429 (mac_try_close_socket) [MAC_OSX]: New function.
29430 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29431 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29432
29433 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29434 Use mac_try_close_socket.
29435
29436 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29437
29438 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29439 reloc_base.
29440 (copy_dysymtab): Compute relocation base here.
29441 (rebase_reloc_address) [__ppc64__]: New function.
29442 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29443 changed.
29444
29445 2007-12-05 Jason Rumney <jasonr@gnu.org>
29446
29447 * w32proc.c (sys_spawnve): Quote args with wildcards.
29448
29449 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29450
29451 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29452 __objc_* sections.
29453 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29454
29455 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
29456
29457 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29458 Move check for Vdbus_registered_functions_table to
29459 xd_read_queued_messages.
29460 (xd_read_queued_messages): Protect xd_read_message calls by
29461 internal_condition_case_1.
29462
29463 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
29464
29465 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29466 Qdbus_system_bus and Qdbus_session_bus, respectively.
29467 (Vdbus_intern_symbols): Remove.
29468 (Vdbus_registered_functions_table): New hash table.
29469 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29470 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29471 Rewrite in order to manage registered functions by hash table
29472 Vdbus_registered_functions_table.
29473
29474 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29475
29476 * xterm.c: Update URL to Window Manager Specification in comment.
29477
29478 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
29479
29480 * config.in (HAVE_DBUS): Add.
29481
29482 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29483 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29484 (obj): Add $(DBUS_OBJ).
29485 (LIBES): Add $(DBUS_LIBS).
29486 (dbusbind.o): New target.
29487
29488 * dbusbind.c: New file.
29489
29490 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29491
29492 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29493 (Qdbus_event): New Lisp symbol.
29494 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29495 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
29496 (keys_of_keyboard): Define dbus-event.
29497
29498 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29499
29500 2007-12-01 Richard Stallman <rms@gnu.org>
29501
29502 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29503
29504 2007-11-30 Jason Rumney <jasonr@gnu.org>
29505
29506 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29507 (w32con_reset_terminal_modes): Clear screen buffer.
29508 (w32_face_attributes): Don't use color indexes that are out of range.
29509 Only reverse the default colors.
29510
29511 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29512 WINDOWSNT.
29513
29514 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29515
29516 2007-11-29 Jason Rumney <jasonr@gnu.org>
29517
29518 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29519 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29520 if the terminal colors are initialized.
29521 (unspecified_fg, unspecified_bg): Remove unused declarations.
29522
29523 2007-11-29 Andreas Schwab <schwab@suse.de>
29524
29525 * keyboard.c (apply_modifiers): Fix typo.
29526
29527 2007-11-29 Richard Stallman <rms@gnu.org>
29528
29529 * keymap.c (Fcurrent_local_map): Doc fix.
29530
29531 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29532
29533 * s/gnu-kfreebsd.h: New file.
29534
29535 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29536
29537 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29538 Don't cast redundantly.
29539
29540 * keyboard.c (KEY_TO_CHAR): New macro.
29541 (parse_modifiers, apply_modifiers): Accept integer arguments.
29542 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29543 for chars and symbol keys.
29544 After doing such remapping, apply function-key-map again.
29545
29546 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29547
29548 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29549 compiled anymore.
29550
29551 2007-11-26 Andreas Schwab <schwab@suse.de>
29552
29553 * process.c (list_processes_1): Fix indentation level of the
29554 command column.
29555
29556 2007-11-23 Andreas Schwab <schwab@suse.de>
29557
29558 * editfns.c (Fformat): Handle %c specially since it requires the
29559 argument to be of type int.
29560
29561 2007-11-23 Markus Triska <markus.triska@gmx.at>
29562
29563 * emacs.c (main): Call init_editfns before init_process, since
29564 init_process sets Vprocess_connection_type depending on OS release.
29565
29566 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29567
29568 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29569 (find_symbol_value): Use do_symval_forwarding.
29570
29571 * data.c (set_internal): Set the value in the `cons-cell' (for
29572 Buffer_Local_values) not only for frame-local variables.
29573
29574 2007-11-22 Andreas Schwab <schwab@suse.de>
29575
29576 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29577 values to sprintf.
29578 * keymap.c (Fsingle_key_description): Likewise.
29579 * print.c (print_object): Likewise.
29580
29581 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29582
29583 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29584 file for image is nil.
29585
29586 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29587
29588 * term.c: Include stdarg.h.
29589 (fatal): Implement using varargs.
29590 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29591
29592 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29593
29594 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29595 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29596 Update call to buffer_slot_type_mismatch.
29597 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29598 (buffer_slot_type_mismatch): Update.
29599 * buffer.c (buffer_local_types): Remove.
29600 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29601 (defvar_per_buffer): Set the type in the buffer_objfwd.
29602
29603 2007-11-21 Jason Rumney <jasonr@gnu.org>
29604
29605 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29606 CreateFileMapping returns NULL on failure.
29607
29608 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29609
29610 * search.c (Fset_match_data): Remove the `evaporate' feature.
29611 (unwind_set_match_data): Don't use the `evaporate' feature.
29612
29613 2007-11-21 Jason Rumney <jasonr@gnu.org>
29614
29615 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29616
29617 * w32console.c (w32con_write_glyphs): Remove unused variables.
29618
29619 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29620
29621 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29622
29623 * s/darwin.h (MULTI_KBOARD): Remove.
29624
29625 * macfns.c (x_create_tip_frame, Fx_create_frame)
29626 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29627
29628 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29629
29630 * buffer.c (Fbuffer_local_value): Remove redundant test.
29631 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29632 than in `current-buffer' to match the comment.
29633 Do the swap using swap_in_global_binding.
29634
29635 * data.c (store_symval_forwarding, set_internal):
29636 * eval.c (specbind): Remove dead code.
29637
29638 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29639 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29640 Since we do not want to see internal Lisp_*fwd objects here.
29641
29642 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29643
29644 * sysdep.c (init_system_name): Use getaddrinfo if available.
29645
29646 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29647 (x_scroll_bar_note_movement): start, end, with, height in struct
29648 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29649
29650 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29651
29652 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29653
29654 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29655
29656 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29657 This undoes Richard's change of 14-Oct-2002.
29658
29659 * alloc.c (allocate_other_vector):
29660 * lisp.h (allocate_other_vector): Remove.
29661
29662 * window.c (struct save_window_data): Move non-lisp data to the end
29663 and make it `int' rather than Lisp_Object.
29664 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29665 Done wrap/unwrap integer values.
29666 (Fset_window_configuration, compare_window_configurations):
29667 Update use of fields to their new types.
29668
29669 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29670 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29671 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29672 (SET_SCROLL_BAR_X_WINDOW): Remove.
29673 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29674 Access the new x_window field directly.
29675 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29676 Don't wrap/unwrap integers into Lisp_Objects.
29677 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29678 (x_scroll_bar_report_motion):
29679 Don't wrap/unwrap integers into Lisp_Objects.
29680 (x_term_init): Use SDATA.
29681 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29682 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29683 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29684 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29685 * xfns.c (x_set_background_color):
29686 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29687 Access the new x_window field directly.
29688
29689 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29690 (allocate_pseudovector): Make non-static.
29691
29692 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29693 (allocate_pseudovector): Declare.
29694 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29695
29696 2007-11-15 Andreas Schwab <schwab@suse.de>
29697
29698 * editfns.c (Fformat): Correctly format EMACS_INT values.
29699 Also take precision into account when formatting an integer.
29700
29701 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29702
29703 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29704
29705 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29706 (syms_of_keyboard): Defsubr it.
29707
29708 * data.c (swap_in_global_binding): Fix longstanding bug where
29709 store_symval_forwarding was not called with the right second argument,
29710 thus causing objfwd-ing from being dropped.
29711
29712 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29713
29714 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29715 (Fx_display_pixel_height, Fx_display_planes)
29716 (Fx_display_color_cells, Fx_server_max_request_size)
29717 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29718 (Fx_display_visual_class, Fx_display_save_under):
29719 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29720 (Fx_display_pixel_height, Fx_display_planes)
29721 (Fx_display_color_cells, Fx_server_max_request_size)
29722 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29723 (Fx_display_mm_height, Fx_display_mm_width)
29724 (Fx_display_backing_store, Fx_display_visual_class)
29725 (Fw32_select_font, Fx_display_save_under):
29726 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29727 (Fx_display_pixel_height, Fx_display_planes)
29728 (Fx_display_color_cells, Fx_server_max_request_size)
29729 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29730 (Fx_display_save_under): Fix typos in docstrings.
29731
29732 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
29733
29734 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29735 corresponding to deleted entries; they are an implementation detail.
29736 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29737 Remove variables.
29738 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29739 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29740 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29741 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29742 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29743 (Fw32_define_rgb_color, Fw32_load_color_file)
29744 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29745 Fix typos in docstrings.
29746 (Fx_server_version): Reflow docstring.
29747 (Fw32_shell_execute): Doc fixes.
29748
29749 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
29750
29751 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29752 if w32_parse_hot_key returned nil.
29753
29754 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29755
29756 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29757
29758 2007-11-09 Jason Rumney <jasonr@gnu.org>
29759
29760 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29761
29762 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29763
29764 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29765 Remove W32_SCROLL_BAR_CLICK_EVENT.
29766
29767 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29768 Add MULTIMEDIA_KEY_EVENT.
29769
29770 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29771 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29772 (make_lispy_event) [WINDOWSNT]: Use it to translate
29773 MULTIMEDIA_KEY_EVENT.
29774
29775 * w32term.h (WM_APPCOMMAND): Define if not already.
29776 (GET_APPCOMMAND_LPARAM): Likewise.
29777
29778 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29779 WM_APPCOMMAND.
29780
29781 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29782 (syms_of_w32fns): Export and initialize it.
29783 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29784
29785 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
29786
29787 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29788 twice.
29789
29790 * xdisp.c (handle_face_prop): Fix last change.
29791
29792 2007-11-09 Richard Stallman <rms@gnu.org>
29793
29794 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29795 not just for after-strings and before-strings.
29796 Call face_for_overlay_string and pass the overlay to it.
29797 (handle_display_prop): Determine whether property came from an overlay.
29798 Pass OVERLAY arg to handle_single_display_spec.
29799 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29800 (load_overlay_strings): Fill in it->string_overlays.
29801 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29802
29803 * xfaces.c (face_for_overlay_string): Function renamed from
29804 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29805
29806 * dispextern.h (struct it): New elt string_overlays.
29807 New elt from_overlay, also in stack.
29808 Rearrange a few elements.
29809 (face_for_overlay_string): Decl renamed from
29810 face_at_buffer_position_no_overlays, and add argument.
29811
29812 2007-11-09 Richard Stallman <rms@gnu.org>
29813
29814 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29815 to get the base face for an overlay string.
29816
29817 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29818
29819 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29820
29821 * xdisp.c (handle_stop): Move some code out of loop.
29822
29823 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29824
29825 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29826 Fix conversion from Lisp object to ATSUFontID.
29827
29828 2007-11-09 Jason Rumney <jasonr@gnu.org>
29829
29830 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29831
29832 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29833
29834 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29835 Don't assume regions are aligned to page boundary.
29836 (print_load_command_name): Add LC_UUID if defined.
29837
29838 2007-11-09 Richard Stallman <rms@gnu.org>
29839
29840 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29841
29842 2007-11-07 Jason Rumney <jasonr@gnu.org>
29843
29844 * s/windows95.h: Remove.
29845
29846 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29847
29848 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29849 abort with a message on unhandled store_type values.
29850
29851 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29852
29853 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29854 Remove HAVE_X11R5 and HAVE_X11R4.
29855
29856 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29857
29858 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29859
29860 2007-11-01 Johan Bockgård <bojohan@gnu.org>
29861
29862 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29863 Don't set s->stippled_p here, since it has already been set by
29864 x_set_glyph_string_gc from x_draw_glyph_string.
29865
29866 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29867
29868 * sunfns.c: Remove file.
29869
29870 * m/sun386.h:
29871 * m/sun2.h:
29872 * m/sparc.h: Remove Sun windows code.
29873
29874 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29875
29876 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29877 (init_keyboard): Set current_kboard's window-system to nil.
29878 (tty_read_avail_input): Typo.
29879 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29880
29881 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29882
29883 * s/usg5-4.h:
29884 * s/usg5-3.h:
29885 * s/ptx.h:
29886 * m/is386.h:
29887 * m/ibmps2-aix.h:
29888 * Makefile.in: Remove all mentions of X10.
29889
29890 * dispnew.c (syms_of_display): Don't mention version 10.
29891
29892 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
29893
29894 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29895 ($(BLD)/abbrev.$(O)): Remove.
29896
29897 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29898
29899 Rewrite abbrev.c in Elisp.
29900 * image.c (Qcount): Don't declare as extern.
29901 (syms_of_image): Initialize and staticpro `Qcount'.
29902 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29903 * emacs.c (main): Don't call syms_of_abbrev.
29904 * Makefile.in (obj): Remove abbrev.o.
29905 (abbrev.o): Remove.
29906 * abbrev.c: Remove.
29907
29908 2007-10-26 Martin Rudalics <rudalics@gmx.at>
29909
29910 * window.c (window_min_size_2): Don't count header-line.
29911
29912 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29913
29914 * frame.h (struct frame): Move all bit fields after the first bit
29915 field to take advantage of the available space. Group all the
29916 chars together to reduce wasted space due to padding.
29917
29918 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
29919
29920 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29921
29922 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29923 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29924 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29925 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29926 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29927 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29928 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29929 (last_marked, mark_object_loop_halt): Make static.
29930
29931 * frame.c (syms_of_frame) <delete-frame-functions>:
29932 Fix typo in docstring.
29933
29934 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
29935
29936 * w32.c (init_environment): Fix tiny memory leak.
29937 (w32_get_resource): Remove unused variable `ok'.
29938
29939 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29940
29941 Make `window-system' into a keyboard-local variable (rather than
29942 frame-local as done originally by multi-tty).
29943
29944 * keyboard.h (struct kboard): Add Vwindow_system.
29945 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29946 (mark_kboards): Mark Vwindow_system.
29947
29948 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29949 (init_display): Don't set the obsolete `window-system' frame-param.
29950
29951 * xterm.c (x_term_init):
29952 * w32term.c (w32_create_terminal):
29953 * term.c (init_tty): Set Vwindow_system.
29954 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29955 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29956
29957 * xfns.c (Fx_create_frame, x_create_tip_frame):
29958 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29959 * macfns.c (Fx_create_frame):
29960 Don't set the obsolete `window-system' frame-param.
29961
29962 * frame.h (Qwindow_system): Remove.
29963 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29964 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29965
29966 2007-10-24 Richard Stallman <rms@gnu.org>
29967
29968 * frame.c (x_figure_window_size): For fullscreen case,
29969 set USPosition | PPosition without clobbering rest of window_prompting.
29970
29971 * keyboard.c (Fcurrent_idle_time): Doc fix.
29972
29973 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29974
29975 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29976
29977 * process.c (unwind_request_sigio): Only define if __ultrix__.
29978
29979 * callproc.c (child_setup): Remove spurious *.
29980
29981 * lisp.h (Fget_text_property): Declare.
29982 (have_menus_p): Declare it here rather than in sys-dep header files.
29983 * macterm.h (have_menus_p):
29984 * msdos.h (have_menus_p):
29985 * xterm.h (have_menus_p): Remove.
29986
29987 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29988 (Fmake_variable_frame_local): Just check the variable's const-ness
29989 rather than checking nil or t.
29990
29991 2007-10-22 Jason Rumney <jasonr@gnu.org>
29992
29993 * w32fns.c: Include math.h.
29994 (w32_abort): Declaration moved to nt/config.nt.
29995
29996 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29997 (abort): Redefinition moved to nt/config.nt.
29998
29999 * m/windowsnt.h: Remove.
30000
30001 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
30002
30003 * emacs.c (Fdump_emacs): Fix typo in message.
30004 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
30005 <installation-directory>: Reflow docstring.
30006
30007 2007-10-22 Juri Linkov <juri@jurta.org>
30008
30009 * minibuf.c: Allow minibuffer default to be a list of default values.
30010 With empty input use the first element of this list as returned default.
30011 (string_to_object)
30012 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
30013 (read_minibuf): If defalt is cons, set histstring to its car.
30014 (Fread_string): If default_value is cons, set val to its car.
30015 (Fread_buffer): If def is cons, use its car.
30016 (Fcompleting_read): If defalt is cons, set val to its car.
30017
30018 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
30019
30020 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
30021
30022 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
30023
30024 * doc.c (Fdocumentation): Check for advice in all cases.
30025
30026 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
30027
30028 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
30029
30030 2007-10-19 Richard Stallman <rms@gnu.org>
30031
30032 * doc.c (Fdocumentation): Check for and handle an advised function.
30033
30034 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
30035
30036 * process.c (Fset_process_filter): Doc fix.
30037
30038 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
30039
30040 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
30041 which caused key-translation-map to applied repeatedly (thus breaking
30042 double-mode).
30043
30044 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30045
30046 * xselect.c (x_own_selection, x_handle_selection_clear)
30047 (x_clear_frame_selections):
30048 * w32menu.c (list_of_panes, list_of_items):
30049 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
30050 * textprop.c (validate_plist, interval_has_all_properties)
30051 (interval_has_some_properties, interval_has_some_properties_list)
30052 (add_properties, text_property_list):
30053 * process.c (Fget_buffer_process, list_processes_1, status_notify):
30054 * minibuf.c (Fassoc_string):
30055 * macselect.c (x_own_selection, x_clear_frame_selections)
30056 (Fx_disown_selection_internal):
30057 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
30058 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
30059
30060 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
30061
30062 * process.c: Link to libs for calling res_init() if available.
30063 (Fmake_network_process): Call res_init() before getaddrinfo or
30064 gethostbyname, if possible.
30065
30066 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30067
30068 * lread.c (read1): Set pvectype for char_tables.
30069
30070 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
30071 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
30072 Add type checks.
30073 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
30074
30075 * alloc.c (free_misc): Use XMISCTYPE.
30076 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
30077
30078 2007-10-17 Glenn Morris <rgm@gnu.org>
30079
30080 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
30081 (syms_of_minibuf): Add Qcompletion_ignore_case.
30082 * dired.c (Qcompletion_ignore_case): Change to external.
30083 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
30084 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
30085 (Fread_file_name): Use it rather than intern'ing.
30086
30087 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30088 (Fread_coding_system): Ignore case of user input.
30089
30090 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30091
30092 * xdisp.c (handle_display_prop): Ignore display specs after
30093 replacing one when string text is being replaced.
30094 (handle_single_display_spec): Pretend as if characters with display
30095 property haven't been consumed only when buffer text is being replaced.
30096
30097 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30098
30099 * xfns.c (Fx_create_frame, Fx_display_list):
30100 * window.c (window_fixed_size_p, enlarge_window)
30101 (shrink_window_lowest_first):
30102 * macterm.c (init_font_name_table):
30103 * macfns.c (Fx_create_frame, Fx_display_list):
30104 * lread.c (close_load_descs):
30105 * keyboard.c (read_char_x_menu_prompt):
30106 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30107 * coding.c (code_convert_region_unwind): Test the type of an object
30108 rather than just !NILP before extracting data from it.
30109
30110 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30111
30112 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30113 (XMISCANY): New macro.
30114 (XMISCTYPE): Use it.
30115 (struct Lisp_Misc_Any): New type.
30116 (union Lisp_Misc): Use it.
30117 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30118 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30119 (find_symbol_value, set_internal, default_value, Fset_default)
30120 (Fmake_variable_buffer_local, Fmake_local_variable)
30121 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30122 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30123 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30124 * alloc.c (allocate_buffer): Set the size and tag.
30125 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30126 Use XMISCANY.
30127 (die): Follow the GNU convention for error messages.
30128 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30129 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30130 tag any more.
30131 (set_buffer_internal_1):
30132 * frame.c (store_frame_param):
30133 * eval.c (specbind):
30134 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30135
30136 * doc.c (Fsnarf_documentation): Simplify.
30137
30138 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30139
30140 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30141 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30142
30143 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30144
30145 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30146
30147 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
30148
30149 * eval.c (do_autoload): Don't save autoloads.
30150
30151 * data.c (Ffset): Save autoload of the function being set.
30152
30153 2007-10-07 John Paul Wallington <jpw@pobox.com>
30154
30155 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30156 parameter before setting up faces.
30157
30158 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30159
30160 * ccl.c (Fregister_code_conversion_map):
30161 * keyboard.c (append_tool_bar_item): Reformat last change.
30162
30163 * lisp.h (eabs): Rename from `abs'. All callers changed.
30164
30165 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30166
30167 * buffer.c (add_overlay_mod_hooklist):
30168 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30169 * fontset.c (make_fontset):
30170 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30171 (append_tool_bar_item):
30172 * macmenu.c (grow_menu_items):
30173 * w32menu.c (grow_menu_items):
30174 * xmenu.c (grow_menu_items): Use larger_vector.
30175
30176 2007-10-13 Eli Zaretskii <eliz@gnu.org>
30177
30178 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30179 selected frame'' on MSDOS).
30180
30181 2007-10-12 Martin Rudalics <rudalics@gmx.at>
30182
30183 * frame.c (Qexplicit_name): New variable.
30184 (x_report_frame_params): Report it in parameter alist.
30185 (syms_of_frame): Intern and staticpro it.
30186
30187 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30188
30189 * macfns.c (x_create_tip_frame): Set terminal for frame.
30190
30191 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30192
30193 * frame.c (Qenvironment): Remove.
30194 (syms_of_frame) <Qenvironment>: Don't initialize.
30195 (Fdelete_frame): Don't treat the `environment' param specially.
30196 * frame.h (Qenvironment): Don't declare.
30197 * callproc.c (set_initial_environment): Don't set unused frame param.
30198
30199 * frame.c (Fframe_with_environment): Remove.
30200 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30201
30202 * lisp.h (Fframe_with_environment): Don't declare.
30203
30204 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
30205
30206 * indent.c (indent_tabs_mode, last_known_column)
30207 (last_known_column_modified): Make static.
30208 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30209
30210 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30211
30212 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30213
30214 2007-10-09 Jason Rumney <jasonr@gnu.org>
30215
30216 * w32term.c (x_set_window_size): Disable code that attempts to tell
30217 Lisp code about a size change before it actually happens.
30218
30219 2007-10-09 Richard Stallman <rms@gnu.org>
30220
30221 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30222 return HANDLED_RETURN.
30223
30224 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30225
30226 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30227 when there's an unread command event.
30228
30229 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30230 window autoselection act appropriately when leaving selected frame.
30231 (syms_of_frame): Initialize focus_follows_mouse.
30232 * frame.h (focus_follows_mouse): Extern it.
30233 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30234 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30235 * msdos.c (dos_rawgetc): Likewise.
30236 * w32term.c (w32_read_socket): Likewise.
30237 * xterm.c (handle_one_xevent): Likewise.
30238 * xdisp.c (syms_of_xdisp): In doc-string of
30239 mouse-autoselect-window mention focus-follows-mouse.
30240
30241 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30242
30243 * macterm.c (mac_load_query_font): Fix missing return value.
30244 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30245 Add BLOCK_INPUT.
30246
30247 2007-10-08 Richard Stallman <rms@gnu.org>
30248
30249 * xdisp.c (get_window_cursor_type): Implement documented behavior
30250 for cursor-in-non-selected-windows = t.
30251
30252 2007-10-08 Jason Rumney <jasonr@gnu.org>
30253
30254 * w32.c (w32_get_resource): Always close registry keys.
30255
30256 2007-10-08 Jason Rumney <jasonr@gnu.org>
30257
30258 * makefile.w32-in (LIBS): Add COMCTL32.
30259
30260 * w32fns.c (globals_of_w32fns): Init common controls.
30261
30262 2007-10-08 Richard Stallman <rms@gnu.org>
30263
30264 * image.c (our_memory_buffer): Rename from omfib_buffer.
30265
30266 2007-10-08 Richard Stallman <rms@gnu.org>
30267
30268 * buffer.c (Foverlays_at): Doc fix.
30269
30270 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30271
30272 * fns.c (Fplist_put): Preserve uneven tail data.
30273
30274 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30275
30276 * termhooks.h (enum event_kind): Remove trailing comma.
30277
30278 * frame.h (enum): Remove trailing comma.
30279
30280 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30281
30282 * w32proc.c (delete_child): Don't terminate threads of zombies.
30283
30284 2007-10-08 Martin Rudalics <rudalics@gmx.at>
30285
30286 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30287
30288 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30289 last-repeatable-command.
30290 (init_kboard): Initialize Vlast_repeatable_command.
30291 (command_loop_1): Set it to real_this_command unless that was
30292 bound to an input event.
30293 (mark_kboards): Mark it.
30294
30295 2007-10-08 Richard Stallman <rms@gnu.org>
30296
30297 * eval.c (condition-case): Doc fix.
30298
30299 2007-10-08 Masatake YAMATO <jet@gyve.org>
30300
30301 * xfaces.c (tty_supports_face_attributes_p): Fix code
30302 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30303 was copied and not edited.
30304
30305 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30306
30307 Add new `input-decode-map' keymap and use it for terminal
30308 escape sequences.
30309 * keyboard.h (struct kboard): Add Vinput_decode_map.
30310 Remove Vlocal_key_translation_map.
30311 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30312 (init_kboard): Init input-decode-map.
30313 Replace local-key-translation-map back with key-translation-map.
30314 (syms_of_keyboard): Declare input-decode-map.
30315 Remove local-key-translation-map. Update docstrings.
30316 (mark_kboards): Mark Vinput_decode_map.
30317 Don't mark Vlocal_key_translation_map.
30318 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30319 Replace local-key-translation-map back with key-translation-map.
30320 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30321 Bind in input-decode-map rather than function-key-map.
30322
30323 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30324 This was made redundant by the previous introduction of XSETPVECTYPE.
30325
30326 2007-10-09 Richard Stallman <rms@gnu.org>
30327
30328 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30329
30330 2007-09-29 Richard Stallman <rms@gnu.org>
30331
30332 * eval.c (internal_condition_case_2, internal_condition_case_1)
30333 (internal_condition_case): Reenable abort if x_catching_errors ()
30334 to see if that really happens and why.
30335
30336 2007-10-06 Andreas Schwab <schwab@suse.de>
30337
30338 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30339
30340 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
30341
30342 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30343
30344 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30345
30346 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30347
30348 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30349
30350 * window.h (struct window):
30351 * window.c (struct save_window_data, struct saved_window):
30352 * termhooks.h (struct terminal):
30353 * process.h (struct Lisp_Process):
30354 * frame.h (struct frame):
30355 * buffer.h (struct buffer):
30356 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30357 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30358 The size field of (pseudo)vectors is now unsigned.
30359 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30360
30361 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30362 Turn `count' into an integer.
30363
30364 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30365 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30366 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30367 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30368 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30369
30370 * alloc.c (allocate_pseudovector): New fun.
30371 (ALLOCATE_PSEUDOVECTOR): New macro.
30372 (allocate_window, allocate_terminal, allocate_frame)
30373 (allocate_process): Use it.
30374 (mark_vectorlike): New function.
30375 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30376 (mark_terminals): Use it.
30377 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30378 (Fmake_byte_code): Use XSETPVECTYPE.
30379
30380 * frame.c (Fframe_parameters): Minor simplification.
30381
30382 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30383
30384 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30385
30386 * buffer.c (Fget_buffer_create, init_buffer_once):
30387 * lread.c (defsubr):
30388 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30389
30390 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30391 defined differently in the m/*.h files.
30392 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30393 (XSETPVECTYPE): New macro.
30394 (XSETPSEUDOVECTOR): Use it.
30395
30396 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30397 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30398
30399 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30400 * lread.c (defvar_per_buffer):
30401 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30402
30403 * window.c (candidate_window_p): Only consider as visible frames that
30404 are on the same terminal.
30405
30406 * m/ibms390x.h (MARKBIT): Remove unused macro.
30407
30408 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
30409
30410 * lread.c (Fload): Fix typo in docstring.
30411
30412 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30413
30414 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30415 of a non-zero value can't yield zero.
30416
30417 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30418
30419 * term.c (term_clear_mouse_face, term_mouse_highlight)
30420 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30421
30422 * print.c (safe_debug_print): Use XHASH.
30423
30424 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30425 Lisp elements such as tags.
30426 (XHASH): New macro.
30427 (EQ): Use it.
30428 (SREF, SSET, STRING_COPYIN): Use SDATA.
30429 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30430
30431 * alloc.c (mark_terminal): Remove left-over declaration.
30432 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30433 (allocate_vectorlike): Remove type argument. Adjust callers.
30434 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30435 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30436
30437 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30438 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30439 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30440 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30441 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30442 Use them.
30443
30444 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30445 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30446 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30447
30448 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30449
30450 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30451 loaded by default.
30452
30453 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30454
30455 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30456 on this tty.
30457 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30458
30459 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30460 Update all users.
30461 (handle_one_term_event): Use Gpm_DrawPointer.
30462 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30463 Signal errors instead of returning nil. Always return nil.
30464 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30465 Make it a noop if gpm-mouse was not activated.
30466 (syms_of_term): Update names.
30467
30468 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30469
30470 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30471 (init_sys_modes): Check that gpm_tty is the current tty.
30472
30473 * alloc.c (allocate_terminal): Set the vector size to only count the
30474 lisp fields. Initialize those to nil.
30475 (mark_object): Don't treat terminals specially.
30476 (mark_terminal): Remove.
30477 (mark_terminals): Use mark_object instead.
30478
30479 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30480 the GC to the beginning.
30481
30482 * indent.h:
30483 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30484
30485 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30486
30487 2007-09-25 Jason Rumney <jasonr@gnu.org>
30488
30489 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30490
30491 * w32console.c (create_w32cons_output): Remove.
30492
30493 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30494
30495 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30496 (reset_sys_modes): Use reset_terminal_modes_hook.
30497
30498 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30499
30500 * eval.c (do_autoload): Don't output any message.
30501
30502 2007-09-24 Juri Linkov <juri@jurta.org>
30503
30504 * emacs.c (standard_args): Change priority of "--no-splash"
30505 from 40 to 3. Add "--no-desktop" with the same priority.
30506
30507 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30508
30509 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30510 and optimize the case where they are all 1.
30511
30512 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
30513
30514 * lisp.h (abs): Define if not defined.
30515 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30516 Don't define `abs', since it's defined in lisp.h.
30517
30518 2007-09-22 Eli Zaretskii <eliz@gnu.org>
30519
30520 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30521 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30522 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30523 (init_tty): Use DEV_TTY instead of "/dev/tty".
30524 [WINDOWSNT]: No need to protect from NAME arg being null.
30525
30526 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30527
30528 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30529 up the tty state.
30530
30531 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30532
30533 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30534 (gpm_tty): Change its type.
30535 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30536 (gpm_tty): Change its type and initialize it.
30537 (Fterm_open_connection): Check the frame is indeed a tty.
30538 Use the new gpm_tty.
30539 (Fterm_close_connection): Use the new gpm_tty.
30540 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30541 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30542
30543 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
30544
30545 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30546 underline_color, to draw strike-through.
30547
30548 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30549
30550 * lisp.h (allocate_terminal): Declare.
30551
30552 * window.c (candidate_window_p): Consider frames that are being placed
30553 by the user as somewhere between visible and iconified.
30554 (window_loop): Prefer windows on the current frame.
30555 (Fselect_window): Move the use of select-frame to the beginning so we
30556 can just delegate all the work (it'll call us back anyway).
30557
30558 * frame.c (Qdisplay_environment_variable):
30559 * frame.h (Qdisplay_environment_variable): Delete.
30560
30561 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30562 of the first arg, since that value may be a union.
30563
30564 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30565 parameter rather than Qdisplay_environment_variable. If all else
30566 fails, look for DISPLAY in initial-environment.
30567
30568 2007-09-21 Glenn Morris <rgm@gnu.org>
30569
30570 * Makefile.in (emacstool): Remove target.
30571 (lisp, shortlisp): Remove termdev.elc.
30572
30573 2007-09-21 Markus Triska <markus.triska@gmx.at>
30574
30575 * xterm.c (x_delete_display): Compile session management conditionally.
30576
30577 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30578
30579 * callproc.c (getenv_internal_1): New function.
30580 (getenv_internal): Use it.
30581 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30582
30583 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30584 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30585 (Fset_terminal_parameter): Work with dead terminals as well.
30586 (Fmodify_terminal_parameters): Remove.
30587
30588 * terminal.c (get_terminal): Handle terminals.
30589 Make sure the terminal returned is live.
30590 (create_terminal): Use allocate_terminal.
30591 (mark_terminals): Move to alloc.c.
30592 (delete_terminal): Use terminal->name as liveness status.
30593 NULL out fields after freeing their contents.
30594 Don't deallocate the object.
30595 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30596 rather than an int.
30597 (Fterminal_live_p): Accept non-integer arguments.
30598 (Fterminal_list): Return terminal objects rather than an ints.
30599
30600 * alloc.c (enum mem_type): New member for `terminal' objects.
30601 (allocate_terminal): New function.
30602 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30603 Handle terminals.
30604 (mark_terminal): New fun.
30605 (mark_terminals): Move from terminal.c.
30606
30607 * term.c (get_tty_terminal): Don't treat output_initial specially.
30608 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30609 (delete_tty): Use terminal->name as liveness status.
30610
30611 * termhooks.h (struct terminal): Make it into a pseudovector.
30612 Remove `deleted' replaced by checking `name's nullness.
30613
30614 * print.c (print_object): Handle terminals.
30615
30616 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30617 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30618
30619 * frame.c (make_terminal_frame):
30620 * keyboard.c (tty_read_avail_input):
30621 * w32term.c (x_delete_terminal):
30622 * xfns.c (Fx_create_frame, x_create_tip_frame):
30623 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30624
30625 2007-09-20 Glenn Morris <rgm@gnu.org>
30626
30627 * process.c (Fmake_network_process): Doc fix.
30628
30629 2007-09-19 Jason Rumney <jasonr@gnu.org>
30630
30631 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30632
30633 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30634
30635 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30636 Fix a C warning regarding variable constness.
30637
30638 * xterm.c (handle_one_xevent): Fix a C warning.
30639
30640 2007-09-18 Jason Rumney <jasonr@gnu.org>
30641
30642 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30643
30644 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30645
30646 * gtkutil.c (gdpy_def): New variable.
30647 (xg_initialize): Initialize gdpy_def.
30648 (xg_display_close): If no other display exists, set gdpy_def to a
30649 new connection.
30650
30651 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30652
30653 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30654 when we have no file name for the icon.
30655 (xg_tool_bar_expose_callback): Remove.
30656 (xg_create_tool_bar): Don't connect expose signal to
30657 xg_tool_bar_expose_callback.
30658 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30659
30660 2007-09-16 Andreas Schwab <schwab@suse.de>
30661
30662 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30663 values instead of zapping them.
30664
30665 2007-09-14 Glenn Morris <rgm@gnu.org>
30666
30667 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30668 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30669 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30670 scope and rename to omfib_buffer for clarity.
30671 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30672
30673 2007-09-14 Kenichi Handa <handa@m17n.org>
30674
30675 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30676
30677 2007-09-13 Jason Rumney <jasonr@gnu.org>
30678
30679 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30680
30681 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30682
30683 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30684 (mac_term_init): Call here instead, passing rif.
30685
30686 2007-09-13 Glenn Morris <rgm@gnu.org>
30687
30688 * s/hpux.h: No longer define `static' as nothing.
30689
30690 2007-09-13 Johan Bockgård <bojohan@gnu.org>
30691
30692 * callint.c (Fcall_interactively): Remove unused var `fun'.
30693
30694 2007-09-12 Romain Francoise <romain@orebokech.com>
30695
30696 * window.c (prefer_window_split_horizontally, display_buffer):
30697 Revert 2007-09-08 change.
30698
30699 2007-09-12 Glenn Morris <rgm@gnu.org>
30700
30701 * alloca.c: Remove file.
30702 * Makefile.in (alloca): Do not undef.
30703 (allocaobj, alloca.o): Remove.
30704 (otherobj): Remove allocaobj.
30705 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30706 * regex.c (C_ALLOCA): Remove all references and code that was only
30707 used when this was defined.
30708 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30709 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30710 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30711
30712 * Makefile.in (SOURCES, unlock, relock): Delete.
30713
30714 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30715 (menu_grab_callback): All uses changed.
30716
30717 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30718 (x_reply_selection_request): All uses changed.
30719
30720 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30721
30722 * lread.c (load_warn_old_style_backquotes): Change message to look
30723 better when it appears in the middle of byte-compiler messages.
30724
30725 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30726
30727 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30728
30729 * xterm.c (x_create_terminal): Add comment.
30730
30731 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30732
30733 2007-09-10 Richard Stallman <rms@gnu.org>
30734
30735 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30736
30737 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30738
30739 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30740 (DEFUN): Document `intspec', use it instead of `prompt'.
30741
30742 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30743
30744 * data.c (Finteractive_form): If the interactive specification starts
30745 with a `(', use it as a Lisp form.
30746
30747 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30748 name and file modes.
30749
30750 * callint.c (Fcall_interactively): Comment fixes.
30751
30752 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30753
30754 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30755 and compiled functions.
30756
30757 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30758
30759 * window.c (prefer_window_split_horizontally): New variable.
30760 (display_buffer): Consider splitting window horizontally depending
30761 on prefer_window_split_horizontally.
30762
30763 2007-09-08 Eli Zaretskii <eliz@gnu.org>
30764
30765 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30766
30767 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30768
30769 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30770
30771 * frame.c (x_set_frame_parameters): Check number is positive before
30772 using XFASTINT.
30773
30774 * window.c (freeze_window_start): Don't presume selected_window holds
30775 a window object.
30776 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30777
30778 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30779
30780 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30781
30782 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30783
30784 * window.c (Vsplit_window_preferred_function): New var.
30785 (Fdisplay_buffer): Use it.
30786 (syms_of_window): Export, and initialize it.
30787
30788 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30789
30790 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30791
30792 2007-09-06 Glenn Morris <rgm@gnu.org>
30793
30794 * gtkutil.c (menu_grab_callback) <cnt>:
30795 * xselect.c (x_reply_selection_request) <cnt>: Move static
30796 variable to file scope.
30797
30798 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30799
30800 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30801 consistent values of selected_frame and selected_window.
30802
30803 2007-09-04 Jason Rumney <jasonr@gnu.org>
30804
30805 * w32console.c (initialize_w32_display): Zero unused hooks.
30806
30807 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30808
30809 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30810 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30811
30812 2007-09-04 Jason Rumney <jasonr@gnu.org>
30813
30814 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30815 in w32console.c. Set up input. Remove XXX comments that have been
30816 confirmed as correct.
30817
30818 * s/ms-w32.h (MULTI_KBOARD): Define.
30819
30820 * w32console.c (one_and_only_w32cons): Remove.
30821 (initialize_w32_display): Take terminal argument.
30822
30823 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30824 initialize_w32_display.
30825 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30826
30827 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30828
30829 * keyboard.c (discard_mouse_events): Discard it.
30830 (make_lispy_event): Translate it to a lisp event.
30831 (lispy_wheel_names): Add wheel-left and right events.
30832 (syms_of_keyboard): Enlarge wheel_syms.
30833
30834 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30835 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30836
30837 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30838
30839 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30840 from WM_MOUSEHWHEEL.
30841 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30842
30843 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30844 terminal.
30845
30846 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30847 keyboard for the terminal.
30848
30849 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30850
30851 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30852 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30853 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30854 and resume-tty-function to resume-tty-hook.
30855 (Fsuspend_tty, Fresume_tty): Use new names.
30856
30857 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30858
30859 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30860 if it starts with "n:".
30861
30862 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30863
30864 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30865
30866 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30867
30868 * frame.h:
30869 * frame.c (Qterm_environment_variable): Remove.
30870 (syms_of_frame): Don't init and staticpro it.
30871
30872 * callproc.c (getenv_internal): Remove special case for $TERM.
30873
30874 * callproc.c (Vinitial_environment): New variable.
30875 (set_initial_environment): Initialize it.
30876 (syms_of_callproc): Declare it.
30877 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30878 TERM under which a process runs is never related to the TERM in which
30879 Emacs is running.
30880
30881 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30882
30883 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30884 * s/darwin.h: ... do it here.
30885
30886 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30887
30888 * lisp.h (set_initial_environment): Rename from set_global_environment.
30889
30890 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30891 removed by mistake on the multi-tty branch.
30892
30893 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30894 (Fmodify_frame_parameters): Return a value.
30895
30896 * image.c (png_load): Comment-out var only used in commented-out code.
30897
30898 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30899 before passing it to mark_object.
30900
30901 * xfaces.c (internal_resolve_face_name): Return a value.
30902 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30903
30904 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30905 (x_icon): Comment-out var only used in commented-out code.
30906
30907 2007-08-29 Romain Francoise <romain@orebokech.com>
30908
30909 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30910 QUIT hasn't been provided.
30911
30912 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30913
30914 * callproc.c (child_setup, getenv_internal): Use the
30915 display-environment-variable and term-environment-variable frame params.
30916 (set_initial_environment): Initialise Vprocess_environment.
30917
30918 * config.in: Disable multi-keyboard support on a mac.
30919
30920 * frame.c (Qterm_environment_variable)
30921 (Qdisplay_environment_variable): New variables.
30922 (syms_of_frame): Intern and staticpro them.
30923 (Fmake_terminal_frame): Disable output method test.
30924
30925 * frame.h: Declare them here.
30926
30927 * macfns.c (x_set_mouse_color): Get rif from the frame.
30928 (x_set_tool_bar_lines): Don't use updating_frame.
30929 (mac_window): Add 2 new parameters for consistency with other systems.
30930 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30931 frame parameters following what is done in X11 and w32. Don't use
30932 FRAME_MAC_DISPLAY_INFO.
30933 (Fx_open_connection, start_hourglass): Remove window-system check.
30934 (x_create_tip_frame): Get the keyboard from the terminal.
30935
30936 * macmenu.c: Reorder includes.
30937 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30938
30939 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30940 terminal parameter.
30941 (x_clear_frame): Add a frame parameter.
30942 (note_mouse_movement): Get rif from the frame.
30943 (mac_term_init): Initialize the terminal.
30944 (mac_initialize): Make static and move terminal initialization ...
30945 (mac_create_terminal): ... to this new function.
30946
30947 * macterm.h (struct mac_display_info): Add terminal.
30948 (mac_initialize): Delete declaration.
30949
30950 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30951
30952 * sysdep.c: Comment out text after #endif.
30953
30954 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30955 is defined. Better initialize ttys in windows. Use terminal
30956 specific mouse_position_hook.
30957
30958 * termhooks.h (union display_info): Add mac_display_info.
30959
30960 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30961 Set the default minibuffer frame, window_system and the rest of the
30962 frame parameters following what is done in X11.
30963
30964 * w32term.c (w32_initialize): Make static.
30965
30966 * xselect.c (x_handle_selection_clear): Only access
30967 terminal->kboard when MULTI_KBOARD is defined.
30968
30969 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30970 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30971
30972 2007-08-29 Jason Rumney <jasonr@gnu.org>
30973
30974 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30975 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30976
30977 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30978 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30979
30980 * keyboard.c (restore_kboard_configuration): Only define when
30981 MULTI_KBOARD defined.
30982
30983 * makefile.w32-in: Update dependancies from Makefile.in.
30984 (OBJ1): Add terminal.$(O)
30985
30986 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30987 Don't define function body.
30988 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30989
30990 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30991
30992 * w32.c (request_sigio, unrequest_sigio): Remove.
30993
30994 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30995 (w32con_clear_frame, w32con_clear_end_of_line)
30996 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30997 (w32con_delete_glyphs, w32con_set_terminal_window)
30998 (scroll_line, w32_sys_ring_bell): Add frame arg.
30999 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
31000 Add terminal arg.
31001 (PICK_FRAME): Remove.
31002 (w32con_write_glyphs): Use frame specific terminal coding.
31003 (one_and_only_w32cons): New global variable.
31004 (initialize_w32_display): Use it for storing hooks.
31005 (create_w32cons_output): New function.
31006
31007 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
31008 arg a frame.
31009
31010 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
31011 Set window_system.
31012 (x_set_tool_bar_lines): Don't use updating_frame.
31013 (Fx_create_frame): Set terminal and ref count.
31014 (Fx_open_connection): Remove window-system check.
31015
31016 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
31017
31018 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
31019 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
31020 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
31021 Add frame arg.
31022 (x_delete_terminal, w32_create_terminal): New functions.
31023 (w32_term_init): Create a terminal.
31024 (w32_initialize): Move terminal specific initialization to
31025 w32_create_terminal.
31026
31027 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
31028 (w32_clear_rect, w32_clear_area): Use background from frame.
31029 (w32_display_info): Add terminal.
31030 (w32_sys_ring_bell, x_delete_display): Declare here.
31031
31032 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
31033
31034 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
31035
31036 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
31037
31038 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
31039 Fix get_named_tty calls for the controlling tty.
31040
31041 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
31042
31043 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
31044
31045 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
31046
31047 * term.c (tty_insert_glyphs): Add missing first parameter.
31048
31049 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
31050
31051 * buffer.c (Fbuffer_list, Fbury_buffer):
31052 Take frame->buried_buffer_list into account.
31053
31054 * cm.c (current_tty): New variable, for cmputc().
31055 (cmputc): Use it.
31056 (cmcheckmagic): Add tty parameter, look up terminal streams there.
31057 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
31058 (cmgoto): Add tty parameter. Pass it on to calccost().
31059 Use emacs_tputs() instead of tputs().
31060
31061 * cm.h (emacs_tputs): New macro to set current_tty, and then call
31062 tputs().
31063 (current_tty): New variable, for cmputc().
31064 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
31065
31066 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
31067 (internal_condition_case, internal_condition_case_1)
31068 (internal_condition_case_2): Don't abort when x_catching_errors.
31069
31070 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
31071 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
31072 prevent crashes caused by bogus longjmps in read_char.
31073
31074 * keymap.h (Fset_keymap_parent): Add EXFUN.
31075
31076 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
31077 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31078 Remove redundant definition.
31079
31080 * macfns.c (x_set_mouse_color, x_make_gc):
31081 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31082
31083 * w32term.c (x_free_frame_resources):
31084 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31085 (w32_initialize): Use the accessor macros for terminal characteristics.
31086
31087 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31088 Use the accessor macros for terminal characteristics.
31089 * msdos.c (internal_terminal_init): Use the accessor macros for
31090 terminal characteristics.
31091 (ScreenVisualBell, internal_terminal_init):
31092 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31093
31094 * termopts.h (no_redraw_on_reenter): Declare.
31095
31096 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31097 (mark_terminals, mark_ttys): Declare.
31098 (Fgarbage_collect): Call them.
31099 (mark_object): Mark buried_buffer_list.
31100
31101 * prefix-args.c: Include stdlib.h for exit.
31102
31103 * syssignal.h: Add comment.
31104
31105 * indent.c: Include stdio.h.
31106
31107 * window.h (Vinitial_window_system): Declare.
31108 (Vwindow_system): Delete declaration.
31109
31110 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31111
31112 * image.c (lookup_image): Don't initialize `c' until the xasserts
31113 have been run.
31114
31115 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31116 FRAME_FOREGROUND_PIXEL.
31117
31118 * print.c (print_preprocess): Don't lose print_depth levels while
31119 iterating.
31120
31121 * widget.c (update_from_various_frame_slots):
31122 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31123
31124 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31125 frames.
31126 (window_internal_height): Remove bogus make_number call.
31127 (init_window_once): Call make_terminal_frame with two zero parameters.
31128
31129 * fileio.c (Fread_file_name): Update comment.
31130
31131 * callint.c (Fcall_interactively):
31132 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31133 Make sure it is correctly unwound.
31134
31135 * xsmfns.c (x_session_close): New function.
31136
31137 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31138 Delete declarations.
31139
31140 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31141 (x_output): Remove background_pixel and foreground_pixel fields.
31142 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31143 (x_delete_device, x_session_close): Declare.
31144
31145 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31146 (read_filtered_event): Call `read_char' with a local
31147 `wrong_kboard_jmpbuf'.
31148
31149 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31150 Don't call single_kboard_state. Use FRAME_RIF.
31151
31152 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31153 systems.
31154
31155 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31156 (Fframe_with_environment, Fset_input_meta_mode)
31157 (Fset_quit_char): EXFUN.
31158 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31159 (init_sys_modes, reset_sys_modes): Update prototypes.
31160 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31161
31162 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31163 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31164 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31165 Delete declarations.
31166 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31167 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31168 New declarations.
31169
31170 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31171 already does that during init_display(). Call syms_of_keymap
31172 before syms_of_keyboard. Call `syms_of_terminal'.
31173 Call set_initial_environment, not set_process_environment.
31174 (shut_down_emacs): Call reset_all_sys_modes() instead of
31175 reset_sys_modes().
31176
31177 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31178 (internal_resolve_face_name, resolve_face_name_error): New functions.
31179 (resolve_face_name): Protect against loops and errors thrown by Fget.
31180 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31181 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31182
31183 * scroll.c: Replace CURTTY() with local variables throughout the
31184 file (where applicable).
31185 (calculate_scrolling, calculate_direct_scrolling)
31186 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31187 characteristics.
31188
31189 * keymap.c (Vfunction_key_map): Remove.
31190 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31191 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31192 (Vkey_translation_map): Remove.
31193 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31194 (Fdescribe_buffer_bindings)
31195 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31196 Update for terminal-local key-translation-map.
31197
31198 * Makefile.in (callproc.o): Update dependencies.
31199 (lisp, shortlisp): Add termdev.elc.
31200 (obj): Add terminal.o.
31201 (terminal.o): Add dependencies.
31202 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31203 (data.o, fns.o): Add termhooks.h dependency.
31204 (SOME_MACHINE_LISP): Add dnd.elc.
31205 (minibuf.o): Fix typo.
31206 Update dependencies.
31207
31208 * data.c (do_symval_forwarding, store_symval_forwarding)
31209 (find_symbol_value): Use the selected frame's keyboard, not
31210 current_kboard.
31211
31212 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31213 Vwindow_system.
31214
31215 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31216 Fmenu_bar_open.
31217 (syms_of_xmenu): Update defsubr.
31218 (mouse_position_for_popup, Fx_popup_menu)
31219 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31220 (set_frame_menubar, free_frame_menubar)
31221 (create_and_show_popup_menu, xmenu_show)
31222 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31223 an X frame.
31224
31225 * xselect.c (x_own_selection): Abort if not an X frame.
31226 (some_frame_on_display): Check if it is an X frame.
31227 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31228
31229 * coding.c: Include frame.h and termhooks.h.
31230 (terminal_coding, keyboard_coding): Delete.
31231 (Fset_terminal_coding_system_internal)
31232 (Fset_keyboard_coding_system_internal)
31233 (Fkeyboard_coding_system)
31234 (Fterminal_coding_system): Add a terminal parameter.
31235 Get terminal_coding from the terminal.
31236 (init_coding_once): Don't call setup_coding_system here.
31237
31238 * dispextern.h (set_scroll_region, turn_off_insert)
31239 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31240 (tty_clear_end_of_line, tty_setup_colors)
31241 (delete_tty, updating_frame)
31242 (produce_special_glyphs, produce_glyphs, write_glyphs)
31243 (insert_glyphs): Remove.
31244 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31245 (tty_turn_off_highlight, get_tty_size): Add declaration.
31246 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31247
31248 * frame.h (enum output_method): Add output_initial.
31249 (struct x_output): Delete.
31250 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31251 Access foreground_pixel and background_pixel directly from the frame.
31252 (tty_display): Delete.
31253 (struct frame): Add buried_buffer_list, foreground_pixel,
31254 background_pixel and terminal. Delete kboard.
31255 (union output_data): Add tty.
31256 (FRAME_KBOARD): Get the kboard from the terminal.
31257 (FRAME_INITIAL_P): New macro.
31258 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31259 (Qterm_environment_variable, Qdisplay_environment_variable)
31260 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31261 New declarations.
31262
31263 * termchar.h (tty_output, tty_display_info): New structures.
31264 (tty_list): Declare.
31265 (FRAME_TTY, CURTTY): New macros.
31266 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31267 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31268 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31269 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31270
31271 * callproc.c: Include frame.h and termhooks.h, for terminal
31272 parameters.
31273 (add_env): New function.
31274 (child_setup): Use it.
31275 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31276 (getenv_internal): Fix get_terminal_param call.
31277 (Fgetenv_internal, egetenv): Update doc.
31278 (syms_of_callproc): Initialize Vprocess_environment to nil.
31279 Register and initialize them. Remove obsolete defvars. Update doc
31280 strings.
31281 (child_setup): Handle Vlocal_environment_variables.
31282 (getenv_internal): Add terminal parameter.
31283 Handle Vlocal_environment_variables.
31284 (Fgetenv_internal): Add terminal parameter.
31285 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31286 environment in a frame (not terminal) parameter. Update doc strings.
31287 (set_initial_environment): Rename from set_global_environment.
31288 Store Emacs environment in initial frame parameter.
31289
31290 * xdisp.c (redisplay_internal): Update references to
31291 `previous_terminal_frame'.
31292 (display_mode_line, Fformat_mode_line): Replace calls to
31293 `push_frame_kboard' with `push_kboard'.
31294 (get_glyph_string_clip_rects): Add extra parentheses and
31295 braces to prevent compiler warnings.
31296 (calc_pixel_width_or_height): Add xassert to check that the
31297 frame is alive. Don't call `lookup_image' on a termcap frame.
31298 (message2_nolog, message3_nolog, redisplay_internal)
31299 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31300 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31301 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31302 (Fx_display_pixel_width, Fx_display_pixel_height)
31303 (Fx_display_planes, Fx_display_color_cells)
31304 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31305 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31306 (Fx_display_backing_store, Fx_display_visual_class)
31307 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31308 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31309
31310 * xfns.c (x_set_foreground_color x_set_background_color)
31311 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31312 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31313 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31314 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31315 terminal that is being deleted.
31316 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31317 frame parameter, and make sure it overrides any user-supplied setting.
31318 (Fx_close_connection, Fx_synchronize): Unify argument names with
31319 the rest of the DEFUNs.
31320
31321 * dispnew.c (Fsend_string_to_terminal): Update call to
31322 `get_tty_terminal'.
31323 (Fredraw_frame, Fsend_string_to_terminal)
31324 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31325 FRAME_TERMCAP_P and FRAME_TTY.
31326 (window_change_signal): Don't believe width/height values that are
31327 impossibly small.
31328 (Vinitial_window_system): Rename from Vwindow_system.
31329 (termscript, Wcm, rif): Delete.
31330
31331 * termhooks.h (struct terminal): New struct containing the
31332 previously global text display hooks and new members NAME,
31333 DELETED and PARAM_ALIST.
31334 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31335 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31336 (FRAME_RIF): New macros.
31337 (get_terminal_param, get_device): New declarations.
31338 (termscript): Delete declaration.
31339
31340 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31341 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31342 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31343 FRAME_FOREGROUND_PIXEL.
31344 (x_fully_uncatch_errors): Disable definition.
31345 (x_scroll_bar_expose): Fix reference to foreground pixel.
31346 (XTread_socket): Disable loop on all X displays.
31347 (x_delete_terminal): Don't set terminal->deleted and let
31348 delete_terminal delete the frames on the terminal.
31349 (x_delete_display): Doc update to reflect changes in
31350 delete_terminal.
31351 (x_display_info) <terminal>: Move member earlier in the struct.
31352 (deleting_tty): Remove old variable.
31353 (Fsuspend_tty): Call clear_tty_hooks.
31354 (Fresume_tty, init_tty): Call set_tty_hooks.
31355 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31356 errors on X frames.
31357 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31358 (handle_one_xevent): Initialize `f' to NULL.
31359 (x_delete_terminal, x_create_terminal): New functions.
31360 (XTset_terminal_modes, XTreset_terminal_modes)
31361 (XTread_socket, x_connection_closed, x_term_init)
31362 (x_term_init, x_delete_display): Add terminal parameter.
31363 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31364 X connections.
31365
31366 * frame.c: Include termchar.h.
31367 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31368 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31369 (Qdisplay_environment_variable): New vars.
31370 (Fframep): Deal with output_initial.
31371 (Fframe-live-p): Doc fix.
31372 (Fwindow-system): New function.
31373 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31374 (make_terminal_frame): Don't create frames on a terminal that is
31375 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31376 (store_frame_param): Check for found_for_frame before calling XFRAME.
31377 (Fmake_terminal_frame): Handle NULL tty names correctly.
31378 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31379 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31380 frames to refer to a deleted frame in their 'environment parameter.
31381 (Fframe_with_environment): New function.
31382 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31383 (get_future_frame_param): New function.
31384 (Fmake_terminal_frame): Use it.
31385 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31386
31387 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31388 * sysdep.c (reset_sys_modes): Update for renames.
31389
31390 * keyboard.c (tty_read_avail_input): New function.
31391 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31392 (syms_of_keyboard): Defsubr them.
31393 (Fset_input_meta_mode, Fset_quit_char): New functions.
31394 (Fset_input_mode): Split to above functions.
31395 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31396 parameter. Use it in call to `read_char'.
31397 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31398 Set wrong_kboard_jmpbuf correctly in recursive calls.
31399 Use current_kboard to access Vkeyboard_translate_table.
31400 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31401 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31402 Update longjmp invocations. Remember the original current_kboard,
31403 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31404 changes it. Comment out unnecessary calls to
31405 `record_single_kboard_state' and `any_kboard_state'.
31406 Update recursive calls.
31407 (wrong_kboard_jmpbuf): Remove global variable.
31408 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31409 Handle deleted interrupted_kboards correctly; that is a legal
31410 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31411 and read_char calls. Abort if interrupted_kboard died in read_char.
31412 (any_kboard_state, single_kboard_state)
31413 (push_frame_kboard): Remove function.
31414 (pop_kboard): Switch out of single_kboard mode if the kboard has
31415 been deleted. Remove unused variable. Help debugging by not
31416 changing current_kboard unnecessarily. Set current_kboard to the
31417 kboard of the selected frame when the stored kboard object has
31418 been deleted before pop_kboard.
31419 (temporarily_switch_to_single_kboard): Change first parameter to a
31420 frame pointer. Throw an error when caller wants to change kboards
31421 while in single_kboard mode. Don't push_kboard if we weren't in
31422 single kboard state. Don't pop_kboard if we popped into any
31423 kboard state.
31424 (restore_kboard_configuration): Abort if pop_kboard changed the
31425 kboard in single_kboard mode. Call pop_kboard only after setting
31426 up single_kboard mode.
31427 (Frecursive_edit): Switch to single_kboard mode only in nested
31428 command loops.
31429 (cmd_error, command_loop, command_loop_1, timer_check):
31430 Comment out unnecessary call to `any_kboard_state' and
31431 `record_single_kboard_state'.
31432 (delete_kboard): Exit single_kboard mode if we have just deleted
31433 that kboard. Use FRAME_KBOARD.
31434 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31435 `fatal_error_signal'.
31436 (record_single_kboard_state): Don't push_kboard if we weren't in
31437 single kboard state. Don't pop_kboard if we popped into any
31438 kboard state.
31439 (push_frame_kboard): Rename to push_kboard.
31440 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31441 (read_avail_input): Read input from all terminals.
31442 (mark_kboards): Also mark Vkeyboard_translate_table.
31443 (kbd_buffer_store_event_hold): Simplify condition.
31444 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31445 (Vkeyboard_translate_table): Move to struct kboard.
31446 (init_kboard): Initialize Vkeyboard_translate_table.
31447 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31448 Vkeyboard_translate_table. Update doc strings. Update docs of
31449 local-function-key-map and function-key-map.
31450
31451 * terminal.c: New file.
31452
31453 * term.c: Include errno.h.
31454 (Vring_bell_function, device_list, initial_device)
31455 (next_device_id, ring_bell, update_begin, update_end)
31456 (set_terminal_window, cursor_to, raw_cursor_to)
31457 (clear_to_end, clear_frame, clear_end_of_line)
31458 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31459 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31460 (syms_of_term): Move their initialization to terminal.c.
31461 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31462 (Ftty_display_color_cells)
31463 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31464 (clear_tty_hooks, set_tty_hooks)
31465 (init_tty, maybe_fatal): New functions.
31466 (Ftty_type): Return nil if terminal is not on a tty instead of
31467 throwing an error. Doc update.
31468 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31469 Doc update. Initialize new subrs and variables.
31470 (delete_tty): Use terminal->deleted.
31471 (tty_set_terminal_modes): Rename from set_terminal_modes.
31472 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31473 (set_scroll_region): Rename to `tty_set_scroll_region'.
31474 (turn_on_insert): Rename to `tty_turn_on_insert'.
31475 (turn_off_insert): Rename to `tty_turn_off_insert'.
31476 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31477 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31478 (toggle_highligh): Rename to `tty_toggle_highlight'.
31479 (background_highlight): Rename to `tty_background_highlight'.
31480 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31481 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31482 (tty_set_scroll_region, tty_background_highlight)
31483 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31484 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31485 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31486 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31487 Add static modifier.
31488 (tty_reset_terminal_modes, tty_set_terminal_window)
31489 (tty_set_scroll_region, tty_background_highlight)
31490 (tty_highlight_if_desired, tty_cursor_to)
31491 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31492 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31493 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31494 renames.
31495
31496 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31497
31498 * keyboard.c: Qrtl is new.
31499 (parse_tool_bar_item): Handle :rtl keyword.
31500 (syms_of_keyboard): Intern :rtl keyword.
31501
31502 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31503
31504 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31505 so no Lisp code is executed.
31506 (file_for_image, find_rtl_image): New functions.
31507 (xg_get_image_for_pixmap): Use file_for_image.
31508 (update_frame_tool_bar): If direction is RTL, use RTL image if
31509 defined. Use Gtk stock images if defined.
31510
31511 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31512
31513 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31514 for nonexistent or zero-width glyph in composition glyph.
31515
31516 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31517
31518 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31519
31520 * xdisp.c (Finvisible_p): New function.
31521 (syms_of_xdisp): defsubr it.
31522
31523 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
31524
31525 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31526 Doc fixes.
31527
31528 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31529
31530 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31531
31532 2007-08-24 Martin Rudalics <rudalics@gmx.at>
31533
31534 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31535 whether decoding has modified buffer contents.
31536
31537 2007-08-24 Jason Rumney <jasonr@gnu.org>
31538
31539 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31540 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31541 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31542 (init_svg_functions) [HAVE_NTGUI]: New function.
31543 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31544 (svg_load_image): Use them.
31545 (svg_load_image) [HAVE_NTGUI]: Implement background.
31546
31547 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31548
31549 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31550 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31551 (LIBX): Remove @RSVG_LIBS@.
31552 (LIBES): Add $(RSVG_LIBS).
31553
31554 * image.c (svg_load_image): Blend with specified background if exists.
31555 Use IMAGE_BACKGROUND. Add Mac OS Support.
31556
31557 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31558 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31559 Remove macros.
31560 [MAC_OSX] (socket_callback): Do nothing.
31561 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31562 ReceiveNextEvent.
31563 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31564 socket_callback.
31565 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31566
31567 2007-08-22 Glenn Morris <rgm@gnu.org>
31568
31569 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31570
31571 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31572
31573 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31574
31575 * image.c: Add support for SVG images. Some additional comments
31576 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31577 (svg_image_p): New function to test for SVG image.
31578 (svg_load): New function to load SVG image.
31579 (svg_load_image): New function, helper for svg_load.
31580 (Qsvg): New Lisp_object.
31581 (svg_keyword_index): New enum.
31582 (svg_format): New static `image_keyword' struct.
31583 (svg_type): New static `image_type' struct.
31584 (librsvg/rsvg.h): Include it.
31585
31586 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31587
31588 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31589
31590 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31591
31592 * lread.c (Qold_style_backquotes): New var.
31593 (syms_of_lread): Init and staticpro it.
31594 (load_warn_old_style_backquotes): New fun.
31595 (Fload): Use them to warn about old style backquotes.
31596 (end_of_file_error, Fload): Remove unused vars.
31597
31598 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31599
31600 * lread.c (Vold_style_backquotes): New var.
31601 (syms_of_lread): Init and export it to Elisp.
31602 (read1): Set it when we find an old-style (back)quote.
31603
31604 2007-08-22 Jason Rumney <jasonr@gnu.org>
31605
31606 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31607
31608 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31609
31610 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31611
31612 2007-08-19 Richard Stallman <rms@gnu.org>
31613
31614 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31615
31616 2007-08-19 Andreas Schwab <schwab@suse.de>
31617
31618 * alloc.c (pure): Round PURESIZE up.
31619
31620 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31621
31622 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31623 active frame.
31624
31625 2007-08-16 Richard Stallman <rms@gnu.org>
31626
31627 * eval.c (Fcommandp): Add parens to clarify.
31628
31629 * minibuf.c (Fall_completions): Use enum for type of table.
31630
31631 * emacs.c (USAGE2): Improve text.
31632
31633 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31634
31635 * term.c (tty_default_color_capabilities): Declare static
31636 variables in file scope, to avoid HPUX compiler problem.
31637
31638 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31639
31640 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31641 to gtk_toolbar_insert.
31642
31643 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31644
31645 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31646
31647 * insdel.c (reset_var_on_error): New fun.
31648 (signal_before_change, signal_after_change):
31649 Use it to reset (after|before)-change-functions to nil in case of error.
31650 Bind inhibit-modification-hooks to t.
31651 Don't bind (after|before)-change-functions to nil while they run.
31652
31653 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31654
31655 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31656 filling pixmap with stippled background.
31657
31658 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31659
31660 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31661 Don't use invisible frame as parent window for repositioning.
31662
31663 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31664
31665 * print.c (new_backquote_output): Rename from old_backquote_output.
31666 (print): Inverse its logic (according to its name) so as to match the
31667 behavior of new_backquote_flag in lread.c.
31668
31669 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31670
31671 * gmalloc.c (posix_memalign): New function.
31672
31673 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31674 ActivateControl/DeactivateControl here.
31675 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31676 frame-notice-user-settings is non-nil.
31677 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31678 for kEventParamFMFontStyle.
31679 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31680 mac_pass_command_to_system and mac_pass_control_to_system here.
31681 (XTread_socket): Call ActivateControl/DeactivateControl here.
31682 (XTread_socket) [TARGET_API_MAC_CARBON]:
31683 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31684 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31685 for window repositioning.
31686
31687 2007-08-08 Glenn Morris <rgm@gnu.org>
31688
31689 * Replace `iff' in doc-strings and comments.
31690
31691 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
31692
31693 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31694
31695 2007-08-07 Martin Rudalics <rudalics@gmx.at>
31696
31697 * fileio.c (Finsert_file_contents): Run format-decode and
31698 after_insert_file_functions on entire buffer when REPLACE is
31699 non-nil and inhibit modification_hooks and point_motion_hooks.
31700 For consistency, run after_insert_file_functions iff something
31701 got inserted. Move signal_after_change and update_compositions
31702 after code running after_insert_file_functions. Make sure that
31703 undo_list doesn't record intermediate steps of the decoding process.
31704
31705 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31706
31707 * emacs.c (main)
31708 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31709 Call malloc_enable_thread on interactive startup.
31710
31711 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31712 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31713 [USE_PTHREAD]: Conditionalize with it.
31714 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31715 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31716 New functions.
31717
31718 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
31719
31720 * xdisp.c (redisplay_window): When restoring original buffer
31721 position, make sure it is still valid.
31722
31723 * image.c (png_load): Ignore png-supplied background color.
31724
31725 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31726
31727 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31728 Use kCFAbsoluteTimeIntervalSince1970.
31729
31730 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31731 New variable.
31732 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31733 event loop should be quit.
31734 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31735 Quit dialog event loop if quit_dialog_event_loop is set.
31736
31737 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31738 (Selection): New typedef. Use instead of ScrapRef.
31739 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31740 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31741 (mac_clear_selection): Rename from clear_scrap.
31742 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31743 scrap_has_target_type. All uses changed.
31744 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31745 (mac_selection_has_target_p): New functions.
31746 (mac_put_selection_value): Rename from put_scrap_string.
31747 (mac_get_selection_value): Rename from get_scrap_string.
31748 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31749 (put_scrap_private_timestamp, scrap_has_target_type)
31750 (get_scrap_private_timestamp): Remove functions.
31751 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31752 (x_own_selection, x_get_local_selection):
31753 Use mac_valid_selection_value_p.
31754 (x_own_selection): Don't use put_scrap_private_timestamp.
31755 Record OWNERSHIP-INFO into Vselection_alist instead.
31756 (x_get_local_selection): Don't check type if request is local.
31757 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31758 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31759
31760 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31761
31762 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31763 add comment explaining why.
31764
31765 2007-08-03 Richard Stallman <rms@gnu.org>
31766
31767 * fileio.c (Fvisited_file_modtime): Use make_time.
31768
31769 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31770
31771 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31772 build.
31773
31774 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31775
31776 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31777
31778 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31779
31780 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31781
31782 2007-07-30 Richard Stallman <rms@gnu.org>
31783
31784 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31785
31786 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31787
31788 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31789
31790 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
31791
31792 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31793 remote default-directory.
31794
31795 * buffer.c (mode-line-format): Update doc string.
31796
31797 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31798
31799 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31800 scroll bar gap.
31801 (x_scroll_bar_create): Set bar->fringe_extended_p.
31802 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31803 on frame edge. Check fringe background extension. Don't clear
31804 extended fringe background area.
31805
31806 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31807 (w32_fill_area): Enclose multiple statements with do ... while (0).
31808
31809 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31810 Extend fringe background to scroll bar gap.
31811 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31812 Set bar->fringe_extended_p.
31813 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31814 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31815 background extension. Don't clear extended fringe background area.
31816
31817 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31818 New member fringe_extended_p.
31819
31820 2007-07-25 Glenn Morris <rgm@gnu.org>
31821
31822 * Relicense all FSF files to GPLv3 or later.
31823
31824 * COPYING: Switch to GPLv3.
31825
31826 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31827
31828 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31829
31830 * data.c (Finteractive_form): Check for the presence of an
31831 `interactive-form' symbol property more thoroughly.
31832
31833 * data.c (Finteractive_form): Use an `interactive-form' property if
31834 present, analogous to the function-documentation property.
31835
31836 2007-07-24 Jason Rumney <jasonr@gnu.org>
31837
31838 * w32fns.c (x_real_positions): Get real position from OS instead of
31839 calculating it.
31840
31841 2007-07-23 Jason Rumney <jasonr@gnu.org>
31842
31843 * filelock.c (current_lock_owner): Allow for @ sign in username.
31844
31845 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
31846
31847 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31848 remote default-directory.
31849
31850 * buffer.c (mode-line-format): Describe above case in doc string.
31851
31852 2007-07-20 Eli Zaretskii <eliz@gnu.org>
31853
31854 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31855 Define if not defined.
31856
31857 2007-07-18 Jason Rumney <jasonr@gnu.org>
31858
31859 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31860
31861 2007-07-18 Richard Stallman <rms@gnu.org>
31862
31863 * data.c (Fsetq_default): Doc fix.
31864
31865 * eval.c (Fsetq): Doc fix.
31866
31867 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
31868
31869 * coding.c (Ffind_operation_coding_system):
31870 * eval.c (For, Fand): Doc fixes.
31871 Reported by Johan Bockgård.
31872
31873 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31874
31875 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31876
31877 * xterm.h: Declare x_ewmh_activate_frame.
31878
31879 * xterm.c (x_ewmh_activate_frame): New function.
31880 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31881
31882 2007-07-17 Martin Rudalics <rudalics@gmx.at>
31883
31884 * window.c (Fdisplay_buffer): If largest or LRU window is the
31885 only window, split it even if it is not eligible for splitting.
31886 This restores the original behavior broken by the 2007-07-15
31887 change.
31888
31889 2007-07-17 Glenn Morris <rgm@gnu.org>
31890
31891 * abbrev.c (abbrev_check_chars): New function.
31892 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31893 Call abbrev_check_chars to check abbrev characters are word
31894 constituents. Doc fix.
31895
31896 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31897
31898 * process.c (Fstart_process, Fmake_network_process)
31899 (read_process_output): Fix up last changes.
31900
31901 2007-07-16 Eli Zaretskii <eliz@gnu.org>
31902
31903 * makefile.w32-in (clean): Don't delete *~.
31904
31905 2007-07-16 Andreas Schwab <schwab@suse.de>
31906
31907 * window.c (Fdisplay_buffer): Use NILP.
31908 (Fset_window_scroll_bars): Likewise.
31909
31910 2007-07-15 Martin Rudalics <rudalics@gmx.at>
31911
31912 * window.c (window_min_size_2): New function.
31913 (window_min_size_1, size_window, Fdisplay_buffer)
31914 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31915 windows without mode- or header-lines when window-min-height is
31916 too small.
31917 (size_window): Reset nodelete_p after testing it, following an
31918 earlier note by Kim F. Storm.
31919 (display_buffer): Do not set split_height_threshold to twice the
31920 value of window_min_height to avoid changing the value of a
31921 customizable variable. Rather explicitly check whether the
31922 height of the window that shall be splitted is at least as large
31923 as split_height_threshold.
31924 (Fwindow_full_width_p): New defun.
31925 (syms_of_window): Defsubr it.
31926
31927 * window.h: Add EXFUN for Fwindow_full_width_p.
31928
31929 2007-07-14 Jason Rumney <jasonr@gnu.org>
31930
31931 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31932
31933 2007-07-14 Richard Stallman <rms@gnu.org>
31934
31935 * eval.c (maybe_call_debugger): New function.
31936 (find_handler_clause): Use maybe_call_debugger.
31937 Call it when the handler says `debug'.
31938 Eliminate DEBUGGER_VALUE_PTR.
31939 (Fsignal): Eliminate debugger_value.
31940 (Qdebug): New variable.
31941 (syms_of_eval): Initialize it.
31942
31943 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
31944
31945 * eval.c (Fprogn):
31946 * keyboard.c (Ftrack_mouse):
31947 * print.c (Fwith_output_to_temp_buffer):
31948 * window.c (Fsave_window_excursion): Doc fix.
31949
31950 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31951
31952 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31953
31954 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31955
31956 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31957 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31958 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31959 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31960 Remove unused encoding_carryover.
31961 * process.c: Adjust all functions accordingly.
31962
31963 2007-07-12 Richard Stallman <rms@gnu.org>
31964
31965 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31966
31967 2007-07-11 Jason Rumney <jasonr@gnu.org>
31968
31969 * makefile.w32-in (LIBS): Include OLE32.
31970
31971 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31972 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31973
31974 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31975
31976 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31977 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31978 from a Lisp_Object into a bare pointer.
31979 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31980 Adjust the code correspondingly.
31981
31982 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31983
31984 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31985 (term_show_mouse_face): Remove unused var `j'.
31986 (handle_one_term_event): Remove unused vars `i' and `j'.
31987 Don't cast return value of ttyname since it's not necessary.
31988
31989 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31990
31991 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31992 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31993
31994 * fns.c (map_char_table): Use an array of int for `indices' rather than
31995 an array of Lisp_Objects (which are only ever integers anyway).
31996 (Fmap_char_table): Update caller.
31997 * lisp.h: Update prototype.
31998 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31999 * fontset.c (Ffontset_info):
32000 * casetab.c (set_case_table): Update callers.
32001
32002 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
32003
32004 * keymap.c (struct accessible_keymaps_data)
32005 (struct where_is_internal_data): New structures.
32006 (accessible_keymaps_1, where_is_internal_1): Use them to change
32007 interface to adhere to the one used by map_keymap.
32008 (Faccessible_keymaps, where_is_internal): Use map_keymap.
32009 (accessible_keymaps_char_table, where_is_internal_2): Remove.
32010
32011 * keymap.h (map_keymap_function_t): More informative prototype.
32012
32013 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
32014
32015 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
32016 (looking_at_1): Don't change search_regs and last_thing_searched
32017 if `inhibit-changing-match-data' is non-nil.
32018 (string_match_1, search_buffer, set_search_regs): Likewise.
32019 (syms_of_search): Add Lisp level definition for
32020 `inhibit-changing-match-data' and set it to nil.
32021 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
32022 start and end of the match, instead of using values in search_regs.
32023
32024 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
32025
32026 * minibuf.c (Fcompleting_read): New value `confirm-only'
32027 for `require-match'.
32028
32029 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
32030
32031 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
32032 part of the 2007-06-27 change to syms_of_fileio.
32033
32034 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32035
32036 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
32037 Check WINDOWP before using XWINDOW. Consolidate return statements.
32038
32039 2007-06-27 Richard Stallman <rms@gnu.org>
32040
32041 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
32042
32043 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
32044
32045 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
32046
32047 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32048
32049 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
32050 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
32051 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
32052 (_free_internal, memalign): Use them.
32053 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
32054 Initialize to PTHREAD_MUTEX_INITIALIZER.
32055 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
32056 (morecore_nolock): Rename from morecore. All uses changed.
32057 Use only nolock versions of internal allocation functions.
32058 (_malloc_internal_nolock, _realloc_internal_nolock)
32059 (_free_internal_nolock): New functions created from
32060 _malloc_internal, _realloc_internal, and _free_internal.
32061 (_malloc_internal, _realloc_internal, _free_internal): Use them.
32062 Copy hook value to automatic variable before its use.
32063 (memalign): Copy hook value to automatic variable before its use.
32064
32065 2007-06-26 Kenichi Handa <handa@m17n.org>
32066
32067 * coding.c (Ffind_operation_coding_system): Docstring improved.
32068 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
32069
32070 2007-06-25 David Kastrup <dak@gnu.org>
32071
32072 * keymap.c (Fcurrent_active_maps): Add `position' argument.
32073 (Fwhere_is_internal): Adjust call to `current-active-maps' to
32074 cater for additional parameter.
32075
32076 * keymap.h: Adjust number of parameters to `current-active-maps'.
32077
32078 * doc.c (Fsubstitute_command_keys): Adjust call of
32079 `current-active-maps'.
32080
32081 2007-06-25 David Kastrup <dak@gnu.org>
32082
32083 * callint.c (Fcall_interactively): Make the parsing of interactive
32084 specs somewhat more readable.
32085
32086 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32087
32088 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32089 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32090 if extended background has already been filled.
32091
32092 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32093
32094 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32095 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32096
32097 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32098 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32099 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32100 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32101 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32102 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32103 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32104 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32105 Run timers during dialog popup.
32106 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32107
32108 2007-06-21 Jason Rumney <jasonr@gnu.org>
32109
32110 * image.c (convert_mono_to_color_image): Swap fore and background.
32111
32112 2007-06-20 Jason Rumney <jasonr@gnu.org>
32113
32114 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32115 (w32_free_bdf_font): Unmap memory not handle.
32116
32117 2007-06-20 Sam Steingold <sds@gnu.org>
32118
32119 * gmalloc.c (__morecore): Fix the declaration to comply with the
32120 definition.
32121
32122 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
32123
32124 * w32term.c (w32_delete_display): Remove leftover declaration.
32125 (w32_define_cursor, w32_initialize): Make static.
32126
32127 * w32.c (_wsa_errlist): Fix typo in error message.
32128 (init_environment): Ignore any environment variable from the
32129 registry having a null value.
32130
32131 2007-06-20 Glenn Morris <rgm@gnu.org>
32132
32133 * Makefile.in (LIBGIF): Default to -lgif.
32134
32135 2007-06-17 Jason Rumney <jasonr@gnu.org>
32136
32137 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32138 unicode strings.
32139
32140 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
32141
32142 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32143 Fix typo in docstring.
32144
32145 2007-06-16 Eli Zaretskii <eliz@gnu.org>
32146
32147 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32148 and their keybindings.
32149
32150 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
32151
32152 * composite.c (update_compositions): Fix last fix.
32153
32154 2007-06-14 Jason Rumney <jasonr@gnu.org>
32155
32156 * w32.c (get_process_times_fn): New function pointer.
32157 (globals_of_w32): Intialize it if present in kernel32.dll.
32158 (w32_get_internal_run_time): New function.
32159
32160 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32161
32162 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32163
32164 * composite.c (update_compositions): Check the validness of
32165 compositions.
32166
32167 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32168
32169 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32170 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32171
32172 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32173 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32174
32175 * macgui.h (USE_MAC_TOOLBAR): New define.
32176
32177 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32178 Return immediately unless popup is activated.
32179
32180 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32181 background to scroll bar gap.
32182 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32183 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32184 scroll bars on frame edge. Check fringe background extension.
32185 Don't clear extended fringe background area.
32186 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32187 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32188 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32189 [USE_MAC_TOOLBAR]: New macros.
32190 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32191 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32192 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32193 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32194 [USE_MAC_TOOLBAR]: New functions.
32195 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32196 manually if previous repositioning has failed.
32197 (mac_handle_keyboard_event): Use precomputed event kind.
32198 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32199 as tool bar item click. Handle mouse movement over tool bar items.
32200
32201 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32202 toolbar_win_gravity.
32203 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32204 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32205 Add externs.
32206
32207 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32208 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32209
32210 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
32211
32212 * image.c (search_image_cache): Remove unused variable.
32213
32214 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
32215
32216 * xfns.c, xmenu.c: Link to xaw3d if available.
32217
32218 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32219
32220 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32221 frame_foreground and frame_background.
32222
32223 * image.c (lookup_image): Save frame foreground and background colors.
32224 (search_image_cache): Check if saved and current frame colors match.
32225
32226 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32227
32228 * regex.c (regex_compile): Remove the `regnum' counter.
32229 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32230
32231 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32232
32233 * term.c: Include intervals.h to declare Fget_text_property.
32234
32235 2007-06-10 Jason Rumney <jasonr@gnu.org>
32236
32237 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32238
32239 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
32240
32241 * callint.c (Fcall_interactively):
32242 * editfns.c (Fdelete_and_extract_region):
32243 * fileio.c (Fread_file_name):
32244 * fns.c (Fmapconcat):
32245 * keyboard.c (cmd_error_internal):
32246 * keymap.c (Fkey_description):
32247 * lread.c (openp):
32248 * minibuf.c (read_minibuf):
32249 * search.c (wordify):
32250 * sunfns.c (sel_read):
32251 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32252 * xfns.c (x_default_scroll_bar_color_parameter):
32253 * xmenu.c (menu_help_callback):
32254 * xselect.c (Fx_get_atom_name):
32255 * xterm.c (x_term_init): Use empty_unibyte_string.
32256
32257 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32258
32259 * alloc.c (init_strings): Initialize canonical empty strings.
32260 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32261 canonical empty string when the requested size is 0.
32262
32263 * emacs.c (empty_unibyte_string): Rename from empty_string.
32264 (empty_multibyte_string): New canonical empty string.
32265 (syms_of_emacs): Don't initialize empty_string.
32266
32267 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32268 string, if appropriate.
32269 (empty_unibyte_string, empty_multibyte_string): New externs.
32270 (empty_string): Remove extern.
32271
32272 * lread.c (syms_of_lread): Use empty_unibyte_string.
32273
32274 2007-06-07 Jason Rumney <jasonr@gnu.org>
32275
32276 * s/ms-w32.h: Don't define HAVE_TZNAME.
32277
32278 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32279
32280 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32281
32282 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32283
32284 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32285 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32286
32287 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32288 Don't call next handler.
32289 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32290 Remove argument. Install handler to application.
32291 (set_frame_menubar): Don't change deep_p.
32292 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32293 FRAME_OUTER_TO_INNER_DIFF_Y.
32294 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32295 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32296 [HAVE_DIALOGS]: New macros.
32297 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32298 Use them.
32299 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32300
32301 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32302 init_service_handler. All callers changed. Return OSStatus value.
32303
32304 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32305 All callers changed so as not to call SetPortWindowPort.
32306 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32307 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32308 mac_draw_string_common.
32309 (mac_draw_image_string_qd): Likewise.
32310 (mac_draw_string_common): Use them. Add INLINE.
32311 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32312 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32313 GetGlobalMouse.
32314 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32315 and FRAME_OUTER_TO_INNER_DIFF_Y.
32316 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32317 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32318 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32319 repositioning window to mac_handle_window_event.
32320 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32321 saving window location to mac_handle_window_event
32322 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32323 (install_menu_target_item_handler): Remove argument in extern.
32324 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32325 Also accept command events.
32326 (do_keystroke): New function created from XTread_socket.
32327 (init_command_handler): Remove functions.
32328 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32329 and save window location by kEventWindowShowing and kEventWindowHiding
32330 handlers here. Don't call next handler for window state change and
32331 focus events.
32332 (mac_handle_application_event, mac_handle_keyboard_event)
32333 [TARGET_API_MAC_CARBON]: New functions.
32334 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32335 kEventWindowShowing and kEventWindowHiding events. Move installation
32336 of mouse, font, text input and menu target item handlers to
32337 install_application_handler.
32338 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32339 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32340 New function.
32341 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32342 Register it.
32343 (XTread_socket) [TARGET_API_MAC_CARBON]:
32344 Consolidate SendEventToEventTarget calls.
32345 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32346 Move application activation handler to mac_handle_application_event.
32347 Move keyboard handler to mac_handle_keyboard_event.
32348 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32349 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32350 init_command_handler. Call install_application_handler.
32351
32352 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32353 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32354
32355 2007-06-07 Glenn Morris <rgm@gnu.org>
32356
32357 * emacs.c (main): Use `emacs-copyright' in --version output.
32358
32359 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
32360
32361 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32362
32363 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32364
32365 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32366
32367 * macgui.h: Replace WindowPtr with WindowRef.
32368
32369 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32370 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32371 Replace ControlHandle with ControlRef.
32372 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32373
32374 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32375 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32376 Replace ControlHandle with ControlRef.
32377 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32378 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32379
32380 * macterm.h (struct scroll_bar): Rename member control_handle_low
32381 and control_handle_high to control_ref_low and control_ref_high.
32382 All uses changed.
32383 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32384 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32385 respectively. All uses changed.
32386 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32387 (install_window_handler, remove_window_handler): Replace WindowPtr
32388 with WindowRef in externs.
32389
32390 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
32391
32392 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32393
32394 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
32395
32396 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32397
32398 * frame.c (Fmouse_position, Fmouse_pixel_position):
32399 Condition on HAVE_GPM too.
32400
32401 * term.c (term_mouse_highlight): Remove unused variables.
32402 (Fterm_open_connection): Set gpm_zerobased to 1.
32403 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32404 Use zero based co-ordinates.
32405 (handle_one_term_event): Report a drag as mouse movement too.
32406
32407 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32408
32409 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
32410
32411 * image.c (search_image_cache): New function. Require background
32412 color match if background color is unspecified in the image spec.
32413 (uncache_image, lookup_image): Use it.
32414
32415 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
32416
32417 * window.c (Fshrink_window): Reflow docstring.
32418
32419 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
32420
32421 * Version 22.1 released.
32422
32423 2007-06-01 Richard Stallman <rms@gnu.org>
32424
32425 * xfns.c (x_encode_text): Add GCPRO.
32426
32427 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32428
32429 * xfns.c (x_set_name_internal): Save encoded name before
32430 x_encode_text in case string data is relocated.
32431
32432 2007-05-31 Richard Stallman <rms@gnu.org>
32433
32434 * buffer.c (syms_of_buffer): Doc fix.
32435
32436 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
32437
32438 * sysdep.c (init_sys_modes): Add rather than replace with
32439 O_NONBLOCK.
32440
32441 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32442 term_mouse_moveto.
32443
32444 * termhooks.h (term_mouse_moveto): New extern.
32445
32446 * term.c (mouse_face_window): Rename...
32447 (Qmouse_face_window): ...to this.
32448 (term_show_mouse_face, term_clear_mouse_face)
32449 (term_mouse_highlight): Use Qmouse_face_window.
32450 (term_mouse_moveto): New function.
32451 (term_mouse_position): Make it work.
32452 (syms_of_term): Uncomment assignment to mouse_position_hook.
32453 Staticpro Qmouse_face_window.
32454
32455 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32456
32457 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32458 around current_column call.
32459
32460 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32461
32462 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32463 * xdisp.c (next_element_from_buffer):
32464 * window.c (delete_window):
32465 * term.c (term_mouse_highlight):
32466 * msdos.c (getdefdir):
32467 * macterm.c (mac_create_bitmap_from_bitmap_data)
32468 (init_font_name_table):
32469 * fns.c (Fsxhash):
32470 * data.c (Fmake_local_variable):
32471 * ccl.c (ccl_driver): Likewise.
32472
32473 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32474
32475 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32476 Call mac_wakeup_from_rne on window size change.
32477
32478 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
32479
32480 * image.c (uncache_image): Fix typo.
32481
32482 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32483
32484 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32485
32486 2007-05-22 Richard Stallman <rms@gnu.org>
32487
32488 * xterm.c (x_connection_closed): Remove NO_RETURN.
32489
32490 2007-05-22 Martin Rudalics <rudalics@gmx.at>
32491
32492 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32493
32494 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
32495
32496 * image.c (uncache_image): New function.
32497 (Fimage_refresh): New function.
32498
32499 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32500
32501 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32502
32503 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32504
32505 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32506 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32507
32508 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32509
32510 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32511 conditional on [HAVE_GPM_H].
32512
32513 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32514
32515 * syntax.c (skip_chars): Update syntax-table only after we checked that
32516 the new location is valid.
32517
32518 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32519
32520 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32521 mac_get_window_bounds.
32522
32523 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
32524
32525 * Makefile.in (LIBGPM): Allow it to be set from configure.
32526 If set then link Emacs with it.
32527
32528 * config.in: Regenerate.
32529
32530 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32531 New externs.
32532
32533 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32534 Include gpm.h.
32535 (handle_one_term_event, term_gpm): New externs.
32536
32537 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32538 and allow it to be interrupted by SIGIO.
32539
32540 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32541 (wait_reading_process_output): Wait on gpm_fd too.
32542 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32543 (add_gpm_wait_descriptor_called_flag): New variable.
32544 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32545
32546 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32547 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32548 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32549 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32550 (make_lispy_event): Add case GPM_CLICK_EVENT.
32551 (read_avail_input): Handle mouse input.
32552
32553 * term.c (write_glyphs_with_face): New function.
32554 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32555 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32556 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32557 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32558 (last_mouse_x, last_mouse_y): New variables.
32559 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32560 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32561 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32562 (Fterm_close_connection): New functions.
32563 (term_init): Initialise mouse_face_window.
32564
32565 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
32566
32567 * xdisp.c (redisplay_window): If first window line is a
32568 continuation line, recompute the new window start instead of
32569 recentering.
32570
32571 2007-05-18 Glenn Morris <rgm@gnu.org>
32572
32573 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32574 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32575
32576 2007-05-17 Glenn Morris <rgm@gnu.org>
32577
32578 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32579
32580 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32581
32582 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32583 dead key repeat and up events.
32584
32585 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
32586
32587 * image.c (pbm_load): Check image size for monochrome pbm.
32588
32589 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
32590
32591 * xterm.c (XTread_socket): Revert last change.
32592
32593 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
32594
32595 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32596
32597 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32598
32599 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32600
32601 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32602 mixup (YAILOM).
32603
32604 2007-05-07 Andreas Schwab <schwab@suse.de>
32605
32606 * keymap.c (Flookup_key): Fix typo in last change.
32607
32608 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32609
32610 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32611 mapping for unibyte strings.
32612
32613 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32614
32615 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32616 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32617
32618 2007-04-29 Richard Stallman <rms@gnu.org>
32619
32620 * insdel.c (replace_range): For undo, record insertion first.
32621
32622 2007-04-29 Andreas Schwab <schwab@suse.de>
32623
32624 * lisp.h (VECSIZE): Use OFFSETOF.
32625
32626 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32627
32628 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32629 disabled lines.
32630
32631 2007-04-28 Richard Stallman <rms@gnu.org>
32632
32633 * lread.c (read_escape): In a string, \s is always space.
32634
32635 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32636
32637 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32638
32639 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32640 submenu for menu bar items.
32641
32642 See ChangeLog.10 for earlier changes.
32643
32644 ;; Local Variables:
32645 ;; coding: utf-8
32646 ;; End:
32647
32648 Copyright (C) 2007-2011 Free Software Foundation, Inc.
32649
32650 This file is part of GNU Emacs.
32651
32652 GNU Emacs is free software: you can redistribute it and/or modify
32653 it under the terms of the GNU General Public License as published by
32654 the Free Software Foundation, either version 3 of the License, or
32655 (at your option) any later version.
32656
32657 GNU Emacs is distributed in the hope that it will be useful,
32658 but WITHOUT ANY WARRANTY; without even the implied warranty of
32659 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32660 GNU General Public License for more details.
32661
32662 You should have received a copy of the GNU General Public License
32663 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.